What is audio tokenization? Turning waveforms into discrete model codes
Audio tokens are model-specific codebook IDs. Learn how RVQ affects sequence length and detail, how semantic tokens differ, and what to check before reuse.
Audio tokenization maps short waveform frames to IDs in a finite codebook. Tokens form sequences for speech or music models, and a matching decoder can reconstruct an approximation. This differs from text subword tokenization. A neural codec uses an encoder, quantizer, and decoder; each token indexes a codebook learned by that model.
SoundStream uses residual vector quantization (RVQ): later stages encode residuals left by earlier ones. More stages may add information and reconstruction detail, but increase token count and sequence length. Its structured quantizer dropout enabled one model to run at multiple bitrates; that is a design feature, not a universal rule. Codec tokens aim to preserve acoustic information; semantic tokens may emphasize language-relevant structure. The distinction is not absolute.
Higher frame rates or more RVQ stages can capture detail while increasing sequence and compute costs. Token count alone does not determine file size because entropy coding, framing, headers, and side information also matter. Choose by task, verify sample rate, channels, frame interval, codebook, and model version, then test representative audio. IDs from different codebooks may be incompatible. Pair the tokenizer with its decoder and record token rate, latency, compute, memory, and storage.
References
[Zeghidour et al. (2021), SoundStream: An End-to-End Neural Audio Codec](https://arxiv.org/abs/2107.03312)
[Google Research (2023), SoundStorm: Efficient parallel audio generation](https://research.google/blog/soundstorm-efficient-parallel-audio-generation/)