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.16k stars 2.41k forks source link

Audio streaming model not show waveform graph #8961

Open Ox0400 opened 1 month ago

Ox0400 commented 1 month ago

Describe the bug

UI is display the audio waveform graph, but not show it when using streaming;

e.g: non-steraming is show the waveform graph

image

streaming mode:

image

Have you searched existing issues? 🔎

Reproduction

import gradio as gr

Audio(streaming=True, autoplay=True)

Screenshot

No response

Logs

No response

System Info

gradio 3.40.0

Severity

I can work around it

freddyaboulton commented 1 month ago

I think this is by design because the waveform needs to see the full audio. pinging @hannahblair for thoughts/comments.

Ox0400 commented 1 month ago

I think this is by design because the waveform needs to see the full audio. pinging @hannahblair for thoughts/comments.

But I saw WaveformOptions haveshow_recording_waveform options when recording from mic, look like it not need full audio. I'm looking forward to it.