Hi dear friend.how can set time duration for recording and how to read audio file that saved?
drAliMollaei opened this issue · comments
drAliMollaei commented
Hi dear friend.how can set time duration for recording and how to read audio file that saved?
Johan Leduc commented
Hi @drAliMollaei, I have just release a new version 0.0.8 that allows you to have a fixed recording length. See https://pypi.org/project/audio-recorder-streamlit/0.0.8/ in the FAQ section.
To save the audio_bytes to file, I think you can simply write them to a file.
with open("file.wav", "wb") as f:
f.write(audio_bytes)