Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture/Record Audio Input in RaspberryPi

I bought a USB Audio Controller for RaspberryPi, in order to capture Audio input. I already done below steps on Rasbian but still unsure about Audio Capturing. Can you please guide me on how do I get it?

Type the following commands to install the Audio device

pi@raspberrypi ~ $ sudo apt-get install alsa-utils

Detection Successfully by

pi@raspberrypi ~ $ lsusb
pi@raspberrypi ~ $ amixer
pi@raspberrypi ~ $ alsamixer

Also configure USB Audio device to make it default

/etc/modprobe.d/alsa-base.conf

by adding pound/hash symbol with

options snd-usb-audio index=2
#options snd-usb-audio index=2
like image 840
Fahadkalis Avatar asked Jan 20 '15 20:01

Fahadkalis


People also ask

Can Raspberry Pi take audio input?

Raspberry Pi boards are capable of recording stereo audio using an interface called the inter-IC sound (I2S or I2S) bus. The I2S standard uses three wires to record data, keep track of timing (clock), and determine whether an input/output is in the left channel or right channel [read more on I2S here and here].


1 Answers

simply write this command of Command Terminal, in order to record Audio

arecord -f cd -D plughw:0 -d 10 a.wav

Let me know if you get further any issue in recording sound

like image 143
Irfan Ghaffar7 Avatar answered Sep 22 '22 14:09

Irfan Ghaffar7