connorhartley-archive / out

(Replaced) Output PCM data to a device or library using audio and mpg123.
MIT License
1 stars 0 forks source link

Audio out NPM version Dependencies

Output an Audio object to the speaker.

Output an Audio object to the speaker.

var Audio = require('audio');
var out = require('audio-out');
var random = require('crypto').randomBytes;

// Create 5s random audio and output.
var foo = new Audio(random(800 * 5), {rate: 800});
out(foo);

Installation

$ npm install --save audio-out

Note: Speaker may have special installation on Debian/Ubuntu.

$ sudo apt-get install libasound2-dev

API

out(audio)

Output a given audio to the speaker.

Returns a Speaker instance.

Credits

jamen
Jamen Marzonie

License

MIT © Jamen Marzonie