Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def predict(text, speaker):
|
|
53 |
|
54 |
speech = model.generate_speech(input_ids, speaker_embedding, vocoder=vocoder)
|
55 |
|
56 |
-
|
57 |
return (16000, speech)
|
58 |
|
59 |
|
|
|
53 |
|
54 |
speech = model.generate_speech(input_ids, speaker_embedding, vocoder=vocoder)
|
55 |
|
56 |
+
speech = (speech.numpy() * 32767).astype(np.int16)
|
57 |
return (16000, speech)
|
58 |
|
59 |
|