fattly_generate_audio
Generates AI audio: a voiceover (mode=speech) from text, or music (mode=music) from a description. Returns a link to the audio file. For a native-sounding non-English voiceover pick a model + voice_id from fattly_list_models (category audio → speech.models[].polishVoices for Polish) and set language. Costs the model's credits, refunded if generation fails.
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": {
"mode": "<mode>",
"text": "<text>"
},
"name": "fattly_generate_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | speech = voiceover, music = music. | |
| text | Yes | Text to read (speech) or a music description (music). | |
| model | No | Model id. Speech: elevenlabs-v3, elevenlabs-multilingual, gemini-tts, minimax-speech-28, chatterbox-multi, kokoro (default elevenlabs-v3). Music: stable-audio-3, elevenlabs-music, lyria2, elevenlabs-sfx (default stable-audio-3). Prices: fattly_list_models. | |
| voice | No | Speech only, legacy alias of voice_id (e.g. Rachel, Aria, George). | |
| seconds | No | Music length, e.g. 15, 30 or 60 (music only; options per model in fattly_list_models). | |
| language | No | Speech only: language the voiceover is forced to. Default: pl when the text has Polish letters, otherwise the server guesses (often English). | |
| voice_id | No | Speech only. A voice the chosen model accepts: a preset name (ElevenLabs Rachel/Charlie…, any of the 30 Gemini voices, MiniMax system voices incl. Polish_male_1_sample4) or, for ElevenLabs models, any 20-character Voice Library voice ID. Overrides `voice`. |