NewGame/libritts_lace_dac
A compact neural audio codec with variable bit rate
2 min readupdated
The model is a neural audio codec (a tool for compressing and restoring audio using an AI model) built on the LACE architecture and the ESPnet3 framework. It takes an input speech audio file, encodes it at a specified compression ratio, and decodes it back into mono audio. Built on the pre-trained espnet/libritts_dac_24k codec fine-tuned on the LibriTTS speech corpus, the model weighs about 249 MB and has 62.2 million parameters. Its main difference from the base DAC is support for dynamic segmentation and an adjustable compression ratio (rate from 0.25 to 1.0). The tool is useful for developers of voice services, TTS systems, and audio pipelines where flexible control over speech bit rate is important.
Key features
- Compact size: 62.22 million trainable parameters take up just 248.87 MB.
- Adjustable compression ratio: the
rateparameter can be set between 0.25 and 1.0 (defaulting to 0.5 for evaluation). - Automatic preprocessing: input audio is resampled to the codec sample rate (24 kHz) and converted to a single channel.
- Dynamic segmentation: an internal
dp_segmentationmodule with a maximum span ofmax_span: 4is used on top of the DAC quantizers.
What you can do
- Compress voice messages and streaming speech with an adjustable trade-off between stream size and quality.
- Use it as a discrete audio tokenizer during training and inference of speech generation models (TTS).
- Integrate it into resynthesis and speech restoration pipelines within the ESPnet3 ecosystem.
Example
from espnet3.publication import InferenceModel
model = InferenceModel.from_pretrained("NewGame/libritts_lace_dac", rate=0.25)
output = model("speech.wav")
audio = output["resyn_audio"]Read more
DetailsResynthesis quality on the LibriTTS test set: UTMOS — 3.9613, PLCMOS — 4.0358, DNS Overall — 3.1101, SDR — 9.1313.
Training: 30,000 steps on 4 GPUs with a batch size of 16 and 24,000-sample fragments (AdamW optimizer, lr 0.0001).
Weights format:
torch.float32, buffers take an additional 134.67 MB.









Comments