pi@raspberrypi:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 7/7
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@raspberrypi:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: C170 [Webcam C170], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Here is my current setup; as for my asoundrc,
pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 1
}
From my understanding, c from ctl is for capture so I tried selecting my webcam. However, whenever I ran this code – this shows up
arecord --format cd --duration 15 --channels 1 test.wav
-> arecord: main:788: audio open error: No such file or directory
Of course I can resolve this by changing my asoundrc, pcm and ctl to 1 and this error would not show up however, whenever I try playing the recording, I am not hearing anything.
My end goal is to have my camera as my audio input and the audio output just the default which in my case is my monitor speakers.