tts
Synthesizes text into speech and returns the file path of the generated audio. Supports adjustable speed and output format (e.g., mp3, wav).
Instructions
Text-to-Speech: Synthesizes text into audio.
Return the path of audio file.
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": "tts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to synthesize into speech. | |
| speed | No | Speech speed (e.g., 1.0 for normal). default: 1.0. | |
| encoding | No | Desired audio output format (e.g., 'mp3', 'wav'). default: 'mp3'. | mp3 |