diff --git a/lib/synth-audio.js b/lib/synth-audio.js index 7ca8759..cc413c5 100644 --- a/lib/synth-audio.js +++ b/lib/synth-audio.js @@ -194,7 +194,17 @@ async function synthAudio(client, logger, stats, { account_sid, audioBuffer = await synthWellSaid(logger, {credentials, stats, language, voice, text, filePath}); break; case 'elevenlabs': - audioBuffer = await synthElevenlabs(logger, {credentials, options, stats, language, voice, text, filePath}); + if (process.env.JAMBONES_ELEVENLABS_STREAMING) { + return { + filePath: `say:${text}`, + servedFromCache: false, + rtt: 0 + }; + } + else { + audioBuffer = await synthElevenlabs(logger, {credentials, options, stats, language, voice, text, filePath}); + + } break; case 'whisper': audioBuffer = await synthWhisper(logger, {credentials, stats, voice, text});