gradio icon indicating copy to clipboard operation
gradio copied to clipboard

Audio download does not have file extension in Chrome

Open raivisdejus opened this issue 10 months ago • 1 comments

Describe the bug

When downloading audio from Audio component on Google Chrome it is downloaded without a file extension. In Firefox it works as expected, downloaded file gets .wav extension.

Seems fix for this was started in https://github.com/gradio-app/gradio/issues/6006 Example - https://huggingface.co/spaces/RaivisDejus/Latvian-Piper-TTS

Have you searched existing issues? 🔎

  • [X] I have searched and found no existing issues

Reproduction

See https://huggingface.co/spaces/RaivisDejus/Latvian-Piper-TTS/blob/main/app.py

Screenshot

No response

Logs

No response

System Info

Gradio Environment Information:
------------------------------
Operating System: Linux
gradio version: 4.26.0
gradio_client version: 0.15.1

------------------------------------------------
gradio dependencies in your environment:

aiofiles: 23.2.1
altair: 5.3.0
fastapi: 0.110.1
ffmpy: 0.3.2
gradio-client==0.15.1 is not installed.
httpx: 0.27.0
huggingface-hub: 0.22.2
importlib-resources: 6.4.0
jinja2: 3.1.3
markupsafe: 2.1.5
matplotlib: 3.8.4
numpy: 1.26.4
orjson: 3.10.0
packaging: 24.0
pandas: 2.2.2
pillow: 10.3.0
pydantic: 2.7.0
pydub: 0.25.1
python-multipart: 0.0.9
pyyaml: 6.0.1
ruff: 0.3.7
semantic-version: 2.10.0
tomlkit==0.12.0 is not installed.
typer: 0.12.3
typing-extensions: 4.11.0
uvicorn: 0.29.0
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.


gradio_client dependencies in your environment:

fsspec: 2024.3.1
httpx: 0.27.0
huggingface-hub: 0.22.2
packaging: 24.0
typing-extensions: 4.11.0
websockets: 11.0.3

Severity

I can work around it

raivisdejus avatar Apr 15 '24 12:04 raivisdejus