metadata
title: GPT-SoVITS API (v2 ProPlus) for AstrBot (Py3.10 fix)
emoji: 🗣️
colorFrom: yellow
colorTo: red
sdk: docker
app_port: 7860
license: mit
GPT‑SoVITS v2 ProPlus — REST API for AstrBot (Python 3.10 base)
该版本改用 Python 3.10 的 PyTorch 官方镜像(
pytorch/pytorch:2.3.1-cuda11.8-cudnn8-runtime
), 并在 安装完仓库 requirements 之后 强制重装librosa==0.9.2
、numba==0.56.4
, 再结合NUMBA_CACHE_DIR=/tmp/numba_cache
来规避你遇到的numba/librosa
缓存错误。
放置你的文件
- GPT 权重 →
weights/shantianliang_proplus_e32.ckpt
- SoVITS 权重 →
weights/shantianliang_proplus_e8_s192.pth
- 参考音频 →
reference_audio/ref_shantianliang_1.wav
(1 秒静音占位,建议替换)
启动后测试(举例)
- 切 SoVITS:
/set_sovits_weights?weights_path=/app/pretrained_models/shantianliang/shantianliang_proplus_e8_s192.pth
- 切 GPT:
/set_gpt_weights?weights_path=/app/pretrained_models/shantianliang/shantianliang_proplus_e32.ckpt
- 合成:
/tts
(POST JSON,支持流式/整段)