AWS Polly EngineNotSupportedException

The specified engine is not supported for the selected voice.

Understanding AWS Polly

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.

Identifying the Symptom

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.

Explaining the Issue

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.

Standard vs. Neural Engine

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.

Steps to Resolve the Issue

To resolve the EngineNotSupportedException, follow these steps:

Step 1: Verify the Voice and Engine Compatibility

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.

Step 2: Modify Your Request

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"
}

Step 3: Test Your Configuration

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.

Conclusion

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.

Try DrDroid: AI Agent for Debugging

80+ monitoring tool integrations
Long term memory about your stack
Locally run Mac App available

Thank you for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.
Read more
Time to stop copy pasting your errors onto Google!

Try DrDroid: AI for Debugging

80+ monitoring tool integrations
Long term memory about your stack
Locally run Mac App available

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

Thank you for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.
Read more
Time to stop copy pasting your errors onto Google!

MORE ISSUES

Deep Sea Tech Inc. — Made with ❤️ in Bangalore & San Francisco 🏢

Doctor Droid