bastibe / SoundCard

A Pure-Python Real-Time Audio Library
https://soundcard.readthedocs.io
BSD 3-Clause "New" or "Revised" License
680 stars 69 forks source link

Queation: Is that possible to record based on a button click? #164

Closed wlkobe closed 1 year ago

wlkobe commented 1 year ago

Currently I only found a method to record with pre-defined number of frames. Are there any method to start and stop the recording based on event, just like a button click? Thanks

bastibe commented 1 year ago

Record a small number of frames (say, 1024) repeatedly until the event occurs, and stitch them all together for a continuous recording. There will be no gap between them.