Voice mode: "Connection closed: code 1006" on Linux
Open 💬 8 comments Opened Mar 5, 2026 by Pizza1234
Bug Description
Voice mode (/voice) fails with WebSocket error: Voice stream error: Connection closed: code 1006
Steps to Reproduce
- Run
/voicein Claude Code - Voice mode enables ("Hold Space to record")
- Immediately or shortly after, error appears:
Voice stream error: Connection closed: code 1006
Environment
- Claude Code: 2.1.69
- OS: Ubuntu 24.04.4 LTS, Linux 6.17.0-14-generic x86_64
- Node: v20.11.1
- Audio: PipeWire 1.0.5, sox 14.4.2,
recworks correctly - Network: Direct connection (no VPN/proxy), API reachable
Troubleshooting Done
- Verified mic works (
recandarecordboth record successfully) - PipeWire running, audio sources detected
- No proxy env vars set
pactl list sourcesshows active capture devices- Updated to latest Claude Code version
- Confirmed
curl https://api.anthropic.comreturns 404 (expected, API reachable)
Expected Behavior
Voice mode should establish WebSocket connection and accept voice input.
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