generateTts
Convert text into spoken audio with a single API request, choosing from multiple TTS providers and formats to get a playable audio file URL for immediate use.
Instructions
Synthesize TTS audio directly (POST /v1/tts/generate). Provider: openai | elevenlabs | minimax | qwen_flash | qwen_plus | kokoro | edge. Returns a playable audio file URL.
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>"
},
"name": "generateTts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to synthesize | |
| style | No | Speaking style, e.g. neutral | |
| voice | No | Voice id for the selected provider | |
| format | No | mp3 (default), pcm, wav, opus, aac, flac | |
| agent_id | No | If set, the generated audio is saved as the agent's notification clip | |
| provider | No | TTS provider (default openai) |