How can AWS Polly dowloaded MP3 be listened fully with standard MP3 readers?

0

I dowloaded POlly generated audio files (starting from .docx and .pdf). My reason for subscribing was to regularly generate audios to be listened while running (pure private users and no aims to develop or use professionally). But my mobile reader, no matter which one I use, just allowed me to listen for the first part of audios (tipically slightly more than 1 minute). Is there a way to solve this issue?

asked 9 days ago34 views
1 Answer
0
Accepted Answer

The issue you're experiencing with AWS Polly generated MP3 files not playing fully on your mobile devices is likely related to the way Amazon Polly handles long audio files. For longer texts, Polly uses asynchronous synthesis, which can result in audio files that some standard MP3 players might have difficulty processing completely.

To solve this issue, you have a few options:

  1. Use the Amazon Polly console or AWS CLI to create your audio files. When using these methods, Polly will automatically handle longer texts and produce a single, complete MP3 file that should work with standard MP3 readers.

  2. If you're using a custom application or script to generate the audio files, make sure you're using the StartSpeechSynthesisTask API for longer texts. This API is designed to handle larger amounts of text and will produce a single, complete audio file.

  3. Check the size of your input text. If it exceeds Polly's synchronous synthesis limit (usually around 3000 characters), you'll need to use the asynchronous method mentioned above.

  4. Ensure you're downloading the complete file. When using asynchronous synthesis, the output is stored in an Amazon S3 bucket. Make sure you're retrieving the entire file from S3 before transferring it to your mobile device.

  5. Try using a different MP3 player on your mobile device. Some players may be better equipped to handle larger or more complex MP3 files.

  6. If you're comfortable with audio editing, you could use a tool to combine multiple shorter audio segments into a single, continuous MP3 file.

By following these suggestions, you should be able to generate and play complete audio files from your .docx and .pdf documents using Amazon Polly, allowing you to listen to them in full while running.

Sources
Creating long audio files - Amazon Polly
Synthesizing speech with Amazon Polly example - Amazon Polly

profile picture
answered 9 days ago
profile picture
EXPERT
reviewed 9 days ago
  • What a prompt answer.... Thank you so much!

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