Giter VIP home page Giter VIP logo

speechsplit2's Introduction

SpeechSplit2

Official implementation of SpeechSplit 2.0: Unsupervised speech disentanglement for voice conversion Without tuning autoencoder Bottlenecks.

Audio Demo

The audio demo can be found here.

Pretrained Models

Small Bottleneck Large Bottleneck
Generator link link
F0 Converter link link

The WaveNet vocoder is the same as in AutoVC. Please refer to the original repo to download the vocoder.

Demo

To run the demo, first create a new directory called models and download the pretrained models and the WaveNet vocoder into this directory. Then, run demo.ipynb. The converted results will be saved under result.

Training

1. Prepare dataset

Download the VCTK Corpus and place it under data/train. The data directory should look like:

  data
    |__train
    |    |__P225
    |        |__wavfile1
    |        |__wavfile2
    |        ...
    |    |__P226
    |     ...
    |__test
         |__p225_001.wav # source audio for demo
         |__p258_001.wav # target audio for demo

NOTE: The released models were trained only on a subset of speakers in the VCTK corpus. The full list of speakers for training is encoded as a dictionary and saved in spk_meta.pkl. If you want to train with more speakers or use another dataset, please prepare the metadata in the following key-value format:

speaker: (id, gender)

where speaker should be a string, id should be a unique integer for each speaker(will be used to generate one-hot speaker vector), and gender should either be "M"(for male) and "F"(for female).

2. Generate features

To generate features, run

python main.py --stage 0

By default, all generated features are saved in the feat directory.

3. Train the model

To train a model from scratch, run

python main.py --stage 1 --config_name spsp2-large --model_type G

To finetune a pretrained model(make sure all pretrained models are downloaded into models), run

python main.py --stage 1 --config_name spsp2-large --model_type G --resume_iters 800000

If you want to train the variant with smaller bottleneck, replace spsp2-large with spsp2-small. If you want to train the pitch converter, replace G with F.

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.