Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Escape characters in text lead to restart #31

Open
Catharsis68 opened this issue Jul 17, 2024 · 0 comments
Open

Escape characters in text lead to restart #31

Catharsis68 opened this issue Jul 17, 2024 · 0 comments

Comments

@Catharsis68
Copy link
Contributor

Catharsis68 commented Jul 17, 2024

We have observerd several restarts of the feature-server - container freeSWITCH.

It seems it it caused through several esacape characters within a text when performing text to speech via streaming and Microsoft.

Expected: freeSWITCH does not crash when using SSML with escape characters

"say": {
  "text": "<speak version=\"1.0\" xmlns=\"[http://www.w3.org/2001/10/synthesis\"](http://www.w3.org/2001/10/synthesis%5c%22) xml:lang=\"de-DE\"><voice name=\"de-DE-KatjaNeural\">Kann ich Sie einmal zu einem Mitarbeiter durchstellen?\r</voice></speak>",
  "disableTtsCache": false
}

// Microsoft
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><voice name="en-US-AriaNeural">Hello world \r welcome to \t \n a new chapter</voice></speak>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant