Update app.py
Browse files
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="
|
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 |
)
|