MCPcopy Index your code
hub / github.com/ORI-Muchim/PolyLangVITS

github.com/ORI-Muchim/PolyLangVITS @v1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0 ↗ · + Follow
298 symbols 808 edges 33 files 35 documented · 12% updated 2y agov1.0 · 2023-06-27★ 75

Browse by type

Functions 267 Types & classes 31
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
  • PolyLangVITS(Work In Process)

Multilingual Speech Synthesis System Using VITS

Table of Contents

Prerequisites

  • A Windows/Linux system with a minimum of 16GB RAM.
  • A GPU with at least 12GB of VRAM.
  • Python >= 3.8
  • Anaconda installed.
  • PyTorch installed.
  • CUDA 11.x installed.
  • Zlib DLL installed.

Pytorch install command:

pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117

CUDA 11.7 install: https://developer.nvidia.com/cuda-11-7-0-download-archive

Zlib DLL install: https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#install-zlib-windows

Install pyopenjtalk Manually: pip install -U pyopenjtalk --no-build-isolation


Installation

  1. Create an Anaconda environment:
conda create -n polylangvits python=3.8
  1. Activate the environment:
conda activate polylangvits
  1. Clone this repository to your local machine:
git clone https://github.com/ORI-Muchim/PolyLangVITS.git
  1. Navigate to the cloned directory:
cd PolyLangVITS
  1. Install the necessary dependencies:
pip install -r requirements.txt

Prepare_Datasets

Place the audio files as follows.

.mp3 or .wav files are okay.

You must write '[language code]' on the back of the speaker folder.

PolyLangVITS
├────datasets
│       ├───speaker0[KO]
│       │   ├────1.mp3
│       │   └────1.wav
│       └───speaker1[JA]
│       │    ├───1.mp3
│       │    └───1.wav
│       ├───speaker2[EN]
│       │   ├────1.mp3
│       │   └────1.wav
│       ├───speaker3[ZH]
│       │   ├────1.mp3
│       │   └────1.wav
│       ├integral.py
│       └integral_low.py
│
├────vits
├────main.py
├────Readme.md
└────requirements.txt

This is just an example, and it's okay to add more speakers.


Usage

To start this tool, use the following command, replacing {language}, {model_name}, and {sample_rate} with your respective values:

python main.py {language} {model_name} {sample_rate}

For those with low specifications(VRAM < 12GB), please use this code:

python main_low.py {language} {model_name} {sample_rate}

If the data configuration is complete and you want to resume training, enter this code:

python main_resume.py {model_name}

Inference

After the model has been trained, you can generate predictions by using the following command, replacing {model_name} and {model_step} with your respective values:

python inference.py {model_name} {model_step}

References

For more information, please refer to the following repositories: - jaywalnut310/vits - CjangCjengh/vits - Kyubyong/g2pK - tenebo/g2pk2

Core symbols most depended-on inside this repo

Shape

Function 171
Method 96
Class 31

Languages

Python100%

Modules by API surface

vits/modules.py34 symbols
vits/models.py33 symbols
vits/data_utils.py29 symbols
vits/utils.py23 symbols
datasets/integral_low.py23 symbols
datasets/integral.py23 symbols
vits/text/cleaners.py21 symbols
vits/attentions.py21 symbols
vits/commons.py18 symbols
vits/text/english.py13 symbols
vits/text/mandarin.py10 symbols
vits/text/japanese.py7 symbols

For agents

$ claude mcp add PolyLangVITS \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page