Up nextNext guide
Audio Embeddings and Representation Learning
Audio AI
Audio AI GUIDE
EnCodec is Meta's high-fidelity neural audio codec that compresses speech and music at very low bitrates with quality rivaling far heavier formats.
Listen to this guideAI-narrated · ~2 min
It matters because it underpins modern generative audio systems and ships in open-source form for anyone to use.
Released by Meta AI in 2022, EnCodec follows the SoundStream blueprint of an encoder, a residual vector quantizer (RVQ), and a decoder trained end to end, but adds several refinements. It uses a streaming-capable convolutional encoder, multi-scale spectrogram and time-domain reconstruction losses, and adversarial discriminators for perceptual quality. A notable contribution is a small Transformer-based entropy model that further compresses the quantized codes losslessly, squeezing extra bits out without quality loss. EnCodec also introduces a balancer that automatically scales the many competing training losses so they stay stable. It handles 24 kHz monophonic and 48 kHz stereo audio, operates across bitrates such as 1.5, 3, 6, and 12 kbps, and at 6 kbps reaches quality comparable to MP3 at 64 kbps. Its tokens power Meta's MusicGen and AudioGen.
Tokenizing audio for Meta's MusicGen and AudioGen text-to-audio generators
Compressing 24 kHz speech to 1.5-6 kbps for bandwidth-limited transmission
Encoding 48 kHz stereo music with quality near MP3 at much higher bitrates
Serving as an open-source drop-in codec for research and audio ML pipelines via the released checkpoints
EnCodec is already the default tokenizer for several open generative audio models, and its descendants are pushing higher fidelity at lower bitrates, full stereo and music-grade reconstruction, and tighter integration with text-to-audio and text-to-music generators. Expect wider adoption in low-bandwidth communication, real-time streaming, and as the standard 'audio token' layer that lets large language-model-style architectures read and write sound.
Free newsletter
Three verified AI stories every weekday morning, written in plain English. Free forever, no ads.
One email each weekday. Unsubscribe in one click. We never sell or share your address.
Test yourself
Instant feedback on every answer, and a shareable certificate with a verifiable ID once you pass a course.
Support free AI education. AI Understanding is a 501(c)(3) nonprofit — no ads, no paywall, ever. Make a donation
EnCodec is Meta's high-fidelity neural audio codec that compresses speech and music at very low bitrates with quality rivaling far heavier formats. It matters because it underpins modern generative audio systems and ships in open-source form for anyone to use.
EnCodec was introduced by Meta AI (FAIR) in 2022 as a high-fidelity neural audio codec.
EnCodec trains a small Transformer to predict token probabilities and arithmetic-codes them, achieving additional lossless compression on top of RVQ.
EnCodec at 6 kbps reaches subjective quality similar to MP3 at 64 kbps, a large efficiency gain.
With many losses (reconstruction, spectral, adversarial), the balancer rescales their gradients so no single objective dominates, stabilizing training.
Like SoundStream, EnCodec uses residual vector quantization to discretize encoder embeddings into stacked codebook indices.
Keep learning
More guides picked for this topic
Up nextNext guide
Audio Embeddings and Representation Learning
Audio AI