Web Assembly streaming Ogg Opus decoder
npm install ogg-opus-decoderogg-opus-decoderogg-opus-decoder is a Web Assembly Ogg Opus audio decoder
* 114.3 KiB minified bundle size (without machine learning enhancements)
* Uses the latest Opus 1.5 machine learning enhancements for high quality speech decoding
* Note: Bundle size increases to 4.0 MiB when machine learning enhancements are enabled
* Browser and NodeJS support
* Built in Web Worker support
* Multichannel decoding (up to 255 channels)
* Based on libopus and codec-parser
See the homepage of this repository for more Web Assembly audio decoders like this one.
Run npm i ogg-opus-decoder
``javascript
import { OggOpusDecoder } from 'ogg-opus-decoder';
const decoder = new OggOpusDecoder();
`ogg-opus-decoder.min.js
* Or download the build files here and load in script tag.`
html`
ogg-opus-decoder.opus-ml.min.js
* The build file is loaded at runtime when options.speechQualityEnhancement is set to "lace" or "nolace". You may exclude this file if you don't use this option.
* Note that the script must be read using UTF-8 character encoding. If running in a browser, the