Text-to-speech
Synthesizing spoken audio from written text, on a device or a server.
Text-to-speech synthesizes spoken audio from written text. An on-device setup is useful when you want a voice without sending the text to a hosted API, or when the product has to speak while offline. You choose a voice, render the audio, and play it with enough control that the user can stop it, replay it, or skip it.
Latency and pacing matter as much as voice quality. A long paragraph rendered in one block will feel sluggish; streaming or clause-by-clause speech often feels more natural. Give the user a visible way to interrupt, especially if speech-to-text is also listening.
Local models keep the text on the machine and avoid a network hop. Hosted voices may sound better for long-form narration. You can mix them: a local voice for short system messages, a hosted voice for a prepared brief. Always respect platform volume and mute settings.
If the text came from a model, it may be wrong or too long to read aloud. Summarize or confirm before you speak a lot of generated prose, and make the transcript visible when that helps.