Update README and refactor

This commit is contained in:
litagin
2023-07-17 14:06:49 +09:00
parent eabb2359c2
commit 5f629b7a1c
2 changed files with 69 additions and 22 deletions

View File

@@ -1,3 +1,56 @@
# RVC Text-to-Speech
This is a text-to-speech using [RVC](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI) and [edge-tts](https://github.com/rany2/edge-tts).
This is a text-to-speech using [RVC](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI) and [edge-tts](https://github.com/rany2/edge-tts).
## Install
Requirements: Checked for Python 3.10 on Windows 11.
```bash
git clone https://github.com/litagin02/rvc-tts.git
cd rvc-tts
# Download models
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
## Windows
venv\Scripts\activate
# Install PyTorch
# See https://pytorch.org/get-started/locally/ for more details
## For Windows with NVIDIA GPU
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
## For Windows with CPU
pip install torch torchvision torchaudio
# Install requirements
pip install -r requirements.txt
```
## Locate RVC models
Locate your RVC models in `weights/` directory as follows:
```bash
weights/
├── model1/
│ ├── model1.pth
│ └── index_file.index
└── model2/
├── model2.pth
└── index_file.index
...
```
Each model directory should contain exactly one `.pth` file and at most one `.index` file.
## Launch
```bash
python app.py
```