-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Hello, A minor feature request for your consideration.
Is your feature request related to a problem? Please describe.
Although Supported in Polly, it is not possible to provide SSML from the Amplify Client to the Predictions/Polly TTS Feature.
Describe the solution you'd like
It would be great if a method could be added to the API to indicate the payload is SSML vs. TEXT. It would be great if some validation could be added to reject the text with an error if it does not conform.
For example:
import Predictions from '@aws-amplify/predictions';
Predictions.convert(
{
textToSpeech: {
source: {
text: `<ssml><s>Hello World.</s></ssml>`,
TextType: 'ssml'
}
}
}
).....;
This translates directly to the Polly service call:
https://docs.aws.amazon.com/polly/latest/dg/API_SynthesizeSpeech.html#polly-SynthesizeSpeech-request-TextType
Describe alternatives you've considered
The only alternative is writing my own Polly integration so I can add the ssml type.
Additional context
N/A
Thank you!