Model Details
Gemini 3.1 Flash TTS is Google's controllable text-to-speech model. It turns written text into natural, expressive speech and lets you direct the performance in plain language rather than through markup or SSML.
The `prompt` field carries both the style direction and the words to be spoken, in the form `{style instruction}: {text}` — for example `Say the following in a warm, curious way: OK, so... tell me about this AI thing.` The model follows that instruction for accent, pace, tone and emotional expression, so the same sentence can be delivered as a whisper, a newscast read, an excited aside or a calm audiobook narration without re-recording anything. This is the main reason to reach for it over a conventional speech synthesiser: the delivery is a parameter, not a fixed property of the voice.
Thirty prebuilt voices are available, each with its own character — Kore is firm, Puck upbeat, Aoede breezy, Charon informative, Sulafat warm, Enceladus breathy, Gacrux mature, Zubenelgenubi casual — and any of them can be paired with a supported locale through `language_code`. Gemini 3.1 also adds expressive audio tags that you can place inline in the text, such as `[laughs]` or `[sigh]`, for finer narration control than a style sentence alone provides.
Combined prompt and text are capped at roughly 8,000 bytes, and a single call returns up to about 655 seconds of audio; input longer than that is truncated. Output is a 24 kHz mono WAV file, and billing is per second of generated audio, so a short line costs a fraction of a cent.
Use it for voice-over and narration, audiobooks and e-learning, IVR and assistant prompts, character dialogue, and anywhere you need a specific delivery rather than a generic read.
