speechbrainteam
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -43,8 +43,8 @@ from speechbrain.inference.TTS import FastSpeech2
|
|
43 |
from speechbrain.inference.vocoders import HIFIGAN
|
44 |
|
45 |
# Intialize TTS (tacotron2) and Vocoder (HiFIGAN)
|
46 |
-
fastspeech2 = FastSpeech2.from_hparams(source="speechbrain/tts-fastspeech2-ljspeech", savedir="
|
47 |
-
hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech", savedir="
|
48 |
|
49 |
# Run TTS with text input
|
50 |
input_text = "were the leaders in this luckless change; though our own Baskerville; who was at work some years before them; went much on the same lines;"
|
@@ -83,7 +83,7 @@ If you want to generate multiple sentences in one-shot, you can do in this way:
|
|
83 |
|
84 |
```python
|
85 |
from speechbrain.inference.TTS import FastSpeech2
|
86 |
-
fastspeech2 = FastSpeech2.from_hparams(source="speechbrain/tts-fastspeech2-ljspeech", savedir="
|
87 |
items = [
|
88 |
"A quick brown fox jumped over the lazy dog",
|
89 |
"How much wood would a woodchuck chuck?",
|
|
|
43 |
from speechbrain.inference.vocoders import HIFIGAN
|
44 |
|
45 |
# Intialize TTS (tacotron2) and Vocoder (HiFIGAN)
|
46 |
+
fastspeech2 = FastSpeech2.from_hparams(source="speechbrain/tts-fastspeech2-ljspeech", savedir="pretrained_models/tts-fastspeech2-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 = "were the leaders in this luckless change; though our own Baskerville; who was at work some years before them; went much on the same lines;"
|
|
|
83 |
|
84 |
```python
|
85 |
from speechbrain.inference.TTS import FastSpeech2
|
86 |
+
fastspeech2 = FastSpeech2.from_hparams(source="speechbrain/tts-fastspeech2-ljspeech", savedir="pretrained_models/tts-fastspeech2-ljspeech")
|
87 |
items = [
|
88 |
"A quick brown fox jumped over the lazy dog",
|
89 |
"How much wood would a woodchuck chuck?",
|