POST https://api.tokenhot.cn/v1/chat/completionsmimo-v2.5-tts-voicedesignrole: user 的消息为必填参数,内容为音色设计描述(voice design prompt)。描述越具体、越生动,生成音色越贴近预期。role: assistant 的消息为待合成的 文本。optimize_text_preview 参数控制是否对播报文本进行智能润色;设为 true 时可不传 assistant 消息。| 维度 | 示例 |
|---|---|
| 性别与年龄 | young woman in her mid-20s、五十多岁的中年男性 |
| 音色/质感 | deep and gravelly、丝滑醇厚带着磁性 |
| 情绪/语气 | warm and confident、温柔但带着一丝疲惫 |
| 语速/节奏 | slow and deliberate、语速极快像连珠炮 |
| 角色/人设 | narrator, podcast host, 评书先生, 深夜电台DJ |
| 场景描写 | narrating a nature documentary, 在给投资人路演 |
curl --location 'https://api.tokenhot.cn/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "mimo-v2.5-tts-voicedesign",
"messages": [
{
"role": "user",
"content": "Give me a young male tone."
},
{
"role": "assistant",
"content": "Yes, I had a sandwich."
}
],
"audio": {
"format": "wav",
"optimize_text_preview": true
}
}'{
"id": "chatcmpl-abc123def456",
"object": "chat.completion",
"created": 1774324467,
"model": "mimo-v2.5-tts-voicedesign",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"audio": {
"id": "3864a4690d8a4aaea5f6acf4853a0600",
"data": "UklGR...(Base64 编码的音频数据)",
"expires_at": null,
"transcript": null
}
},
"finish_reason": "stop"
}
]
}