Web Assembly streaming Opus decoder
npm install opus-decoderopus-decoderopus-decoder is a Web Assembly Opus audio decoder.
* 85.6 KiB minified bundle size
* Browser and NodeJS support
* Built in Web Worker support
* Multichannel decoding (up to 255 channels)
* Based on libopus
This library is intended for users that already have Opus frames extracted from a container, i.e. (Ogg, Matroska (WEBM), or ISOBMFF (mp4)). See ogg-opus-decoder if you have an Ogg Opus file to decode.
See the homepage of this repository for more Web Assembly audio decoders like this one.
Run npm i opus-decoder
``javascript
import { OpusDecoder } from 'opus-decoder';
const decoder = new OpusDecoder();
``
* Or download the build and include it as a script.
html`
* Note that the script must be read using UTF-8 character encoding. If running in a browser, the