Skip to main content
Glama

Text to speech API, TTS: natural voices, MP3 audio from text

ai_tts
Read-only

Text to speech API: turn up to 300 characters of text into natural, human-sounding speech as an MP3 (base64) with Deepgram Aura-2 voices, in English (40 voices) or Spanish (10). Pick a voice by name or keep the default. Use for voice replies, narration, audio notes, IVR prompts and accessibility. Example: text=Your payment was received. Thank you!. Price $0.01/call via x402 USDC or a card key (/credits); failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
langNoLanguage: en or es (default en)
textYesText to speak, up to 300 characters
voiceNoVoice name. English: amalthea, andromeda, apollo, arcas, aries, asteria, athena, atlas, aurora, callista, cora, cordelia, delia, draco, electra, harmonia, helena, hera, hermes, hyperion, iris, janus, juno, jupiter, luna, mars, minerva, neptune, odysseus, ophelia, orion, orpheus, pandora, phoebe, pluto, saturn, thalia, theia, vesta, zeus. Spanish: sirio, nestor, carina, celeste, alvaro, diana, aquila, selena, estrella, javier. Default: luna (en), aquila (es)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations by disclosing the billing model (USD 0.01 per call, failed calls free), the practical consequence that retries are not free, and the exact return encoding (MP3 base64). That pricing detail also explains behaviorally why idempotentHint is false, which the annotation alone does not convey.

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-loaded with capability, then use cases, then example, then cost — a sensible order with little wasted text. Minor redundancy: 'Reads or computes only and changes nothing' repeats readOnlyHint/destructiveHint, and the voice counts partially duplicate the enum listing.

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?

With no output schema, the description still specifies the output shape (MP3 base64), the length limit, language/voice choice and defaults, and the cost model — everything needed to call it correctly and predict the result.

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 100%, including the full voice enum list and defaults, so the schema already carries most parameter meaning. The description adds only light framing: 40 English and 10 Spanish voices and 'pick a voice by name or keep the default,' which restates rather than extends 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?

Names a specific verb and resource (text to speech, text into MP3 base64 audio), the provider and model family (Deepgram Aura-2), the supported languages and voice counts, and the 300-character cap. An agent knows exactly what it gets back without opening the 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?

Concrete use cases are listed (voice replies, narration, audio notes, IVR prompts, accessibility) plus a worked example call. It stops short of naming when NOT to use it or routing away from a sibling (e.g. ai_speech, transcribe), so the boundary with the rest of the ai_* family is left implicit.

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