Notifications
Clear all

Pi Dictaphone / audio recorder

1 Posts
1 Users
0 Likes
982 Views
Existential_Fred
(@existential_fred)
Member
Joined: 3 years ago
Posts: 7
Topic starter  

Hello everybody,

 

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


   
Quote