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