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
33.78k stars 2.56k forks source link

Audio component to have events for "loading of audio file complete", especially when loading large audio files #9351

Open DRomatzki opened 1 month ago

DRomatzki commented 1 month ago

Is your feature request related to a problem? Please describe.
When you load a very large file into the audio player, ti takes a long time to load. During this time the user has no idea that the file is still loading. It would also be nice to a have a single audio interface fro the audio component. Just have the player and add the "drop" function to it. Now we have two interfaces that change when you load a file and thus changes the layout.

Describe the solution you'd like
Add an event to the audio component that the file is loading or triggered when it completes the loading process or add a "rotating" icon for "being busy". Large files are when you do TTS or STT.

abidlabs commented 1 month ago

Similar: https://github.com/gradio-app/gradio/issues/9355, we've seen other issues around this as well. cc @hannahblair, probably after 5.0