# @audio/decode-vorbis

> Decode Ogg Vorbis audio with libvorbis WASM

Latest version **1.3.2** (published 2026-08-12) · MIT license · 0 weekly downloads

## Install

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

## 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.3.2 |
| Published | 2026-08-12 |
| First published | 2026-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 2 |
| Unpacked size | 173.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 208 |
| Author | audiojs |
| Maintainers | jamen, dfcreative, dy |
| Keywords | vorbis, ogg, audio, decode, decoder, wasm |

## Links

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

## Dependencies (2)

- [codec-parser](https://npm.io/package/codec-parser.md) ~2.5.0
- [@wasm-audio-decoders/ogg-vorbis](https://npm.io/package/@wasm-audio-decoders/ogg-vorbis.md) ~0.1.20

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.3.2 (latest) — 2026-08-12
- 1.3.1 — 2026-08-12
- 1.3.0 — 2026-08-11
- 1.2.3 — 2026-07-14
- 1.2.2 — 2026-07-11
- 1.2.1 — 2026-07-10
- 1.2.0 — 2026-07-10
- 1.1.1 — 2026-06-22
- 1.1.0 — 2026-06-22
- 1.0.0 — 2026-04-10

## README

# @audio/decode-vorbis

Decode Ogg Vorbis audio with [@wasm-audio-decoders/ogg-vorbis](https://github.com/eshaz/wasm-audio-decoders).

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

let { channelData, sampleRate } = await decode(oggBytes)

let dec = await decoder() // initialize WASM
let a = dec.decode(chunk1)
let b = dec.decode(chunk2)
let tail = dec.flush()
dec.free()
```

`decoder()` initializes asynchronously. `decode()` and `flush()` are synchronous.
`decode()` accepts consecutive complete Ogg files. For chunked input, `flush()` ends
the decoder.

## Metadata

Read Vorbis comments and cover art without decoding audio:

```js
import { parseMeta } from '@audio/decode-vorbis/meta'

let { meta, sampleRate } = parseMeta(oggBytes)
```

## License

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

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