generate
Generate speech synchronously from text and return audio ID, duration, and WAV file path. Use submit_generation for long-running tasks.
Instructions
同步生成,长耗时优先使用 submit_generation。完整生成语音,返回 id、duration 和音频位置。path 为本机 WAV 文件的绝对路径
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": "generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 需要朗读的正文 | |
| settings | No | 声音参数,与 HTTP API 同名,例如 modelId、voiceId、voxMode、voiceDescription、speaker、referenceText、seed、modelOptions |