👧
Amica
Launch DemoTelegramGitHubTwitter
  • Welcome to Amica!
  • 🌸Overview
    • How Amica Works
    • Core Features
    • Amica Life
    • Emotion System
    • Other Features
    • Use Cases
    • Amica vs Other Tools
  • 🌳Getting Started
    • Quickstart Guide
    • Installing Amica
    • Next Steps
  • 🗣️Connecting LLMs (Your Core AI Chatbot Model)
    • Using LM Studio
    • Using LLaMA.cpp
    • Using Ollama
    • Using KoboldCpp
    • Using OpenAI
    • Using Oobabooga
    • Using OpenRouter
  • 🔊Connecting Speech Options (TTS)
    • Using SpeechT5
    • Using ElevenLabs
    • Using Coqui Local
    • Using Piper
    • Using Alltalk TTS
    • Using Kokoro TTS
    • Using RVC
  • 👂Connecting Microphone Options (STT)
    • Using whisper.cpp
  • 👁️Connecting Multi-Modal Modules
    • Using LLaVA
  • 🔧Other Guides
    • Using Window.ai
    • Using Moshi (Voice to Voice)
  • 🧩Plugin System
    • Plugins Intro
    • Getting Real World News on Amica
  • 🔌API System
    • External API for Agents
  • 🌻Tutorials
    • Creating new Avatars
    • Using Custom Assets
  • 🌺Contributing to Amica
    • Setting up your developer environment
    • Contributing to the Docs
    • Developing Amica
    • Adding Translations
Powered by GitBook
On this page
  • Setting Up RVC Locally
  • Step 1 - Clone the repository
  • Step 2 - Run the setup script
  • Step 3 - Open and disconnect the web interface
  • Step 4 - Modify rvc_fastapi.py for CORS support
  • Step 5 - Place your model files in the logs and assets/weights directories
  • Step 6 - Run the FastAPI server
  • Make sure RVC is enabled alongside other TTS systems
Edit on GitHub
  1. Connecting Speech Options (TTS)

Using RVC

PreviousUsing Kokoro TTSNextUsing whisper.cpp

Last updated 8 months ago

You can find the full documentation for this project on .

Setting Up RVC Locally

Step 1 - Clone the repository

Clone the repository and navigate to the project directory.

git clone git@github.com:SocAIty/Retrieval-based-Voice-Conversion-FastAPI.git rvc
cd rvc

Step 2 - Run the setup script

Execute the run.sh script to set up the environment.

sh ./run.sh

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

To 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=["*"])

Step 5 - Place your model files in the logs and assets/weights directories

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:

python rvc_fastapi.py

Make sure RVC is enabled alongside other TTS systems

Settings -> Text-to-Speech -> RVC

You can get voice models from .

🔊
SocAIty/Retrieval-based-Voice-Conversion-FastAPI
voice-models.com