文本转语音
text_to_speechConverts up to 300 characters of text into playable WAV speech and returns a 24-hour public audio URL; use a voice ID from list_voices.
Instructions
把文本合成为可播放的语音,同步返回 audioUrl(自带 exp/sig 的公网直链,可直接播放,默认 24 小时有效)。计费工具(失败不扣)。text ≤ 300 字符(2026-11-09 收敛,付费音色硬限);voice 必须来自 list_voices,不要猜测音色名;format 当前仅支持 wav。engine 可选:默认 standard(免费音色,占日额度,wav 输出);"premium"(仅付费档)用商业音色(如 Cherry)按积分计费、不占日额度,音色以充值页商业音色目录为准。
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": "<voice>"
},
"name": "text_to_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 待合成文本,≤ 300 字符;超过请分段多次调用 | |
| speed | No | 语速,0.5–2.0,默认 1.0(仅 standard) | |
| voice | Yes | 音色 ID,必须来自 list_voices 的返回(premium 引擎不受此限,可用商业音色) | |
| engine | No | 引擎:默认 standard(免费);premium 需付费档,按积分计费 | |
| format | No | 音频格式,当前仅 wav |