12 · 9 resources
Audio codecs and vocoders
Learning path: Go deeper
The final synthesis stage turns acoustic features (mel spectrograms) or discrete tokens back into a waveform: GAN vocoders do this for feature-based TTS, while neural audio codecs supply the discrete token space that modern codec-LM TTS predicts over. Codec choice sets the latency and quality floor for codec-LM TTS, because frame rate fixes how many autoregressive steps per second the LM must run and the codec's reconstruction quality caps how good the output can ever sound.
9 resources
- HiFi-GANgithub.com
The GAN vocoder that became the default mel-to-waveform decoder for feature-based TTS, using multi-period and multi-scale discriminators to hit near-studio quality while synthesizing far faster than real time on a single GPU.
- BigVGAN (NVIDIA)github.com
A universal neural vocoder that adds periodic (snake) activations and anti-aliasing to the generator and scales training to over 100M parameters, so it generalizes zero-shot to unseen speakers, languages, singing, and music without fine-tuning; pick it when you need one vocoder to cover many voices and domains.
- Vocosgithub.com
A vocoder that predicts STFT spectral coefficients and reconstructs audio with a single inverse Fourier transform instead of upsampling in the time domain, matching HiFi-GAN quality at roughly an order of magnitude lower compute; pick it for CPU or latency-bound inference.
- SoundStream (paper)arxiv.org
The foundational end-to-end neural codec that introduced the convolutional encoder, residual vector quantizer, and decoder pattern every token-based codec since has copied; read it to understand why discrete audio tokens exist and how RVQ trades bitrate against quality.
- EnCodec (Meta)github.com
The widely deployed RVQ codec with 24 kHz mono and 48 kHz stereo models spanning 1.5 to 24 kbps, shipped in Hugging Face Transformers and used as the token backend for AudioGen and MusicGen; the practical default when you need a codec with mature tooling.
- Descript Audio Codec (DAC)github.com
A high-fidelity RVQGAN codec that compresses 44.1 kHz audio to roughly 8 kbps (about 90x) with 9 RVQ codebooks and improved codebook usage, and works as a drop-in higher-quality replacement for EnCodec in audio language models.
- Mimi (Kyutai / Moshi)github.com
A fully streaming codec that runs at a 12.5 Hz frame rate and compresses 24 kHz audio to 1.1 kbps with only 80 ms of latency, splitting semantic and acoustic tokens so a codec-LM needs few autoregressive steps per second; pick it for real-time full-duplex voice agents.
- SNACgithub.com
A multi-scale RVQ codec that samples coarse tokens less often than fine ones, reaching about 0.98 kbps for 24 kHz speech and producing a hierarchical token structure that is easier for language models to predict; used by several open TTS stacks.
- WavTokenizer (paper)arxiv.org
A codec that collapses the RVQ stack to a single quantizer, encoding one second of 24 kHz audio in 40 to 75 tokens while keeping strong reconstruction; read it to see how far you can cut token count, and thus LM steps, before quality breaks.