Merge pull request #62 from jambonz/feat/mod_dub

say command for freeswitch module to include vendor and voice
This commit is contained in:
Hoan Luu Huu
2024-03-20 13:40:51 +07:00
committed by GitHub

View File

@@ -614,6 +614,8 @@ const synthElevenlabs = async(logger, {
if (!process.env.JAMBONES_DISABLE_TTS_STREAMING && !renderForCaching && !disableTtsStreaming) {
let params = '';
params += `{api_key=${api_key}`;
params += ',vendor=elevenlabs';
params += `,voice=${voice}`;
params += `,model_id=${model_id}`;
params += `,optimize_streaming_latency=${opts.optimize_streaming_latency || 2}`;
params += ',write_cache_file=1';
@@ -662,6 +664,7 @@ const synthWhisper = async(logger, {credentials, stats, voice, text, renderForCa
let params = '';
params += `{api_key=${api_key}`;
params += `,model_id=${model_id}`;
params += ',vendor=whisper';
params += `,voice=${voice}`;
params += ',write_cache_file=1';
if (speed) params += `,speed=${speed}`;