claude-code - 💡(How to fix) Fix Voice mode fails to access audio device on WSL2 + WSLg (Windows 11)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

/voice reports "Voice mode could not access an audio device in WSL" despite PulseAudio being fully functional via WSLg.

Root Cause

/voice reports "Voice mode could not access an audio device in WSL" despite PulseAudio being fully functional via WSLg.

RAW_BUFFERClick to expand / collapse

Description

/voice reports "Voice mode could not access an audio device in WSL" despite PulseAudio being fully functional via WSLg.

Environment

  • OS: Windows 11
  • WSL: WSL2 with WSLg active
  • Claude Code: v2.1.133

Audio setup

  • PulseAudio server running at unix:/mnt/wslg/PulseServer
  • PULSE_SERVER=unix:/mnt/wslg/PulseServer correctly set in environment
  • RDPSource present (status: SUSPENDED — normal when idle, activates on use)
  • Default Windows input device: Realtek Microphone Array (Status: OK)
  • parecord successfully captures audio

Steps to reproduce

  1. Open Claude Code in WSL2 terminal on Windows 11
  2. Type /voice

Expected behavior

Voice dictation activates and uses the PulseAudio RDPSource forwarded via WSLg.

Actual behavior

Voice mode could not access an audio device in WSL. WSL2 with WSLg (Windows 11) provides audio via PulseAudio — if you are on Windows 10 or WSL1, run Claude Code in native Windows instead.

Additional context

parecord can record successfully, confirming the mic and PulseAudio stack work. The issue is in how Claude Code opens the audio device, not the WSLg infrastructure.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Voice dictation activates and uses the PulseAudio RDPSource forwarded via WSLg.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Voice mode fails to access audio device on WSL2 + WSLg (Windows 11)