npm.io
3.11.4 • Published 1 week ago

audio-decode

Licence
MIT
Version
3.11.4
Deps
1
Size
2 kB
Vulns
0
Weekly
0
Stars
204
DeprecatedThis package is deprecated

audio-decode

Decode audio (wav, mp3, flac, ogg, opus, aac, qoa, aiff, caf, webm, amr, wma) to AudioBuffer.

audio-decode is the unscoped alias of @audio/decode — same code, same releases. Both names are maintained; the scope is canonical and hosts the per-codec atoms (@audio/decode-mp3, @audio/decode-flac, …).

import decode from 'audio-decode'
let audioBuffer = await decode(buf)

Full docs: @audio/decode.

Keywords