import streamlit as st from st_audiorec import st_audiorec # x = st.slider('Select a value') # st.write(x, 'squared is', x * x) wav_audio_data = st_audiorec() if wav_audio_data is not None: st.audio(wav_audio_data, format='audio/wav')