Joooohan / audio-recorder-streamlit

MIT License
80 stars 16 forks source link

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

Closed drAliMollaei closed 1 year ago

Joooohan commented 1 year ago

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)