Rasp. Pi GPIO pins + Audio recording
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Rasp. Pi GPIO pins + Audio recording

by danbertner on Thu Jan 31, 2013 5:58 pm


I will start off by saying I am very new to the world of linux/python, but I think I have a somewhat simple question that can be resolved here. I am following the tutorial on adafruit here: http://learn.adafruit.com/playing-sound ... ry-pi/code

So I havent attempted, but it seems very straight forward. now my question!

instead of playing a preloaded .mp3 track using buttons connected to the GPIO pins, I want to record an .mp3 to a folder using two buttons; one to begin, and another to end. i've been searching around but cannot find an answer that incorporates the script mentioned in the tutorial above.

Anyone have suggestions/code/resources? Thanks!
Posts: 23
Joined: Sun Jan 20, 2013 8:58 am

Re: Rasp. Pi GPIO pins + Audio recording

by tldr on Thu Jan 31, 2013 6:38 pm

the pi has no audio in, but you can use a usb audio device. there is a list of known working devices here.
"If I had known it was harmless, I would have killed it myself." - Phillip K. Dick, A Scanner Darkly
User avatar
Posts: 466
Joined: Thu Aug 30, 2012 1:34 am