Using RVC
You can find the full documentation for this project on SocAIty/Retrieval-based-Voice-Conversion-FastAPI.
Setting Up RVC Locally
Step 1 - Clone the repository
Clone the repository and navigate to the project directory.
Step 2 - Run the setup script
Execute the run.sh
script to set up the environment.
Step 3 - Open and disconnect the web interface
After running the script, the inference web interface will open. You can disconnect it once it's loaded.
Step 4 - Modify rvc_fastapi.py
for CORS support
rvc_fastapi.py
for CORS supportTo allow CORS (Cross-Origin Resource Sharing), add the following two lines to rvc_fastapi.py
:
Step 5 - Place your model files in the logs
and assets/weights
directories
logs
and assets/weights
directoriesYou can get voice models from voice-models.com.
Ensure the rvc/logs
directory contains the following file:
Index file: The index file for your voice model, named something like
added_IVF1377_Flat_nprobe_1_{model_name}_v2.index
.
Ensure the rvc/assets/weights
directory contains the following file:
Model file: The voice model file, with the extension
.pth
, for example{model_name}.pth
.
Step 6 - Run the FastAPI server
Once the changes are made and the model is placed in the appropriate directories, run the FastAPI server using the following command:
Make sure RVC is enabled alongside other TTS systems
Last updated