Skip to main content
Glama

Generate speech

speak

Text to speech: turn any text into spoken audio the user can play or download, such as a voiceover for a video, a narration, a podcast intro or an article read aloud. Generate speech from text in one of the user's VoiceLabs voice profiles. Returns a generationId with status "generating"; poll get_generation with that id to retrieve the audio URL once it completes. Pass profileId or profileName to choose the voice.

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": "speak"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to speak.
languageNoISO language code (defaults to the profile/engine default).
profileIdNoVoice profile id (takes precedence).
profileNameNoVoice profile name.
temperatureNoSampling temperature for this take, 0.3 to 1: lower is steadier, higher is livelier. Omit it to use the voice's own default. Only voices on the chatterbox and chatterbox_turbo engines accept one; any other voice refuses the call rather than ignoring the value.

Output Schema

NameRequiredDescriptionDefault
statusYes
profileYes
audioUrlYes
generationIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / temperature
      Added value: +{
      +  "description": "Sampling temperature for this take, 0.3 to 1: lower is steadier, higher is livelier. Omit it to use the voice's own default. Only voices on the chatterbox and chatterbox_turbo engines accept one; any other voice refuses the call rather than ignoring the value.",
      +  "maximum": 1,
      +  "minimum": 0.3,
      +  "type": "number"
      +}
  2. Changed2 schema fields changed
    • removedOutput schema / properties / audioUrl / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / audioUrl / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Adds behavior beyond the annotations by disclosing the asynchronous contract: the call returns a generationId with status "generating" and the audio URL arrives only after polling. The schema also flags that non-chatterbox voices reject a temperature value rather than ignoring it. It leaves auth, quota, and cost implications unstated, so it is strong but not exhaustive.

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?

Front-loads the purpose and use cases, then the async retrieval contract, then the voice-selection hint in a logical order without filler. The list of example use cases is slightly verbose but helps an agent match user intent.

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?

For a generation tool with an output schema and full annotation coverage, the description supplies the one thing structured fields cannot: the two-step generate-then-poll workflow and the id needed to complete it. An agent has enough to invoke it correctly on the first try.

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 coverage is 100%, so the schema already documents precedence for profileId, the language default, and the temperature engine restriction. The description's closing sentence about profileId/profileName largely restates that; it adds little new meaning for text or language, so baseline 3 applies.

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?

Opens with a specific verb and resource ("Text to speech: turn any text into spoken audio") and enumerates concrete use cases (voiceover, narration, podcast intro, article read aloud). It is clearly distinguished from the transcribe sibling, which handles the inverse direction.

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?

Explicitly states the follow-up workflow (poll get_generation with the returned id to get the audio URL) and how to select a voice via profileId or profileName. It does not explicitly contrast against alternatives such as transcribe or list_voice_profiles, so it falls short of a full when/when-not treatment.

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.

Resources