Skip to main content
Glama

Gemini Neural Text-to-Speech (TTS) Expressive Voice Synthesizer

synthesize_gemini_speech_audio
Read-onlyIdempotent

Converts written scripts into natural, prosody-controlled spoken audio for voiceover narration or spoken agent replies.

Instructions

Converts written text into natural, prosody-controlled spoken voice audio using Gemini 3.8 Flash Neural Text-to-Speech. Use when rendering voiceover narration or spoken agent replies from a deterministic text script; for conducting bidirectional conversational audio dialog comprehension, use process_live_audio_dialogue instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'text' ('voice_persona' defaults to 'neutral_broadcast'), supports '?demo=true' or L402 (50 sats), and returns HTTP 400 if invalid.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "synthesize_gemini_speech_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesExact written script or paragraph to synthesize into spoken voice audio.
voice_personaNoExpressive vocal timbre preset; defaults to 'neutral_broadcast' when omitted.

Output Schema

NameRequiredDescriptionDefault
modelYesNeural TTS model executed ('gemini-3.8-flash-tts').
noticeYesAudio synthesis status message.
outputYesSynthesized speech audio descriptor and phoneme duration summary.
successYesTrue when TTS synthesis completed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.3

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/non-open-world, and the description adds substantial context beyond them: statelessness, a 32 KB input cap, a 60 RPM rate limit, the ?demo=true or L402 (50 sats) access path, and HTTP 400 on invalid input. It does not contradict the annotations, since synthesis is a deterministic, side-effect-free read-like call.

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

Conciseness4/5

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

Two sentences, purpose front-loaded, with the exclusion clause placed after the primary use case. The parenthetical stack in the second sentence (size, rate, payment, error code) is dense but each clause carries operational information, so little is wasted.

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

Completeness5/5

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

An output schema exists, so return values need not be explained; what remains — access/payment path, size and rate limits, error behavior, default persona, and the sibling alternative — is all covered. An agent has everything needed to invoke this correctly on the first try.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description still adds a real constraint not stated in the schema by tying the 32 KB cap to the 'text' payload and noting the default persona. It does not explain the semantic differences between the four enum personas, which keeps it below a 5.

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?

States a specific verb and resource ('Converts written text into natural, prosody-controlled spoken voice audio') plus the underlying engine, which pins down the capability precisely. It also explicitly names the sibling it is not (process_live_audio_dialogue) and the use case that separates them.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use ('rendering voiceover narration or spoken agent replies from a deterministic text script') and routes the alternative case ('bidirectional conversational audio dialog') to process_live_audio_dialogue. No inference is required to choose between the two.

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

Deploy Server

Other Tools