Skip to content

Audio preview stops working after a few recordings in Chrome (Gradio) #13166

@Ahmed-Ashraf-Marzouk

Description

@Ahmed-Ashraf-Marzouk

Describe the bug

Description:
I’m encountering an issue with audio recording in Gradio when using Google Chrome. The audio preview works correctly for the first one or two recordings, but after that, the preview stops working entirely.

Steps to Reproduce:

Open a Gradio app with an audio recording component.
Record audio once → preview works.
Record audio a second time → preview may still work.
Record again → preview no longer plays.

Expected Behavior:
Audio preview should work consistently after every recording.

Actual Behavior:
After a couple of recordings, the preview stops working (no playback), even though recording itself still appears to function.

Environment:

Browser: Google Chrome
OS: Web or Android

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr def process_audio(audio): return audio with gr.Blocks() as demo: audio_input = gr.Audio(source="microphone", type="filepath") audio_output = gr.Audio() audio_input.change(process_audio, audio_input, audio_output) demo.launch()

Screenshot

No response

Logs

System Info

Latest

Severity

Blocking usage of gradio

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions