ChatTTS Deployment Methods
Windows Pre-packaged Version
- Download the compressed package from Releases, extract it, and double-click app.exe to use it.
Source Code Deployment on Linux
Configure the Python 3.9+ environment.
Create an empty directory
/data/chattts
and execute the commandcd /data/chattts && git clone https://github.com/jianchang512/chatTTS-ui .
Create a virtual environment
python3 -m venv venv
Activate the virtual environment
source ./venv/bin/activate
Install dependencies
pip3 install -r requirements.txt
If you don't need CUDA acceleration, execute
pip3 install torch torchaudio
.If you need CUDA acceleration, execute
pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu118 pip install nvidia-cublas-cu11 nvidia-cudnn-cu11
You also need to install CUDA 11.8 ToolKit. Please search for the installation method yourself.
Execute
python3 app.py
to start. It will automatically open a browser window. The default address ishttp://127.0.0.1:9966
.
Source Code Deployment on MacOS
- Configure the Python 3.9+ environment and install git. Execute the command
brew install git [email protected]
. Continue to executeexport PATH="/usr/local/opt/[email protected]/bin:$PATH" source ~/.bash_profile source ~/.zshrc
- Create an empty directory
/data/chattts
and execute the commandcd /data/chattts && git clone https://github.com/jianchang512/chatTTS-ui .
- Create a virtual environment
python3 -m venv venv
- Activate the virtual environment
source ./venv/bin/activate
- Install dependencies
pip3 install -r requirements.txt
- Install torch
pip3 install torch torchaudio
- Execute
python3 app.py
to start. It will automatically open a browser window. The default address ishttp://127.0.0.1:9966
.
Windows Source Code Deployment
Download Python 3.9+ and make sure to select
Add Python to environment variables
during installation.Download and install git, https://github.com/git-for-windows/git/releases/download/v2.45.1.windows.1/Git-2.45.1-64-bit.exe
Create an empty folder
D:/chattts
and enter it. Entercmd
in the address bar and press Enter. Execute the commandgit clone https://github.com/jianchang512/chatTTS-ui .
in the popped-up cmd window.Create a virtual environment. Execute the command
python -m venv venv
Activate the virtual environment. Execute
.\venv\scripts\activate
Install dependencies. Execute
pip install -r requirements.txt
If you don't need CUDA acceleration, execute
pip install torch torchaudio
.If you need CUDA acceleration, execute
pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu118
You also need to install CUDA 11.8 ToolKit. Please search for the installation method yourself.
Execute
python app.py
to start. It will automatically open a browser window. The default address ishttp://127.0.0.1:9966
.
Common Issues
Missing spk_stat.pt after downloading the model from modelscope
After changing to downloading the model from modelscope, the following prompt is displayed when running successfully:
AssertionError: Missing spk_stat.pt: **/pzc163/chatTTS/asset/spk_stat.pt
Download spk_stat.pt from https://huggingface.co/2Noise/ChatTTS/blob/main/asset/spk_stat.pt and copy it to the asset directory to solve the problem.
If you encounter an error under mac, please try
brew install libomp
If prompted not to support python3.12+
Please downgrade to version 3.10.