Skip to main content
Glama

generate_audio

Turn written text into spoken audio using TTS models, with adjustable voice, speed, and style. Supports voice cloning for personalized output.

Instructions

Generate speech audio from text using TTS models

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNoSeed for reproducible generation
textYesText to convert to speech
modelNoTTS model to use (dia-tts or orpheus-tts)
top_pNoControls word variety (0.1-1.0, higher = rarer words)
voiceNoVoice selection for TTS (orpheus: tara, dan, josh, emma)
cfg_scaleNoHow strictly to follow text (1-5, dia only)
input_audioNoBase64 audio for voice cloning (dia only)
temperatureNoControls randomness/expressiveness (0.1-2.0)
display_modeNoHow to return the audio: display (show audio), save (return base64 for saving), both (show audio and provide base64)display
speed_factorNoPlayback speed (0.5-1.5). Default 0.94 = normal speech. Try 0.8 for slower, 1.1 for faster
save_locationNoDirectory path to save the audio. Overrides default save location.
max_new_tokensNoMaximum tokens (controls audio length - higher = longer audio)
cfg_filter_top_kNoToken filtering (10-100, dia only)
repetition_penaltyNoPenalty for repeated phrases (1.0-2.0, orpheus only)
Install Server

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states the core function and does not mention output behavior, default display mode, model-specific caveats, resource usage, or how results are returned to the agent.

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 a single, front-loaded sentence with no filler or redundancy. It efficiently conveys the purpose without duplicating schema information, which is appropriate given the rich input schema.

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

Completeness3/5

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

The schema covers the parameters thoroughly, and some parameter descriptions (e.g., display_mode, save_location) indirectly address output handling. However, with no annotations and no output schema, the description alone does not provide enough behavioral or workflow context for such a complex generative tool with 14 parameters.

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%, so all 14 parameters are already documented with meaningful descriptions and ranges. The description itself adds no parameter-level detail beyond echoing that text is converted to speech, so the baseline score of 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?

The description uses a specific verb ('generate'), specific resource ('speech audio from text'), and names the method ('TTS models'). This makes it clearly distinguishable from siblings like generate_image, generate_video, and especially generate_music.

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

Usage Guidelines3/5

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

The purpose implies when the tool should be used (text-to-speech), and the sibling list includes generate_music as a contrast. However, there is no explicit statement about when to use this tool over alternatives or exclusions, leaving usage routing to inference.

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

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/bratcliffe909/segmind-mcp'

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