Being able to play a notification sound without st.audio ...st.notification('bell')

Streamlit currently has a st.balloon function for displaying an animation. It would be great if there is a function that simply plays a sound like a bell for when the app is finished running.

I know that there is st.audio but you need to add a file to your project. Having a streamlit sound ready once you write… import streamlit as st …would be great.

st.notification('bell')
st.notification('error')

2 Likes

You could use:

  • a specialized lib such as Beepy: beepy · PyPI
  • print(’\a’) or print(’\a\a\a’)
1 Like