mrfakename commited on
Commit
dcecee1
·
verified ·
1 Parent(s): bb53d91

Update app.py

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