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.15k stars 2.4k forks source link

gradio 4.41 doesn't play audio in IOS #9139

Closed LamOne1 closed 2 days ago

LamOne1 commented 3 weeks ago

Describe the bug

gradio 4.41 doesn't play audio in IOS downgrading to 4.40 solve the issue

Have you searched existing issues? πŸ”Ž

Reproduction

import gradio as gr

gr.Audio(value="example1.wav", type="filepath")

Screenshot

No response

Logs

No response

System Info

gradio 4.41
Python 3.8.19

Severity

I can work around it

abidlabs commented 3 weeks ago

Hi @LamOne1 is this happening for all audio files for you?

LamOne1 commented 3 weeks ago

Hi @LamOne1 is this happening for all audio files for you?

yes

freddyaboulton commented 3 weeks ago

Hi @LamOne1 - is anything printed to your python interpreter or browser console? We're having trouble reproducing this issue

dlflannery commented 1 week ago

I'm having the same problem with 4.42.0 but unfortunately downgrading to 4.40.0 doesn't fix it for me. Files are WAV format. Play fine in Edge browser on Win11 PC, but silent on iPad in either Chrome or Safari browser.

@LamOne1 , what exact version of 4.40 did you find worked? I tried to configure 4.40 in my HF space and it complained invalid configuration. I had to specify 4.40.0. Should it be 4.40.1, or 4.40.2, etc?

Edit: Same problem if file format is AAC. Edit2: Reverting gradio to 3.38.1 doesn't fix it either Edit3: Now it’s playing audio on my iPad using any version of Gradio I’ve tried. My code has changed a lot and that must be what fixed it, but I have no idea what change made the difference. All I know is there was a version of the code that played audio OK on my PC browser but did not do so on my iPad in either Chrome or Safari. What would explain that?

abidlabs commented 2 days ago

Going to close for lack of repro, if someone is able to provide us the environment, code, and audio file to reproduce, we can reopen this issue