# Encodec.cpp, a portable C++ implementation of Meta's EnCodec using Eigen [P] — retained record

> Retained reddit record from reddit:MachineLearning.

Canonical: https://highsignal.app/data/records/62c89a4793fa2feb

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:MachineLearning)  published 2026-06-03 14:09 ingested 2026-06-04 09:47

[original source ↗](https://www.reddit.com/r/MachineLearning/comments/1tvqhic/encodeccpp_a_portable_c_implementation_of_metas/)

## retained text



```
<!-- SC_OFF --><div class="md"><p>I built a C++ implementation of Meta’s <a href="https://audiocraft.metademolab.com/encodec.html">EnCodec</a> using <a href="https://libeigen.gitlab.io">Eigen</a>. </p> <p>Github: <a href="https://github.com/pfeatherstone/encodec.cpp">https://github.com/pfeatherstone/encodec.cpp</a></p> <p>Motivation: - A lightweight implementation of EnCodec with no runtime dependencies, in C++ - No ML runtime - Easy integration in CMake project - Maximum performance on single-thread</p> <p>What it supports: - State-of-the-art audio codec - Audio tokenizer - Performance comparable to or exceeding onnxruntime (in my tests) - Dynamic sizes (no batches though) - Weights are compiled into the binary. No need to worry about weights files</p> <p>I'm looking for some feedback. Thank you very much.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Competitive_Act5981"> /u/Competitive_Act5981 </a> <br /> <span><a href="https://www.reddit.com/r/MachineLearning/comments/1tvqhic/encodeccpp_a_portable_c_implementation_of_metas/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/MachineLearning/comments/1tvqhic/encodeccpp_a_portable_c_implementation_of_metas/">[comments]</a></span>
```



document fetched 2026-06-04 09:47
