Repository navigation
v0.2.0
v0.2.0
新增:火山网关可配(支持标准付费 API 与自定义端点)
新增 voice.tts.volcengine.gateway(设置页"鉴权"组的"网关"下拉,默认 plan,向后兼容零迁移):
| gateway | 含义 | HTTP 端点 | WS 端点 |
|---|---|---|---|
plan(默认) |
智能体套餐 | /api/v3/plan/tts/unidirectional |
/api/v3/plan/tts/bidirection |
standard |
标准付费(新版控制台 API Key) | /api/v3/tts/unidirectional |
/api/v3/tts/bidirection |
custom |
自定义端点 | httpUrl |
wsUrl |
standard:走豆包标准付费端点(非 plan),协议与鉴权头与 plan 完全一致(新版控制台X-Api-Key),仅 URL 路径不同。旧版控制台(App-Id/Access-Key)鉴权暂未实现。custom:可指向原样转发火山协议的自定义端点(把端点填进httpUrl/wsUrl即可);OpenAI 兼容格式(/v1/audio/speech)暂不支持。- 详细接入契约见 docs/providers.md。
其它
- 探针脚本新增
--gateway plan|standard,可用真实 key 验证标准付费端点(scripts/tts-probe.mjs/tts-ws-probe.mjs)。 - 测试新增 7 条网关断言,172 passed / 0 failed,CI(ubuntu / Node 22)自动运行。
- 文档同步:
docs/pipeline.md(§4.2 网关 + schema)、docs/providers.md(网关一节)。