Prasada commited on
Commit
fc3bfeb
·
1 Parent(s): 812a94c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -48,7 +48,8 @@ def predict(temp_text, temp_audio, text):
48
  with torch.no_grad():
49
  speech = vocoder(spectrogram)
50
 
51
- return speech.numpy()
 
52
 
53
 
54
 
 
48
  with torch.no_grad():
49
  speech = vocoder(spectrogram)
50
 
51
+ speech = (speech.numpy() * 32767).astype(np.int16)
52
+ return (16000, speech)
53
 
54
 
55