Repository navigation
fix(audio): 优先麦克风原生格式并拦截空录音 - #1135
Merged
H-Chris233 merged 4 commits intoOct 7, 2026
Merged
H-Chris233 merged 4 commits into
H-Chris233 merged 4 commits into
Conversation
Collaborator
|
我来认领这个 PR 的代码审查,避免重复工作。接下来会基于最新 beta 与当前 PR head,检查需求符合度、实现正确性和回归风险。 |
H-Chris233
approved these changes
Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
麦克风设备存在但其默认格式无法构造/播放时,当前录音立即失败;持续全零的 PCM 又会被当作存活输入送入后续识别。本 PR 优先尝试所选麦克风的原生格式,再尝试设备实际支持的其他格式及可用输入设备;转写结束前拒绝空/全零录音。
修复 / 新增 / 改进
BufferedTranscriptionSession检查音频证据,拒绝空/全零数据;微弱非零音频不受语音阈值误杀。取消和原有服务故障保留原来的错误语义。兼容
测试计划