Playing sound on user computer

Is there a way to play sounds on the user’s computer? Like not on the computer where the server backend is running.

Hi @Wei_Liang_Guan, welcome to our forum! :raised_hands:

Could you please clarify a bit more about what you are after? It would be great if you could provide us with some code examples, if that’s indeed needed :slight_smile:

Best wishes,
Charly

2 Likes

Hi @Wei_Liang_Guan

Perhaps you might be interested in st.audio that allows you to embed an audio player that users can click on to hear audio play locally on their browser.

More info on the Streamlit Docs for st.audio

Best regards,
Chanin

1 Like

thanks, im more looking to play an alert sound automatically without having the user click on anything, is that possible?

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