Turn dialogue into expressive multi-speaker speech with Gemini 3.1 Flash TTS. Control voice, accent, emotion, and pace. Try free, pay per use.
About this model
Gemini 3.1 Flash TTS is Google's fast, cost-efficient text-to-speech model for expressive multi-speaker audio. Define any number of speakers, each with a distinct voice, accent, emotional style, and pace, then script a conversation across ordered dialogue turns with inline tone tags like [whispers] or [shouting]. It is ideal for character dialogue, game and video voiceovers, podcasts, and narration where you need natural delivery at speed and scale. For the highest-fidelity studio output, see Gemini 2.5 Pro TTS.
Cost analysis
| Provider | Cost | Notes |
|---|---|---|
| muapiapp | $0.035 per 1,000 characters | Pay per generation, no subscription. Full multi-speaker control included. |
| Fal.ai | Not available | Does not offer this model. |
| Replicate | Not available | Does not offer this model. |
Pay per generation, no subscription. Full multi-speaker control included.
Does not offer this model.
Does not offer this model.
* Competitor pricing is estimated based on similar model architectures and usage tiers.
Configuration schema
| Parameter | Type | Description | Default |
|---|---|---|---|
| Speakers | array | List of speaker voice configurations. Each dialogue turn references a speaker by its ID. | [object Object],[object Object] |
| Dialogue Turns | array | Ordered list of dialogue lines. Each turn's speaker_id must match a speaker defined above. Text may include tone tags like [shouting] or [whispers]. | [object Object],[object Object],[object Object],[object Object] |
| Scene | string | Optional scene description that sets the acoustic setting, e.g. "A quiet, warm room with a fireplace crackling softly." | |
| Sample Context | string | Optional overall tone/style, e.g. "Audiobook style narration. Tone is gentle and inviting." | |
| Temperature | number | Sampling temperature (0-2). Higher values produce more varied delivery. | 1 |
List of speaker voice configurations. Each dialogue turn references a speaker by its ID.
[object Object],[object Object]Ordered list of dialogue lines. Each turn's speaker_id must match a speaker defined above. Text may include tone tags like [shouting] or [whispers].
[object Object],[object Object],[object Object],[object Object]Optional scene description that sets the acoustic setting, e.g. "A quiet, warm room with a fireplace crackling softly."
Optional overall tone/style, e.g. "Audiobook style narration. Tone is gentle and inviting."
Sampling temperature (0-2). Higher values produce more varied delivery.
1Developer documentation
Define your speakers: Add one entry per voice to the speakers list. Give each a speaker_id in "Speaker N" format, pick a voice_name, and set the accent, style, and pace. Optionally add an audio_profile describing the persona.
Write the dialogue: Fill dialogue_turns with ordered lines. Each turn's speaker_id must match a speaker you defined. You can embed tone tags inline such as [whispers], [shouting], or [determination].
Set the mood (optional): Use scene to describe the acoustic setting and sample_context to set the overall narration tone. Adjust temperature (0-2) for more or less varied delivery.
Submit and poll: POST the request, then poll /predictions/{request_id}/result until the status is completed to get the audio URL.
curl -X POST https://api.muapi.ai/api/v1/gemini-3-1-flash-tts \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"speakers": [
{"speaker_id": "Speaker 1", "voice_name": "Fenrir", "accent": "British (RP)", "style": "Deadpan", "pace": "Natural"},
{"speaker_id": "Speaker 2", "voice_name": "Puck", "accent": "American (Gen)", "style": "Empathetic", "pace": "Staccato"}
],
"dialogue_turns": [
{"speaker_id": "Speaker 1", "text": "[shouting] Halt, traveler!"},
{"speaker_id": "Speaker 2", "text": "[determination] I carry a message for the elder."}
],
"scene": "A dark, crumbling dungeon.",
"temperature": 1
}'
Frequently asked
Define each voice in the `speakers` list with a unique `speaker_id` (in "Speaker N" format), then reference those IDs in your `dialogue_turns`. The model renders each line in that speaker's assigned voice, accent, style, and pace.
Yes. Each speaker has `style` (Vocal Smile, Newscaster, Whisper, Empathetic, Promo/Hype, Deadpan) and `pace` (Natural, Rapid Fire, The Drift, Staccato) settings. You can also embed inline tone tags like [whispers], [shouting], or [determination] directly in the dialogue text.
There are 30 prebuilt voices (Zephyr, Fenrir, Puck, Kore, and more) and 8 accents including Neutral, American variants, British (RP), British (Brixton), Transatlantic, and Australian.
Pricing is based on the total number of characters across all dialogue turns, at $0.035 per 1,000 characters. You pay per generation with no subscription.
Each dialogue turn's text can be up to 10,000 characters. You can include multiple turns to build longer conversations.
Gemini 3.1 Flash TTS is optimized for fast, cost-efficient generation, while Gemini 2.5 Pro TTS targets premium studio-quality, high-fidelity output. Both share the same multi-speaker controls.