Open EGAILab opened 3 months ago
An easier way to replicate, with "share=True", there's no output; and comment that out, the audio can play back.
import gradio as gr
def repeat(audio): return audio
demo = gr.Interface( repeat, gr.Audio(sources=["microphone"]), "audio", )
demo.launch( share=True, )
It works for me!!! I launched the Gradio demo on the server, and set share=True. Locally, I used "ssh -CNg -L 8003:127.0.0.1:8003 root@60.165.238.46 -p 30949". Now, the audio file uploaded locally can be accessed on the server at: /tmp/gradio/631ef51ffcf620fe0b8d5a90e573830b60c890ef/audio.wav.
Yes issue is fixed in latest version, feel free to close this, thank you.
@EGAILab Hi, I still met a same issue in gradio==4.29.0.
I found that the upload delay may be caused by network reasons. When I wait for a while and click submit, the result I want will appear.
Describe the bug
Gradio version: 4.23.0
Code is taken from: https://www.gradio.app/guides/real-time-speech-recognition
This issue only occurred when setting "share=True" in launch().
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
System Info
Severity
Blocking usage of gradio