Unverified Commit 0ffda1df authored by Suraj Patil's avatar Suraj Patil Committed by GitHub
Browse files

Update README.md

parent 20c722c6
......@@ -247,11 +247,11 @@ bddm = BDDM.from_pretrained("fusing/diffwave-vocoder-ljspeech")
text = "Hello world, I missed you so much."
# generate mel spectograms using text
mel_spec = grad_tts(text)
mel_spec = grad_tts(text, torch_device=torch_device)
# generate the speech by passing mel spectograms to BDDM pipeline
generator = torch.manual_seed(42)
audio = bddm(mel_spec, generator)
audio = bddm(mel_spec, generator, torch_device=torch_device)
# save generated audio
from scipy.io.wavfile import write as wavwrite
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment