gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
32.08k stars 2.4k forks source link

gr.Audio(sources=["microphone"], streaming=True) has a big bug #9123

Closed cjl628-cjl closed 3 weeks ago

cjl628-cjl commented 3 weeks ago

Describe the bug

First, I used version 4.15, the function of recording is ok. I want to use the "show_progress : 'hidden'" I upgrade the version to 4.41. I found the recording is wrong. please look at the picture

Have you searched existing issues? 🔎

Reproduction

demo = gr.Interface( transcribe, ["state", gr.Audio(sources=["microphone"],streaming=True)], ["state", gr.Text()],

["state", "text"],

#show_progress='hidden',
live=True,
)

Screenshot

image

no sound,but the wave is chaotic

Logs

No response

System Info

WSL2
Ubuntu-22.04
gradio 4.41

Severity

Blocking usage of gradio

abidlabs commented 3 weeks ago

Hi @cjl628-cjl we've made major changes to streaming in this PR here: https://github.com/gradio-app/gradio/pull/8843

Would you be able to install Gradio from that PR (instructions are in the link) and see if it resolves the issue for you? Otherwise, we'll need more details on what the bug is

abidlabs commented 3 weeks ago

Closing for lack of follow up