System Sounds for Node.js
This module is written for OSX.
This module provides two methods:
- .play();
- .playSync()
Both methods take an integer representing one of the following sounds:
- Basso
- Blow
- Bottle
- Frog
- Funk
- Hero
- Morse
- Ping
- Pop
- Purr
- Sosumi
- Submarine
- Tink
Note:
If a program ends before the sound triggered by .play() is finished, the sound will be interrupted. With .playSync() this is not the case, as it blocks the hole program(!) until the sound has finished playing.
Choose wisely :)