Using both a USB Mic and on board audio output - Raspberry Pi Forums
i'm trying set rpi on-board sound out , usb mic in, i've found deals both audio i/o on same (external) sound card. what's happening in situation regardless of default sound card set, either 1 of aplay or arecord fail error message looks like:  (replace arecord aplay if default card set usb mic).
 
example, have following scenario:
 
in /etc/modprobe.d/alsa-base.conf, commenting out options snd-usb-audio index=-2 allow arecord work, not aplay, , uncommenting above line allow aplay work, not arecord
 
know can add device name when running command (example: arecord -dhw:1,0 test.wav works, arecord test.wav doesn't), not happen because i'm using bunch of pre-compiled libraries seem consider default devices
 code: select all
arecord: main:682: audio open error: no such file or directoryexample, have following scenario:
in /etc/modprobe.d/alsa-base.conf, commenting out options snd-usb-audio index=-2 allow arecord work, not aplay, , uncommenting above line allow aplay work, not arecord
know can add device name when running command (example: arecord -dhw:1,0 test.wav works, arecord test.wav doesn't), not happen because i'm using bunch of pre-compiled libraries seem consider default devices
you can create 'asymmetric'  alsa device uses both cards. in ~/.asoundrc, example: 
code: select all
pcm.!default {     type asym     playback.pcm "hw:0,0"     capture.pcm "hw:1,1" }
raspberrypi
 
  
Comments
Post a Comment