I am currently building a light-weighted audio system using my rasperry Pi zero.

I am looking to enable my Pi to have the following 2 functionalities:

1) be able to record from a microphone

2) be able to play back from what is recorded.

I am wondering if you guys know any off the shelf code (perferrably written in C) that I can use, to enable my Pi to have the following functionalities?


The Pi Zero doesn't have a built-in Microphone input nor Audio output, therefore, you will need either a USB Sound Card or a pHAT. In case it helps, I bought a "USB Sound Card for Pi" on ebay for $3, which has two inputs, mic and stereo jack, and I use Audacity on the Pi to record and play audio, and it works great. If you already have all the necessary hardware and want to 'program' a way to record and then play the recording, I would recommend looking into PyAudio in Python.

| improve this answer | |
  • Yes, I am looking for a coding version to record the video. I will look into Pyaudio. If you know anything written in C, I would love to know as well. Thanks! – user3222184 Aug 2 '17 at 4:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.