Adel-Moumen commited on
Commit
d01e530
1 Parent(s): f0c9855

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -35,10 +35,10 @@ Please notice that we encourage you to read our tutorials and learn more about
35
 
36
  ### Perform Text-to-Speech (TTS)
37
 
38
- ```
39
  import torchaudio
40
- from speechbrain.pretrained import Tacotron2
41
- from speechbrain.pretrained import HIFIGAN
42
 
43
  # Intialize TTS (tacotron2) and Vocoder (HiFIGAN)
44
  tacotron2 = Tacotron2.from_hparams(source="speechbrain/tts-tacotron2-ljspeech", savedir="tmpdir_tts")
35
 
36
  ### Perform Text-to-Speech (TTS)
37
 
38
+ ```python
39
  import torchaudio
40
+ from speechbrain.inference.TTS import Tacotron2
41
+ from speechbrain.inference.vocoders import HIFIGAN
42
 
43
  # Intialize TTS (tacotron2) and Vocoder (HiFIGAN)
44
  tacotron2 = Tacotron2.from_hparams(source="speechbrain/tts-tacotron2-ljspeech", savedir="tmpdir_tts")