Decode a WAV buffer into an Audio object.
Turn a WAV-encoded buffer into an Audio
object.
var decodeWav = require('audio-decode-wav');
var raw = fs.readFileSync('./somefile.wav');
var audio = decodeWav(raw);
audio.slice(100, 200);
// => [10, 2, -2, 10, ...]
$ npm install --save audio-decode-wav
Decode a WAV buffer into an Audio
object.
wav
(Buffer
): A WAV-encoded buffer you want to decode.
Returns an Audio
object initialized with the WAV's data.
Jamen Marzonie |
MIT © Jamen Marzonie