Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def speech_to_speech_translation(audio):
|
|
42 |
synthesised_speech = synthesise(translated_text)
|
43 |
synthesised_speech = (
|
44 |
synthesised_speech.numpy() * 32767).astype(np.int16)
|
45 |
-
return
|
46 |
|
47 |
def predict(transType, language, audio, audio_mic = None):
|
48 |
print("debug1:", audio,"debug2", audio_mic)
|
|
|
42 |
synthesised_speech = synthesise(translated_text)
|
43 |
synthesised_speech = (
|
44 |
synthesised_speech.numpy() * 32767).astype(np.int16)
|
45 |
+
return (16000, synthesised_speech)
|
46 |
|
47 |
def predict(transType, language, audio, audio_mic = None):
|
48 |
print("debug1:", audio,"debug2", audio_mic)
|