synthesize_speech
Converts text into speech audio via DashScope TTS and returns a temporary URL; download the file before it expires to keep the audio.
Instructions
Synthesize speech from text (DashScope TTS); returns a temporary audio URL.
Single synchronous request. The audio_url expires (see expires_at); download it to keep the audio.
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": "synthesize_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| model | No | cosyvoice-v2 | |
| voice | No | longxiaochun_v2 | |
| format | No | ||
| timeout | No | ||
| sample_rate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |