mirror of
https://github.com/jambonz/speech-utils.git
synced 2026-07-23 12:41:48 +00:00
synth_audio: dont trim silence for Azure when using SSML
This commit is contained in:
+2
-1
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user