👉 Truy cập https://huggingface.co/spaces/thinhlpg/vixtts-demo để dùng ngay mà không cần cài đặt.
viXTTS is a text-to-speech voice generation tool that offers voice cloning voices in Vietnamese and other languages. This model is a fine-tuned version based on the XTTS-v2.0.3 model, utilizing the viVoice dataset. This repository is primarily intended for demostration purposes.
The model can be accessed at: viXTTS on Hugging Face
- You can try the model here: https://huggingface.co/spaces/thinhlpg/vixtts-demo
- For a quick demonstration, please refer to this notebook on Google Colab. Tutorial (Vietnamese): https://youtu.be/pbwEbpOy0m8?feature=shared
This code is specifically designed for running on Ubuntu or WSL2. It is not intended for use on macOS or Windows systems.
- At least 10GB of free disk space
- At least 16GB of RAM
- Nvidia GPU with a minimum of 4GB of VRAM
- By default, the model will utilize the GPU. In the absence of a GPU, it will run on the CPU and run much slower.
- Git
- Python version >=3.9 and <= 3.11. The default version is set to 3.11, but you can modify the Python version in the
run.sh
file.
git clone https://github.com/thinhlpg/vixtts-demo
cd vixtts-demo
./run.sh
- Run
run.sh
(dependencies will be automatically installed for the first run). - Access the Gradio demo link.
- Load the model and wait for it to load.
- Inference and Enjoy 🤗
- The result will be saved in
output/
- Subpar performance for input sentences under 10 words in Vietnamese language (yielding inconsistent output and odd trailing sounds).
- This model is only fine-tuned in Vietnamese. The model's effectiveness with languages other than Vietnamese hasn't been tested, potentially reducing quality.
This project is not being actively maintained, and I do not plan to release the finetuning code due to sensitive reasons, as it might be used for unethical purposes. If you want to contribute by creating versions for other operating systems, such as Windows or macOS, please fork the repository, create a new branch, test thoroughly on the respective OS, and submit a pull request specifying your contributions.
We would like to express our gratitude to all libraries, and resources that have played a role in the development of this demo, especially:
- Coqui TTS for XTTS foundation model and inference code
- Vinorm and Undethesea for Vietnamese text normalization
- Deepspeed for fast inference
- Huggingface Hub for hosting the model
- Gradio for web UI
- DeepFilterNet for noise removal
@misc{viVoice,
author = {Thinh Le Phuoc Gia, Tuan Pham Minh, Hung Nguyen Quoc, Trung Nguyen Quoc, Vinh Truong Hoang},
title = {viVoice: Enabling Vietnamese Multi-Speaker Speech Synthesis},
url = {https://github.com/thinhlpg/viVoice},
year = {2024}
}
A manuscript and a friendly dev log documenting the process might be made available later (including other works that were experimented with, but details about the filtering process are not specified in this README file).
- Facebook: https://fb.com/thinhlpg/ (preferred; feel free to add friend and message me casually)
- GitHub: https://github.com/thinhlpg
- Email: [email protected] (please don't; I prefer friendly, casual talk 💀)