Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,8 +80,9 @@ def speak(text):
|
|
80 |
conditioning_free=True, conditioning_free_k=2., sampler='dpm++2m')
|
81 |
diffusion_conditioning = normalize_tacotron_mel(cond_mel)
|
82 |
mel = do_spectrogram_diffusion(diffusion, diffuser, latent, diffusion_conditioning, temperature=1.0).detach().cpu()
|
83 |
-
wav = vocos.decode(mel).detach().cpu()
|
84 |
-
|
|
|
85 |
# with tempfile.NamedTemporaryFile(suffix='.wav', delete=False) as f:
|
86 |
# write(f.name, data=wav, rate=24000)
|
87 |
# return f.name
|
|
|
80 |
conditioning_free=True, conditioning_free_k=2., sampler='dpm++2m')
|
81 |
diffusion_conditioning = normalize_tacotron_mel(cond_mel)
|
82 |
mel = do_spectrogram_diffusion(diffusion, diffuser, latent, diffusion_conditioning, temperature=1.0).detach().cpu()
|
83 |
+
wav = vocos.decode(mel).detach().cpu()
|
84 |
+
print(wav)
|
85 |
+
return (24000, wav.numpy())
|
86 |
# with tempfile.NamedTemporaryFile(suffix='.wav', delete=False) as f:
|
87 |
# write(f.name, data=wav, rate=24000)
|
88 |
# return f.name
|