[BUG] Voice recording requires the native audio module, which could not be loaded.

Resolved 💬 19 comments Opened Mar 5, 2026 by phoenixai-solutions Closed Apr 24, 2026
💡 Likely answer: A maintainer (claude[bot], contributor) responded on this thread — see the highlighted reply below.

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When trying to activate voice in ClaudeCode (Version 2.1.69) via Windows Powershell I get teh following error:
Voice recording requires the native audio module, which could not be loaded.

Trying to troubleshoot with Claude direct highlights:
The /voice feature on Windows requires a native audio-capture.node binary at audio-capture/x64-win32/audio-capture.node inside the Claude Code package, and it's completely missing from your installation.

I reinstalled Claude and issues remains so I cant use /voice.

What Should Happen?

I should be able activate the /voice command and use voice with Claude Code.

Error Messages/Logs

Output from Claude:
Bug: /voice command fails on Windows — native audio module not bundled

  Environment:
  - Claude Code: v2.1.69 (installed via npm install -g @anthropic-ai/claude-code)
  - Node.js: v20.20.0
  - npm: 11.2.0
  - Platform: x64-win32
  - OS: Windows 11 Home 10.0.26100

Error message:
Voice recording requires the native audio module, which could not be loaded.

Root cause:
The audio-capture/ directory is entirely missing from the npm package. The code in checkRecordingAvailability() expects a native binary at audio-capture/x64-win32/audio-capture.node, but no audio-capture/ directory is shipped in the package. The vendor/ directory only contains ripgrep/.

On non-Windows platforms, the code falls back to SoX (rec command), but on Windows the only supported path is the native module — so there is no fallback and voice mode is completely unavailable.

Steps to Reproduce

  1. Open Windows Powershell
  2. Run Claude
  3. Type /voice
  4. Hit enter

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.69

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

19 Comments

github-actions[bot] · 4 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/30695
  2. https://github.com/anthropics/claude-code/issues/30915
  3. https://github.com/anthropics/claude-code/issues/31025

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

MethCDN · 4 months ago

please solve it, we pay for it and we cant using it.

selimoksuz · 4 months ago

Windows x64 - audio-capture.node missing from npm package

Running Claude Code v2.1.72 on Windows 11 x64 (installed via npm).

Issue: The audio-capture directory is completely missing from the npm package. The code in cli.js constructs the path as ../audio-capture/x64-win32/audio-capture.node relative to import.meta.url, but this directory does not exist in the package.

Verified workarounds that do NOT work:

  • WSL2: Voice mode explicitly blocked (Voice mode is not supported in WSL because audio devices are not available)
  • VoiceMode MCP with local Whisper: Fails on Windows due to missing fcntl module
  • Setting AUDIO_CAPTURE_NODE_PATH env variable: No binary available to point to

Request: Please include audio-capture/x64-win32/audio-capture.node in the npm package distribution, or provide an official download link for the binary.

materemias · 4 months ago

Platform: Linux (Arch Linux, kernel 6.18.9)
Claude Code version: 2.1.72
Installation: ~/.local/share/claude/versions/2.1.72

Same issue here — no audio capture binaries are bundled in the installation at all. Running find across the entire Claude installation directory returns zero results for any audio*, voice*, or speech* files.

The /voice command doesn't appear as an available slash command, which I assume is due to the 5% rollout gate, but wanted to flag that even once it's enabled, the native module would be missing on this platform.

Would love to see Linux support included in the voice mode rollout.

stanicio · 4 months ago

Same issue here.

  • Claude Code version: 2.1.73
  • OS: Windows 11 Pro Build 26200 (x64)
  • Shell: Git Bash
  • Error: Voice recording requires the native audio module, which could not be loaded.

The audio-capture.node binary is not bundled with the Windows distribution. Would appreciate a fix or a SoX/ffmpeg fallback as suggested in #32249.

Promethia1 · 4 months ago

Having this issue also on Windows! Please fix I'd love to have this option.

aditya-MHA · 4 months ago

Is this happening only for Windows?

Promethia1 · 4 months ago
Is this happening only for Windows?

Yes it works on MacOS.

biketrader-afk · 4 months ago

✅ Working Fix for /voice on Windows — SoX Fallback Patch

I've built and tested a complete fix that enables /voice push-to-talk on Windows 10/11.

The Problem

/voice fails on Windows with:

Voice recording requires the native audio module, which could not be loaded.

The native audio-capture.node binary isn't bundled for win32, and the SoX fallback path (which works on macOS/Linux) is explicitly blocked on Windows with three process.platform === "win32" guards.

The Fix (6 targeted patches to cli.js)

| # | Location | Change | Why |
|---|----------|--------|-----|
| 1 | checkRecordingAvailability | Remove win32 early-reject | Let it fall through to SoX |
| 2 | checkVoiceDependencies | Remove win32 early-reject | Same |
| 3 | startRecording | Remove win32 early-return | Allow SoX path |
| 4 | SoX spawn call | recsox -t waveaudio default | Windows SoX has no rec binary; needs explicit waveaudio driver |
| 5 | Dependency check | dl("rec")dl("sox") on win32 | Windows uses sox.exe |
| 6 | Availability check | dl("rec")dl("sox") on win32 | Same |

