You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PaddleSpeech/demos/style_fs2
TianYuan 69138a2c85
update readme, test=doc_fix (#1156)
3 years ago
..
README.md update readme, test=doc_fix (#1156) 3 years ago
path.sh
run.sh
sentences.txt
style_syn.py

README.md

Style FastSpeech2

Introduction

FastSpeech2 is a classical acoustic model for Text-to-Speech synthesis, which introduces controllable speech input, including phoneme durationenergy and pitch.

In the prediction phase, you can change these controllable variables to get some interesting results.

For example:

  1. The duration control in FastSpeech2 can control the speed of audios will keep the pitch. (in some speech tools, increasing the speed will increase the pitch and vice versa.)

  2. When we set the pitch of one sentence to a mean value and set the tones of phones to 1, we will get a robot-style timbre.

  3. When we raise the pitch of an adult female (with a fixed scale ratio), we will get a child-style timbre.

The duration and pitch of different phonemes in a sentence can have different scale ratios. You can set different scale ratios to emphasize or weaken the pronunciation of some phonemes.

Usage

Run the following command line to get started:

./run.sh

In run.sh, it will execute source path.sh firstly, which will set the environment variants.

If you would like to try your sentence, please replace the sentence in sentences.txt.

For more details, please see style_syn.py

The audio samples are in style-control-in-fastspeech2