Update README.md
Browse files
README.md
CHANGED
|
@@ -43,8 +43,8 @@ from speechbrain.inference.TTS import FastSpeech2InternalAlignment
|
|
| 43 |
from speechbrain.inference.vocoders import HIFIGAN
|
| 44 |
|
| 45 |
# Intialize TTS (tacotron2) and Vocoder (HiFIGAN)
|
| 46 |
-
fastspeech2 = FastSpeech2InternalAlignment.from_hparams(source="speechbrain/tts-fastspeech2-internal-alignment-ljspeech", savedir="
|
| 47 |
-
hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech", savedir="
|
| 48 |
|
| 49 |
# Run TTS with text input
|
| 50 |
input_text = "Welcome to speechbrain, this is a test run with fastspeech internal alignment."
|
|
@@ -84,7 +84,7 @@ If you want to generate multiple sentences in one-shot, you can do in this way:
|
|
| 84 |
|
| 85 |
```python
|
| 86 |
from speechbrain.inference.TTS import FastSpeech2InternalAlignment
|
| 87 |
-
fastspeech2 = FastSpeech2InternalAlignment.from_hparams(source="speechbrain/tts-fastspeech2-internal-alignment-ljspeech", savedir="
|
| 88 |
items = [
|
| 89 |
"A quick brown fox jumped over the lazy dog",
|
| 90 |
"How much wood would a woodchuck chuck?",
|
|
|
|
| 43 |
from speechbrain.inference.vocoders import HIFIGAN
|
| 44 |
|
| 45 |
# Intialize TTS (tacotron2) and Vocoder (HiFIGAN)
|
| 46 |
+
fastspeech2 = FastSpeech2InternalAlignment.from_hparams(source="speechbrain/tts-fastspeech2-internal-alignment-ljspeech", savedir="pretrained_models/tts-fastspeech2-internal-alignment-ljspeech")
|
| 47 |
+
hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech", savedir="pretrained_models/tts-hifigan-ljspeech")
|
| 48 |
|
| 49 |
# Run TTS with text input
|
| 50 |
input_text = "Welcome to speechbrain, this is a test run with fastspeech internal alignment."
|
|
|
|
| 84 |
|
| 85 |
```python
|
| 86 |
from speechbrain.inference.TTS import FastSpeech2InternalAlignment
|
| 87 |
+
fastspeech2 = FastSpeech2InternalAlignment.from_hparams(source="speechbrain/tts-fastspeech2-internal-alignment-ljspeech", savedir="pretrained_models/tts-fastspeech2-internal-alignment-ljspeech")
|
| 88 |
items = [
|
| 89 |
"A quick brown fox jumped over the lazy dog",
|
| 90 |
"How much wood would a woodchuck chuck?",
|