Skip to main content
Glama

generate_audio

Generate audio from text prompts with text-to-speech or sound effects using AI providers like OpenAI, Google, and ElevenLabs.

Instructions

Generate audio from text using AI. Supports text-to-speech and sound effects. Providers: openai, google, elevenlabs. ElevenLabs: use providerOptions.mode = "sound-effect" for sound effects. Available: none configured

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to convert to speech, or a description of the sound effect to generate
providerNoProvider to use: openai, google, elevenlabs. Auto-selects if omitted.
voiceNoVoice name (provider-specific). OpenAI: alloy, ash, coral, echo, fable, nova, onyx, sage, shimmer. Google: Kore, Charon, Fenrir, Aoede, Puck, etc. ElevenLabs: voice ID.
speedNoSpeech speed multiplier (OpenAI only): 0.25 to 4.0
formatNoOutput format (OpenAI only): mp3, opus, aac, flac, wav, pcm
outputDirectoryNoDirectory to save the generated file. Supports absolute or relative paths (resolved from cwd). Defaults to MEDIA_OUTPUT_DIR env var or cwd.
providerOptionsNoProvider-specific parameters passed through directly
Behavior2/5

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

With no annotations, the description must disclose behavioral traits. It only mentions providers and a cryptic 'Available: none configured'. It fails to mention that the tool generates audio files, uses external APIs, saves files to outputDirectory, or any rate limits or costs.

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?

The description is concise with three sentences. It front-loads the core purpose. However, the last sentence 'Available: none configured' is vague and potentially confusing, slightly detracting from clarity.

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?

Given the tool's complexity (7 parameters, multiple providers, nested objects) and no output schema, the description is incomplete. It omits the overall workflow (e.g., saving audio files) and does not explain how providerOptions work beyond a single example.

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 baseline is 3. The description adds minimal value: it highlights ElevenLabs mode for sound effects and lists providers. It does not expand on voice, speed, format, or outputDirectory beyond 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 description clearly states 'Generate audio from text using AI' and specifies text-to-speech and sound effects. It distinguishes itself from sibling tools like transcribe_audio (speech-to-text) and other media generators (image, video) by focusing on audio output.

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 description lists providers and mentions ElevenLabs sound effect mode, implying use cases. However, it does not explicitly state when to use this tool versus alternatives like transcribe_audio or when not to use it, nor does it provide clear context for selecting providers.

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

Install Server

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/rsmdt/multimodal-mcp'

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