Get Instant Solutions for Kubernetes, Databases, Docker and more
AWS Polly is a service provided by Amazon Web Services that turns text into lifelike speech. It allows developers to create applications that can talk, making it a powerful tool for enhancing user interaction and accessibility. Polly supports a wide range of languages and voices, enabling developers to choose the most suitable voice for their application needs.
When using AWS Polly, you might encounter the EngineNotSupportedException
error. This error typically manifests when you attempt to synthesize speech using an incompatible engine for the selected voice. The error message is clear but can be frustrating if you're unsure why it's occurring.
The EngineNotSupportedException
error occurs when the engine specified in your request does not support the voice you have chosen. AWS Polly offers two types of engines: the standard engine and the neural engine. Not all voices are available in both engines, which can lead to this error if there's a mismatch.
The standard engine provides high-quality speech synthesis, while the neural engine offers more natural and human-like speech. However, the neural engine is only available for a subset of voices. You can find more information about supported voices and engines in the AWS Polly Voice List.
To resolve the EngineNotSupportedException
, follow these steps:
Check the compatibility of the voice and engine you are using. Refer to the AWS Polly Voice List to ensure that the voice you selected is available for the engine you are using.
Once you've verified compatibility, modify your request to use a compatible engine. For example, if you are using a neural voice that is not supported by the neural engine, switch to the standard engine:
{
"OutputFormat": "mp3",
"Text": "Hello, world!",
"VoiceId": "Joanna",
"Engine": "standard"
}
After making the necessary changes, test your configuration to ensure that the error is resolved. You can use the AWS CLI or SDKs to perform a test synthesis request.
By ensuring that the voice and engine you select are compatible, you can effectively resolve the EngineNotSupportedException
error in AWS Polly. This will allow you to continue leveraging the powerful capabilities of AWS Polly to enhance your applications. For further assistance, refer to the AWS Polly Documentation.
(Perfect for DevOps & SREs)
Try Doctor Droid — your AI SRE that auto-triages alerts, debugs issues, and finds the root cause for you.