Pi Dictaphone / audio recorder
Last Post by Existential_Fred 1 year ago
Topic starter 2022-03-02 3:51 pm
I started what I'm sure is a simple project but I'm having trouble with the code.
I have a Pi hooked up to a microphone and a button and I would like the first press of the button to start recording and the second press of the button to stop recording.
I'm using subprocess to start arecord on the button press but the second button press isn't working correctly.
I can get it to start and stop using code but not the button.
I can also make the button print out alternating messages on each press.
The problem is merging these two small pieces of code included down below.
Many Thanks for any pointer you can give