一些有意思的项目探索

🤔🤔

Index-TTS2

官方项目地址:index-tts/index-tts: An Industrial-Level Controllable and Efficient Zero-Shot Text-To-Speech System

安装步骤

已经安装git,只需要安装git-lfs

1
sudo apt install git-lfs

确保安装了cuda-toolkits:必须和驱动对应,如果是老驱动就不要使用cuda13,如572.83,安装cuda12.8

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 1. 添加 NVIDIA 的 apt 密钥
wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
rm cuda-keyring_1.1-1_all.deb
# 2. 安装 CUDA Toolkit(这将安装最新的稳定版)
sudo apt-get -y install cuda-toolkit-12.8


# 3. 添加到path就ok
echo '' >> ~/.bashrc
echo 'export CUDA_HOME=/usr/local/cuda-12' >> ~/.bashrc
echo 'export PATH=$CUDA_HOME/bin:$PATH' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc

# 立即生效
source ~/.bashrc

安装ffmpeg

1
2
sudo apt-get update
sudo apt-get install -y ffmpeg libsndfile1

项目配置

使用conda 新建环境

1
pyinit 3.10 indes-tts2

进入仓库文件夹

1
2
3
4
5
6
git lfs install
export HF_ENDPOINT="https://hf-mirror.com"
uv sync --all-extras
uv tool install "modelscope"
modelscope download --model IndexTeam/IndexTTS-2 --local_dir checkpoints
uv run webui.py