语音合成(单向流式)plan/tts/unidirectional
plan_tts_unidirectionalConvert input text into speech, save the generated audio file to a specified path, and return it for agent use.
Instructions
火山豆包语音合成大模型-单向流式(端点 /api/v3/plan/tts/unidirectional,HTTP Chunked)。输入文本一次性合成音频,落盘并返回给 Agent。默认音色 zh_male_liufei_uranus_bigtts(流飞,男声),音色 ID 从控制台>音色库获取;复刻音色需 resource_id=seed-icl-2.0 并传 model。需要环境变量 ARK_API_KEY。
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>",
"output_path": "<output_path>"
},
"name": "plan_tts_unidirectional"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 待合成的文本 | |
| model | No | 复刻音色时需指定,如 seed-tts-2.0-standard | |
| format | No | 音频格式,默认 mp3 | |
| speaker | No | 音色 ID,默认 zh_male_liufei_uranus_bigtts | |
| output_path | Yes | 音频保存的绝对路径(扩展名与 format 一致,如 .mp3/.wav/.ogg/.pcm) | |
| resource_id | No | 模型版本资源,默认 seed-tts-2.0;声音复刻用 seed-icl-2.0 | |
| sample_rate | No | 采样率 Hz,默认 24000;ogg_opus 仅支持 48000 | |
| speech_rate | No | 语速 [-50,100],100 = 2.0 倍速 | |
| loudness_rate | No | 音量 [-50,100],100 = 2.0 倍音量 | |
| enable_subtitle | No | 启用字幕(字级时间戳),仅中英文 | |
| explicit_language | No | 显式朗读语种,如 zh-cn / en / ja,不传自动检测 |