actor_tts
Generate speech for a pre-registered character with consistent timbre across every line, preventing voice drift in game NPC dialogue.
Instructions
让某个已铸声的角色说一句台词, 音色与他之前每一句都一致。
做游戏 NPC 对白用这个, 不要用 generate_speech —— 后者每句音色会漂。 角色不存在会告诉你先去 create_actor。
参数: actor: 角色名(create_actor 时定的) text: 台词, 上限 200 字(约 45 秒), 超出截断 speaking_rate: 语速倍率(可选) seed: 随机种子(可选)
返回: 24 kHz 单声道 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": {
"actor": "<actor>",
"text": "<text>"
},
"name": "actor_tts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| text | Yes | ||
| actor | Yes | ||
| speaking_rate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| path | No | ||
| actor | No | ||
| error | No | ||
| voice | No | ||
| warnings | No | ||
| max_chars | No | ||
| truncated | No | ||
| consistent | No | ||
| error_code | No |