GithubHelp home page GithubHelp logo

lturing / gst-tacotron-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from acetylsv/gst-tacotron

0.0 3.0 0.0 66 KB

Reproducing Style Tokens: Unsupervised Style Modeling, Control and Transfer in End-to-End Speech Synthesis (https://arxiv.org/pdf/1803.09017.pdf)

Python 100.00%

gst-tacotron-1's Introduction

GST-tacotron

Reproducing: Style Tokens: Unsupervised Style Modeling, Control and Transfer in End-to-End Speech Synthesis (https://arxiv.org/pdf/1803.09017.pdf)

Python and Toolkit Version

Python:      '3.5.2'
numpy:       '1.13.1'
tensorflow:  '1.4'

Steps and Usages

  1. Data Preprocess:
    • Prepare wavs and transcription
    • Example format:
Blizzard_2013|CA-MP3-17-138.wav|End of Mansfield Park by Jane Austin.
Blizzard_2013|CA-MP3-17-139.wav|Performed by Catherine Byers.
...
  1. Make TFrecords for faster data loading:
    • Check parameters in hyperparams.py
      • path informations
      • TFrecords partition number
      • sample_rate
      • fft points, hop length, window length
      • mel-filter banks number
    • Run:
python3 make_tfrecords.py
  1. Train the whole network:
    • Check log directory and model, summary settings in hyperparams.py
    • Run:
python3 train.py
  1. Evaluation while training:
    • (Currently only do evaluation on the first batch_size data)
    • (Decoder RNN are manually "FEED_PREVIOUS" now)
    • Run:
python3 eval.py
  1. Inference:
    • Check Inference input text in hyperparams.py
    • Pass reference audio path as argument
    • Reference audio: an arbitary .wav file
    • Directly condition on combination of GSTs is now undergoing, set below flag in infer.py condition_on_audio = False and set the combination weight you like
    • Run:
python3 infer.py [ref_audio_path]
  1. Inference input text example format:
0. Welcome to N. T. U. speech lab
1. Recognize speech
2. Wreck a nice beach
...

Notes

  1. At experiments 6-1 and 6-2, paper points out that one could SELECT some tokens, scale it and then feed this style embedding into text encoder. But at section 3.2.2, multi-head attention is used and each token is set to be 256/h dim. If so, at inference time, a selected token should have 256/h dim, but the text encoder should be fused with a 256 dim vector. And also, if one choose to use multi-head attention, then the style embedding will become some vectors'(which is the attention result of each head) concatenation passing through a linear network rather than GST's weighed sum. I do not really understand that if this is the case, can one simply SELECT some GST's combination to represent style embedding or not.
  2. Input phone seqs did not give better results or faster convergence speed.
  3. Dynamic bucketing with feed_previous decoder RNN seems not possible? (tf.split, tf.unstack, tf.shape, get_shape().as_list(), slicing... not seems to work)

TODO

  • Find an adequate dataset (Blizzard 2013)
  • (Failed) Implement feed_previous function in decoder RNN
  • Input phone seqs instead of character seqs
  • WaveNet vocoder

gst-tacotron-1's People

Contributors

acetylsv avatar

Watchers

James Cloos avatar  avatar paper2code - bot 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.