1. Core Architecture: Transcript vs. Delivery (speech_metadata)
Gemini 3.8 TTS (gemini-3.8-flash-tts and gemini-3.8-flash-lite-tts) treats input text strictly as a verbatim transcript. Unlike older preview models, never write stage directions in plain text (they may be read aloud). Separate:
- Voice (
voice): Carries the speaker's core identity, age, gender, and accent. speech_metadata.style(Turn-Level Delivery): Sustained emotion, pace, or tone across the entire turn (e.g.,"energetic creator talking to camera, a little playful","speaking slowly","whispering","sarcastic").- Inline Vocal Tags
<...>(Point-in-Time Events): Momentary human vocalizations or pauses placed directly inside the transcript.
2. Internal Production Spec (swiftxeo-gateway /studio?tab=voice)
- Models:
- Light:
gemini-3.8-flash-lite-tts - Standard:
gemini-3.8-flash-tts - 8 Shipped Voices:
Kore(Clear & steady — explainers, product stories)Puck(Bright & upbeat — quick hooks, announcements)Charon(Deep & calm — narration, longer reads)Aoede(Warm & conversational — everyday updates)Fenrir(Direct & resonant — bold statements)Leda(Gentle & measured — thoughtful stories)Orus(Crisp & even — step-by-step guides)Zephyr(Light & airy — casual Reels)- Limits & Behavior:
- Script (
text): Max 960 characters (~60s at 16 chars/sec). Must contain speakable text outside<...>tags. - Style note (
style): Optional, max 300 characters. - Audition: Uses the first 400 characters (cut back to the last sentence end
./!/?), returns inlineaudition_audiowithout saving a track. - Output: Complete 24 kHz mono 16-bit PCM WAV (
audio/wav) with RIFF header (max 20 MB track / 32 MB answer). - v2 Deferred (Not in v1 yet): Voice Design (
voice_...IDs), Voice Replication, 2-speaker Reels, and voice/music mixing.
3. Inline Vocal Tags, Pacing & Pronunciation
A. Angle-Bracket Vocal Tags <...> (Keep in English even for non-English scripts)
- Pauses:
<short pause>,<long pause> - Breath & Reaction:
<breath>,<sigh>,<laugh>,<chuckle>,<cough>,<throat-clearing>,<tsk>,<yawn>,<sob>,<whimper>,<whisper>/<whispering> - Rule: Stick to human vocalizations and pauses. Avoid non-vocal sound-effect tags (applause, thuds, explosions).
B. Punctuation & Natural Disfluencies
- Use commas, em-dashes (
--), and ellipses (...) for conversational hesitation: > "Hold on, let me think...<short pause>Alright, I've got it." - Natural disfluencies (
"Oh uh yeah I think... hm, so that's interesting") boost realism.
C. Phonetic / Pronunciation Control (/IPA/)
- Standard
/IPA/notation works in scripts for tricky brand names or foreign words (verified live on staging).
D. Backchannels & Overlapping Speech (|...|) (Multi-speaker / flash-tts)
- Wrap brief listener reactions inside pipes:
"So the launch is Thursday |oh hmm| Are we actually ready?"
4. Consistency Rules & What to Avoid
- Test empty
stylefirst: Most scripts sound most natural with an emptystylefield. Add a shortstylestring only when you need a specific shift. - Avoid long
"Audio Profile"/"Director's Notes"blocks: Multi-paragraph style prompts cause voice drift. Keepstyleconcise (under 1 sentence). - Do NOT fight the base voice's identity: Don't use
styleto force age, gender, or permanent accent changes—pick the right voice from the 8 studio voices (or Voice Design in v2 / API). - No meta-instructions in
text: Never write"do not switch speaker identity"or"maintain identical timbre"inside the transcript. - Mid-script tone shifts: If emotion changes mid-read, split into separate turns with distinct
stylevalues (or in v1 Reels, generate separate takes if needed).
5. Copy-Pasteable Voiceover Templates (Ready for /studio?tab=voice)
Template A: Punchy Reel Hook (Puck or Fenrir, Standard)
- Style:
energetic creator talking to camera, a little playful - Script:
Wait--did you actually test that? <short pause> Here is the three-second trick that fixes it every time.Template B: Calm Product Explainer (Kore or Orus, Light or Standard)
- Style: (leave empty, or
clear, warm, measured pace) - Script:
Most teams start with the wrong prompt structure... <short pause> Instead, lock your camera angle first, then add lighting and sound.Template C: Storytelling / Reflective (Leda or Charon, Standard)
- Style:
gentle, thoughtful, slightly slower pace - Script:
<breath> We spent two weeks testing every setting. <long pause> In the end, the simplest version won.