# @audio/decode-qoa

> Decode QOA audio to PCM samples

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

## Install

```sh
npm install @audio/decode-qoa
pnpm add @audio/decode-qoa
yarn add @audio/decode-qoa
bun add @audio/decode-qoa
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2026-08-11 |
| First published | 2026-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 1 |
| Unpacked size | 12.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 208 |
| Author | audiojs |
| Maintainers | jamen, dfcreative, dy |
| Keywords | qoa, audio, decode, decoder, quite-ok-audio |

## Links

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

## Dependencies (1)

- [qoa-format](https://npm.io/package/qoa-format.md) ^1.0.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

- 1.2.0 (latest) — 2026-08-11
- 1.1.3 — 2026-07-14
- 1.1.2 — 2026-07-11
- 1.1.1 — 2026-07-10
- 1.1.0 — 2026-07-10
- 1.0.0 — 2026-04-10

## README

# @audio/decode-qoa

Decode QOA (Quite OK Audio) to PCM samples with [qoa-format](https://github.com/nicokoenig/qoa-format).

```js
import decode, { decoder } from '@audio/decode-qoa'

let { channelData, sampleRate } = decode(qoaBytes)

let dec = decoder()
let result = dec.decode(completeQoaFile)
dec.free()
```

`decode()` and `decoder()` are synchronous. The decoder is stateless, so every chunk must contain a complete QOA file.

## License

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

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