Update README.md
Browse files
README.md
CHANGED
@@ -49,7 +49,7 @@ hifi_gan_unit = UnitHIFIGAN.from_hparams(source="speechbrain/tts-hifigan-unit-hu
|
|
49 |
codes = s2ut.translate_file("speechbrain/s2st-transformer-fr-en-hubert-l6-k100-cvss/example-fr.wav")
|
50 |
|
51 |
# Running Vocoder (units-to-waveform)
|
52 |
-
waveforms =
|
53 |
|
54 |
# Save the waverform
|
55 |
torchaudio.save('example.wav',waveforms.squeeze(1), 16000)
|
|
|
49 |
codes = s2ut.translate_file("speechbrain/s2st-transformer-fr-en-hubert-l6-k100-cvss/example-fr.wav")
|
50 |
|
51 |
# Running Vocoder (units-to-waveform)
|
52 |
+
waveforms = hifi_gan_unit.decode_unit(codes)
|
53 |
|
54 |
# Save the waverform
|
55 |
torchaudio.save('example.wav',waveforms.squeeze(1), 16000)
|