Troubleshooting โ€บ Fix: Microphone Not Detected in OpenCode

Fix: Microphone Not Detected in OpenCode

Symptom: Typing /ptt shows "๐ŸŽค Recording..." but transcription returns "โš ๏ธ No audio captured" or sox errors appear in logs.

Common Causes

โš  sox not installed

โ†’ Install sox: sudo apt install sox (Linux) or brew install sox (macOS).

โš  Mic permission denied (Linux)

โ†’ Add user to audio group: sudo usermod -a -G audio $USER && exec su -l $USER.

โš  Mic permission denied (macOS)

โ†’ Grant mic access in System Settings > Privacy & Security > Microphone. Grant it to Terminal/iTerm2.

โš  Wrong default input device

โ†’ Test with sox -d -t wav - -n stat. Speak โ€” you should see levels. If not, set default input in system audio settings.

โš  sox fails with device error

โ†’ Try sox --default-device -t wav - or specify the device explicitly with -t alsa plughw:0,0.

Fallback

Walkie-talkie requires a working mic. For text-only use, the plugin's TTS and text-based interruption still work without mic access.

Still having trouble?

Contact support โ†’