for tts streaming we need to replace CR and LF with spaces, as we can not send text with those characters to freeswitch currently

This commit is contained in:
Dave Horton
2024-02-08 14:55:39 -05:00
parent 436b15d648
commit f858ccb781
+1 -1
View File
@@ -625,7 +625,7 @@ const synthElevenlabs = async(logger, {credentials, options, stats, language, vo
params += '}';
return {
filePath: `say:${params}${text.replace(/\n/g, ' ')}`,
filePath: `say:${params}${text.replace(/\n/g, ' ').replace(/\r/g, ' ')}`,
servedFromCache: false,
rtt: 0
};