Neural audio codecs: evaluate bitrate, quality, and real-time latency together
Neural codecs encode audio into learned discrete representations and reconstruct it with a matching model. Learn how bitrate, listening quality, streaming latency, compute, and decoder compatibility interact—and how to evaluate a candidate on your own audio.
Neural audio codecs: evaluate bitrate, quality, and real-time latency together
A neural audio codec compresses and reconstructs sound using representations learned by a neural network. An encoder turns a waveform into compact discrete codes, and a compatible decoder reconstructs audio from them. Learned reconstruction can sound natural at low bitrates, but the trade-off among quality, bitrate, latency, and compute depends on the model, settings, and input. The label “neural codec” alone does not guarantee general superiority or low delay.
The basic codec pipeline
A learned codec commonly has an encoder → quantizer → decoder pipeline. The encoder maps a waveform into a lower-rate latent representation; the quantizer restricts it to codes that can be transmitted or stored. Residual vector quantization (RVQ) successively uses codebooks to represent the remaining residual, so more codebooks generally carry more information. The receiver needs a compatible decoder, and the reconstruction is an approximation produced by the trained model, not the original waveform.
SoundStream jointly trains its encoder, decoder, and quantizer with reconstruction and adversarial losses. Its paper describes structured dropout across quantizer layers so one model can operate at multiple bitrates. EnCodec also uses residual quantization and an encoder-decoder, but its 24 kHz mono causal model and 48 kHz stereo non-causal model are different configurations. A claim that a model is “real time” for one sample rate, channel layout, or setup does not transfer automatically to another.
Low bitrate and low latency are separate goals
A lower bitrate reduces storage or network use, but may remove detail or introduce learned texture changes and artifacts. More codes or a larger decoder may improve reconstruction while increasing rate, memory, or computation. Longer frames or chunks can improve processing efficiency but increase algorithmic delay. Evaluate at least four things together: bitrate, perceptual reconstruction quality, latency, and compute on the target device.
As a concrete example, the EnCodec 2022 paper reported initial latency of about 13.3 ms for its 24 kHz streaming mono configuration and 1 second for its 48 kHz stereo non-streaming configuration. Those are results for the paper’s specific models and test setup, not general values for every neural codec or EnCodec deployment. Sample rate, channels, model path, and chunking can change the outcome.
Evaluate for the intended use
**Choose representative audio first.** Include the actual target domain—clean speech, noisy speech, music, environmental sound—plus relevant mono/stereo and sample-rate conditions. Include edge cases, since a model can produce more artifacts outside its training distribution.
**Encode candidates under the same conditions.** Keep source PCM, channels, sample rate, preprocessing, target bitrate, and chunking comparable. If you store only token streams, also preserve model weights/version and a compatible decoder.
**Use listening tests and signal metrics together.** A controlled blind listening comparison or MUSHRA-style test can assess perceived quality. Objective scores such as SI-SNR or ViSQOL can add information, but each measures different properties; no single metric proves perceived quality.
**Measure latency and runtime on the target device.** Record time to first output separately from sustained throughput, plus CPU/GPU, memory, batch size, chunk length, and whether entropy coding is enabled. Fast offline throughput does not prove real-time performance on mobile or in a browser.
**Make results reproducible.** Report model and weight version, license, sample rate, channels, bitrate, latency definition and test setup, audio domain, listening-test design, and score aggregation.
Questions to ask before choosing a neural codec
Can both endpoints access the decoder and required model weights, and are their versions compatible?
Has listening quality been evaluated for the target domain, sample rate, and channel layout?
Does the system handle packet loss, long playback, chunk boundaries, and streaming startup latency?
Can the target device sustain real-time inference within power, memory, and model-size limits?
Do you need interoperability with standard codecs and long-term file preservation?
A conventional codec may be preferable when a standardized bitstream and broad decoder support are priorities. A learned codec may offer attractive quality at low bitrate for a particular content domain, but model distribution, compute, input distribution, and compatibility still need product-level evaluation. Choose using your actual signals, device, and real-time constraints, not a model name or paper score alone.
References
[SoundStream: An End-to-End Neural Audio Codec (2021)](https://arxiv.org/abs/2107.03312)
[High Fidelity Neural Audio Compression / EnCodec (2022)](https://arxiv.org/abs/2210.13438)
[AudioDec: An Open-source Streaming High-fidelity Neural Audio Codec (2023)](https://arxiv.org/abs/2305.16608)
[EnCodec implementation: model configurations and supported bitrates](https://github.com/facebookresearch/encodec)