Giter Site home page Giter Site logo

purevoidov / forwardtacotron Goto Github PK

View Code? Open in Web Editor NEW

This project forked from as-ideas/forwardtacotron

0.0 1.0 0.0 111.08 MB

⏩ Generating speech in a single forward pass without any attention!

Home Page: https://as-ideas.github.io/ForwardTacotron/

License: MIT License

Python 100.00%

forwardtacotron's Introduction

⏩ ForwardTacotron

Inspired by Microsoft's FastSpeech we modified Tacotron (Fork from fatchord's WaveRNN) to generate speech in a single forward pass using a duration predictor to align text and generated mel spectrograms. Hence, we call the model ForwardTacotron (see Figure 1).

Figure 1: Model Architecture.

The model has following advantages:

  • Robustness: No repeats and failed attention modes for challenging sentences.
  • Speed: The generation of a mel spectogram takes about 0.04s on a GeForce RTX 2080.
  • Controllability: It is possible to control the speed of the generated utterance.
  • Efficiency: In contrast to FastSpeech and Tacotron, the model of ForwardTacotron does not use any attention. Hence, the required memory grows linearly with text size, which makes it possible to synthesize large articles at once.

🔈 Samples

Can be found here.

The samples are generated with a model trained 100K steps on LJSpeech together with the pretrained WaveRNN vocoder provided by the WaveRNN repo. Both models are commited in the pretrained folder. You can try them out with the following notebook:

Open In Colab

⚙️ Installation

Make sure you have:

Then install the rest with pip:

pip install -r requirements.txt

🚀 Training your own Model

(1) Download and preprocess the LJSpeech dataset:

python preprocess.py --path /path/to/ljspeech

(2) Train Tacotron with:

python train_tacotron.py

(3) Use the trained tacotron model to create alignment features with:

python train_tacotron.py --force_align

(4) Train ForwardTacotron with:

python train_forward.py

(5) Generate Sentences with Griffin-Lim vocoder:

python gen_forward.py --alpha 1 --input_text "this is whatever you want it to be" griffinlim

As in the original repo you can also use a trained WaveRNN vocoder:

python gen_forward.py --input_text "this is whatever you want it to be" wavernn

References

Acknowlegements

Maintainers

Copyright

See LICENSE for details.

forwardtacotron's People

Contributors

cschaefer26 avatar datitran avatar fatchord avatar mazzzystar avatar sih4sing5hong5 avatar thebutlah avatar

Watchers

 avatar

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.