Giter Club home page Giter Club logo

efts2code's Introduction

EfficientTTS 2: Variational End-to-End Text-to-Speech Synthesis and Voice Conversion

This is a implementation of our work: EfficientTTS 2: Variational End-to-End Text-to-Speech Synthesis and Voice Conversion

This implementation uses code from VITS repos: https://github.com/jaywalnut310/vits

Pre-requisites

  1. Python >= 3.6
  2. Install python requirements. Please refer requirements.txt
    1. You may need to install espeak first: apt-get install espeak
  3. Download datasets
    1. Download and extract the LJ Speech dataset, then rename or create a link to the dataset folder: ln -s /path/to/LJSpeech-1.1/wavs DUMMY1
    2. For voice conversion setting, download and extract the VCTK dataset, and downsample wav files to 22050 Hz. Then rename or create a link to the dataset folder: ln -s /path/to/VCTK-Corpus/downsampled_wavs DUMMY2
    3. Extract the speaker embedings of each audio following the instructions from YourTTS https://github.com/freds0/YourTTS
# Preprocessing (g2p) for your own datasets. Preprocessed phonemes for LJ Speech and VCTK have been already provided.
# python preprocess.py --text_index 1 --filelists filelists/ljs_audio_text_train_filelist.txt filelists/ljs_audio_text_val_filelist.txt filelists/ljs_audio_text_test_filelist.txt 
# python preprocess.py --text_index 2 --filelists filelists/vctk_audio_sid_text_train_filelist.txt filelists/vctk_audio_sid_text_val_filelist.txt filelists/vctk_audio_sid_text_test_filelist.txt

Training Exmaple

# TTS on LJ-Speech (EFTS2)
python train.py -c configs/ljs_base.json -m ljs_base

# VC on VCTK (EFTS2-VC)
python train_ms_vc.py -c configs/vctk_base.json -m vctk_base

Inference Example

TTS LJ-Speech

python3 inference.py path-to-checkpoint filelists/ljs_audio_text_test_filelist.txt.cleaned

VC VCTK

python3 inference_vc.py path-to-checkpoint filelists/vctk_audio_sid_text_test_filelist.txt.cleaned

efts2code's People

Contributors

mcf330 avatar

Stargazers

AlexYangli avatar  avatar Sofian Mejjoute avatar Lukas Schmit avatar

Watchers

 avatar

Forkers

ishine

efts2code's Issues

Pretrained checkpoints

Could you please provide pretrained checkpoints for LibriTTS, VCTK and LJSpeech datasets.

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.