Coder Social home page Coder Social logo

rvc-tts-webui's Introduction

RVC Text-to-Speech WebUI

This is a text-to-speech Gradio webui for RVC models, using edge-tts.

๐Ÿค— Online Demo

This can run on CPU without GPU (but slow).

Screenshot

Install

Requirements: Tested for Python 3.10 on Windows 11. Python 3.11 is probably not supported, so please use Python 3.10.

git clone https://github.com/litagin02/rvc-tts-webui.git
cd rvc-tts-webui

# Download models in root directory
curl -L -O https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt
curl -L -O https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/rmvpe.pt

# Make virtual environment
python -m venv venv
# Activate venv (for Windows)
venv\Scripts\activate

# Install PyTorch manually if you want to use NVIDIA GPU (Windows)
# See https://pytorch.org/get-started/locally/ for more details
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

# Install requirements
pip install -r requirements.txt

Locate RVC models

Place your RVC models in weights/ directory as follows:

weights
โ”œโ”€โ”€ model1
โ”‚   โ”œโ”€โ”€ my_model1.pth
โ”‚   โ””โ”€โ”€ my_index_file_for_model1.index
โ””โ”€โ”€ model2
    โ”œโ”€โ”€ my_model2.pth
    โ””โ”€โ”€ my_index_file_for_model2.index
...

Each model directory should contain exactly one .pth file and at most one .index file. Directory names are used as model names.

It seems that non-ASCII characters in path names gave faiss errors (like weights/ใƒขใƒ‡ใƒซ1/index.index), so please avoid them.

Launch

# Activate venv (for Windows)
venv\Scripts\activate

python app.py

Update

git pull
venv\Scripts\activate
pip install -r requirements.txt --upgrade

Troubleshooting

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for fairseq
Failed to build fairseq
ERROR: Could not build wheels for fairseq, which is required to install pyproject.toml-based projects

Maybe fairseq needs Microsoft C++ Build Tools. Download installer and install it.

rvc-tts-webui's People

Contributors

litagin02 avatar mixomo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.