fix: Filter out Stereo Mix and select real microphone device

- Filter out "立體聲混音" (Stereo Mix) devices which are not real microphones
- Skip the "default" device which may point to Stereo Mix
- Prefer "communications" device or devices with "麥克風/microphone" in label
- Use exact deviceId constraint for better device selection
- Add fallback to preferred constraint if exact fails
- Add more detailed console logging for debugging

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
egg
2025-12-17 17:34:34 +08:00
parent 49dba2c43e
commit 66295f5177
2 changed files with 32 additions and 6 deletions

1
.gitignore vendored
View File

@@ -56,3 +56,4 @@ backend/record/
openspec/
AGENTS.md
CLAUDE.md
.running_pids