Merge branch 'main' into feat/azure_tts

This commit is contained in:
Hoan Luu Huu
2024-03-30 17:04:01 +07:00
committed by GitHub
4 changed files with 56 additions and 3 deletions
+3
View File
@@ -635,6 +635,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';
@@ -683,6 +685,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}`;