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

Gemini CLI · AudioReleased 2024-12-18

How to Use Eleven Flash v2 in Gemini CLI

Eleven Flash v2 turns English text into speech for conversational replies and interactive apps. It accepts up to 30,000 characters per request and supports phoneme tags for pronunciation control.

Prompts to try with Eleven Flash v2 in Gemini CLI

Copy an example into Gemini CLI, or ask in your own words.

Use Eleven Flash v2 to turn the onboarding copy in this project's files into separate English audio clips. Expand abbreviations for speech and save each clip beside its source script.

Eleven Flash v2Gemini CLI
Try asking
  • Find the English character dialogue in this project and use Eleven Flash v2 to generate three takes of one representative line with stability at 0.35, 0.5, and 0.7. Keep similarity at 0.75 and style at zero.

  • Use Eleven Flash v2 to narrate this project's release notes in English. Rewrite version numbers and dates into their intended spoken forms, and save the narration script with the audio.

  • Use Eleven Flash v2 to create pronunciation samples for the English glossary in this repository. Apply SSML phoneme tags to terms with documented pronunciations and flag terms that need clarification.

  • Use Eleven Flash v2 to create a listening copy of this project's English user guide. Keep each request below 30,000 characters and provide previous_text and next_text around passage boundaries.

How to set up Eleven Flash v2 in Gemini CLI

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

Use Spiral's MCP server

  1. Add the server

    Or add it to ~/.gemini/settings.json yourself:

    gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start gemini and run:

    /mcp auth spiral
  3. Check it

    In Gemini CLI, run /mcp. From your shell:

    gemini mcp list

Use the Spiral skill

  1. Send Gemini CLI 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 Eleven Flash v2

    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": "elevenlabs",
        "model": "eleven_flash_v2",
        "input": {
          "text": "<text>",
          "voice_id": "<voice_id>"
        }
      }'

Then paste one of the prompts above: Gemini CLI finds Eleven Flash v2 on Spiral, shows the price and runs it.

Eleven Flash v2 providers and prices

Spiral runs Eleven Flash v2 through ElevenLabs. Open a card for today's price, with every fee included.

ElevenLabsAudio
Eleven Flash v2
eleven_flash_v2

Settings you can ask for

Eleven Flash v2 works from your text, next text, and previous text. Ask Gemini CLI for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number

If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.

Output formatalaw_8000, mp3_22050_32, mp3_24000_48, mp3_44100_128, mp3_44100_192, mp3_44100_32, mp3_44100_64, mp3_44100_96 and 20 moremp3_44100_128

Output format of the generated audio.

Use pvc as ivcon or off

Whether to use the IVC version of a professional voice. This may improve expressiveness and reduce latency.

Apply text normalizationauto, on, or offauto

This parameter controls text normalization with three modes: 'auto', 'on', and 'off'.

Optimize streaming latencya whole number

You can turn on latency optimizations at some cost of quality.

Apply language text normalizationon or offoff

This parameter controls language text normalization.

Every API field of Eleven Flash v2 is on its tool page: open its card above.

What can you do with Eleven Flash v2 in Gemini CLI?

Give project scripts, interface messages, and game dialogue an English voice. Use project files to prepare spoken text and review pronunciation before generating a larger batch.

Spoken support replies

Turn an approved English support response into speech. Spell out reference numbers and dates before generating the reply.

Interactive game dialogue

Generate English character lines for a game prototype. Compare stability settings on the same line before rendering the remaining dialogue.

Product walkthrough drafts

Create spoken drafts of English onboarding instructions so a team can review wording and pauses alongside the product.

Daily audio briefings

Convert a short English summary of verified updates into a spoken briefing, with dates and quantities written out.

Pronunciation practice

Create English practice sentences with phoneme tags for names or technical terms, then review the generated pronunciation.

Telephone announcement drafts

Generate English opening messages, menu instructions, and service announcements. Prepare phone numbers as spoken digits.

Listening copies of articles

Turn English articles into speech for listening review. Split text above 30,000 characters and provide surrounding passages to help continuity.

Questions about Eleven Flash v2 in Gemini CLI

Can Gemini CLI use Eleven Flash v2?

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Eleven Flash v2 like any built-in tool.

How much does Eleven Flash v2 cost in Gemini CLI?

$0.052 per 1,000 characters of `text`. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.

Do I need an ElevenLabs account to use Eleven Flash v2 in Gemini CLI?

No. Spiral runs Eleven Flash v2 on its own ElevenLabs account. You sign in to Spiral once and never paste a key.

How long does it take to set up Eleven Flash v2 in Gemini CLI?

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

Does Gemini CLI wait while Eleven Flash v2 runs?

Eleven Flash v2 runs in the background. Gemini CLI starts the run, checks on it and gives you the audio when it's ready.

Does Eleven Flash v2 support languages other than English?

No. Eleven Flash v2 supports English only.

How much speech can Eleven Flash v2 generate at once?

It accepts up to 30,000 characters per request, approximately 30 minutes of speech. Treat that duration as an estimate, not an exact target.

What is Eleven Flash v2 best suited for?

Its focus is speech for conversational replies and interactive apps. For narration where stable, high fidelity matters more than generation speed, ElevenLabs recommends Multilingual v2.

How can I control pauses and pronunciation?

Use SSML break tags for pauses up to three seconds. Eleven Flash v2 also supports SSML phoneme tags for words that need a specific pronunciation.

Which voice settings should I adjust first?

Start around 50% stability, 75% similarity, and zero style exaggeration. Lower stability when you want more emotional variation; raise it cautiously because high values can sound monotonous.

Get started

Start using Eleven Flash v2 in Gemini CLI

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

Paste this into Gemini CLI:

Set up Gemini CLI

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