From c5397438d462f534afb120e5c86c5837d76a4ac2 Mon Sep 17 00:00:00 2001 From: Blizzard Date: Wed, 22 Jul 2026 10:07:48 +0800 Subject: [PATCH] =?UTF-8?q?docs(voice):=20=E8=AE=B0=E5=BD=95=E8=81=94?= =?UTF-8?q?=E8=B0=83=E7=BB=93=E8=AE=BA=E2=80=94=E2=80=94=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E9=AA=8C=E9=80=9A,=E5=89=A9=E6=9C=8D=E5=8A=A1=E5=BC=80?= =?UTF-8?q?=E9=80=9A(=E8=B4=A6=E5=8F=B7=E4=BE=A7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 联调确认:鉴权/帧协议已被真火山完全接受。剩 grant not found=账号未开通对应服务。 - TTS 正确 Resource-Id 是 volc.service_type.10029(语音合成大模型),非 seed-tts-2.0(那是模型名) - ASR 端点 sauc/bigmodel 认 volc.bigasr.sauc.duration(格式被识别) - 两者均 grant not found → App 9604175735 需在语音控制台开通这两个大模型服务 Co-Authored-By: Claude Opus 4.8 --- sundynix-gateway/internal/voice/frame.go | 1 + 1 file changed, 1 insertion(+) diff --git a/sundynix-gateway/internal/voice/frame.go b/sundynix-gateway/internal/voice/frame.go index 8e120d1..d9abffc 100644 --- a/sundynix-gateway/internal/voice/frame.go +++ b/sundynix-gateway/internal/voice/frame.go @@ -19,6 +19,7 @@ const volcAppKey = "PlgvMymc7f3tQnJ6" func setVolcAuthHeaders(hdr http.Header, apiKey, appID, resourceID string) { // 直接赋 map(不走 Set)以**保留精确大小写**:Go 的 Header.Set 会把 "X-Api-App-ID" // 规范化成 "X-Api-App-Id",而火山网关按精确大小写匹配(官方 demo 用 X-Api-App-ID)。 + // 新版 API Key 走 X-Api-Access-Key;X-Api-App-Key 是网关固定常量,缺它 400 "app key not found"。 hdr["X-Api-App-Key"] = []string{volcAppKey} hdr["X-Api-Access-Key"] = []string{apiKey} hdr["X-Api-Resource-Id"] = []string{resourceID}