Giter Club home page Giter Club logo

tacotron's Introduction

PyTacotron

PyTorch implementation of Tacotron: Towards End-to-End Speech Synthesis, and
PyTorch implementation of Natural TTS synthesis by conditioning Wavenet on MEL spectogram predictions.

Features

Branches

New configurations can be created by merging features from the following different branches.

  • master: Basic Tacotron and Tacotron2 implementation

  • dynamic_r: Dynamic reduction factor (r) changing along with training schedule

  • gst: Global style token (GST) support

  • multispeaker: Multi-speaker support with speaker embeddings

Setup

  1. Prepare DATASET directory
    • Prepare train.csv.txt and val.csv.txt files
    • Change training_files and validation_files in hparams.py to the above two files respectively
    • Make necessary modifications to files_to_list to retrieve 'mel_file_path' and 'text' in utils/dataset.py
  2. Install PyTorch
  3. Install python requirements or build docker image
    • Install python requirements: pip install -r requirements.txt

Training

Training from scratch

  1. python train.py -o outdir -l logdir
  2. (OPTIONAL) tensorboard --logdir=logdir

Training using a pre-trained model

Training using a pre-trained model can lead to faster convergence
By default, the dataset dependent text embedding layers are ignored

  1. Download the published Tacotron model
  2. python train.py -o outdir -l logdir -c tacotron_statedict.pt --warm_start

Multi-GPU (distributed) Training

  1. python train.py -o outdir -l logdir --hparams=distributed_run=True

Inference demo

  1. Download published Tacotron model
  2. Download published WaveGAN model
  3. jupyter notebook --ip=127.0.0.1 --port=31337
  4. Load inference.ipynb

Note: When performing Mel-Spectrogram to Audio synthesis, make sure Tacotron and the Mel decoder were trained on the same mel-spectrogram representation.

Acknowledgements

This implementation uses code from the following repos as described in our code.

tacotron's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tacotron's Issues

How to inference?

I could not find the inference.ipynb in your repository.
Can you share it?

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.