synth_audio: dont trim silence for Azure when using SSML

This commit is contained in:
Dave Horton
2023-07-25 07:40:28 -04:00
parent 8246dbea21
commit 4c166c8eb4
+2 -1
View File
@@ -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('<speak')
)
) {
filePath = `${TMP_FOLDER}/${key.replace('tts:', `tts-${salt || ''}`)}.r8`;