tts_synthesize
Converts up to 300 characters of text into realtime speech audio, returning a saved file path with metadata or base64 audio for direct use.
Instructions
Realtime TTS (sync). Text must be <= 300 characters.
Returns the audio file path + metadata when output_path is given, otherwise base64-encoded audio with its content_type.
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>",
"voice_code": "<voice_code>"
},
"name": "tts_synthesize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| speed | No | ||
| bitrate | No | ||
| voice_code | Yes | ||
| output_path | No | ||
| sample_rate | No | ||
| output_format | No | mp3 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||