We provide the pre-trained checkpoint of
FastSpeech 2 trained on LJSpeech, which consists of 13,100 short audio clips of a single speaker and has a total length of approximately 24 hours.
1git lfs install
2git clone https://huggingface.co/amphion/fastspeech2_ljspeech
1cd Amphion
2mkdir -p ckpts/tts
3ln -s ../../../fastspeech2_ljspeech ckpts/tts/
You can follow the inference part of
this recipe to generate speech from text. For example, if you want to synthesize a clip of speech with the text of "This is a clip of generated speech with the given text from a TTS model.", just, run:
1
2sh egs/tts/FastSpeech2/run.sh --stage 3 \
3 --config ckpts/tts/fastspeech2_ljspeech/args.json \
4 --infer_expt_dir ckpts/tts/fastspeech2_ljspeech/ \
5 --infer_output_dir ckpts/tts/fastspeech2_ljspeech/results \
6 --infer_mode "single" \
7 --infer_text "This is a clip of generated speech with the given text from a TTS model." \
8 --vocoder_dir ckpts/vocoder/hifigan_ljspeech/checkpoints/ \
*Noted: Inference FastSpeech 2 requires a vocoder to reconstruct waveform from Mel spectrogram. The pre-trained Amphion HiFi-GAN Vocoder that matches this Amphion FastSpeech 2 can be download
here.