Update app.py
Browse files
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 |
-
|
|
|
|
| 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 |
|