Generate speech
generate_speechTurn a script into a ready-to-use voiceover: speaks the text in a Lazybird voice and returns a link to the MP3, which the user can play, download or put in a video, podcast, ad or course. Uses one character from the user's balance per character of text. Up to 5000 characters per call; split longer scripts into parts.
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": "<text>",
"voiceId": "<voiceId>"
},
"name": "generate_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | What to say | |
| speed | No | Speaking rate, 1 is normal | |
| effect | No | A sound effect on the speech: echo is a large hall, radio a walkie-talkie, phone a phone call | |
| locale | No | Locale to speak in, with its region, e.g. "fr-FR". Any voice can take one | |
| voiceId | Yes | A voice id from search_voices | |
| instruction | No | How to act the text, in a few words, e.g. "whispering, nervous"; never spoken |