Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
0ffda1df
Unverified
Commit
0ffda1df
authored
Jun 16, 2022
by
Suraj Patil
Committed by
GitHub
Jun 16, 2022
Browse files
Update README.md
parent
20c722c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+2
-2
No files found.
README.md
View file @
0ffda1df
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment