generate_gemini_tts
Generate speech from text using Google Gemini with natural-language style direction, 30 named voices, and dialogue support for up to 2 speakers.
Instructions
NEW — Google Gemini native TTS via kie.ai: style-directed speech from natural-language direction, 30 named voices, up to 2 speakers, inline tone tags like [whispers]/[laughs] (flash model). ~4.2 credits per MINUTE of audio — cheaper than all ElevenLabs tiers. Simple mode: pass text (+ optional voice_name). Dialogue mode: pass speakers + dialogue_turns. model=flash is most expressive (keep expected audio <60s — quality degrades on long takes); model=pro is more stable for multi-minute narration. Downloads to kie/assets/raw/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Simple mode: the text to speak (single speaker). Inline tone tags like [whispers] work on flash. Ignored if dialogue_turns is set. | |
| wait | No | Set false to submit and return immediately with the task_id (async mode) — then poll with check_task and fetch with download_result. | |
| model | No | flash = Gemini 3.1 Flash TTS (most expressive, 200+ inline tags, best <60s); pro = Gemini 2.5 Pro TTS (more stable long-form). Same price. | flash |
| scene | No | Scene description, e.g. "A quiet, warm room with a fireplace crackling softly." | |
| filename | No | Output filename (default gemini-tts-<ts>.wav) | |
| speakers | No | Dialogue mode: 1-2 speakers as [{speaker_id: "Speaker 1", voice_name, audio_profile?, accent?, style?, pace?}]. accent: Neutral|American (Gen)|American (Valley)|American (South)|British (RP)|British (Brixton)|Transatlantic|Australian. style: Vocal Smile|Newscaster|Whisper|Empathetic|Promo/Hype|Deadpan. pace: Natural|Rapid Fire|The Drift|Staccato. | |
| voice_name | No | Simple mode voice (default Zephyr) | |
| temperature | No | Sampling temperature (default 1) | |
| download_dir | No | Absolute directory to save into (created if missing). Defaults to the server's kie/assets/raw/. | |
| dialogue_turns | No | Dialogue mode: [{speaker_id, text}] in order; text ≤10000 chars, may contain tone tags | |
| sample_context | No | Overall tone/direction, e.g. "Audiobook style narration. Tone is gentle and inviting." | |
| max_wait_seconds | No |