audio-out

Output an Audio object to the speaker.

Usage no npm install needed!

<script type="module">
  import audioOut from 'https://cdn.skypack.dev/audio-out';
</script>

README

audio out NPM version Build Status Dependencies

Output an Audio object to the speaker.

Output an Audio object to the speaker.

var Audio = require('audio');
var out = require('audio-out');

// Create audio.
var foo = new Audio(Buffer.allocUnsafe(800 * 4), {
  depth: 16,
  rate: 800
});

// Output audio to speakers.
out(foo);

Installation

$ npm install --save audio-out

API

out(audio)

Output a given audio to the speaker.

  • audio (Audio): Audio to output to the speaker.

Returns a Speaker instance.

Credits

jamen
Jamen Marzonie

License

MIT © Jamen Marzonie