node-speaker
Output raw PCM audio data to the speakers
A Writable stream instance that accepts raw PCM audio data and outputs it to the
speakers. The output is backed by mpg123
's audio output modules, which in turn
use any number of audio backends commonly found on Operating Systems these days.
Installation
Simply compile and install node-speaker
using npm
:
$ npm install speaker
Example
var Speaker = require('speaker')
var speaker = new Speaker({
channels: 2,
bitDepth: 16,
sampleRate: 44100
});
process.stdin.pipe(speaker);
API
Speaker class
TODO: document...