Update README.md
Browse files
README.md
CHANGED
@@ -37,11 +37,12 @@ Please notice that we encourage you to read our tutorials and learn more about
|
|
37 |
### Using the Vocoder
|
38 |
|
39 |
```python
|
|
|
40 |
from speechbrain.pretrained import UnitHIFIGAN
|
41 |
|
42 |
hifi_gan_unit = UnitHIFIGAN.from_hparams(source="speechbrain/tts-hifigan-unit-hubert-l6-k100-ljspeech", savedir="tmpdir_vocoder")
|
43 |
codes = torch.randint(0, 99, (100,))
|
44 |
-
waveform =
|
45 |
|
46 |
```
|
47 |
|
|
|
37 |
### Using the Vocoder
|
38 |
|
39 |
```python
|
40 |
+
import torch
|
41 |
from speechbrain.pretrained import UnitHIFIGAN
|
42 |
|
43 |
hifi_gan_unit = UnitHIFIGAN.from_hparams(source="speechbrain/tts-hifigan-unit-hubert-l6-k100-ljspeech", savedir="tmpdir_vocoder")
|
44 |
codes = torch.randint(0, 99, (100,))
|
45 |
+
waveform = hifi_gan_unit.decode_unit(codes)
|
46 |
|
47 |
```
|
48 |
|