vladelesin commited on
Commit
ee10fc9
·
1 Parent(s): 62a7e0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -38,12 +38,11 @@ def synthesise(text):
38
  return speech.to("cpu")
39
 
40
  def speech_to_speech_translation(audio):
41
- translated_text = transform_audio_to_speech_en(audio)
42
  synthesised_speech = synthesise(translated_text)
43
  synthesised_speech = (synthesised_speech.numpy() * 32767).astype(np.int16)
44
  return 16000, synthesised_speech[0]
45
 
46
-
47
  demo = gr.Blocks()
48
 
49
  mic_translate = gr.Interface(
 
38
  return speech.to("cpu")
39
 
40
  def speech_to_speech_translation(audio):
41
+ translated_text = translator(audio)
42
  synthesised_speech = synthesise(translated_text)
43
  synthesised_speech = (synthesised_speech.numpy() * 32767).astype(np.int16)
44
  return 16000, synthesised_speech[0]
45
 
 
46
  demo = gr.Blocks()
47
 
48
  mic_translate = gr.Interface(