Update README.md
Browse files
README.md
CHANGED
@@ -9,12 +9,11 @@ license: mit
|
|
9 |
datasets:
|
10 |
- infore
|
11 |
---
|
12 |
-
#
|
13 |
-
## Install TensorFlowTTS
|
14 |
```
|
15 |
pip install TensorFlowTTS
|
16 |
```
|
17 |
-
|
18 |
```python
|
19 |
import numpy as np
|
20 |
import soundfile as sf
|
@@ -42,7 +41,7 @@ mel_before, mel_after, duration_outputs, _, _ = fastspeech2.inference(
|
|
42 |
)
|
43 |
```
|
44 |
|
45 |
-
|
46 |
```python
|
47 |
mb_melgan = TFAutoModel.from_pretrained("tensorspeech/tts-mb_melgan-ljspeech-en")
|
48 |
|
@@ -54,7 +53,7 @@ sf.write("audio_after.wav", audio_after, 22050, "PCM_16")
|
|
54 |
|
55 |
ipd.Audio('audio_after.wav')
|
56 |
```
|
57 |
-
|
58 |
```
|
59 |
@misc{ren2021fastspeech,
|
60 |
title={FastSpeech 2: Fast and High-Quality End-to-End Text to Speech},
|
|
|
9 |
datasets:
|
10 |
- infore
|
11 |
---
|
12 |
+
# Install TensorFlowTTS
|
|
|
13 |
```
|
14 |
pip install TensorFlowTTS
|
15 |
```
|
16 |
+
## Converting your Text to Mel Spectrogram
|
17 |
```python
|
18 |
import numpy as np
|
19 |
import soundfile as sf
|
|
|
41 |
)
|
42 |
```
|
43 |
|
44 |
+
### Bonus: Convert Mel Spectrogram to Speech
|
45 |
```python
|
46 |
mb_melgan = TFAutoModel.from_pretrained("tensorspeech/tts-mb_melgan-ljspeech-en")
|
47 |
|
|
|
53 |
|
54 |
ipd.Audio('audio_after.wav')
|
55 |
```
|
56 |
+
#### Referencing FastSpeech2
|
57 |
```
|
58 |
@misc{ren2021fastspeech,
|
59 |
title={FastSpeech 2: Fast and High-Quality End-to-End Text to Speech},
|