From 4c166c8eb4dc0c937747b9cd067336c830164546 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Tue, 25 Jul 2023 07:40:28 -0400 Subject: [PATCH] synth_audio: dont trim silence for Azure when using SSML --- lib/synth-audio.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/synth-audio.js b/lib/synth-audio.js index 40d7059..5896fe8 100644 --- a/lib/synth-audio.js +++ b/lib/synth-audio.js @@ -125,7 +125,8 @@ async function synthAudio(client, logger, stats, { account_sid, if (['nuance', 'nvidia'].includes(vendor) || ( process.env.JAMBONES_TTS_TRIM_SILENCE && - ['microsoft', 'azure'].includes(vendor) + ['microsoft', 'azure'].includes(vendor) && + !text.startsWith('