-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding basic SSML support to Polly #737
base: master
Are you sure you want to change the base?
Conversation
Hello, great thing, unfortunately it doesn't work for me: Edit, for information only, this works perfectly without SSML. |
Hello, Therefore, you must use URL encoding to pass a SSML type phrase. In order to encode your phrase, you can use something like https://www.urlencoder.org/ Your example should work, if you call it like
|
Hi,
That is exactly how I imagined it to be, thank you for your work! |
Hi, |
I recognized that the API basically could support SSML for AWS Polly.
The phrase of course has to encode all the SSML tags, so that a phrase like
<speak><prosody rate="90%">Hello</prosody></speak>
has to be sent as
http://mysonos:5005/Office/say/%3Cspeak%3E%3Cprosody%20rate%3D%2290%25%22%3EHello%3C%2Fprosody%3E%3C%2Fspeak%3E
Nevertheless, the phrase is sent correctly to AWS, the only "showstopper" is that in the AWS API call, the TextType is set to text.
I now added a few simple lines in the aws-polly.js provider, detecting the leading and ending
"<speak>"
tags in an SSML phrase and setting the TextType to "ssml" accordingly.