Update speechbrain.pretrained to speechbrain.inference
#2
by
Bronsn
- opened
README.md
CHANGED
@@ -33,11 +33,11 @@ pip install speechbrain
|
|
33 |
|
34 |
```
|
35 |
import torchaudio
|
36 |
-
from speechbrain.
|
37 |
-
from speechbrain.
|
38 |
|
39 |
# Intialize TTS (tacotron2) and Vocoder (HiFIGAN)
|
40 |
-
tacotron2 = Tacotron2.from_hparams(source="
|
41 |
hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech", savedir="tmpdir_vocoder")
|
42 |
|
43 |
# Running the TTS
|
|
|
33 |
|
34 |
```
|
35 |
import torchaudio
|
36 |
+
from speechbrain.inference import Tacotron2
|
37 |
+
from speechbrain.inference import HIFIGAN
|
38 |
|
39 |
# Intialize TTS (tacotron2) and Vocoder (HiFIGAN)
|
40 |
+
tacotron2 = Tacotron2.from_hparams(source="Sunbird/sunbird-lug-tts", savedir="tmpdir_tts")
|
41 |
hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech", savedir="tmpdir_vocoder")
|
42 |
|
43 |
# Running the TTS
|