U-Codec: Ultra Low Frame-rate Neural Speech Codec for Fast High-fidelity Speech Generation
13
10 commits
3 linked in READMEs
updated Oct 24, 2025
This paper is currently under review. We have released the checkpoint of U-Codec (5Hz), which can be directly used for inference.
Provide the full training code for the U-Codec framework.
Release the public code of the TTS models built on top of U-Codec.
If you are interested in U-Codec, feel free to contact us!
We propose U-Codec, an Ultra low frame-rate neural speech Codec that achieves high-fidelity reconstruction and fast generation via an extremely frame-rate at 5Hz (5 frames per second). Extreme compression at 5Hz typically leads to severe intelligibility and spectral detail loss, we overcome this by integrating a Transformer-based inter-frame long-term dependency module and systematically optimizing residual vector quantization (RVQ) depth and codebook size. Moreover, we apply U-Codec into a large language model (LLM)-based auto-regressive TTS model, which leverages global and local hierarchical architecture to effectively capture dependencies across multi-layer tokens.
The overview of U-Codec as following picture shows.

We provide an example to demonstrate how to run U-Codec (5Hz) for audio tokenization and reconstruction.
First, create a Python environment following a similar setup to project page.
conda create -n ucodec python=3.8
conda init
source ~/.bashrc
conda activate ucodec
Then:
cd U-Codec
bash requirements.sh
If you need pretrained weights, please download them on the Checkpoint.
We provide an example script AudioTokenizer_UCodec.py for tokenizing audio into discrete codes and reconstructing audio from the codes.
cd tools/tokenizer/soundstream
python AudioTokenizer_HY.py
You can directly use the released U-Codec 5Hz checkpoint for inference. More examples (e.g., TTS pipeline integration) will be released soon.
If you find this code useful in your research, please cite our work and give us a star
@inproceedings{U-Codec,
title = {U-Codec: Ultra Low Frame-rate Neural Speech Codec for Fast High-fidelity Speech Generation},
author = {Xusheng Yang, Long Zhou, Wenfu Wang, Kai Hu, Shulin Feng, Chenxing Li, Meng Yu, Dong Yu, Yuexian Zou},
booktitle = {arXiv},
year = {2025}
}
If you have any problem about the our code, please contact Xusheng (yangxs@stu.pku.edu.cn).
You can use the code under MIT license.
10 commits
U-Codec: Ultra Low Frame-rate Neural Speech Codec for Fast High-fidelity Speech Generation
13
10 commits
3 linked in READMEs
updated Oct 24, 2025
This paper is currently under review. We have released the checkpoint of U-Codec (5Hz), which can be directly used for inference.
Provide the full training code for the U-Codec framework.
Release the public code of the TTS models built on top of U-Codec.
If you are interested in U-Codec, feel free to contact us!
We propose U-Codec, an Ultra low frame-rate neural speech Codec that achieves high-fidelity reconstruction and fast generation via an extremely frame-rate at 5Hz (5 frames per second). Extreme compression at 5Hz typically leads to severe intelligibility and spectral detail loss, we overcome this by integrating a Transformer-based inter-frame long-term dependency module and systematically optimizing residual vector quantization (RVQ) depth and codebook size. Moreover, we apply U-Codec into a large language model (LLM)-based auto-regressive TTS model, which leverages global and local hierarchical architecture to effectively capture dependencies across multi-layer tokens.
The overview of U-Codec as following picture shows.

We provide an example to demonstrate how to run U-Codec (5Hz) for audio tokenization and reconstruction.
First, create a Python environment following a similar setup to project page.
conda create -n ucodec python=3.8
conda init
source ~/.bashrc
conda activate ucodec
Then:
cd U-Codec
bash requirements.sh
If you need pretrained weights, please download them on the Checkpoint.
We provide an example script AudioTokenizer_UCodec.py for tokenizing audio into discrete codes and reconstructing audio from the codes.
cd tools/tokenizer/soundstream
python AudioTokenizer_HY.py
You can directly use the released U-Codec 5Hz checkpoint for inference. More examples (e.g., TTS pipeline integration) will be released soon.
If you find this code useful in your research, please cite our work and give us a star
@inproceedings{U-Codec,
title = {U-Codec: Ultra Low Frame-rate Neural Speech Codec for Fast High-fidelity Speech Generation},
author = {Xusheng Yang, Long Zhou, Wenfu Wang, Kai Hu, Shulin Feng, Chenxing Li, Meng Yu, Dong Yu, Yuexian Zou},
booktitle = {arXiv},
year = {2025}
}
If you have any problem about the our code, please contact Xusheng (yangxs@stu.pku.edu.cn).
You can use the code under MIT license.
10 commits