Generate speech
auteo_generate_speechSubmit a text-to-speech generation. This SPENDS the user's credits: speech is priced per character of text and each take is charged separately (n takes cost n times), so call auteo_estimate_cost with the model, text and n first. Call auteo_get_model first to pick a voiceId from the model's preset voices (each with name, gender, language and description) and to read how instruction works on that model: on style models (VoxCPM 2) it is a free-form speaking-style instruction, on emotion models (IndexTTS 2.5) it describes the emotion to convey. Returns a requestId and the charged cost; then call auteo_get_generation (speech usually takes seconds to a minute; each take is one audio output with audioUrl and durationSeconds). If this call times out, check auteo_list_generations before resubmitting and reuse the same clientRequestId. If it fails with insufficient credits, tell the user to top up at topUpUrl instead of retrying.
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": {
"model": "<model>",
"text": "<text>",
"voiceId": "<voiceId>"
},
"name": "auteo_generate_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of takes, default 1. Each take is charged. | |
| seed | No | Random seed; omit for random. Take i uses seed + i. | |
| text | Yes | Text to speak, up to the model's max length (see get_model); billed per character. | |
| model | Yes | Speech model id. | |
| voiceId | Yes | Preset voice id from the model's voiceId options. | |
| instruction | No | Optional description of how to speak: a speaking style (style models) or an emotion (emotion models). | |
| clientRequestId | No | Idempotency key. Leave empty; only reuse the value returned by a previous timed-out call. |