Skip to main content
Glama

Generate speech

generate_speech

Turn text into spoken audio with a stock voice or a saved Character voice. Default model: speech/elevenlabs-v4. Cloned and designed voices (clone_voice, design_voice) are made on Fish Audio here and speak with speech/fish-drama-3: pass the Character's character_id, never its provider voice ID; without model, a Character with only such a voice uses speech/fish-drama-3. Fish Drama 3 also speaks public Fish voices by voice_id, takes [natural-language performance directions] and paired tags such as , multi-speaker extras.dialogue with a voice_id or character_id per turn, and is priced by UTF-8 bytes (speaker tags included). search_voices finds a stock voice by language, gender, accent or purpose and plays samples. Voice IDs, languages, settings and dialogue support differ per model (get_model_params). voice_settings fields are accepted and flattened. Saved pronunciations (add_speech_pronunciations) for the model family are applied automatically before pricing and generation; the result lists them in pronunciationReplacements, and check_job shows the original words. Returns a job; check_job returns the permanent audio URL once it is completed. Submitting charges credits, refunded automatically if the job fails; estimate_generation prices a request without charging.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_speech"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoText to speak. Some models take dialogue turns in extras instead.
modelNoSpeech model ID. Default speech/elevenlabs-v4.
extrasNoModel-specific parameters as listed by get_model_params. They are merged with the top-level fields.
voice_idNoStock voice ID from get_model_params or search_voices. For a cloned or designed voice pass character_id instead.
force_newNoAn identical request submitted in the last 10 minutes returns that job without charging again; true generates it again.
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
character_idNoCharacter with a saved voice for this model (see list_characters). Do not combine with voice_id. In extras.dialogue, a turn may also take character_id.
budget_projectNoOptional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project.
voice_option_idNoA saved voice on that Character. Omit to use the preferred voice for the selected model.
apply_saved_pronunciationsNoApply this account's saved pronunciation text replacements for the selected model family. Defaults to true. Set false to bypass saved entries for this request; explicit pronunciation markup in text is preserved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that submission charges credits with automatic refund on failure, that identical requests within 10 minutes dedupe and do not re-charge (force_new overrides), that the call is asynchronous returning a job whose permanent URL appears via check_job, and that saved pronunciation replacements are applied before pricing. The only tension is that this dedupe behavior reads as mild idempotency while idempotentHint is false, but the 10-minute window plus force_new makes it a documented exception rather than a contradiction.

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

Conciseness3/5

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

The core operation and default model are front-loaded, which is good, but the remainder is one dense block of run-on sentences mixing voice sourcing, model selection, dialogue syntax, pricing units (UTF-8 bytes), pronunciation behavior and job semantics. Nearly every clause carries information, yet the lack of separation makes it harder to scan than a shorter or bulleted version.

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?

For a 10-parameter tool with a nested free-form extras object and no output schema, the description covers the important unknowns: cost model, refund behavior, dedupe window, async job lifecycle and how to retrieve the final audio URL. Remaining gaps (budget_project fallback, skills_used analytics, voice_option_id selection) are already documented in the schema itself.

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 earns above that by explaining cross-parameter behavior the schema cannot: model defaults to speech/elevenlabs-v4, a Character with only a Fish voice falls back to speech/fish-drama-3, character_id and voice_id should not be combined, extras.dialogue takes per-turn voice_id/character_id, and voice_settings fields are flattened. It leaves skills_used, budget_project, voice_option_id and apply_saved_pronunciations entirely to the schema.

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 opening clause names a concrete verb and artifact ('Turn text into spoken audio') and immediately scopes the two supported voice sources (stock voice or saved Character voice). It also draws the boundary against voice-creation siblings by saying cloned/designed voices come from clone_voice/design_voice, so an agent can distinguish this from those tools without opening a schema.

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?

Strong in-tool routing: use character_id rather than the provider voice_id for cloned voices, use search_voices to find a stock voice, use get_model_params for per-model capabilities, and use estimate_generation when you want pricing without charging. What is missing is an explicit statement of when to prefer a different generation sibling (music, sound effect) or when not to call this at all.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.