npm.io
0.1.0 • Published 13 years ago

osx-system-sounds

Licence
MIT
Version
0.1.0
Deps
0
Vulns
0
Weekly
0
DeprecatedThis package is deprecated
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

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:

  1. Basso
  2. Blow
  3. Bottle
  4. Frog
  5. Funk
  6. Hero
  7. Morse
  8. Ping
  9. Pop
  10. Purr
  11. Sosumi
  12. Submarine
  13. 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 :)

Keywords