Merge pull request #28 from jambonz/revert/ssml-silence-trim

revert change to _not_ trim silence when azure ssml is used
This commit is contained in:
Dave Horton
2023-07-25 12:34:22 -04:00
committed by GitHub

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`;