title: Using Retrieval-based Voice Conversion (RVC)
You can find the full documentation for this project on SocAIty/Retrieval-based-Voice-Conversion-FastAPI.
Clone the repository and navigate to the project directory.
git clone [email protected]:SocAIty/Retrieval-based-Voice-Conversion-FastAPI.git rvc
cd rvc
Execute the run.sh script to set up the environment.
sh ./run.sh
After running the script, the inference web interface will open. You can disconnect it once it's loaded.
rvc_fastapi.py for CORS supportTo allow CORS (Cross-Origin Resource Sharing), add the following two lines to rvc_fastapi.py:
from fastapi.middleware.cors import CORSMiddleware
app.add_middleware(CORSMiddleware, allow_origins=["*"])
logs and assets/weights directoriesYou can get voice models from voice-models.com.
Ensure the rvc/logs directory contains the following file:
added_IVF1377_Flat_nprobe_1_{model_name}_v2.index.Ensure the rvc/assets/weights directory contains the following file:
.pth, for example {model_name}.pth.Once the changes are made and the model is placed in the appropriate directories, run the FastAPI server using the following command:
python rvc_fastapi.py
Settings -> Text-to-Speech -> RVC