Baghdad99 commited on
Commit
8fe6fd5
1 Parent(s): 08745e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,8 +39,8 @@ def translate_speech(audio):
39
  # Define the Gradio interface
40
  iface = gr.Interface(
41
  fn=translate_speech,
42
- inputs=gr.Audio(source="microphone", type="numpy"),
43
- outputs=gr.outputs.Audio(type="auto"),
44
  title="Hausa to English Translation",
45
  description="Realtime demo for Hausa to English translation using speech recognition and text-to-speech synthesis."
46
  )
 
39
  # Define the Gradio interface
40
  iface = gr.Interface(
41
  fn=translate_speech,
42
+ inputs=gr.inputs.Audio(source="microphone", type="numpy"),
43
+ outputs=gr.outputs.Audio(type="numpy"),
44
  title="Hausa to English Translation",
45
  description="Realtime demo for Hausa to English translation using speech recognition and text-to-speech synthesis."
46
  )