play.js - play sound files from node.js to your speakers, simple as cake and kid approved!


Installing npm (node package manager)
curl http://npmjs.org/install.sh | sh
Installing play.js
npm install play
USAGE
var play = require('play');
// play with a callback
play.sound('./wavs/sfx/intro.wav', function(){
// these are all "fire and forget", no callback
play.sound('./wavs/sfx/alarm.wav');
play.sound('./wavs/sfx/crinkle.wav');
play.sound('./wavs/sfx/flush.wav');
play.sound('./wavs/sfx/ding.wav');
});
DEMO
cd examples
node demo.js
http://github.com/marak/JSONloops
drum party, now go to JSONloops =>Requirements
Mac OS and node.js