How to Use Gemini 2.5 Flash TTS in Codex
Gemini 2.5 Flash TTS turns written scripts into narration or dialogue with control over delivery. Google optimizes it for low latency, while Gemini 2.5 Pro TTS prioritizes quality.
Prompts to try with Gemini 2.5 Flash TTS in Codex
Copy an example into Codex, or ask in your own words.
Read README.md and draft an onboarding script of no more than 120 words. Use Gemini 2.5 Flash TTS to narrate it in a friendly, measured voice, with pauses between the main steps.
Summarize the latest CHANGELOG.md entry in no more than 100 spoken words. Generate the announcement with Gemini 2.5 Flash TTS using clear, matter-of-fact delivery.
Use the project's help documentation to write an eight-line dialogue between a beginner and an expert. Generate it with Gemini 2.5 Flash TTS using two distinct voices, with curious questions and patient answers.
Take the opening paragraph of docs/tutorial.md and generate two readings with Gemini 2.5 Flash TTS: one calm and deliberate, one brisk and conversational. Keep the words identical.
Find five technical terms in the project's glossary and write a short pronunciation audition that uses each in a sentence. Generate it with Gemini 2.5 Flash TTS at a slow, clear pace for review.
How to set up Gemini 2.5 Flash TTS in Codex
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
codex mcp add spiral --url https://api.spiral.ai/mcp
- Sign in
Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.
codex mcp login spiral
Use the Spiral skill
- Send Codex this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Gemini 2.5 Flash TTS
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "gemini", "model": "gemini-2.5-flash-preview-tts", "input": { "contents": [ {} ] } }'
Then paste one of the prompts above: Codex finds Gemini 2.5 Flash TTS on Spiral, shows the price and runs it.
Gemini 2.5 Flash TTS providers and prices
Spiral runs Gemini 2.5 Flash TTS through Gemini. Open a card for today's price, with every fee included.
Input text: $0.65 per 1M tokens. Output speech: $13.00 per 1M audio tokens.
What can you do with Gemini 2.5 Flash TTS in Codex?
Turn project documentation and release notes into spoken walkthroughs with Gemini 2.5 Flash TTS. Have the coding agent prepare a concise script from the files, then direct its narration or dialogue.
Tutorial voiceovers
Turn a finished walkthrough script into narration. Ask for a measured pace around instructions and a brief pause between steps.
Spoken release notes
Have an agent condense approved changes into a short script, then produce an audio update with clear, matter-of-fact delivery.
Two-person explainers
Record a scripted exchange between a curious interviewer and an expert. Give each speaker a distinct voice and describe their delivery separately.
Localized training narration
Generate speech from reviewed translations of training scripts. Check pronunciation and delivery with a short sample in each target language.
Character dialogue drafts
Audition written exchanges for a game or audio story. Try contrasting emotional directions before choosing a performance for each character.
Read-aloud editions
Create spoken versions of finished articles or instructions. Divide longer pieces into sections and review the audio against the original text.
Recurring audio briefings
Convert a prepared daily or weekly summary into a short recording. Reuse the same delivery instructions across editions.
More on Gemini 2.5 Flash TTS and Codex
Overview
Gemini 2.5 Flash TTS in other agents
Questions about Gemini 2.5 Flash TTS in Codex
Can Codex use Gemini 2.5 Flash TTS?
Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Gemini 2.5 Flash TTS like any built-in tool.
How much does Gemini 2.5 Flash TTS cost in Codex?
Input text: $0.65 per 1M tokens. Output speech: $13.00 per 1M audio tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.
Do I need a Gemini account to use Gemini 2.5 Flash TTS in Codex?
No. Spiral runs Gemini 2.5 Flash TTS on its own Gemini account. You sign in to Spiral once and never paste a key.
How long does it take to set up Gemini 2.5 Flash TTS in Codex?
About two minutes: add the hosted server, then sign in.
Does Codex wait while Gemini 2.5 Flash TTS runs?
Gemini 2.5 Flash TTS runs in the background. Codex starts the run, checks on it and gives you the audio when it's ready.
What is Gemini 2.5 Flash TTS good for?
It suits repeated narration tasks and scripted conversations: tutorial voiceovers, spoken updates, and dialogue. You can direct the delivery through descriptions of tone, pace, accent, and emotion.
How does Gemini 2.5 Flash TTS compare with Gemini 2.5 Pro TTS?
Google optimizes Flash for low latency and Pro for quality. Compare a short passage with both when deciding how much vocal detail your recording needs.
Can Gemini 2.5 Flash TTS generate dialogue?
Yes. It supports both single-speaker narration and conversations with distinct voices, so a scripted exchange can include different speakers.
Which languages does Gemini 2.5 Flash TTS support?
Google documented support for 24 languages when it introduced Gemini 2.5 Flash TTS. For a localized recording, prepare the translated script first and review a short spoken sample before producing the rest.
How much text can Gemini 2.5 Flash TTS handle?
Google lists an input limit of 8,192 tokens and an output limit of 16,384 tokens. For longer narration, split the script into sections and check each recording for completeness.
Start using Gemini 2.5 Flash TTS in Codex
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Codex:
set up https://spiral.ai/SKILL.md


