cotxetj commited on
Commit
ec1277a
1 Parent(s): 936a542

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)