I want to record void with an USB microphone on a Raspberry PI running Raspbian (Jessie). At the same time, I want to keep the audio output on the internal sound card. Similar questions on this site do not include a useful answer.
Card indices:
pi@raspberrypi:~ $ cat /proc/asound/modules
0 snd_bcm2835
1 snd_usb_audio
alsa.conf:
pi@raspberrypi:~ $ cat /usr/share/alsa/alsa.conf | grep '.card '
defaults.ctl.card 0
defaults.pcm.card 0
~/.asoundrc:
pi@raspberrypi:~ $ cat ~/.asoundrc
pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}
Now when I set the cards in both configuration files to 1
, I can record audio with the command arecord temp.wav --format=S16_LE
. However, I can’t play it, since the microphone card that’s currently configured has no output.
How do I configure the system in a way, that only the input is taken from the microphone card with index 1
?
I tried setting ctl.card
to 1
while leaving pcm.card
as 0
and also changed the card
values in .asoundrc
accordingly. Recording audio looks on card 0
still.