Baghdad99 commited on
Commit
4918a16
1 Parent(s): d72503c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -84,7 +84,7 @@ def translate_speech(audio_input):
84
  # Define the Gradio interface
85
  iface = gr.Interface(
86
  fn=translate_speech,
87
- inputs=gr.inputs.Audio(source="microphone"), # Change this line
88
  outputs=gr.outputs.Audio(type="numpy"),
89
  title="Hausa to English Translation",
90
  description="Realtime demo for Hausa to English translation using speech recognition and text-to-speech synthesis."
 
84
  # Define the Gradio interface
85
  iface = gr.Interface(
86
  fn=translate_speech,
87
+ inputs=gr.inputs.Audio(source="microphone", type="filepath"), # Change this line
88
  outputs=gr.outputs.Audio(type="numpy"),
89
  title="Hausa to English Translation",
90
  description="Realtime demo for Hausa to English translation using speech recognition and text-to-speech synthesis."