Skip to content

Convenient for developers to call inference models from version v1 to v3 through API, supporting streaming transmission and specified type file transfer.

License

Notifications You must be signed in to change notification settings

CNFlyCat/GPT-SoVITS-V3-Infer-API

 
 

Repository files navigation

GPT-SoVITS-V3-Infer-API

🎉Now you can infer with api for v3 model!

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.

Usage Example

See api-v3.py.

See api-example.py or main.py example code.

You must set model path in api-config.yaml file!

Prepare the environment

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.

About

Convenient for developers to call inference models from version v1 to v3 through API, supporting streaming transmission and specified type file transfer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.9%
  • Cuda 1.2%
  • Other 0.9%