Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
70 |
|
71 |
with gr.Tab("Microphone Input"):
|
72 |
gr.Markdown("## Transcribe speech from microphone")
|
73 |
-
mic_audio = gr.Audio(
|
74 |
transcription_output = gr.Textbox(label="Transcription", lines=10)
|
75 |
|
76 |
mic_audio.stream(fn=transcribe_speech, inputs=[gr.State(), mic_audio], outputs=[gr.State(), transcription_output])
|
|
|
70 |
|
71 |
with gr.Tab("Microphone Input"):
|
72 |
gr.Markdown("## Transcribe speech from microphone")
|
73 |
+
mic_audio = gr.Audio(sources='microphone', streaming=True)
|
74 |
transcription_output = gr.Textbox(label="Transcription", lines=10)
|
75 |
|
76 |
mic_audio.stream(fn=transcribe_speech, inputs=[gr.State(), mic_audio], outputs=[gr.State(), transcription_output])
|