Joooohan/audio-recorder-streamlit

Hi dear friend.how can set time duration for recording and how to read audio file that saved?

Closed this issue · 1 comments

Hi dear friend.how can set time duration for recording and how to read audio file that saved?

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)