st.audio_input() not recording audio in any browser
Summary
st.audio_input() is not capturing any audio input across multiple browsers (Chrome, Firefox, Edge). The microphone widget appears, but no audio data is recorded when speaking.
Environment
- Streamlit version: 1.48.0 or higher
- Python version: 3.12.3
- Operating System: windows
- Browsers tested: Chrome, Firefox, Edge
- Deployment: [Local / docker container]
Problem Description
I’m trying to implement voice input in my Streamlit app using st.audio_input(). The widget renders correctly and shows the microphone interface, but it doesn’t capture any audio when I speak into the microphone.
What I’ve verified:
Browser microphone permissions are granted
Microphone works on other (non-Streamlit) websites
Tested on multiple browsers (Chrome, Firefox, Edge)
Tested by multiple users (colleague has same issue)
Even the example on the official Streamlit documentation page doesn’t work
Code Example
import streamlit as st
audio_value = st.audio_input("Record a voice message")
if audio_value:
st.audio(audio_value)
Is anyone else having the same issue?