hhguo commited on
Commit
450be06
·
1 Parent(s): f425faa
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def tts_inference(text, prompt_wav='examples/prompt_1.wav', lang='zh'):
35
  prompt_wav=prompt_wav,
36
  text=text,
37
  lang=lang,
38
- ).detach().cpu().numpy()
39
  print(f'Generate waveform with the shape of {syn_audio.shape}')
40
  syn_audio = (syn_audio * 32768).astype(np.int16)
41
  return 48000, syn_audio
 
35
  prompt_wav=prompt_wav,
36
  text=text,
37
  lang=lang,
38
+ )[0].detach().cpu().numpy()
39
  print(f'Generate waveform with the shape of {syn_audio.shape}')
40
  syn_audio = (syn_audio * 32768).astype(np.int16)
41
  return 48000, syn_audio