Debug Your Infrastructure

Get Instant Solutions for Kubernetes, Databases, Docker and more

AWS CloudWatch
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Pod Stuck in CrashLoopBackOff
Database connection timeout
Docker Container won't Start
Kubernetes ingress not working
Redis connection refused
CI/CD pipeline failing

AWS Polly UnsupportedPlsLanguageException

The PLS language specified is not supported.

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 'speak' in a variety of languages and voices, making it a powerful tool for creating interactive and engaging user experiences. Polly is commonly used in applications such as voice assistants, e-learning platforms, and any other application that requires text-to-speech capabilities.

Identifying the Symptom

When using AWS Polly, you might encounter an error message that reads: UnsupportedPlsLanguageException. This error indicates that there is an issue with the language specified in your PLS (Pronunciation Lexicon Specification) file.

What You Observe

When this error occurs, your application will fail to generate speech output for the specified text. Instead, it will return an exception, halting any further processing until the issue is resolved.

Explaining the Issue

The UnsupportedPlsLanguageException is thrown when the language code specified in your PLS file is not supported by AWS Polly. PLS files are used to define custom pronunciations for words, and they must adhere to the supported language codes.

Understanding PLS Language Codes

PLS language codes are standardized codes that represent different languages. AWS Polly supports a specific set of these codes, and using an unsupported code will result in this exception. You can find a list of supported languages in the AWS Polly Documentation.

Steps to Resolve the Issue

To fix the UnsupportedPlsLanguageException, follow these steps:

Step 1: Verify Your PLS File

Check your PLS file to ensure that the language code specified is correct and supported by AWS Polly. Refer to the list of supported languages to confirm.

Step 2: Update the Language Code

If the language code is incorrect, update it to a supported code. For example, if you mistakenly used 'fr-CA' for Canadian French, ensure it is supported or switch to 'fr-FR' if only French is supported.

Step 3: Test Your Application

After making the necessary changes, test your application to ensure that the error is resolved and that Polly can successfully generate speech output.

Conclusion

By ensuring that your PLS files use supported language codes, you can avoid the UnsupportedPlsLanguageException and ensure smooth operation of your AWS Polly-powered applications. For more detailed guidance, refer to the AWS Polly User Guide.

Master 

AWS Polly UnsupportedPlsLanguageException

 debugging in Minutes

— Grab the Ultimate Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Real-world configs/examples
Handy troubleshooting shortcuts
Your email is safe with us. No spam, ever.

Thankyou for your submission

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

🚀 Tired of Noisy Alerts?

Try Doctor Droid — your AI SRE that auto-triages alerts, debugs issues, and finds the root cause for you.

Heading

Your email is safe thing.

Thank you for your Signing Up

Oops! Something went wrong while submitting the form.

MORE ISSUES

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

Doctor Droid