mirror of
https://github.com/jambonz/speech-utils.git
synced 2026-10-09 21:14:25 +00:00
Merge pull request #62 from jambonz/feat/mod_dub
say command for freeswitch module to include vendor and voice
This commit is contained in:
@@ -614,6 +614,8 @@ const synthElevenlabs = async(logger, {
|
|||||||
if (!process.env.JAMBONES_DISABLE_TTS_STREAMING && !renderForCaching && !disableTtsStreaming) {
|
if (!process.env.JAMBONES_DISABLE_TTS_STREAMING && !renderForCaching && !disableTtsStreaming) {
|
||||||
let params = '';
|
let params = '';
|
||||||
params += `{api_key=${api_key}`;
|
params += `{api_key=${api_key}`;
|
||||||
|
params += ',vendor=elevenlabs';
|
||||||
|
params += `,voice=${voice}`;
|
||||||
params += `,model_id=${model_id}`;
|
params += `,model_id=${model_id}`;
|
||||||
params += `,optimize_streaming_latency=${opts.optimize_streaming_latency || 2}`;
|
params += `,optimize_streaming_latency=${opts.optimize_streaming_latency || 2}`;
|
||||||
params += ',write_cache_file=1';
|
params += ',write_cache_file=1';
|
||||||
@@ -662,6 +664,7 @@ const synthWhisper = async(logger, {credentials, stats, voice, text, renderForCa
|
|||||||
let params = '';
|
let params = '';
|
||||||
params += `{api_key=${api_key}`;
|
params += `{api_key=${api_key}`;
|
||||||
params += `,model_id=${model_id}`;
|
params += `,model_id=${model_id}`;
|
||||||
|
params += ',vendor=whisper';
|
||||||
params += `,voice=${voice}`;
|
params += `,voice=${voice}`;
|
||||||
params += ',write_cache_file=1';
|
params += ',write_cache_file=1';
|
||||||
if (speed) params += `,speed=${speed}`;
|
if (speed) params += `,speed=${speed}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user