mirror of
https://github.com/jambonz/speech-utils.git
synced 2026-07-04 19:31:49 +00:00
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:
+1
-1
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user