Generate speech
speech_generateTurn one or more texts into spoken audio — for example the narration of a video you are recording. Returns one download URL per text, with its audio format; fetch each with curl to put the audio on disk. The audio never passes through the conversation. Each URL works once and expires in 1 hour. Download a few at a time in parallel, not all at once; if a download answers 429, retry it after the Retry-After seconds. A 402 means the member's budget is used up: stop downloading and tell the user. Up to 30 texts of 1000 characters each; split longer narration into several texts.
Use style for delivery instructions (tone, pace, accent), with the accent chosen for who will listen, e.g. 'warm and clear, Rioplatense accent' or 'English, natural'.
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": {
"texts": "<texts>"
},
"name": "speech_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | Optional delivery instructions: tone, pace, accent, emotion. Pick the accent for who the audio is for, e.g. 'neutral Latin American Spanish', 'Chilean accent'. Without it, the accent is that of the company's country when the text is in a language spoken there, and neutral otherwise. | |
| texts | Yes | The texts to speak, one clip per text, in order. | |
| voice | No | Voice to use. Default 'Aoede'. |