Generate Audio
generate_audioGenerate spoken audio from text: narration, a voiceover, a read-aloud script, or a multi-voice dialogue. Pass text (up to 2048 chars) — the words to be spoken. To speak in one of YOUR saved voices, pass voice with the voice NAME (or id): users speak plain language and never know ids, so resolve the name yourself (the voice tool, action "list", shows every saved voice) and never ask the user for an id. Reference voices, trained clones and preset voices are all routed correctly by kind. To match a voice instantly from a clip instead, pass reference_audio_url (a short clip) or up to 3 reference_audio_urls and address them as @Audio1, @Audio2, @Audio3 in the text for dialogue. Alternatively pass image_url to voice a scene from a picture (cannot combine with reference audio). Optional speech_rate (-50..100), pitch (-12..12), loudness (-50..100). Returns a playable audio_url, duration_seconds, and generation_id (also saved to your library).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The words to speak / narrate / perform. Max 2048 chars. For dialogue, address voices as @Audio1, @Audio2, @Audio3. | |
| pitch | No | Optional. Pitch, -12 to 12. 0 is normal. | |
| voice | No | Optional. A saved voice — pass its NAME (or id); it is resolved and routed by kind automatically. Omit for a natural default voice. | |
| format | No | Optional output format. Default mp3. | |
| loudness | No | Optional. Loudness, -50 (quieter) to 100 (louder). 0 is normal. | |
| image_url | No | Optional. Voice a scene from a picture. Cannot be combined with reference audio. | |
| speech_rate | No | Optional. Speaking speed, -50 (slower) to 100 (faster). 0 is normal. | |
| reference_audio_url | No | Optional. A short clip URL to instantly match that voice. | |
| reference_audio_urls | No | Optional. Up to 3 reference clip URLs for multi-voice dialogue. |