Skip to main content
Glama

Generate sound, music or speech

generate_audio

Create sound effects, music, or speech from a text prompt via free Hugging Face Spaces, writing audio files with JSON metadata for each take. Use for prototyping game audio assets.

Instructions

Generate sound effects, music or speech through a free Hugging Face Space. Writes the audio and a .json sidecar with the prompt, the parameters, the seed and the raw Space response. mmaudio is CC-BY-NC-4.0: prototype only, it must never reach a build.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoFile name prefix; defaults to the model name.
seedNoSeed; change it for another take.
countNoHow many takes to generate.
modelNoWhich Space to use.stable
lyricsNomusic only: lyrics, or a path to a lyrics file.
promptYesThe sound, the music tags, or the words to say.
out_dirNoWhere to write the file.out/audio
secondsNoLength in seconds.
languageNospeech only: language code (ru, en, de, ja, ...).en
exaggerationNospeech only: emotion, 0.25-2.
negative_promptNommaudio only: what to avoid.
voice_referenceNospeech only: a 5-10 s clip of a voice you have the right to clone.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
logYesWhat the engine printed while it worked.
filesYesEverything that was written.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries full behavioral burden and does well: it discloses that files are written, that a .json sidecar records the prompt, parameters, seed and raw Space response, and that the mmaudio model carries a non-commercial license barring production use. It omits whether execution depends on network availability or how long generation takes, and does not state permission requirements.

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?

Three sentences, front-loaded with the core capability and followed by the output artifact and the critical license constraint. No filler, though the sidecar sentence could be tightened slightly.

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 12-parameter tool with an output schema present, the description need not explain return values and correctly focuses on side effects and licensing. The model-specific parameter behavior (e.g. lyrics for music, voice_reference for speech) is left entirely to the schema, which coverage-wise is sufficient, but a sentence on model selection trade-offs would have completed the picture.

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 every one of the 12 parameters is already documented (model enum, seed, count, language, exaggeration, etc.). The description only loosely references 'the parameters' and 'the seed' without adding syntax or constraint meaning beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Generate sound effects, music or speech') and names the upstream provider ('through a free Hugging Face Space'), so the agent knows exactly what operation this performs. It does not differentiate from siblings like generate_audio_batch or synth_sound, which share the same output modality, so it falls short of a 5.

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?

Usage is implied by the purpose, and the license note ('mmaudio is CC-BY-NC-4.0: prototype only, it must never reach a build') is a genuine when-not constraint. However, no sibling alternatives are named and no condition is given for choosing this over generate_audio_batch or synth_sound, leaving routing to inference.

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