speechbrainteam commited on
Commit
b01e49e
1 Parent(s): fe0c60a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -54,7 +54,7 @@ from speechbrain.inference.vocoders import HIFIGAN
54
  from speechbrain.lobes.models.FastSpeech2 import mel_spectogram
55
 
56
  # Load a pretrained HIFIGAN Vocoder
57
- hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech", savedir="tmpdir_vocoder")
58
 
59
  # Load an audio file (an example file can be found in this repository)
60
  # Ensure that the audio signal is sampled at 22050 Hz; refer to the provided link for a 16 kHz Vocoder.
@@ -97,8 +97,8 @@ from speechbrain.inference.vocoders TTS Tacotron2
97
  from speechbrain.inference.vocoders import HIFIGAN
98
 
99
  # Intialize TTS (tacotron2) and Vocoder (HiFIGAN)
100
- tacotron2 = Tacotron2.from_hparams(source="speechbrain/tts-tacotron2-ljspeech", savedir="tmpdir_tts")
101
- hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech", savedir="tmpdir_vocoder")
102
 
103
  # Running the TTS
104
  mel_output, mel_length, alignment = tacotron2.encode_text("Mary had a little lamb")
 
54
  from speechbrain.lobes.models.FastSpeech2 import mel_spectogram
55
 
56
  # Load a pretrained HIFIGAN Vocoder
57
+ hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech", savedir="pretrained_models/tts-hifigan-ljspeech")
58
 
59
  # Load an audio file (an example file can be found in this repository)
60
  # Ensure that the audio signal is sampled at 22050 Hz; refer to the provided link for a 16 kHz Vocoder.
 
97
  from speechbrain.inference.vocoders import HIFIGAN
98
 
99
  # Intialize TTS (tacotron2) and Vocoder (HiFIGAN)
100
+ tacotron2 = Tacotron2.from_hparams(source="speechbrain/tts-tacotron2-ljspeech", savedir="pretrained_models/tts-tacotron2-ljspeech")
101
+ hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech", savedir="pretrained_model/tts-hifigan-ljspeech")
102
 
103
  # Running the TTS
104
  mel_output, mel_length, alignment = tacotron2.encode_text("Mary had a little lamb")