This is the inference code of GPT-SoVITS that can be developer-friendly
The project code is modified from GPT-SoVITS-Infer.
Compatible with all version model calls.
See api-v3.py
.
See api-example.py or main.py example code.
You must set model path in api-config.yaml
file!
You can use PDM to install this project quickly.
If you want to run it on CPU, you must remove this in pyproject.toml
.
# remove this
[[tool.pdm.source]]
name = "pytorch-cuda"
url = "https://download.pytorch.org/whl/cu118"
include_packages = ["torch"]
exclude_packages = ["*"]
Linux
pdm install
Windos
pdm install
After the deployment is complete, you can go to api-v3.py
to check the specific usage methods.
There are relevant request example codes in api-example.py
that you can refer to.