Repository navigation
feat(voice): 主聊天界面语音输入与录音增强线(实时打字听写 + WAV原声降噪归档) - #214
Merged
Merged
Conversation
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.
底层的 Windows 语音输入引擎(
rust_voice_input_engine)、**语音聊天窗口(voicechat)**以及无痕输入跳板窗口(voice-input-capture)均为原作者既有的原生架构与完整实现。全局物理快捷键(如 F7)专属归属于原作者的语音聊天窗口,本次开发的主聊天界面没有、也不占用任何全局物理快捷键,纯粹依靠主输入框旁的麦克风按钮进行鼠标交互。
本次提交是在完全尊重原作者已有体系、绝不入侵既有代码结构的前提下,额外并联搭建了一条服务于主聊天界面的独立语音线:
handleFileDrop注入附件系统;Command::FocusReady指令扩展了一个可选布尔字段programmatic: bool,允许来自主界面的鼠标点击程序化复用引擎,原作者的所有快捷键监听与原有分支 100%原貌运行;
🛠️ 关键技术实现
modules/voice/audioRecorder.js):modules/voice/passiveVoiceSentinel.js):🧪 自动化测试验证矩阵
tests/main-chat-voice-composer.test.js24 项单测与集成测试全部通过(覆盖指令解析、状态机、DSP 滤波、WAV 头部规范、VAD 脉冲拦截与窗口互斥);npm run check:uiux(114 项 Primitives + 36 项设置项金测)150 项测试 100% 通过;