Key Technical Detail

On macOS/Linux the fallback runs:

rec -q --buffer 1024 -t raw -r 16000 -e signed -b 16 -c 1 -

On Windows, SoX doesn't ship rec and can't auto-detect the audio device. The working equivalent is:

sox -t waveaudio default -q --buffer 1024 -t raw -r 16000 -e signed -b 16 -c 1 -

Tested On

  • Windows 11 Home 10.0.26200
  • Claude Code v2.1.74
  • SoX v14.4.2 (installed via winget install ChrisBagwell.SoX)
  • Push-to-talk recording confirmed working

Community Patch (one-click installer)

https://github.com/biketrader-afk/claude-voice-windows

Installs SoX, patches cli.js, verifies audio capture. Includes uninstall/restore.

Ask

Could the team consider adding native SoX fallback support for Windows? The changes are minimal — remove 3 platform guards and add a Windows-specific SoX command in the spawn call. Happy to help test any implementation.

LaszloRobert · 4 months ago

Same here

taqyon · 4 months ago

Still happening on Windows 11 Pro (build 26200), Claude Code v2.1.74, Node v24.13.0.

Running /voice gives:

Voice recording requires the native audio module, which could not be loaded.

No workaround available — the native audio-capture.node binary is not bundled in the npm package for Windows, and there's no SoX fallback like on Linux/macOS.

Would love to see this resolved — either by shipping the native module for Windows or implementing the SoX fallback as proposed in #32249. Thanks!

biketrader-afk · 4 months ago

@taqyon Same setup here — Windows 11, same build. I put together a fix that patches cli.js to use SoX for audio capture instead of the missing native module.

One-click install, backs up your originals: https://github.com/biketrader-afk/claude-voice-windows

Tested on the exact same config you're running (Win 11 build 26200, v2.1.74). Push-to-talk works immediately after.

biketrader-afk · 4 months ago

@LaszloRobert @aditya-MHA @Promethia1 There's a working fix available — patches cli.js to use SoX for audio capture on Windows instead of the missing native module.

One-click install: https://github.com/biketrader-afk/claude-voice-windows

Tested on Windows 11 Home and confirmed working on Windows 10 as well. Push-to-talk works immediately after running the installer.

jpentwickler · 4 months ago

It seems like I do not get the error anymore that the native audio module is required. Now I get "Voice connection failed. Check your network and try again."
Anybody else experiencing this ?

taqyon · 4 months ago

Hi! Thanks for the message! Everything is working fine on Windows now! Awesome!

Telomelonia · 3 months ago

People facing this issue, switch to the native installer instead of npm, it worked for me

StefanIgnjatovic12 · 3 months ago
## ✅ Working Fix for /voice on Windows — SoX Fallback Patch I've built and tested a complete fix that enables /voice push-to-talk on Windows 10/11. ### The Problem /voice fails on Windows with: `` Voice recording requires the native audio module, which could not be loaded. ` The native audio-capture.node binary isn't bundled for win32, and the SoX fallback path (which works on macOS/Linux) is explicitly blocked on Windows with three process.platform === "win32" guards. ### The Fix (6 targeted patches to cli.js) # Location Change Why 1 checkRecordingAvailability Remove win32 early-reject Let it fall through to SoX 2 checkVoiceDependencies Remove win32 early-reject Same 3 startRecording Remove win32 early-return Allow SoX path 4 SoX spawn call recsox -t waveaudio default Windows SoX has no rec binary; needs explicit waveaudio driver 5 Dependency check dl("rec")dl("sox") on win32 Windows uses sox.exe 6 Availability check dl("rec")dl("sox") on win32 Same ### Key Technical Detail On macOS/Linux the fallback runs: ` rec -q --buffer 1024 -t raw -r 16000 -e signed -b 16 -c 1 - ` On Windows, SoX doesn't ship rec and can't auto-detect the audio device. The working equivalent is: ` sox -t waveaudio default -q --buffer 1024 -t raw -r 16000 -e signed -b 16 -c 1 - ` ### Tested On * Windows 11 Home 10.0.26200 * Claude Code v2.1.74 * SoX v14.4.2 (installed via winget install ChrisBagwell.SoX`) * Push-to-talk recording confirmed working ### Community Patch (one-click installer) https://github.com/biketrader-afk/claude-voice-windows Installs SoX, patches cli.js, verifies audio capture. Includes uninstall/restore. ### Ask Could the team consider adding native SoX fallback support for Windows? The changes are minimal — remove 3 platform guards and add a Windows-specific SoX command in the spawn call. Happy to help test any implementation.

thanks for this, works for me now

claude[bot] contributor · 2 months ago

This issue was fixed as of version 2.1.76.

github-actions[bot] · 2 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.