ChatTTS Deployment Guide

Windows Pre-packaged Version
- Download the compressed package from Releases, extract it, and double-click
app.exeto use.
Source Code Deployment on Linux
Set up a Python 3.9+ environment.
Create an empty directory
/data/chatttsand run the command:cd /data/chattts && git clone https://github.com/jianchang512/chatTTS-ui .Create a virtual environment:
python3 -m venv venvActivate the virtual environment:
source ./venv/bin/activateInstall dependencies:
pip3 install -r requirements.txtIf CUDA acceleration is not needed, run:
pip3 install torch torchaudioIf CUDA acceleration is required, run:
pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu118 pip install nvidia-cublas-cu11 nvidia-cudnn-cu11Additionally, install the CUDA 11.8 Toolkit. Please search for the installation method.
Run
python3 app.pyto start. It will automatically open a browser window at the default addresshttp://127.0.0.1:9966.
Source Code Deployment on MacOS
Set up a Python 3.9+ environment and install Git by running:
brew install git [email protected]Then continue with:export PATH="/usr/local/opt/[email protected]/bin:$PATH" source ~/.bash_profile source ~/.zshrcCreate an empty directory
/data/chatttsand run the command:cd /data/chattts && git clone https://github.com/jianchang512/chatTTS-ui .Create a virtual environment:
python3 -m venv venvActivate the virtual environment:
source ./venv/bin/activateInstall dependencies:
pip3 install -r requirements.txtInstall torch:
pip3 install torch torchaudioRun
python3 app.pyto start. It will automatically open a browser window at the default addresshttp://127.0.0.1:9966.
Source Code Deployment on Windows
Download Python 3.9+ and ensure to check
Add Python to environment variablesduring installation.Download and install Git from: 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, navigate to it, typecmdin the address bar and press Enter, then run:git clone https://github.com/jianchang512/chatTTS-ui .Create a virtual environment:
python -m venv venvActivate the virtual environment:
.\venv\scripts\activateInstall dependencies:
pip install -r requirements.txtIf CUDA acceleration is not needed, run:
pip install torch torchaudioIf CUDA acceleration is required, run:
pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu118Additionally, install the CUDA 11.8 Toolkit. Please search for the installation method.
Run
python app.pyto start. It will automatically open a browser window at the default addresshttp://127.0.0.1:9966.
Common Issues
Missing
spk_stat.ptafter downloading the model from modelscopeAfter switching to download the model from modelscope, you may encounter the error:
AssertionError: Missing spk_stat.pt: **/pzc163/chatTTS/asset/spk_stat.ptDownload
spk_stat.ptfrom https://huggingface.co/2Noise/ChatTTS/blob/main/asset/spk_stat.pt and copy it to theassetdirectory to resolve the issue.If errors occur on Mac, try:
brew install libompIf prompted that Python 3.12+ is not supported, downgrade to version 3.10.
