Adel-Moumen commited on
Commit
4bfe4bc
1 Parent(s): 3f31acd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -39,7 +39,7 @@ Please notice that we encourage you to read our tutorials and learn more about
39
  - *Basic Usage:*
40
  ```python
41
  import torch
42
- from speechbrain.pretrained import HIFIGAN
43
  hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-libritts-16kHz", savedir="tmpdir")
44
  mel_specs = torch.rand(2, 80,298)
45
 
@@ -50,7 +50,7 @@ waveforms = hifi_gan.decode_batch(mel_specs)
50
  - *Spectrogram to Waveform Conversion:*
51
  ```python
52
  import torchaudio
53
- from speechbrain.pretrained import HIFIGAN
54
  from speechbrain.lobes.models.FastSpeech2 import mel_spectogram
55
 
56
  # Load a pretrained HIFIGAN Vocoder
 
39
  - *Basic Usage:*
40
  ```python
41
  import torch
42
+ from speechbrain.inference.vocoders import HIFIGAN
43
  hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-libritts-16kHz", savedir="tmpdir")
44
  mel_specs = torch.rand(2, 80,298)
45
 
 
50
  - *Spectrogram to Waveform Conversion:*
51
  ```python
52
  import torchaudio
53
+ from speechbrain.inference.vocoders import HIFIGAN
54
  from speechbrain.lobes.models.FastSpeech2 import mel_spectogram
55
 
56
  # Load a pretrained HIFIGAN Vocoder