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

How to Add the Google Gemini TTS Prompting Skill

Audio skillUse when the inferred intent is performed speech with Google Gemini TTS (Gemini Pro TTS and the other Gemini text-to-speech models, an LLM-based TTS that responds to natural-language direction plus inline audio tags), or any performed speech with directorial control over emotion, accent, or character — manic German professor, valley-girl whisper, late-night radio host, etc. Phrasing varies — "say this in X voice", "make it sound Y", "have her speak with a Z accent", "dub this with character flair". Covers prompt structure (Audio Profile, Scene, Director's Notes, Transcript), inline audio tags, native two-speaker dialogue (exactly two distinctly named speakers in one call), the separate style-direction field, voice character archetypes for the prebuilt catalog, the WAV-to-MP3 mixing workflow (24kHz mono PCM output causes silent video unless converted), and limitations.

How to add Google Gemini TTS Prompting to your agent

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

Save SKILL.md into your agent's skills

  1. Download the skill

    Claude Code, and other agents that read Agent Skills, load it from this folder when they start.

    mkdir -p ~/.claude/skills/google-gemini-tts
    curl -fsSL https://spiral.ai/skills/google-gemini-tts/SKILL.md -o ~/.claude/skills/google-gemini-tts/SKILL.md
  2. Connect Spiral

    The skill runs its tools through Spiral. Send your agent this message once to set it up.

    set up https://spiral.ai/SKILL.md

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
  2. Read the skill

    Built-in skills are on for every organization: the CLI prints this one with all its files.

    spiral agent-skills get google-gemini-tts --json

Read it from the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Fetch the skill

    The answer holds SKILL.md and every other file of the skill, in path order.

    curl https://api.spiral.ai/v1/skills/google-gemini-tts \
      -H "Authorization: Bearer $SPIRAL_API_KEY"

Then ask your agent for the task: it loads Google Gemini TTS Prompting when a request matches the skill's description.

When to use (description)

Use when the inferred intent is performed speech with Google Gemini TTS (Gemini Pro TTS and the other Gemini text-to-speech models, an LLM-based TTS that responds to natural-language direction plus inline audio tags), or any performed speech with directorial control over emotion, accent, or character — manic German professor, valley-girl whisper, late-night radio host, etc. Phrasing varies — "say this in X voice", "make it sound Y", "have her speak with a Z accent", "dub this with character flair". Covers prompt structure (Audio Profile, Scene, Director's Notes, Transcript), inline audio tags, native two-speaker dialogue (exactly two distinctly named speakers in one call), the separate style-direction field, voice character archetypes for the prebuilt catalog, the WAV-to-MP3 mixing workflow (24kHz mono PCM output causes silent video unless converted), and limitations.

Instructions

Google Gemini TTS Prompting

Run it on Gemini 3.8 Flash TTS (preferred) or Gemini 3.8 Flash-Lite TTS (faster, cheaper); read the tool's input schema first.

The model adjusts delivery from natural-language direction and context, not a fixed parameter knob — write prompts like a director. This skill describes prompt content and parameter intent, not schema shape. Confirm exact request fields (transcript field, voice selector, multi-speaker toggle, separate style-direction field, output format) when you read its input schema.


Prompt Structure (the transcript field)

Direction and the words to be spoken go into the same transcript field. A robust prompt has 5 sections, in this order:

1. Audio Profile

Establishes a persona — give the character a name and role. This grounds the performance.

# AUDIO PROFILE: Jaz R.
## "The Morning Hype"
2. Scene

Sets environment and emotional vibe. The model adjusts delivery from this context organically.

## THE SCENE: The London Studio
It is 10 PM in a glass-walled studio overlooking the moonlit London skyline,
but inside it is blindingly bright. The red "ON AIR" tally is blazing.
Jaz is bouncing on their heels to a thumping backing track.
3. Director's Notes (the section to never skip)

If you drop everything else, keep this. Without explicit direction, the model delivers flat, generic speech.

Style — tone and emotional quality
ComplexityExample
SimpleStyle: Frustrated and angry developer
MediumStyle: Sassy GenZ beauty YouTuber for Shorts
ComplexStyle: The "Vocal Smile". You must hear the grin. Soft palate raised, tone bright. High projection without shouting. Punchy consonants, elongated vowels on excitement words.

Layer multiple styles. Voiceover-industry terms — "vocal smile", "vocal fry", "proximity effect" — are understood.

Accent — specificity rules

Generic accents → generic results.

VagueSpecific
"British accent""British English as heard in Croydon, England"
"American accent""Southern California valley girl from Laguna Beach"
"Southern accent""African American Vernacular English, deep Atlanta bass"
"Old British man""Old gravelly British man from the countryside, creaky and worn"
Pacing — speed and rhythm
ComplexityExample
SimplePacing: Speak as fast as possible
MediumPacing: Energetic, bouncing cadence
ComplexPacing: The "Drift" — incredibly slow and liquid. Words bleed into each other. Zero urgency.

Custom directions beyond style/accent/pacing are welcome — the model is not limited to these three.

4. Sample Context (optional)

Lets the character enter naturally:

### SAMPLE CONTEXT
Jaz is the industry standard for Top 40 radio, high-octane event promos,
or anything that requires a charismatic Estuary accent and 11/10 infectious energy.
5. Transcript

The actual words to speak. **Always label this section with ### TRANSCRIPT** — without a clear header, very vague prompts may cause the model to read your stage directions aloud. Place audio tags inline:

### TRANSCRIPT
[excited] Yes, massive vibes in the studio! You are locked in and it is
absolutely popping off in London right now.
[shouting] Turn this up! We've got the project roadmap landing in three,
two… let's go!

Separate style-direction field

The schema also exposes a dedicated style-direction field, separate from the transcript. Putting tone/pace/emotion instructions there keeps the transcript clean and is preferred when only style direction is needed and the full Audio Profile + Scene framing is overkill (e.g. a short ad read with one tonal note). Confirm the field name when you read its input schema; translate the Director's Notes intent into whatever the schema names.

When you need the layered control (Audio Profile + Scene + multi-stage direction), keep everything in the transcript field as shown above — splitting context between two fields tends to dilute the performance.


Audio Tags

Inline modifiers in square brackets, placed before the text they modify:

[excited] Yes! [shouting] Turn it up! [whispers] Don't tell anyone.
Common tags

[amazed] [crying] [curious] [excited] [sighs] [gasp] [giggles] [laughs] [mischievously] [panicked] [sarcastic] [serious] [shouting] [tired] [trembling] [whispers]

Extended emotion tags

[admiration] [agitation] [anger] [anxiety] [awe] [boredom] [caution] [compassion] [confidence] [confusion] [contempt] [curiosity] [determination] [disappointment] [disgust] [doubt] [eagerness] [embarrassment] [empathy] [encouraging] [enthusiasm] [fear] [frustration] [gratitude] [happy] [hope] [horror] [interest] [joy] [love] [nervousness] [neutral] [optimism] [pain] [sadness] [sarcasm] [satisfaction] [surprise] [sympathy]

Action tags

[cough] [yawn] [short pause]

The list is not exhaustive — many descriptive states work undocumented. For non-English transcripts, keep audio tags in English — the tag classifier is English-trained. Don't overload: start with 1–2 tags per line and layer more only if needed.


Multi-Speaker (native two-speaker dialogue in one call)

The model supports two-speaker dialogue natively in a single request. The schema exposes a multi-speaker toggle and a speakers array where each speaker carries a label and a voice — when the toggle is on, the schema's conditional gating means the single-voice field is no longer the source of truth (the speakers array is). Confirm exact field names and array shape when you read its input schema.

When multi-speaker is enabled:

  1. Reference each speaker's label inline in the transcript so the model knows who speaks each line:
   Make Speaker1 sound tired and bored, and Speaker2 sound excited and happy:

   Speaker1: So… [yawn] what's on the agenda today?
   Speaker2: You're never going to guess!
  1. The label in the transcript must match the label assigned in the speakers array — that's how voices are routed.
  1. Direction can target each speaker independently ("Speaker1 anxious and rushed, Speaker2 calm and reassuring") — fold into Director's Notes.

Labeling lines Speaker1:/Speaker2: without the multi-speaker toggle on produces one voice reading both labels aloud. Either enable the toggle and assign speakers in the array, or generate per-speaker calls and concatenate.

For >2 speakers, generate per-segment with separate calls (each in single- or two-speaker mode) and concatenate in post.


Voice catalog — character map

The voice option list is enumerated in the schema, but the schema gives only the literal name — it does not carry character/timbre metadata. This map exists so the agent can pick by intent (warm narrator, gravelly old man, breathy ASMR) and translate to a name. The catalog evolves over time; confirm the current option list when you read its input schema and treat this map as guidance, not a contract. If a name listed here is missing from the schema, pick the closest character archetype from what is available.

Female voices
VoiceCharacterBest for
ZephyrBrightEnergetic content, ads
KoreFirmAuthority, news, instructions
AoedeBreezyCasual narration, lifestyle
AutonoeBrightUpbeat explainers
CallirrhoeEasy-goingConversational, podcasts
DespinaSmoothLuxury, calm, meditation
ErinomeClearEducation, tutorials
GacruxMatureAuthoritative, wise, serious
LaomedeiaUpbeatKids content, promotions
LedaYouthfulYoung characters, valley girl, bubbly
PulcherrimaForwardBold statements, promos
SulafatWarmStorytelling, comfort, empathy
VindemiatrixGentleASMR, bedtime stories, soft
AchernarSoftWhispers, horror, intimate
Male voices
VoiceCharacterBest for
PuckUpbeatExcited, happy, energetic
CharonInformativeDocumentaries, explainers
FenrirExcitableHigh-energy, kids content
OrusFirmCorporate, authority
EnceladusBreathyTired, ASMR, intimate
IapetusClearClean narration, tutorials
UmbrielEasy-goingCasual, conversational
AlgiebaSmoothRadio hosts, narration, jazz vibes
AlgenibGravellyOld characters, tough guys, horror
RasalgethiInformativeNews, reports, educational
AchirdFriendlyWarm, approachable, social
ZubenelgenubiCasualRelaxed, everyday
SadachbiaLivelyEntertainment, variety
SadaltagerKnowledgeableExpert commentary, science
SchedarEvenNeutral, balanced delivery
AlnilamFirmSerious, authoritative
Selection principle

Match voice character to intended emotion. A calm gentle voice (e.g. Vindemiatrix) won't shout convincingly with [shouting] tags; a gravelly voice (e.g. Algenib) won't whisper softly. The voice fights or amplifies the direction — pick one that amplifies.


Mixing into video — CRITICAL

The model outputs mono PCM 16-bit WAV at 24 kHz. This format produces silent audio when mixed directly into MP4 containers. Run these FFmpeg recipes with FFmpeg Media Editor, one command per run: list the step's files in inputs in the order shown ({in0}, {in1}, …) and pass each step's output link to the next step.

Step 1 — convert TTS WAV to MP3 (stereo, 44.1 kHz), inputs: the TTS file:

ffmpeg -i {in0} -ar 44100 -ac 2 -c:a libmp3lame -b:a 192k converted-tts.mp3

Step 2 — strip the original video clean (removes attached pics, re-encodes), inputs: the original video:

ffmpeg -i {in0} -an -c:v libx264 -preset veryfast -pix_fmt yuv420p clean-video.mp4

Step 3 (optional) — extract native audio if you want to keep ambient sound under the TTS, inputs: the original video:

ffmpeg -i {in0} -vn -map 0:a:0 -c:a libmp3lame -b:a 192k native-audio.mp3

Step 4 — mix both audio tracks onto clean video, inputs: clean video, native audio, converted TTS:

ffmpeg -i {in0} -i {in1} -i {in2} -filter_complex "[1:a]volume=0.3[bg];[2:a]volume=1.0,apad[vo];[bg][vo]amix=inputs=2:duration=first[outa]" -map 0:v -map "[outa]" -c:v copy -c:a aac -b:a 192k output.mp4

TTS-only (no native audio): skip steps 3-4; inputs: clean video, converted TTS:

ffmpeg -i {in0} -i {in1} -map 0:v -map 1:a -c:v copy -c:a aac -b:a 192k -shortest output.mp4

The last step's output link is the playable video to deliver.

Never skip the WAV conversion or video strip steps. Raw 24 kHz WAV + the original container = silent output every time. The video strip is also necessary because some generators embed a thumbnail (has_attached_pic: true) — that extra stream corrupts FFmpeg's stream mapping. Stripping and re-encoding to a clean H.264 MP4 removes it.


Best practices
  1. Coherent prompt — script, writing style and direction must align. Don't direct "angry" or "whisper" then write cheerful or exclamatory lines.
  2. Don't overspecify — too many strict rules limit the model's creativity. Give it room to perform, like a talented actor.
  3. Short tests first — try one sentence before a long passage. Voice + direction combos can surprise.
  4. Retry on empty/error — heavy-tag or all-whisper prompts sometimes trip the safety classifier. Retry once, then adjust. Adding Say the following: as a preamble can help.
  5. Non-English — the model auto-detects 70+ languages.
  6. Inputs under ~250 chars — pad short scripts with scene-setting context; very short inputs read flat or inconsistent.

Limitations
  • Text input only, audio output only
  • Transcript length is capped; confirm the maximum when you read its input schema
  • No streaming
  • Occasional empty responses (see retry above)
  • No SSML — use ellipses …, dashes —, and [short pause] for pauses

Full production example
# AUDIO PROFILE: Viktor Z.
## "The Unhinged Sleep Scientist"

## THE SCENE: A dimly lit laboratory at 3AM
Viktor hasn't slept in 72 hours. He's surrounded by empty energy drink cans
and brain scan printouts. He's recording a voice memo, pacing frantically.

### DIRECTOR'S NOTES
Style: Manic academic spiraling into madness. Starts measured, then unravels.
Mix of breathless excitement and creeping existential dread.
Accent: Heavy German accent — Bavarian professor at MIT, thick consonants
flood back under stress.
Pacing: Starts slow and deliberate, accelerates to barely-coherent rambling.

### TRANSCRIPT
[serious] Note to self. Experiment seven-fourteen. The results are…
[sighs] the results are consistent.
[whispers] But here is the part I cannot explain to anyone.
[trembling] The pattern… it is not random noise. It has… [gasp] …syntax.
[panicked] Something is broadcasting to us while we sleep!
[whispers] I need to sleep. But now… [laughs] …now I am afraid to.
  • Use when the inferred intent calls for performed speech rather than read speech with ElevenLabs V4 or V4 Turbo (Eleven v4), expressive TTS models controlled by inline audio tags ([whispers], [excited], [sighs], [pause], [long pause]), text structure (punctuation/capitalization) and stability — emotional narration, character dialogue, audiobook delivery, expressive shorts, anything where pauses, laughter, sighing, whispering, shouting or accents matter. Covers tag inventory and placement, pause tags (SSML <break> is ignored), tag combining, punctuation tricks, stability behavior (the main reason tags appear to do nothing), voice compatibility, pronunciation without dictionaries, text normalization, script length and splitting, full example scripts, and common mistakes. Older ElevenLabs V3 uses the same tags. For multi-speaker output, generate each speaker's track separately and combine in post.

  • Use when producing a narrative video about historical figures, fictional stories, day-in-the-life pieces, educational explainers with a protagonist, brand mascot stories, and any narrative video that depends on a consistent main character across scenes. Methodology for producing multi-scene character-driven short films: covers the full 11-phase pipeline — creative brief, style reference, character sheet, scene stills, animation, voiceover, per-clip audio mix, stitching, music with proper fade technique, optional subtitles, and optional Fin card — plus approval gates, parallelization strategy, asset naming, and the prompting principles that hold across video models. Tool and model selection is delegated to model-recommendations.

  • Use when creating ultra-realistic AI-generated photography (a believable real-world photo, not art or illustration). Covers the 9-step prompt construction workflow, required/optional inputs, the structured positive+negative prompt format, anti-failure guardrails, primary focus technique, camera/light/material domain language, and the self-checklist.

  • Use when generating multiple related assets, working with character references, brand assets, or scene sequences, or revising an earlier asset. Maintains visual and tonal consistency across multi-asset media projects: character reference workflows, style briefs, model matching rules, revisions, prompt enhancement, iterative quality testing, and scene consistency.

    Built-in

Questions about Google Gemini TTS Prompting

What does the Google Gemini TTS Prompting skill do?

Use when the inferred intent is performed speech with Google Gemini TTS (Gemini Pro TTS and the other Gemini text-to-speech models, an LLM-based TTS that responds to natural-language direction plus inline audio tags), or any performed speech with directorial control over emotion, accent, or character — manic German professor, valley-girl whisper, late-night radio host, etc. Phrasing varies — "say this in X voice", "make it sound Y", "have her speak with a Z accent", "dub this with character flair". Covers prompt structure (Audio Profile, Scene, Director's Notes, Transcript), inline audio tags, native two-speaker dialogue (exactly two distinctly named speakers in one call), the separate style-direction field, voice character archetypes for the prebuilt catalog, the WAV-to-MP3 mixing workflow (24kHz mono PCM output causes silent video unless converted), and limitations.

Which tools does Google Gemini TTS Prompting use?

It runs Gemini 3.8 Flash TTS, Gemini 3.8 Flash-Lite TTS, FFmpeg Media Editor through Spiral, each at the price on its tool page.

Does the Google Gemini TTS Prompting skill cost anything?

The skill is free. The tools it runs are billed pay-as-you-go from your Spiral balance at each tool's stated price, with no plan.

How does my agent know when to use Google Gemini TTS Prompting?

An agent reads each skill's description and loads its instructions when a request matches it.

How do I add Google Gemini TTS Prompting to Claude Code?

Save its files into ~/.claude/skills/google-gemini-tts/ with the commands on this page; Claude Code loads it when it starts.

Can I use Google Gemini TTS Prompting in other agents?

Yes. Any agent that reads Agent Skills folders loads the same files, and any other agent reads the skill with `spiral agent-skills get google-gemini-tts --json` or the Spiral API.

Is Google Gemini TTS Prompting on for my Spiral organization?

Yes. Built-in skills are on for every organization; an admin can turn Google Gemini TTS Prompting off on the console's Skills page.

Where is the Google Gemini TTS Prompting SKILL.md file?

At https://spiral.ai/skills/google-gemini-tts/SKILL.md, with no key needed. On the console's Skills page, Customize saves a copy you can edit as your organization's own skill.