Issue with AWS Polly connecting to destination host on Android

0

I am working on my final dissertation project for my MSc in Software Development and am incorporating AWS Polly into my project. It's working perfectly in the Unity editor but when on android, I keep getting the following error:

Failed to download audio: Cannot connect to destination host

This is an issue i've been trying to resolve for a few days now with no success. Any help would be massively appreciated as i'm really up against the clock at the moment!

Thanks

Gareth

G
asked 2 months ago139 views
1 Answer
2
Accepted Answer

The error "Failed to download audio: Cannot connect to destination host" typically indicates a network connectivity issue, where the application is unable to establish a connection to the AWS Polly service endpoint. Here are some steps you can take to troubleshoot and resolve this issue:

Check Network Connectivity: Ensure that the Android device has a stable internet connection and can access other websites or services. Test connectivity by opening a web browser on the device and navigating to a website.

Firewall or Proxy Settings: If your Android device is behind a firewall or proxy server, ensure that it allows outbound connections to the AWS Polly service endpoint. Check the firewall or proxy settings to verify if they are blocking connections to the AWS Polly service.

Verify AWS Credentials: Double-check the AWS credentials used by your Android application to authenticate with the AWS Polly service. Ensure that the credentials are correct and have sufficient permissions to access the Polly service.

Test with Different Devices: If possible, test your Android application on different devices to see if the issue is specific to a particular device or network environment.

If you are still unable to resolve the issue, consider reaching out to AWS Support for further assistance. They can help you diagnose and troubleshoot connectivity issues with the AWS Polly service.

Hope it clarifies and if does I would appreciate answer to be accepted so that community can benefit for clarity, thanks ;)

profile picture
EXPERT
answered 2 months ago
profile picture
EXPERT
reviewed a month ago
  • Thanks for the feedback Adeleke. I have tried all of the above apart from building on another android device to test. I'm hoping to try this tomorrow as none of the other suggestions have worked. I will advise once I try building on another device but am not overly confident it will work.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions