Synthesize Speech
synthesize_speech把文本合成为语音(≤3000 UTF-8 字节,约 1000 汉字),同步返回现签下载链接(url,GET 即得音频,1 小时内有效)。 请提醒用户及时下载转存——链接过期后只能重新合成(重复计费)。 更长的文本请改用 submit_speech_task(异步任务)。speaker 音色代码先用 list_tts_voices 查询。 计费约 2 元/万字符,失败不计费。
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 | ||
| speaker | No | default | |
| audio_format | No | wav |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||