Sitelet https://github.com/feuyeux/hello-chat-tts
Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

chat tts

预备备

(base) han@alienware:/mnt/d/coding$ which python
/home/han/anaconda3/bin/python
python -m pip install --upgrade pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

创建ChatTTS的conda环境

conda create -n tts_env python=3.11
conda activate tts_env
which python

# WSL: /home/han/anaconda3/envs/tts_env
# Windows: D:\garden\anaconda3\envs\tts_env

下载ChatTTS代码并安装依赖

cd /mnt/d/coding
git clone https://github.com/2noise/ChatTTS
cd ChatTTS
# sudo apt install gcc
# sudo apt install git-lfs
# gcc --version
# conda install -c conda-forge pyproject2conda
pip install -r requirements.txt
pip uninstall torch torchvision torchaudio -y
pip install torch==2.1.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu121

运行示例

cp /mnt/d/coding/hello-chat-tts/hello_tts.py /mnt/d/coding/ChatTTS/
python /mnt/d/coding/ChatTTS/hello_tts.py

(可选)本地模式

cd /mnt/d/coding
git lfs install
# 魔塔
git clone https://www.modelscope.cn/pzc163/chatTTS.git pzc163_chatTTS
# 抱抱脸
git clone https://huggingface.co/2Noise/ChatTTS HF_ChatTTS
pzc163_chatTTS = "/mnt/d/coding/pzc163_chatTTS"
HF_ChatTTS = "/mnt/d/coding/HF_ChatTTS"
modelPath = pzc163_chatTTS

chat.load(
    source="local",
    custom_path=modelPath,
    compile=False,
    # device='cuda',
)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages