| license: mit | |
| base_model: facebook/encodec_48khz | |
| library_name: onnx | |
| tags: | |
| - encodec | |
| - onnx | |
| - audio | |
| - audio-codec | |
| # encodec-rs ONNX bundles | |
| ONNX Runtime bundles used by | |
| [`wavey-ai/encodec-rs`](https://github.com/wavey-ai/encodec-rs) and the | |
| Bitneedle browser presser. | |
| The bundles target the EnCodec 48 kHz stereo model family and include: | |
| - `encodec_48khz_6kbps` | |
| - `encodec_48khz_12kbps` | |
| Each bundle contains: | |
| - `bundle.json` | |
| - `encode_frame.onnx` | |
| - `decode_frame.onnx` | |
| - `lm_weights_q8.bin` | |
| The ONNX frame models are converted for the `encodec-rs` runtime. The q8 LM | |
| weights are the deterministic quantized language-model weights used by the | |
| `.ecdc` entropy path. | |
| ## Usage | |
| Download the bundles into an `encodec-rs` checkout: | |
| ```bash | |
| huggingface-cli download wavey-ai/encodec-rs-onnx-bundles \ | |
| --local-dir . \ | |
| --include 'onnx-bundles/**' | |
| ``` | |
| Direct browser URLs are available through Hugging Face's `resolve` endpoint, for | |
| example: | |
| ```text | |
| https://huggingface.co/wavey-ai/encodec-rs-onnx-bundles/resolve/main/onnx-bundles/encodec_48khz_6kbps/bundle.json | |
| ``` | |
| ## License | |
| The source EnCodec model is published as | |
| [`facebook/encodec_48khz`](https://huggingface.co/facebook/encodec_48khz) under | |
| the MIT license. The surrounding `encodec-rs` runtime is also MIT licensed. | |