Every time you type a command in the VS Code integrated terminal and it fails (returns a non-zero exit code), the extension picks a random audio clip and plays it. Simple as that.
Examples of Triggers
# These will trigger a sound alert:
blahblah # command not found
git pushh # typo in command
npm rn start # wrong subcommand
python nofile.py # file doesn't exist
Requirements
VS Code 1.93+ with Terminal Shell Integration enabled (on by default)
Windows: No extra setup needed
macOS: No extra setup needed (uses built-in afplay)
Linux: Needs ffplay, mpv, or paplay (install one if not present)
Installation
Open VS Code
Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
Search for "Terminal Sound Alert"
Click Install
Done! Start typing wrong commands to hear the alerts.