Skip to content

Latest commit

 

History

History
63 lines (47 loc) · 1.65 KB

File metadata and controls

63 lines (47 loc) · 1.65 KB

如何下载所有东西

IndexTTS2

# prepare git lfs
git lfs install

# clone repo
git clone https://github.com/index-tts/index-tts.git
cd index-tts
git lfs pull  # download large repository files

# install requirements
pip install -U uv
uv sync --extra webui --default-index "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"

如果你的环境不能直连huggingface,你可能需要设置HF_ENDPOINT来下载模型。

# use mirror for model download
# linux
export HF_ENDPOINT="https://hf-mirror.com"
# or win
$env:HF_ENDPOINT="https://hf-mirror.com"

# install model
uv tool install "huggingface-hub[cli,hf_xet]"
hf download IndexTeam/IndexTTS-2 --local-dir=checkpoints

# 你可以运行这个命令打开webui,注意这可能会导致下载重复的模型:uv run webui.py

然后下载Isp。

git clone https://github.com/Lumi083/isp.git
uv pip install flask==3.0.0 pyaudio>=0.2.14

如何享用ISP

启动 API 服务器:

uv run isp/app.py
# 首次启动后,推荐使用offline参数阻止hf尝试下载,加速启动: uv run isp/app.py --offline

服务器默认运行在 http://127.0.0.1:23467

测试:

uv run .\isp\test\latency.py # 测试stream的首包延迟
uv run .\isp\test\audio_play.py # 用pyaudio播放stream的输出
uv run .\isp\test\presets.py # 测试各种情绪的生成

FAQs

  1. soundfile.LibsndfileError:Error opening ...

可能是没有ffmpeg导致的,请尝试安装ffmpeg并且将其路径加入到环境变量。完成后,在命令行执行ffmpeg应该能看到很长一段说明。

如仍无法解决欢迎反馈