1.下载git-lfs
因为一些文件很大,我们需要使用gitlfs。
前往git-lfs去下载。
根据芯片型号下载即可。
当然我们有homebrew的话直接运行brew install git-lfs即可快速安装。
2.安装项目
在终端通过cd进入需要装项目的文件夹,执行。
git lfs install
git clone https://github.com/index-tts/index-tts.git && cd index-tts
git lfs pull # 下载大文件
安装uv包管理器
执行pip install -U uv安装uv环境。
3.然后使用uv安装
依赖中国大陆地址:
uv sync --all-extras --default-index "https://mirrors.aliyun.com/pypi/simple"
有国际环境可以直接执行:
uv sync --all-extras
4.下载模型
执行
uv tool install "modelscope"
先开启uv环境
source .venv/bin/activate
然后运行
modelscope download --model IndexTeam/IndexTTS-2 --local_dir checkpoints
5.最后安装UI界面
uv run webui.py
首次执行非常慢,需要等待下载一些基础模型。
运行
看到地址的时候说明就启动成功了。

启动成功
使用浏览器访问显示的地址。

http://127.0.0.1:7860
6.再次使用
1.打开index-tts2文件夹的终端
2.source .venv/bin/activate
3.uv run webui.py
4.浏览器打开 http://127.0.0.1:7860

