From c3188e40bbf66450c2e46b22099fba3d4c18bb49 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Sat, 9 Mar 2024 16:59:00 +0700 Subject: [PATCH] support mod_dub --- lib/synth-audio.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/synth-audio.js b/lib/synth-audio.js index 5ba0973..424cfaa 100644 --- a/lib/synth-audio.js +++ b/lib/synth-audio.js @@ -619,6 +619,8 @@ const synthElevenlabs = async(logger, {credentials, options, stats, language, vo if (!process.env.JAMBONES_DISABLE_TTS_STREAMING && !renderForCaching) { 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'; @@ -667,6 +669,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}`;