generate_audio
Generate voiceovers, background music, songs, or sound effects from text or prompts, then save the audio locally.
Instructions
Generate audio (voiceover, background music, a song or a sound effect) and save it locally.
text_or_prompt: for "voice" the text to speak; for "music"/"song"/"sfx" a description of the sound. model: "voice" (text to speech), "music" (instrumental background), "song" (sung, needs lyrics) or "sfx". aspect: the voice for "voice" (e.g. "Deep narrator", "Warm female"), the mood for "music" (e.g. "Cinematic", "Lo-fi"), the vocal for "song" ("Female vocal", "Male vocal", "Duet"); defaults to the first choice. See list_models(kind="audio"). option: length/duration, e.g. "300 chars" for voice, "30s" for music, "60s" for song, "5s" for sfx; defaults to the first. lyrics: song lyrics, required for "song".
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_or_prompt": "<text_or_prompt>"
},
"name": "generate_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | voice | |
| aspect | No | ||
| lyrics | No | ||
| option | No | ||
| text_or_prompt | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |