Skip to content

feat(voice): support Linux and WSL audio capture - #8

Open
BlockedPath wants to merge 1 commit into
mainfrom
wsl-voice-linux-helper
Open

feat(voice): support Linux and WSL audio capture#8
BlockedPath wants to merge 1 commit into
mainfrom
wsl-voice-linux-helper

Conversation

@BlockedPath

@BlockedPath BlockedPath commented Aug 21, 2026

Copy link
Copy Markdown
Owner

Static Badge

Adds Linux/WSL support for voice dictation using WSLg PulseAudio bridge.

Uses the verified WSL2 + zsh stack from this issue:

  • PULSE_SERVER=unix:/mnt/wslg/PulseServer (WSLg)
  • RDPSource/RDPSink via pactl info
  • .asoundrc type pulse fallback + .config/pulse/client.conf enable-shm=no
  • Tested with arecord -d 5 -f cd /tmp/test_mic.wav && aplay /tmp/test_mic.wav
  • Deps: pulseaudio pulseaudio-utils alsa-utils libasound2-plugins libasound2t64

Changes:

  • extensions/voice/linux-audio.sh (new): parec (primary) / arecord (fallback) -> 3200-byte s16le 16k mono -> base64 {"type":"audio"} JSON, same line-delimited protocol as macOS/Windows helpers (ready/audio/stopped/error)
  • extensions/voice/helpers.ts: isLinux()/isWSL() (/proc/version microsoft), isSupportedPlatform() now true on linux, ensureLinuxHelper() wired into ensureHelper()
  • Tests + docs updated

Fixes: Meta voice failed: Microphone permission was not granted on WSL (was darwin/win32 only)

@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d67464ed-5ac7-49e0-97d9-09e10b692859


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Cursor Bugbot was not running on this PR after the initial check poll, remaining signals completed without findings that need human review, and no approval policy requires human review. No reviewers were assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant