generate_speech
Convert text into spoken audio for narration, voice-overs, audiobook chapters, or podcast intros. Get the audio inline plus an optional private download link that expires.
Instructions
Turn text into spoken audio: narration, voice-overs, audiobook chapters, podcast intros. Returns the audio inline and, if a Blob store is connected, a private download link that expires. Models: "openai/tts-1-hd", "google/gemini-3.8-flash-tts", "fish-audio/s2-pro", "microsoft/mai-voice-2.1" (list_models with type "speech" shows all and their prices). Voices are model-specific, e.g. "alloy", "nova" or "onyx" on OpenAI.
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>"
},
"name": "generate_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | What to say | |
| model | Yes | Speech model id from list_models with type "speech" | |
| speed | No | 1 is normal; 0.5 is half speed, 2 is double | |
| voice | No | Voice name for this model, e.g. "nova" (OpenAI) | |
| format | No | Audio format like "mp3" or "wav". Default depends on the model. | |
| language | No | ISO 639-1 code like "en" or "th", or "auto" | |
| instructions | No | How to say it, e.g. "warm and slow, like a bedtime story" (models that support it) |