speechbrainteam commited on
Commit
61ba0ed
·
verified ·
1 Parent(s): 10b033b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -43,8 +43,8 @@ from speechbrain.inference.TTS import FastSpeech2InternalAlignment
43
  from speechbrain.inference.vocoders import HIFIGAN
44
 
45
  # Intialize TTS (tacotron2) and Vocoder (HiFIGAN)
46
- fastspeech2 = FastSpeech2InternalAlignment.from_hparams(source="speechbrain/tts-fastspeech2-internal-alignment-ljspeech", savedir="tmpdir_tts")
47
- hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech", savedir="tmpdir_vocoder")
48
 
49
  # Run TTS with text input
50
  input_text = "Welcome to speechbrain, this is a test run with fastspeech internal alignment."
@@ -84,7 +84,7 @@ If you want to generate multiple sentences in one-shot, you can do in this way:
84
 
85
  ```python
86
  from speechbrain.inference.TTS import FastSpeech2InternalAlignment
87
- fastspeech2 = FastSpeech2InternalAlignment.from_hparams(source="speechbrain/tts-fastspeech2-internal-alignment-ljspeech", savedir="tmpdir_tts")
88
  items = [
89
  "A quick brown fox jumped over the lazy dog",
90
  "How much wood would a woodchuck chuck?",
 
43
  from speechbrain.inference.vocoders import HIFIGAN
44
 
45
  # Intialize TTS (tacotron2) and Vocoder (HiFIGAN)
46
+ fastspeech2 = FastSpeech2InternalAlignment.from_hparams(source="speechbrain/tts-fastspeech2-internal-alignment-ljspeech", savedir="pretrained_models/tts-fastspeech2-internal-alignment-ljspeech")
47
+ hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech", savedir="pretrained_models/tts-hifigan-ljspeech")
48
 
49
  # Run TTS with text input
50
  input_text = "Welcome to speechbrain, this is a test run with fastspeech internal alignment."
 
84
 
85
  ```python
86
  from speechbrain.inference.TTS import FastSpeech2InternalAlignment
87
+ fastspeech2 = FastSpeech2InternalAlignment.from_hparams(source="speechbrain/tts-fastspeech2-internal-alignment-ljspeech", savedir="pretrained_models/tts-fastspeech2-internal-alignment-ljspeech")
88
  items = [
89
  "A quick brown fox jumped over the lazy dog",
90
  "How much wood would a woodchuck chuck?",