Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,49 @@
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
4 |
+
|
5 |
+
# Pretrained Model of Amphion HiFi-GAN
|
6 |
+
|
7 |
+
We provide the pre-trained checkpoint of [HiFi-GAN](https://github.com/open-mmlab/Amphion/tree/main/egs/tts/FastSpeech2) trained on LJSpeech, which consists of 13,100 short audio clips of a single speaker and has a total length of approximately 24 hours.
|
8 |
+
|
9 |
+
|
10 |
+
## Quick Start
|
11 |
+
|
12 |
+
To utilize the pre-trained models, just run the following commands:
|
13 |
+
|
14 |
+
### Step1: Download the checkpoint
|
15 |
+
```bash
|
16 |
+
git lfs install
|
17 |
+
git clone https://huggingface.co/amphion/hifigan_ljspeech
|
18 |
+
```
|
19 |
+
|
20 |
+
### Step2: Clone the Amphion's Source Code of GitHub
|
21 |
+
```bash
|
22 |
+
git clone https://github.com/open-mmlab/Amphion.git
|
23 |
+
```
|
24 |
+
|
25 |
+
### Step3: Specify the checkpoint's path
|
26 |
+
Use the soft link to specify the downloaded checkpoint in the first step:
|
27 |
+
|
28 |
+
```bash
|
29 |
+
cd Amphion
|
30 |
+
mkdir -p ckpts/tts
|
31 |
+
ln -s ../../../hifigan_ljspeech ckpts/tts/
|
32 |
+
```
|
33 |
+
|
34 |
+
### Step4: Inference
|
35 |
+
|
36 |
+
This HiFi-GAN Vocoder is pre-trained to support [Amphion FastSpeech 2](https://github.com/open-mmlab/Amphion/tree/main/egs/tts/FastSpeech2) to generate speech waveform from Mel spectrogram.
|
37 |
+
You can follow the inference part of [this recipe](https://github.com/open-mmlab/Amphion/tree/main/egs/tts/FastSpeech2#4-inference) to generate speech. 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:
|
38 |
+
|
39 |
+
```bash
|
40 |
+
|
41 |
+
sh egs/tts/FastSpeech2/run.sh --stage 3 \
|
42 |
+
--config ckpts/tts/fastspeech2_ljspeech/args.json \
|
43 |
+
--infer_expt_dir ckpts/tts/fastspeech2_ljspeech/ \
|
44 |
+
--infer_output_dir ckpts/tts/fastspeech2_ljspeech/results \
|
45 |
+
--infer_mode "single" \
|
46 |
+
--infer_text "This is a clip of generated speech with the given text from a TTS model." \
|
47 |
+
--vocoder_dir ckpts/vocoder/hifigan_ljspeech/checkpoints/ \
|
48 |
+
```
|
49 |
+
|