MLS-C01 Question 303
Single answerA company is developing an e-learning platform that uses Amazon Polly to convert course text into speech. They need to provide users with the ability to pause, resume, and adjust the playback speed of the audio. Additionally, the company wants to store and reuse the generated audio files to minimize costs. Which solution best meets these requirements?
- A
Use Amazon Polly’s real-time speech synthesis feature and directly stream the audio to users.
- B
Generate speech using Amazon Polly’s asynchronous synthesis task and store the resulting audio files in Amazon S3.
- C
Use Amazon Polly’s real-time speech synthesis and enable Speech Marks to allow playback control.
- D
Generate speech using Amazon Polly’s asynchronous synthesis task and store the resulting audio files in Amazon DynamoDB.
Show answer and explanation
Correct answer: B
Explanation
Amazon Polly’s asynchronous synthesis task is designed for scenarios where pre-generated audio is required. It allows the audio output to be stored in Amazon S3, which is cost-effective and enables reuse. This solution also supports user playback controls, such as pause and resume, which can be implemented in the application layer of the platform. Real-time synthesis, while useful for immediate playback, does not support storing audio for future use.
- A. Incorrect.
Using Amazon Polly’s real-time speech synthesis streams audio directly to users, but it doesn’t allow you to store the resulting audio, which is required to minimize costs.
- B. Correct.
Amazon Polly’s asynchronous synthesis task allows you to generate speech and directly save the resulting audio files to Amazon S3. This enables storage for reuse, and playback control can be implemented in the e-learning platform’s application layer.
- C. Incorrect.
Speech Marks provide metadata about speech, such as word boundaries, but they do not enable playback control on their own. Additionally, real-time synthesis does not allow for file storage, which is a key requirement.
- D. Incorrect.
Amazon DynamoDB is a NoSQL database and is not suitable for storing audio files. Amazon S3 is the appropriate service for storing such files.