Voice on Error
Automatically plays a custom audio clip whenever a terminal command fails (non-zero exit code).
Setup
- Install the extension
- Open Command Palette (
Cmd+Shift+P) → "Voice on Error: Set Audio File"
- Pick any
.mp3, .wav, or .m4a file
- That's it! Any failing terminal command will now play your audio clip.
Commands
| Command |
Description |
Voice on Error: Set Audio File |
Choose your audio file |
Voice on Error: Test Sound |
Play the sound to test it |
Requirements
- macOS (uses
afplay for audio playback)
- VS Code 1.93+ with shell integration enabled
How It Works
The extension listens for terminal shell execution events. When a command exits with a non-zero code, it plays your configured audio file.
| |