Abe Yaar Sound
A polished VS Code extension that plays fun audio on terminal/task success and failure.
Overview
Abe Yaar Sound plays different audio feedback for:
- terminal or task success
- terminal or task failure
The sounds are configurable in VS Code settings so users can choose their favorite success and error clips.
Features
- Multiple success sounds
- Multiple error sounds
- User-selectable sounds via VS Code settings
- Terminal and task execution detection
- macOS, Linux, and Windows playback support
Installation
Local development
- Open the project folder in VS Code.
- Install dependencies:
npm install
- Compile the extension:
npm run compile
- Press
F5 to launch the Extension Development Host.
Install from .vsix
- Package the extension if needed:
npm run compile
- Install the VSIX from the Extensions view:
- click the
... menu
- select
Install from VSIX...
- choose
abe-yaar-sound-0.0.1.vsix
Usage
In the Extension Development Host or in your installed extension:
- Open an integrated terminal in VS Code.
- Run a command.
- Listen for the sound:
- success sound when
exit code 0
- error sound when the command exits with a non-zero code
Example commands
- Success:
echo "hello world"
- Failure:
invalidcommand
Settings
Search for abeYaar in VS Code settings. The extension exposes:
abeYaar.enableSound
- Enable or disable all audio feedback.
abeYaar.successSound
- Choose the success sound file:
phaad_diya.mp3
mast_kaam.mp3
ho_gaya.mp3
abeYaar.errorSound
- Choose the error sound file:
abe_yar.mp3
kya_kar_raha_hai.mp3
fail_hogaya.mp3
Example settings
{
"abeYaar.enableSound": true,
"abeYaar.successSound": "mast_kaam.mp3",
"abeYaar.errorSound": "fail_hogaya.mp3"
}
Audio Files
The extension includes these audio folders:
audio/success/
phaad_diya.mp3
mast_kaam.mp3
ho_gaya.mp3
audio/error/
abe_yar.mp3
kya_kar_raha_hai.mp3
fail_hogaya.mp3
Troubleshooting
- Make sure audio is not muted on your system.
- Ensure the extension is running in the Extension Development Host when testing locally.
- Open Developer Tools in the dev host to inspect logs:
Help → Toggle Developer Tools
- view messages in the Console tab.
- If the extension does not activate, restart VS Code.
Developer Notes
The extension uses native audio playback:
- macOS:
afplay
- Linux:
mpg123 or aplay
- Windows: PowerShell MediaPlayer
If any of those commands are unavailable, audio playback may fail.
Author: Mohasin Haque
| |