encodec
High fidelity neural audio codec
Decision gist · record as of 2026-08-14
Yes, if you are conducting research on audio compression or need discrete audio codes for a non-commercial pipeline and can manage PyTorch as a dependency. No, if you need commercial licensing, active maintenance, or a lightweight codec for production systems. The noncommercial license and dormant maintenance status are the primary constraints.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8, PyTorch 1.11.0 or later, and external audio libraries; models auto-download via Torch Hub on first use.
- High install friction: requires Python 3.8 and PyTorch 1.11.0 or later.
- Maintenance is dormant—last release was 2022-10-25 and repository has not been updated since 2024-01-04, so expect no active bug fixes or dependency updates.
License · maintenance · safety
non-commercial license (noncommercial) — Licensed under CC-BY-NC 4.0 (noncommercial). You may use this package for research and personal projects, but commercial applications require explicit permission.
last release 2022-10-25 (1389 days) · last repo commit 2024-01-04 · 4,014 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 322,834 downloads/mo, #7,607 on PyPI
Alternatives
Verify before relying
pip install encodec
from encodec import EncodecModel
from encodec.utils import convert_audio
model = EncodecModel.encodec_model_24khz()
model.set_target_bandwidth(6.0)
encoded_frames = model.encode(wav)- Whether PyTorch installation complexity or GPU requirements pose practical barriers for typical users.
- Real-world audio quality trade-offs at different bitrates compared to other codecs.
- Whether the 40% additional compression from the language model is reliable across audio types.
- Actual runtime dependencies beyond what the package metadata declares.
What it is and what it does
EnCodec is a neural audio compression system that encodes audio into discrete codes at very low bitrates. It provides two pre-trained models: a causal 24 kHz model for mono audio and a non-causal 48 kHz model for stereo audio, each supporting multiple target bitrates. The codec can compress to 1.5, 3, 6, 12, or 24 kbps depending on the model, and includes an optional language model that can achieve up to 40% additional compression through entropy coding.
The package is designed for research and non-commercial use. It operates as both a command-line tool for direct audio compression and decompression, and a Python API for extracting discrete audio representations. Models are automatically downloaded via Torch Hub on first use. Installation requires Python 3.8 and a recent PyTorch version, making it a heavy dependency for projects that do not already use deep learning frameworks.
Use it for
- Research on neural audio compression and discrete audio representations for machine learning.
- Compressing audio archives to very low bitrates for storage in non-commercial settings.
- Extracting discrete codes from audio for use as input to downstream models.
- Comparing audio quality at different compression levels via the command-line interface.
- Prototyping audio codec improvements using the provided MS-STFT discriminator code.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are conducting research on audio compression or need discrete audio codes for a non-commercial pipeline and can manage PyTorch as a dependency.
No, if you need commercial licensing, active maintenance, or a lightweight codec for production systems. The noncommercial license and dormant maintenance status are the primary constraints.
Install
encodec on PyPI
Before you install
High install friction: requires Python 3.8 and PyTorch 1.11.0 or later. Maintenance is dormant—last release was 2022-10-25 and repository has not been updated since 2024-01-04, so expect no active bug fixes or dependency updates.
Requires Python 3.8, PyTorch 1.11.0 or later, and external audio libraries; models auto-download via Torch Hub on first use.
License in practice
Licensed under CC-BY-NC 4.0 (noncommercial). You may use this package for research and personal projects, but commercial applications require explicit permission.
Quickstart
pip install encodec
from encodec import EncodecModel
from encodec.utils import convert_audio
model = EncodecModel.encodec_model_24khz()
model.set_target_bandwidth(6.0)
encoded_frames = model.encode(wav)
Verify before relying
- Whether PyTorch installation complexity or GPU requirements pose practical barriers for typical users.
- Real-world audio quality trade-offs at different bitrates compared to other codecs.
- Whether the 40% additional compression from the language model is reliable across audio types.
- Actual runtime dependencies beyond what the package metadata declares.
Package facts
| License | non-commercial license noncommercial |
| Python support | Supports the current Python release >=3.8.0 |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Dormant 1,389 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 322,834 / month, #7,607 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Topic :: Multimedia :: Sound/AudioTopic :: Scientific/Engineering :: Artificial Intelligence |
Evidence: encodec-0.1.1.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “neural audio compression”
- encodecEnCodec is a neural audio codec that compresses audio to low bitrates…
- snacSNAC compresses audio into discrete hierarchical tokens at low…
- descript-audio-codecCompresses audio into discrete codes at 8 kbps bitrate and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also descript-audio-codec · snac · vocos · resemble-perth · pcodec · opuslib-next · opuslib · silk-python · openunmix · numcodecs