# audio-decode

> Decode audio to AudioBuffer; unscoped alias of @audio/decode

Latest version **3.12.0** (published 2026-08-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install audio-decode
pnpm add audio-decode
yarn add audio-decode
bun add audio-decode
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.12.0 |
| Published | 2026-08-11 |
| First published | 2016-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 1 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 208 |
| Author | Dmitry Iv. |
| Maintainers | dfcreative, jamen, dy |
| Keywords | audio, decode, wav, mp3, flac, ogg, opus, aac, audiobuffer |

## Links

- npm: https://www.npmjs.com/package/audio-decode
- Repository: https://github.com/audiojs/decode
- Homepage: https://github.com/audiojs/decode/tree/master/packages/audio-decode#readme
- Issues: https://github.com/audiojs/decode/issues
- Funding: https://github.com/sponsors/audiojs
- npm.io page: https://npm.io/package/audio-decode

## Dependencies (1)

- [@audio/decode](https://npm.io/package/@audio/decode.md) ^3.11.1

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 3.12.0 (latest) — 2026-08-11
- 3.11.5 — 2026-08-04
- 3.11.4 — 2026-07-14
- 3.11.3 — 2026-07-14
- 3.11.2 — 2026-07-10
- 3.11.0 — 2026-06-22
- 3.10.3 — 2026-06-22
- 3.10.2 — 2026-06-11
- 3.10.1 — 2026-04-20
- 3.10.0 — 2026-04-20
- 3.9.3 — 2026-04-18
- 3.9.2 — 2026-04-18
- 3.9.1 — 2026-04-17
- 3.9.0 — 2026-04-10
- 3.8.1 — 2026-04-07
- … 43 more at https://npm.io/package/audio-decode/versions

## README

# 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`](https://npmjs.org/package/@audio/decode). Both names contain the same code. The scoped package is canonical and hosts the codec packages such as `@audio/decode-mp3` and `@audio/decode-flac`.

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

Full docs: [@audio/decode](https://github.com/audiojs/decode).

## License

[ॐ](https://github.com/krishnized/license/) · [MIT](./LICENSE)

---
_Source: https://npm.io/package/audio-decode · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
