I am trying to use st,audio to play audio inside my streamlit app.
I am using the steps as described in the API reference:
audio_file = open(‘playlist.ogg’, ‘rb’)
audio_bytes = audio_file.read()
However, when I do it from my app, a blank page is displayed when the st.audio command runs. I tried other formats (mp3) but get same behavior. There is no error message on the streamlit console.
If I try to play a video instead, it works fine
video_file = open(‘joker_inter_clip.mp4’, ‘rb’)
video_bytes = video_file.read()
So not sure why the audio player is not working.
Any help will be appreciated.