speechbrainteam commited on
Commit
04d3069
1 Parent(s): 4608d10

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -41,7 +41,7 @@ from speechbrain.lobes.models.HifiGAN import mel_spectogram
41
  from speechbrain.utils.fetching import fetch
42
  from speechbrain.utils.data_utils import split_path
43
 
44
- diffwave = DiffWaveVocoder.from_hparams(source="speechbrain/tts-diffwave-ljspeech", savedir="tmpdir")
45
 
46
  source, fl = split_path("speechbrain/tts-diffwave-ljspeech/LJ050-0075.wav")
47
  path = fetch(fl, source=source, savedir="tmpdir")
@@ -82,8 +82,8 @@ from speechbrain.pretrained import FastSpeech2
82
  from speechbrain.pretrained import DiffWaveVocoder
83
 
84
  # Intialize TTS (FastSpeech2) and Vocoder (DiffWave)
85
- fastspeech2 = FastSpeech2.from_hparams(source="speechbrain/tts-fastspeech2-ljspeech", savedir="tmpdir_tts")
86
- diffwave = DiffWaveVocoder.from_hparams(source="speechbrain/tts-diffwave-ljspeech", savedir="tmpdir_vocoder")
87
 
88
  input_text = "This is a test run with FastSpeech and DiffWave."
89
 
 
41
  from speechbrain.utils.fetching import fetch
42
  from speechbrain.utils.data_utils import split_path
43
 
44
+ diffwave = DiffWaveVocoder.from_hparams(source="speechbrain/tts-diffwave-ljspeech", savedir="pretrained_models/tts-diffwave-ljspeech")
45
 
46
  source, fl = split_path("speechbrain/tts-diffwave-ljspeech/LJ050-0075.wav")
47
  path = fetch(fl, source=source, savedir="tmpdir")
 
82
  from speechbrain.pretrained import DiffWaveVocoder
83
 
84
  # Intialize TTS (FastSpeech2) and Vocoder (DiffWave)
85
+ fastspeech2 = FastSpeech2.from_hparams(source="speechbrain/tts-fastspeech2-ljspeech", savedir="pretrained_models/tts-fastspeech2-ljspeech")
86
+ diffwave = DiffWaveVocoder.from_hparams(source="speechbrain/tts-diffwave-ljspeech", savedir="pretrained_models/tts-diffwave-ljspeech")
87
 
88
  input_text = "This is a test run with FastSpeech and DiffWave."
89