Spaces:
Build error
Build error
Commit
·
45b71c9
1
Parent(s):
09b2c6d
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def translate_speech_to_speech(input_audio):
|
|
49 |
title = "Speech-to-Speech Translator"
|
50 |
|
51 |
input_audio = gr.inputs.Audio(source="microphone")
|
52 |
-
output_audio = gr.outputs.Audio()
|
53 |
|
54 |
stt_demo = gr.Interface(
|
55 |
fn=translate_speech_to_speech,
|
@@ -60,5 +60,4 @@ stt_demo = gr.Interface(
|
|
60 |
)
|
61 |
|
62 |
if __name__ == "__main__":
|
63 |
-
stt_demo.launch()
|
64 |
-
|
|
|
49 |
title = "Speech-to-Speech Translator"
|
50 |
|
51 |
input_audio = gr.inputs.Audio(source="microphone")
|
52 |
+
output_audio = gr.outputs.Audio(type="numpy")
|
53 |
|
54 |
stt_demo = gr.Interface(
|
55 |
fn=translate_speech_to_speech,
|
|
|
60 |
)
|
61 |
|
62 |
if __name__ == "__main__":
|
63 |
+
stt_demo.launch()
|
|