Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
textNoSimple mode: the text to speak (single speaker). Inline tone tags like [whispers] work on flash. Ignored if dialogue_turns is set.
waitNoSet false to submit and return immediately with the task_id (async mode) — then poll with check_task and fetch with download_result.
modelNoflash = 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
sceneNoScene description, e.g. "A quiet, warm room with a fireplace crackling softly."
filenameNoOutput filename (default gemini-tts-<ts>.wav)
speakersNoDialogue 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_nameNoSimple mode voice (default Zephyr)
temperatureNoSampling temperature (default 1)
download_dirNoAbsolute directory to save into (created if missing). Defaults to the server's kie/assets/raw/.
dialogue_turnsNoDialogue mode: [{speaker_id, text}] in order; text ≤10000 chars, may contain tone tags
sample_contextNoOverall tone/direction, e.g. "Audiobook style narration. Tone is gentle and inviting."
max_wait_secondsNo
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description carries full burden. It thoroughly discloses the tool's behavior: it uses Google Gemini, supports style direction and tone tags, has credit cost (~4.2 credits/min), model trade-offs (flash quality degrades on long takes, pro stable), async mode via wait=false, and default download location. This is comprehensive behavioral transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is approximately 150 words, tightly packed with key information: novelty ('NEW'), backend, capabilities, pricing, modes, model comparison, and output location. It is front-loaded with the most critical identifier ('Google Gemini native TTS'). No redundant sentences; every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 12 parameters and no output schema, the description covers core functionality, limitations, async workflow, and pricing. It explains the two modes and model selection well. However, it does not describe the return format (e.g., whether it returns a file path or URL after download) or error cases, leaving a minor gap in completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 92% (11/12 params have inline descriptions). The description adds high-level context about modes and credits but does not significantly elaborate on individual parameter meanings beyond what the schema already provides. For example, 'scene' and 'sample_context' are better explained in the schema than in the description. Baseline 3 is appropriate as the description adds moderate value but does not deeply augment parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it is a Google Gemini native TTS tool with style-directed speech, 30 named voices, up to 2 speakers, and inline tone tags. It distinguishes itself from siblings (generate_tts, generate_dialogue) by highlighting the Gemini backend, pricing, and dual modes (simple/dialogue). The verb 'generate' and resource 'gemini_tts' are specific and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use each mode (Simple vs Dialogue) and which model to choose (flash for expressive <60s, pro for stable long-form). It also mentions pricing and compares to ElevenLabs. However, it does not explicitly name alternative tools (e.g., generate_tts) for cases where Gemini is not desired, slightly limiting differentiation from siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/elibarnett/kie-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server