import streamlit as st from audio_recorder_streamlit import audio_recorder audio_bytes = audio_recorder() print(audio_bytes) if audio_bytes: st.audio(audio_bytes, format="audio/wav") # To save audio to a file: wav_file = open("audio.mp3", "wb") wav_file.write(audio_bytes) print('Output dump is there')