Git Product home page Git Product logo

lightspeech's Introduction

LightSpeech

A Light, Fast and Robust Speech Synthesis.

Architecture

I use an embedding layer whose dimension size is 256 and a one layer GRU whose input dimension is 256 and output dimension is 512 as encoder. I also use a length regulator module to expand encoder output sequence to make its length equal to mel spectrogram's which shares the same idea as FastSpeech, however, I use two layer linear network to replace the conv layer proposed in the FastSpeech. I observed that two layer linear net could learn the alignment between encoder output and mel spectrogram which has less parameter than conv layer. In the decoder, I use a one layer GRU whose input dimension is 512 and output dimension is 256. To synthesize mel spectrogram, I use a linear layer as post net to output 80 dimension mel spectrogram. The number of total parameter is just 1.8M which is 1/19 of FastSpeech's and 1/15 of Tacotron2's.

Training

I use Tacotron2 which is in the inference stage to provide alignment and mel spectrogram as targets of training LigthSpeech. I find that if I use Tacotron2 which is in the training stage to provide alignment as target of length regulator and ground truth mel spectrogram as target of decoder, it will cause the model performs worse. I don't know why, and above-mentioned will be a bottleneck of the performance of LightSpeech.

How to Use

  1. Put Nvidia pretrained Tacotron2 model in the Tacotron2/pre_trained_model;
  2. Put Nvidia pretrained waveglow model in the waveglow/pre_trained_model;
  3. python preprocess;
  4. python train.py.

Eval

Here is result. LightSpeech is faster than FastSpeech which is 0.020s/6.7s and much lighter than FastSpeech.

Weakness

The quality of audio synthesized.

lightspeech's People

Contributors

xcmyz 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.