Forward speech proxy text messages as strings

- Convert non-binary upstream Xunfei WebSocket messages to UTF-8 strings before forwarding them to browser clients.

- Export and test raw WebSocket data to text conversion for speech proxy forwarding.

- Log unparseable speech responses in the report editor instead of silently swallowing them.

- Update report editor, progress, and testing documentation for text-message forwarding.
This commit is contained in:
2026-05-02 06:39:23 +08:00
parent 13d8853532
commit 6bdb12678a
7 changed files with 17 additions and 9 deletions

View File

@@ -89,7 +89,7 @@ AI 面板支持两种模式:
- 浏览器采集麦克风音频后按实际 `AudioContext.sampleRate` 重采样为 16k、16bit、单声道 PCM并按小帧发送音频帧。
- 启动前会检查浏览器是否支持 `navigator.mediaDevices.getUserMedia``AudioContext`;如果不是 `localhost` 或 HTTPS 等安全上下文浏览器会禁止麦克风能力。Docker 演示环境可使用 `https://localhost:4443`,局域网普通 HTTP 只能通过 Chrome/Edge 演示启动参数临时标记为可信来源。
- 后端读取 Settings API 中的 `xfSpeechConfig`,连接讯飞 IAT上游首帧由后端补齐 `common.app_id` 和默认 `business` 参数。
- 识别结果由后端转发回前端,并追加到 AI 输入框。
- 识别结果由后端按字符串转发回前端,并追加到 AI 输入框。
## 保存规则