feat: UAC USB 麦克风透传 - #284
Closed
arounyf wants to merge 1 commit into
Closed
Conversation
- Bump buffer-size 32768 (680ms) to tolerate WebSocket jitter - Force-spawn fresh aplay when resuming after idle (was_idle flag) - Extend idle timeout 2s→5s for speech pauses - Suppress aplay stderr (underrun noise)
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.
浏览器麦克风 → Opus(WebCodecs 64kbps) → WebSocket → one-kvm → aplay → UAC1 Gadget → Windows USB 麦克风
数据流
浏览器 getUserMedia() → AudioEncoder(Opus 64kbps) → WebSocket → one-kvm → audiopus 解码 → PCM → aplay 子进程 → UAC1 Gadget (ConfigFS) → DWC3 USB → Windows USB 麦克风
带宽优化
Raw PCM (48kHz stereo S16LE) ~1.5 Mbps → Opus 64kbps ~16 kbps (100× 缩减)
新增文件
关键修复
UI