Update app.py
Browse files
app.py
CHANGED
@@ -34,10 +34,11 @@ def translate_speech(audio):
|
|
34 |
# Define the Gradio interface
|
35 |
iface = gr.Interface(
|
36 |
fn=translate_speech,
|
37 |
-
inputs=gr.inputs.Audio(source="microphone", type="
|
38 |
outputs=gr.outputs.Audio(type="numpy"),
|
39 |
title="Hausa to English Translation",
|
40 |
description="Realtime demo for Hausa to English translation using speech recognition and text-to-speech synthesis."
|
41 |
)
|
42 |
|
|
|
43 |
iface.launch()
|
|
|
34 |
# Define the Gradio interface
|
35 |
iface = gr.Interface(
|
36 |
fn=translate_speech,
|
37 |
+
inputs=gr.inputs.Audio(source="microphone", type="numpy"),
|
38 |
outputs=gr.outputs.Audio(type="numpy"),
|
39 |
title="Hausa to English Translation",
|
40 |
description="Realtime demo for Hausa to English translation using speech recognition and text-to-speech synthesis."
|
41 |
)
|
42 |
|
43 |
+
|
44 |
iface.launch()
|