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

Factory Droid · AudioReleased 2026-04-15

How to Use Gemini 3.1 Flash TTS in Factory Droid

Gemini 3.1 Flash TTS turns finished scripts into expressive narration and dialogue. Its square-bracket audio tags let you change delivery at specific points in the script.

Prompts to try with Gemini 3.1 Flash TTS in Factory Droid

Copy an example into Factory Droid, or ask in your own words.

Read this project's README and draft a 120-word spoken introduction for a new contributor. Use Gemini 3.1 Flash TTS to narrate it in a patient, conversational tone, keeping code snippets out of the spoken script.

Gemini 3.1 Flash TTSFactory Droid
Try asking
  • Read the latest changelog entry and write a 100-word customer-facing release recap. Use Gemini 3.1 Flash TTS for a clear, matter-of-fact reading, and show me the script alongside the recording.

  • Find the onboarding instructions in this project and turn the first task into a short narrated tutorial. Use Gemini 3.1 Flash TTS with a measured delivery, and write commands as pronounceable words in the script.

  • Use the project's FAQ to write a six-turn exchange between a curious new user and a patient instructor. Generate the dialogue with Gemini 3.1 Flash TTS using distinct voices and clearly labeled speaker turns.

  • Review the game's menu text in this project and select five short descriptions for spoken guidance. Use Gemini 3.1 Flash TTS to generate each description separately with the same calm delivery brief.

How to set up Gemini 3.1 Flash TTS in Factory Droid

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

Use Spiral's MCP server

  1. Add the server

    Droid saves it to your user config, ~/.factory/mcp.json, so it works in every project.

    droid mcp add spiral https://api.spiral.ai/mcp --type http
  2. Sign in

    Start droid, type /mcp, select spiral and authenticate it. Sign in to Spiral in the browser and click Authorize. No API key.

  3. Check it

    Spiral shows as connected. needs authentication means the sign-in did not finish: run /mcp again.

    droid mcp list

Use the Spiral skill

  1. Send Factory Droid 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 3.1 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": "fal",
        "model": "fal-ai/gemini-3.1-flash-tts",
        "input": {
          "prompt": "I can'\''t believe it worked! [laughing] After all those hours of debugging [sigh] it was just a missing semicolon."
        }
      }'

Then paste one of the prompts above: Factory Droid finds Gemini 3.1 Flash TTS on Spiral, shows the price and runs it.

Gemini 3.1 Flash TTS providers and prices

Spiral runs Gemini 3.1 Flash TTS through fal. Open a card for today's price, with every fee included.

falAudio
Gemini 3.1 Flash Tts
fal-ai/gemini-3.1-flash-tts

Settings you can ask for

Gemini 3.1 Flash TTS works from your prompt and style instructions. Ask Factory Droid for any of these in your prompt.

SettingAllowed valuesDefaultDescription
VoiceAchernar, Achird, Algenib, Algieba, Alnilam, Aoede, Autonoe, Callirrhoe and 22 moreKore

Voice preset for single-speaker synthesis. 30 distinct voices are available. Ignored when speakers is set. Popular choices: Kore (strong, firm female), Puck (upbeat, lively male), Charon (calm, professional male), Zephyr (bright, clear female), Aoede (warm, melodic female).

Language codeArabic (Egypt), Bangla (Bangladesh), Dutch (Netherlands), English (India), English (US), French (France), German (Germany), Hindi (India) and 79 more

Language for multilingual synthesis. When set, steers the model to speak in the specified language. If not set, the model auto-detects the language from the text.

Temperature0 to 21

Controls the randomness of the speech output. Higher values produce more creative and varied delivery, while lower values make the output more predictable and focused.

Output formatwav, mp3, or ogg_opusmp3

Audio output format. mp3: compressed, small file size (recommended). wav: uncompressed PCM wrapped in WAV (24 kHz, 16-bit mono). ogg_opus: Ogg container with Opus codec, good quality-to-size ratio.

Every API field of Gemini 3.1 Flash Tts is on its tool page: open its card above.

What can you do with Gemini 3.1 Flash TTS in Factory Droid?

Turn project documentation into narrated walkthroughs, tutorials, and spoken release summaries. Have the coding agent prepare a concise script from the relevant files, then direct its delivery with Gemini 3.1 Flash TTS.

Product walkthrough narration

Turn a short walkthrough script into spoken guidance. Give the narrator a measured delivery and review how product names and button labels sound.

Two-person explainers

Write an exchange between a curious host and a knowledgeable guest. Use distinct delivery directions to make questions and answers easy to follow.

Language lesson listening practice

Voice a prepared dialogue in the language being taught. Produce a deliberate reading for learners and a conversational reading for comparison.

Short story performances

Narrate a short scene with a clear overall mood. Place delivery cues at a reveal or a whispered line, then listen for directions that were accidentally spoken.

Spoken service notices

Create recordings from approved maintenance, delivery, or appointment notices. Direct a calm tone and review every date, time, and reference number.

Read-aloud articles

Produce narrated editions of edited articles or newsletters. Break longer pieces at section boundaries and check each recording against its script.

Game menu guidance

Voice written menu descriptions and tutorial instructions. Keep directions concise and use a consistent delivery brief across the recordings.

Training lesson narration

Turn approved lesson text into spoken instruction. Use a patient delivery for explanations and create separate recordings for each topic.

Questions about Gemini 3.1 Flash TTS in Factory Droid

Can Factory Droid use Gemini 3.1 Flash TTS?

Yes. Add Spiral to Factory Droid as an MCP server, and Factory Droid can find and run Gemini 3.1 Flash TTS like any built-in tool.

How much does Gemini 3.1 Flash TTS cost in Factory Droid?

Each item in `prompt` adds $0.065. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Factory Droid plan is separate.

Do I need a fal account to use Gemini 3.1 Flash TTS in Factory Droid?

No. Spiral runs Gemini 3.1 Flash TTS on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Gemini 3.1 Flash TTS in Factory Droid?

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

Does Factory Droid wait while Gemini 3.1 Flash TTS runs?

Gemini 3.1 Flash TTS runs in the background. Factory Droid starts the run, checks on it and gives you the audio when it's ready.

What is Gemini 3.1 Flash TTS good at?

Use it to turn a finished script into narration or dialogue with deliberate delivery. It suits explainers, story excerpts, training lessons, and spoken announcements where you want to direct how the words sound.

Can Gemini 3.1 Flash TTS generate dialogue?

Yes, it supports native multi-speaker dialogue. Write clearly labeled turns and give each speaker a distinct delivery direction, such as an inquisitive host and a measured instructor.

How many languages does Gemini 3.1 Flash TTS support?

Google documents support for more than 70 languages. For localized narration, prepare the translated script first and have a fluent listener review the generated speech.

How do I direct the delivery?

Describe the overall delivery in natural language, then place square-bracket audio tags where a local change should happen. For example, put [whispers] immediately before a quiet line.

How long can a Gemini 3.1 Flash TTS script be?

Google lists an 8,192-token input limit and a 16,384-token output limit for the preview model. Treat these as token limits rather than a guaranteed recording length; divide longer material into sections and check that each recording reaches its final sentence.

Get started

Start using Gemini 3.1 Flash TTS in Factory Droid

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

Paste this into Factory Droid:

Set up Factory Droid

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