Adel-Moumen commited on
Commit
50cb060
1 Parent(s): bc73d81

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -68,8 +68,8 @@ If you want to generate a random voice, you can use the following:
68
 
69
  ```
70
  import torchaudio
71
- from speechbrain.pretrained import MSTacotron2
72
- from speechbrain.pretrained import HIFIGAN
73
 
74
  # Intialize TTS (mstacotron2) and Vocoder (HiFIGAN)
75
  ms_tacotron2 = MSTacotron2.from_hparams(source="speechbrain/tts-mstacotron2-libritts", savedir="tmpdir_tts")
@@ -94,8 +94,8 @@ Note: The model internally reorders the input texts in the decreasing order of t
94
 
95
  ```
96
  import torchaudio
97
- from speechbrain.pretrained import MSTacotron2
98
- from speechbrain.pretrained import HIFIGAN
99
 
100
  # Intialize TTS (mstacotron2) and Vocoder (HiFIGAN)
101
  ms_tacotron2 = MSTacotron2.from_hparams(source="speechbrain/tts-mstacotron2-libritts", savedir="tmpdir_tts")
 
68
 
69
  ```
70
  import torchaudio
71
+ from speechbrain.inference.TTS import MSTacotron2
72
+ from speechbrain.inference.vocoders import HIFIGAN
73
 
74
  # Intialize TTS (mstacotron2) and Vocoder (HiFIGAN)
75
  ms_tacotron2 = MSTacotron2.from_hparams(source="speechbrain/tts-mstacotron2-libritts", savedir="tmpdir_tts")
 
94
 
95
  ```
96
  import torchaudio
97
+ from speechbrain.inference.TTS import MSTacotron2
98
+ from speechbrain.inference.vocoders import HIFIGAN
99
 
100
  # Intialize TTS (mstacotron2) and Vocoder (HiFIGAN)
101
  ms_tacotron2 = MSTacotron2.from_hparams(source="speechbrain/tts-mstacotron2-libritts", savedir="tmpdir_tts")