Downloads · 30 days
0
amphion/fastspeech2_ljspeech
fastspeech2_ljspeech is a machine learning model from amphion. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
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.
Downloads · 30 days
0
Access
Public
Updated Feb 24, 2024
Repo size
417 MB
Likes
0
Public
Click a slice to open those files.
.bin417 MB · 100%
From the Hugging Face model README
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.
To utilize the pre-trained models, just run the following commands:
git lfs install
git clone https://huggingface.co/amphion/fastspeech2_ljspeech
git clone https://github.com/open-mmlab/Amphion.git
Use the soft link to specify the downloaded checkpoint in the first step:
cd Amphion
mkdir -p ckpts/tts
ln -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:
sh egs/tts/FastSpeech2/run.sh --stage 3 \
--config ckpts/tts/fastspeech2_ljspeech/args.json \
--infer_expt_dir ckpts/tts/fastspeech2_ljspeech/ \
--infer_output_dir ckpts/tts/fastspeech2_ljspeech/results \
--infer_mode "single" \
--infer_text "This is a clip of generated speech with the given text from a TTS model." \
--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.