All models

SoundStream

A neural audio codec that encodes a waveform, quantizes it with a residual vector quantizer and decodes it back.

Audio and speech · 553 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (18 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
36.2M
Operations
553
Framework
PyTorch
Recurrent
No
Published
IEEE/ACM Transactions on Audio Speech and Language Processing (arXiv 2021)
Cited by
626 (as of 27 October 2026)
Authors
Neil Zeghidour, Alejandro Luebs, Ahmed Omran and others
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m20502
Graph hash
6776821cdbd8da19bdffe8503e1f22bbe3594e9310d5b61bf18af5abfb2b0f93
Skeleton hash
07f1bcb265227df0ec3146728e9ca164a9e95b5062c55a9233771ec33bd554a6
Architecture hash
b0a2a5e3257e3ef9ccd874d76f288f4591095a4d930d22c63b6e248ff8e27d24
Diagram SHA-256
fa15f5dbe71513a4561f4585dcf3fd6042d93f38975e9d1a4dd3916ea340af75
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

SoundStream is a neural audio codec: a network that compresses speech, music and general audio at bitrates normally targeted by speech-tailored codecs. It consists of three building blocks. An encoder maps the waveform to a sequence of embeddings, a residual vector quantizer replaces each embedding by the sum of vectors from a set of finite codebooks, and a decoder produces a lossy reconstruction from the quantized embeddings.

The encoder and decoder are fully convolutional, and all convolutions are causal to guarantee real-time inference. With four encoder blocks and strides (2, 4, 5, 8), one embedding is computed every 320 input samples. The model is trained end-to-end together with a discriminator, combining adversarial and reconstruction losses. Structured dropout applied to the quantizer layers during training lets a single model operate across bitrates from 3 kbps to 18 kbps.

In the paper's subjective evaluations on audio at a 24 kHz sampling rate, SoundStream at 3 kbps outperforms Opus at 12 kbps and approaches EVS at 9.6 kbps. The paper also reports that the model supports streamable inference and runs in real time on a smartphone CPU.

Key idea. SoundStream trains a fully convolutional encoder and decoder jointly with a residual vector quantizer, giving one audio codec that works across bitrates from 3 kbps to 18 kbps.

  • SoundStream
  • neural audio codec
  • audio compression
  • residual vector quantizer
  • RVQ
  • audio tokenizer
  • low bitrate audio coding
  • end-to-end audio codec

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{zeghidour2021soundstreamendtoendneuralaudio,
      title={SoundStream: An End-to-End Neural Audio Codec}, 
      author={Neil Zeghidour and Alejandro Luebs and Ahmed Omran and Jan Skoglund and Marco Tagliasacchi},
      year={2021},
      eprint={2107.03312},
      archivePrefix={arXiv},
      primaryClass={cs.SD},
      url={https://arxiv.org/abs/2107.03312}, 
}