create_speech
Convert text to spoken audio by specifying a model and voice. Provide input text, choose a voice, and receive generated speech.
Instructions
Generate speech audio from text using LiteLLM (/audio/speech)
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>",
"input": "<input>",
"voice": "<voice>"
},
"name": "create_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The text to generate audio for. | |
| model | Yes | The model to use for speech generation (e.g., tts-1). | |
| voice | Yes | The voice to use for generation (e.g., alloy, echo, fable). | alloy |