Mobile developer adding article audio playback to an app
Mobile or full-stack developerA mobile or full-stack developer needs to add a listen-to-articles feature to a news app with several thousand users. Instead of recording human voices, they integrate the Amazon Polly API on the backend: the app sends each article's text to the API, which returns an MP3 audio stream cached on the CDN. They pick a neural voice in the user's language and use Speech Marks to synchronize text highlighting during playback. The standard tier at $4 per million characters covers low volumes, but once the catalog exceeds a few million characters per month, the neural voice cost at $16 per million characters becomes the main line item. Keep in mind: caching is essential to avoid re-synthesizing the same article on every listen, and the free tier (1 million characters/month for neural voices) expires after 12 months.