Spiral gives your agent every tool with one account. Browse the tools →

VS Code · AudioReleased 2025-05-20

How to Use Gemini 2.5 Flash TTS in VS Code

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 VS Code

Copy an example into VS Code, 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.

Gemini 2.5 Flash TTSVS Code
Try asking
  • 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 VS Code

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to VS Code on the console's Agents & MCP page, or run:

    code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
  2. Sign in

    VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

Use the Spiral skill

  1. Send VS Code this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. 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: VS Code 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.

GeminiAudio
Gemini 2.5 Flash Preview TTS
gemini-2.5-flash-preview-tts

What can you do with Gemini 2.5 Flash TTS in VS Code?

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.

Questions about Gemini 2.5 Flash TTS in VS Code

Can VS Code use Gemini 2.5 Flash TTS?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Gemini 2.5 Flash TTS like any built-in tool.

How much does Gemini 2.5 Flash TTS cost in VS Code?

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 VS Code plan is separate.

Do I need a Gemini account to use Gemini 2.5 Flash TTS in VS Code?

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 VS Code?

About two minutes: add the hosted server, then sign in.

Does VS Code wait while Gemini 2.5 Flash TTS runs?

Gemini 2.5 Flash TTS runs in the background. VS Code 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.

Get started

Start using Gemini 2.5 Flash TTS in VS Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into VS Code:

Set up VS Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options