Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

jamen/audio-decode-wav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Audio decode-wav Build Status Gitter

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, ...]

Installation

$ npm install --save audio-decode-wav

API

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.

Credits

@jamen
Jamen Marzonie

License

MIT © Jamen Marzonie

About

Decode a WAV buffer into an Audio object.

Resources

License

Stars

Watchers

Forks

Packages

No packages published