Skip to content

fix(voice): add chat read-aloud and fix speech recognition setup - #4478

Merged
jeffwu-1999 merged 6 commits into
developfrom
codex/develop-20261127
Nov 30, 2026
Merged

jeffwu-1999 merged 6 commits into
developfrom
codex/develop-20261127

Conversation

@lijiayang619

@lijiayang619 lijiayang619 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

1.聊天回复支持朗读。 在助手回复的操作栏新增「朗读/停止朗读」按钮,复用现有语音合成接口。只有在「模型设置 → 默认配置」中选了语音合成模型,才显示按钮。切换会话或将模型设为「不使用」时,自动停止朗读。
image

2.修复语音识别连通性检测失败。 Runtime 镜像此前漏打包检测用的 test_voice.pcm,导致检测在请求语音服务前就失败。现在构建镜像时会打包该文件,并新增回归测试。
image

3.调整千问实时语音识别的断句时间。 将默认静音阈值从 2 秒延长到 4 秒,减少用户说话时短暂停顿造成的过早断句。单测验证了实时会话发送的参数为 4000 毫秒。

4.支持火山流式语音识别 2.0 小时版。 新增模型配置 volc.seedasr.sauc.duration,通过 bigmodel_async 执行连通性检测和聊天转写。已有 1.0 小时版配置继续使用 speech_istreaming,无需迁移。火山识别请求日志也移除了鉴权头内容。
image

5.补全中英文语音模型配置文档。 增加阿里云百炼和火山引擎的模型名称、Base URL、凭据填写位置,以及检测、设为默认、麦克风转写和回复朗读的操作步骤。
image

Copilot AI balanced review requested due to automatic review settings November 27, 2026 07:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@lijiayang619 lijiayang619 changed the title feat(voice): add chat read-aloud and fix speech recognition setup fix(voice): add chat read-aloud and fix speech recognition setup Nov 27, 2026
@codecov

codecov Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jeffwu-1999
jeffwu-1999 merged commit 513fb8d into develop Nov 30, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants