Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
GPT-SoVITS-rs
Overview
This Rust project provides a library for integrating GPT-SoVITS inference in Rust applications. GPT-Sovits is a powerful tool for speech synthesis and voice conversion. By using this library, developers can easily leverage the capabilities of GPT-Sovits within their Rust projects.
Prerequisites
Before you can use the GPT-SoVits-rs Inference Library, you must ensure that libtorch 2.4.0 is installed on your system. libtorch is the C++ frontend for PyTorch, which is required for running the GPT-Sovits models.
You can download and install libtorch 2.4.0 from the official PyTorch website:
Go to the PyTorch website. Select the appropriate options for your system (OS, Package Manager, Python version, etc.), making sure to choose the "LibTorch" option. Scroll down to the "Install" section and run the provided command to download and install libtorch 2.4.0.
For example, on a Linux system with CUDA support, the command might look like this:
After downloading and extracting the library, you may need to set environment variables to include the libtorch library path. For example:
Replace /path/to/libtorch with the actual path where you extracted libtorch.
Installation
To use this library, add the following dependency to your Cargo.toml
file:
[]
= "0.1.0"
Replace "0.1.0" with the latest version of the library.
Usage
use GPTSovitsConfig;
Exporting GPT-Sovits Training Results
After completing the training of a GPT-Sovits model, you might need to export the training results to a .pt (PyTorch) file for use in other environments. Below are the detailed steps to export the trained model:
Step 1: Confirm Training Completion
Ensure that your GPT-Sovits model has finished training and that you have a trained model file available.
Step 2: Run the Export Script
Use the following command to run the export script and export the training results to gpt_sovits_model.pt:
Now you can find gpt_sovits_model.pt
, ssl_model.pt
, and bert_model.pt
in the output
directory.
The ssl_model.pt
and bert_model.pt
are common model files, determined by the option --export_common_model
for whether to export, and they are not related to the trained model. Therefore, they do not need to be exported every time.
If you do not wish to export, you can go to Hugging Face to download the resource.zip that I have already exported. And remove the --export_common_model
when export model.
You can download g2pw.pt
from my Hugging Face repo