st.audio(data, format="audio/wav", start_time=0)
data (str, bytes, BytesIO, numpy.ndarray, or file opened with)
io.open(). Raw audio data, filename, or a URL pointing to the file to load. Numpy arrays and raw data formats must include all necessary file headers to match specified file format.
The time from which this element should start playing.
The mime type for the audio file. Defaults to 'audio/wav'. See https://tools.ietf.org/html/rfc4281 for more info.
Still have questions?
Our forums are full of helpful information and Streamlit experts.