GPT-SoVITS-Infer
This is the inference code of GPT-SoVITS that can be developer-friendly.
Usage Example
Check out the example notebook for a quick start. Or open it in Colab
Prepare the environment
As we all know, the dependencies of an AI project are always a mess. Here is how I prepare the environment for this project:
Conda (Linux)
conda install python=3.10
conda install pytorch=2.1 torchvision torchaudio pytorch-lightning pytorch-cuda=12.1 -c pytorch -c nvidia
conda install ffmpeg=6.1.1 -c conda-forge
MacOS
brew install ffmpeg
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip3 install pytorch-lightning
pip3 install GPT-SoVITS-Infer
You can also try to prepare the environment with cpu only options, which should work, but I have not tested it yet.
After the environment is ready, you can install the package by pip:
pip install GPT-SoVITS
I do not add the packages related to torch to the dependencies of GPT-SoVITS-Infer. Check if the environment is ready if things go wrong.
Advanced Usage
GPTSoVITSInference.load_sovitsandGPTSoVITSInference.load_gpt: You can load your own fine-tuned model by the methods.GPTSoVITSInference.set_prompt_audio: Set the prompt audio for the inference.GPTSoVITSInference.get_tts_wav_stream: Return a generator that yields the audio pieces of the generated audio. It will create a background thread to generate the audio, so you can get the audio pieces while the audio is still being generated.
Metadata
Release files for GPT-SoVITS-Infer 0.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gpt_sovits_infer-0.2.8.tar.gz | 3.3 MB | Without provenance | Details for gpt_sovits_infer-0.2.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gpt_sovits_infer-0.2.8-py3-none-any.whl | Python 3 | none | any | Details for gpt_sovits_infer-0.2.8-py3-none-any.whl |
Total release size: 6.8 MB
Release files / gpt_sovits_infer-0.2.8.tar.gz
| Download URL | gpt_sovits_infer-0.2.8.tar.gz |
|---|---|
| Size | 3.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94a13055645bad24077ba77ebb5846b348545f7f1c1cfeb1157b078669f4919d
|
|
BLAKE2b-256 checksum How to use checksums |
f22af1fafaf62ef13dd50479948945bc080e8c914702833c17238950fd5e818a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.15.4 CPython/3.10.13 Linux/5.15.0-112-generic
|
Release files / gpt_sovits_infer-0.2.8-py3-none-any.whl
| Download URL | gpt_sovits_infer-0.2.8-py3-none-any.whl |
|---|---|
| Size | 3.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa5a52e274ed99c6cbaaa7e515cd5ff9a39a3a1fd3c2481faf918f6a8260a4a4
|
|
BLAKE2b-256 checksum How to use checksums |
16a456218981996f79f255147f07ea2979d3482ceab513ef454947d0922fc043
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.15.4 CPython/3.10.13 Linux/5.15.0-112-generic
|
Security for GPT-SoVITS-Infer 0.2.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.