Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ def synthesise(text):
|
|
| 39 |
def speech_to_speech_translation(audio):
|
| 40 |
translated_text = translate(audio)
|
| 41 |
synthesised_speech = synthesise(translated_text)
|
| 42 |
-
synthesised_speech = (synthesised_speech
|
| 43 |
return 16000, synthesised_speech
|
| 44 |
|
| 45 |
|
|
|
|
| 39 |
def speech_to_speech_translation(audio):
|
| 40 |
translated_text = translate(audio)
|
| 41 |
synthesised_speech = synthesise(translated_text)
|
| 42 |
+
synthesised_speech = (synthesised_speech * 32767).astype(np.int16)
|
| 43 |
return 16000, synthesised_speech
|
| 44 |
|
| 45 |
|