This guide provides instructions for testing the microphone functionality across different operating systems.
Before testing, ensure you have the required command-line tools installed:
-
macOS: SoX (
reccommand)brew install sox -
Windows: SoX Download from SourceForge
-
Linux: ALSA tools
sudo apt-get install alsa-utils
-
Open VS Code with the Vibe-Coder extension installed
-
Run the command:
Vibe-Coder: List Available Microphone Devices- This should display available microphone devices in the output panel
- If you see an error, check that the required command-line tool is installed
-
Start dictation or voice agent mode
- If the microphone works, you should see audio data being processed
- Check the Output panel (select "Vibe-Coder" from the dropdown) for logs
- Run the command:
Vibe-Coder: List Available Microphone Devices - Note a specific device ID from the list
- Open VS Code settings (File > Preferences > Settings)
- Search for "vibeCoder.microphone"
- Set the appropriate device setting for your platform:
- macOS:
vibeCoder.microphone.deviceMacOS - Windows:
vibeCoder.microphone.deviceWindows - Linux:
vibeCoder.microphone.deviceLinux
- macOS:
- Start dictation or voice agent mode again
- Verify in the logs that the specified device is being used
- The
reccommand should be available after installing SoX - If you installed SoX but
recis not found, try running:brew link --force sox - Common device names: "default", specific device names from
system_profiler SPAudioDataType
- After installing SoX, ensure it's in your PATH
- You may need to restart VS Code after installation
- Common device names: "default", numeric indices (0, 1, 2)
- The
arecordcommand should be available after installing ALSA tools - Common device formats:
plughw:0,0(first card, first device)plughw:1,0(second card, first device)default- Device names from
arecord -Loutput
If you see "Command not found" errors:
- Verify the tool is installed using terminal:
- macOS:
which rec - Windows:
where sox - Linux:
which arecord
- macOS:
- If installed but not found, check your PATH environment variable
- For macOS, try
brew link --force sox
If you see device-related errors:
- List available devices using
Vibe-Coder: List Available Microphone Devices - Try using "default" as the device name
- Check system permissions for microphone access
- Try different device names/IDs from the list
If you encounter audio format errors:
- Check the logs for specific error messages
- Try modifying the audio format settings in code if necessary
- Ensure your microphone supports the requested format
When reporting issues, please include:
- Your operating system version
- The command-line tool version:
- macOS/Windows:
sox --version - Linux:
arecord --version
- macOS/Windows:
- The exact error message from the Output panel
- Steps to reproduce the issue
- Any custom configuration you've applied
For developers wanting to test changes to the microphone wrapper:
- Enable verbose logging by adding
console.logstatements - Test with different audio formats by modifying the options
- Test error handling by intentionally using invalid device names
- Test with different microphone hardware if available