Troubleshooting โบ Fix: Microphone Not Detected in OpenCode
Symptom: Typing /ptt shows "๐ค Recording..." but transcription returns "โ ๏ธ No audio captured" or sox errors appear in logs.
โ 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.
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 โ