X-Voice
181
stars
230
commits
Python
primary language
Aug 5, 2026
updated
X-Voice is a flow-matching-based multilingual text-to-speech system that enables one speaker to speak 30 languages.
# Create a conda env with python_version>=3.10
conda create -n x-voice python=3.11
conda activate x-voice
# Install FFmpeg if you haven't yet
conda install ffmpeg
# Install pytorch with your CUDA version, e.g. pip install torch==2.8.0+cu128 torchaudio==2.8.0+cu128 --extra-index-url https://download.pytorch.org/whl/cu128
# Install pytorch with your ROCm version (Linux only), e.g. pip install torch==2.5.1+rocm6.2 torchaudio==2.5.1+rocm6.2 --extra-index-url https://download.pytorch.org/whl/rocm6.2
# Install pytorch with your XPU version, e.g. pip install torch torchaudio --index-url https://download.pytorch.org/whl/test/xpu
# Install the stable pytorch, e.g. pip install torch torchaudio
git clone https://github.com/sunnyxrxrx/X-Voice.git
cd X-Voice
pip install -e .
Check your ESpeak-ng installation:
espeak-ng --version
If not found, run bash src/x_voice/prepare_ipa.sh first.
x-voice_infer-gradio --host 0.0.0.0 --port 7860
# X-Voice Stage1
python -m x_voice.infer.infer_cli_stage1 -c src/x_voice/infer/examples/basic/basic_stage1.toml
# X-Voice Stage2
python -m x_voice.infer.infer_cli_stage2 -c src/x_voice/infer/examples/basic/basic_stage2.toml
Refer to training guidance for best practice.
Refer to speaking rate predictor guidance for the multilingual speaking rate predictor used in X-Voice.
Refer to evaluation guidance for benchmark and metric scripts.
X-Voice/
├── ckpts/ # checkpoints
├── data/ # datasets and processed data
├── src/
│ ├── rate_pred/ # speaking rate predictor
│ ├── third_party/
│ │ └── BigVGAN/ # BigVGAN submodule
│ └── x_voice/ # main X-Voice package
└── pyproject.toml # package definition and dependencies
Use pre-commit to ensure code quality:
pip install pre-commit
pre-commit install
pre-commit run --all-files
If you find our work useful, please cite as:
@article{xu2026xvoiceenablingspeak30,
title={X-Voice: Enabling Everyone to Speak 30 Languages via Zero-Shot Cross-Lingual Voice Cloning},
author={Rixi Xu and Qingyu Liu and Haitao Li and Yushen Chen and Zhikang Niu and Yunting Yang and Jian Zhao and Ke Li and Berrak Sisman and Qinyuan Cheng and Xipeng Qiu and Kai Yu and Xie Chen},
journal={arXiv preprint arXiv:2605.05611},
year={2026},
}
Our code is released under MIT License. The pre-trained models are licensed under the CC-BY-NC license due to the training data X-Voice Dataset.
168 commits
62 commits
Python
67.7%
Shell
19.7%
Perl
10.1%
C++
2.4%
X-Voice
181
stars
230
commits
Python
primary language
Aug 5, 2026
updated
X-Voice is a flow-matching-based multilingual text-to-speech system that enables one speaker to speak 30 languages.
# Create a conda env with python_version>=3.10
conda create -n x-voice python=3.11
conda activate x-voice
# Install FFmpeg if you haven't yet
conda install ffmpeg
# Install pytorch with your CUDA version, e.g. pip install torch==2.8.0+cu128 torchaudio==2.8.0+cu128 --extra-index-url https://download.pytorch.org/whl/cu128
# Install pytorch with your ROCm version (Linux only), e.g. pip install torch==2.5.1+rocm6.2 torchaudio==2.5.1+rocm6.2 --extra-index-url https://download.pytorch.org/whl/rocm6.2
# Install pytorch with your XPU version, e.g. pip install torch torchaudio --index-url https://download.pytorch.org/whl/test/xpu
# Install the stable pytorch, e.g. pip install torch torchaudio
git clone https://github.com/sunnyxrxrx/X-Voice.git
cd X-Voice
pip install -e .
Check your ESpeak-ng installation:
espeak-ng --version
If not found, run bash src/x_voice/prepare_ipa.sh first.
x-voice_infer-gradio --host 0.0.0.0 --port 7860
# X-Voice Stage1
python -m x_voice.infer.infer_cli_stage1 -c src/x_voice/infer/examples/basic/basic_stage1.toml
# X-Voice Stage2
python -m x_voice.infer.infer_cli_stage2 -c src/x_voice/infer/examples/basic/basic_stage2.toml
Refer to training guidance for best practice.
Refer to speaking rate predictor guidance for the multilingual speaking rate predictor used in X-Voice.
Refer to evaluation guidance for benchmark and metric scripts.
X-Voice/
├── ckpts/ # checkpoints
├── data/ # datasets and processed data
├── src/
│ ├── rate_pred/ # speaking rate predictor
│ ├── third_party/
│ │ └── BigVGAN/ # BigVGAN submodule
│ └── x_voice/ # main X-Voice package
└── pyproject.toml # package definition and dependencies
Use pre-commit to ensure code quality:
pip install pre-commit
pre-commit install
pre-commit run --all-files
If you find our work useful, please cite as:
@article{xu2026xvoiceenablingspeak30,
title={X-Voice: Enabling Everyone to Speak 30 Languages via Zero-Shot Cross-Lingual Voice Cloning},
author={Rixi Xu and Qingyu Liu and Haitao Li and Yushen Chen and Zhikang Niu and Yunting Yang and Jian Zhao and Ke Li and Berrak Sisman and Qinyuan Cheng and Xipeng Qiu and Kai Yu and Xie Chen},
journal={arXiv preprint arXiv:2605.05611},
year={2026},
}
Our code is released under MIT License. The pre-trained models are licensed under the CC-BY-NC license due to the training data X-Voice Dataset.
168 commits
62 commits
Python
67.7%
Shell
19.7%
Perl
10.1%
C++
2.4%