@audio/ decode-wav
Status calibrated
npm2.0.0licenseMIT
Decode WAV audio to PCM samples
Overview
- Install
- Updated
- Family
- decode, 25 packages under it
- Tags
- read & write
Decode WAV/RIFF audio in pure JavaScript. Supports PCM, float, A-law, µ-law, IMA ADPCM, and MS ADPCM.
import decode, { decoder } from '@audio/decode-wav'
let { channelData, sampleRate } = decode(bytes)
let dec = decoder()
let result = dec.decode(chunk)
dec.free()
decode() and decoder() are synchronous. The ./meta subpath reads embedded metadata. The ./audio subpath registers the codec with audio.
License
ॐ · MIT