Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -144,7 +144,7 @@ def speech_to_speech_translation(audio):
|
|
144 |
synthesised_speech = synthesise(translated_text)
|
145 |
synthesised_speech = (
|
146 |
synthesised_speech.numpy() * 32767).astype(np.int16)
|
147 |
-
return [translated_text, (16000, synthesised_speech)]
|
148 |
|
149 |
def predict(transType, language, audio, audio_mic = None):
|
150 |
print("debug1:", audio,"debug2", audio_mic)
|
|
|
144 |
synthesised_speech = synthesise(translated_text)
|
145 |
synthesised_speech = (
|
146 |
synthesised_speech.numpy() * 32767).astype(np.int16)
|
147 |
+
return [translated_text, None, (16000, synthesised_speech)]
|
148 |
|
149 |
def predict(transType, language, audio, audio_mic = None):
|
150 |
print("debug1:", audio,"debug2", audio_mic)
|