Encodec.cpp, a portable C++ implementation of Meta's EnCodec using Eigen [P]
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 -->   submitted by   <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>   <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