Abstract
In recent years, large language models have achieved significant success in generative tasks (e.g., speech cloning and audio generation) related to speech, audio, music, and other signal domains. A crucial element of these models is the discrete acoustic codecs, which serve as an intermediate representation replacing the mel-spectrogram. However, there exist several gaps between discrete codecs and downstream speech language models. Specifically, 1) Due to the reconstruction paradigm of the Codec model and the structure of residual vector quantization, the initial channel of the codebooks contains excessive information, making it challenging to directly generate acoustic tokens from weakly supervised signals such as text in downstream tasks. 2) Achieving good reconstruction performance requires the utilization of numerous codebooks, which increases the burden on downstream speech language models. Consequently, leveraging the characteristics of speech language models, we propose Language-Codec. In the Language-Codec, we introduce a Masked Channel Residual Vector Quantization (MCRVQ) mechanism along with improved fourier transform structures, refined discriminator design to address the aforementioned gaps. We compare our method with competing audio compression algorithms and observe significant outperformance across extensive evaluations. Furthermore, we also validate the efficiency of the Language-Codec on downstream speech language models.
Introduction
In the current era of generative audio AI, models such as VALL-E and MusicLM do not operate directly on raw waveforms. Instead, they utilize discrete codecs to transform audio into a sequence of tokens, analogous to words in a text-based Large Language Model (LLM). While effective, existing codecs like Encodec exhibit two primary "gaps" when integrated with downstream LLMs.
First, there is a significant information imbalance. Standard Residual Vector Quantization (RVQ) tends to concentrate the majority of acoustic information into the first codebook channel. This high density makes it difficult for an LLM to predict initial tokens from "weak" signals like text. Second, there is a computational burden; high-quality reconstruction typically requires eight or more codebooks, resulting in extremely long sequences that increase memory usage and latency during inference.
Methods
Language-Codec addresses these challenges through three primary architectural innovations designed to make discrete representations more "LLM-friendly."
Masked Channel Residual Vector Quantization (MCRVQ)
Rather than allowing the first quantizer to observe the entire signal, the MCRVQ mechanism masks portions of the latent space. This forces acoustic information to be distributed more evenly across the initial channels. By "diluting" the information density of the first channel, the mapping from textual input to acoustic tokens becomes easier for the downstream LLM to learn.
Advanced Decoder and Discriminators
To eliminate the aliasing artifacts common in standard convolutional upsampling, Language-Codec employs a decoder inspired by the Vocos vocoder. This structure utilizes ConvNeXt blocks, attention mechanisms, and an Inverse Short-Time Fourier Transform (iSTFT) for waveform reconstruction. To ensure natural sound quality, the model is trained with a suite of refined discriminators, including Multi-Period (MPD), Multi-Resolution (MRD), and complex STFT discriminators.
Experimental Setup
The model was trained on a massive 50,000-hour speech corpus, including Librilight, DNS Challenge 4, Common Voice 16.0, and LibriTTS, along with 20,000 hours of internal Chinese data. Evaluation was conducted on standard benchmarks like LibriTTS Test-Clean and Test-Other, as well as out-of-domain sets like LJSpeech.
Key Results
Reconstruction Performance
Language-Codec demonstrates superior reconstruction quality compared to established baselines. As shown in the evaluation tables, at a bitrate of 3.0 kbps (using only 4 channels), Language-Codec achieved a UTMOS of 3.7875, significantly outperforming Encodec (2.3070) and even surpassing the 6.0 kbps / 8-channel version of Encodec (3.0399).
Downstream Efficiency and Quality
When integrated into zero-shot text-to-speech (TTS) frameworks like VALL-E, Language-Codec provided substantial gains. It reduced the Word Error Rate (WER) from 4.3% to 3.8% and improved Speaker Similarity (SPK) from 0.61 to 0.69. Notably, the model's ability to achieve high fidelity with only 4 channels effectively halves the sequence length for the LLM, providing a massive boost to computational efficiency without sacrificing audio quality.
Conclusion
Language-Codec bridges the gap between audio compression and language modeling. By intentionally designing a quantizer that favors LLM learnability over pure compression density, the framework achieves better-sounding generated speech with fewer computational resources. Future work will focus on scaling the training data to hundreds of thousands of hours and extending the codec's capabilities to general audio and music domains.
Summary updated