I need to play an alarm sound after the app makes an action

Hi everyone I’m making a drowsiness detection system using streamlit webrtc and I need to play an alarm sound when the drowsiness is detected. I tried a lot of libraries like vlc, play sound, pygame but all of them doesn´t work when the app is deployed on heroku or somewhere else. Any suggestion on how can I do this ?
Thanks in advance!

Hi @quiver99

st.audio might be helpful here.
Check it out from st.audio - Streamlit Docs

Thanks for answer but I need to use autoplay for the sound

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.