claude-code - 💡(How to fix) Fix [DOCS] Voice dictation troubleshooting omits WSLg `libsox-fmt-pulse` dependency [1 participants]

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…
GitHub stats
anthropics/claude-code#58877Fetched 2026-05-14 03:37:14
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

No audio recording tool found on Linux: the native audio module could not load and no fallback is installed. Install SoX with the command shown in the error message, for example sudo apt-get install sox. For Claude Code v2.1.141, the WSL-specific voice-mode error now suggests installing sox libsox-fmt-pulse for WSLg users. The voice dictation docs still only mention WSLg generally and use a generic sudo apt-get install sox example. That leaves out the PulseAudio format package WSLg users need for the documented WSLg path. Version context: The Claude Code v2.1.141 changelog says: [VSCode] Voice mode: the WSL error now suggests installing sox libsox-fmt-pulse for WSLg users.

RAW_BUFFERClick to expand / collapse

Documentation Type

Incorrect/outdated documentation

Documentation Location

https://code.claude.com/docs/en/voice-dictation

Section/Topic

Requirements and Troubleshooting for voice dictation on WSL/WSLg

Current Documentation

The docs currently say:

In WSL, voice dictation requires WSLg for audio access, which is included with WSL2 on Windows 11. On Windows 10 or WSL1, run Claude Code in native Windows instead.

Audio recording uses a built-in native module on macOS, Linux, and Windows. On Linux, if the native module cannot load, Claude Code falls back to arecord from ALSA utils or rec from SoX. If neither is available, /voice prints an install command for your package manager.

And in Troubleshooting:

No audio recording tool found on Linux: the native audio module could not load and no fallback is installed. Install SoX with the command shown in the error message, for example sudo apt-get install sox.

What's Wrong or Missing?

For Claude Code v2.1.141, the WSL-specific voice-mode error now suggests installing sox libsox-fmt-pulse for WSLg users. The voice dictation docs still only mention WSLg generally and use a generic sudo apt-get install sox example. That leaves out the PulseAudio format package WSLg users need for the documented WSLg path.

Suggested Improvement

Add a WSLg-specific troubleshooting note near the existing Linux fallback guidance. For example:

After:

On WSLg systems, install both sox and libsox-fmt-pulse so SoX can record through PulseAudio: sudo apt-get install sox libsox-fmt-pulse

If the exact package names vary by distro, note that the WSLg fallback needs SoX plus PulseAudio format support, and keep the Debian/Ubuntu command as the concrete example.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageLine(s)Context
https://code.claude.com/docs/en/voice-dictation19-21, 157WSLg requirement is documented, but the fallback install example only mentions sox

Total scope: 1 page affected

Version context: The Claude Code v2.1.141 changelog says: [VSCode] Voice mode: the WSL error now suggests installing sox libsox-fmt-pulse for WSLg users.

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…

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 [DOCS] Voice dictation troubleshooting omits WSLg `libsox-fmt-pulse` dependency [1 participants]