revert change to _not_ trim silence when azure ssml is used

This commit is contained in:
Dave Horton
2023-07-25 11:08:06 -04:00
parent b530db9a62
commit 44d8af2a96
+1 -2
View File
@@ -125,8 +125,7 @@ async function synthAudio(client, logger, stats, { account_sid,
if (['nuance', 'nvidia'].includes(vendor) ||
(
process.env.JAMBONES_TTS_TRIM_SILENCE &&
['microsoft', 'azure'].includes(vendor) &&
!text.startsWith('<speak')
['microsoft', 'azure'].includes(vendor)
)
) {
filePath = `${TMP_FOLDER}/${key.replace('tts:', `tts-${salt || ''}`)}.r8`;