2

I'm using a Raspberry PI and on it I plugged two same USB microphones. I would like to be able to identify which USB microphone is on which audio card when I list devices with arecord:

arecord --list-devices
**** List of CAPTURE Hardware Devices ****
card 0: iTalk02_1 [iTalk-02], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: iTalk02 [iTalk-02], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I thought about using usb serial number but these devices doesn't provide any (or I don't know how to use well lsusb -v). But how to match results from lsusb -v command with arecord --list-devices?

I need either an identifier of the microphone or the number of the USB port.

OS information:

Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch

Your help is much appreciated.

Thanks, Dylan

Dyde
  • 21
  • 1
  • 2

1 Answers1

0

Question

How to identify which microphone on which USB sound card?


Answer

update 2019nov06hkt1558

Finding the IDs of multiple USB sound cards, with microphones. Also see Ref 1 on How to setup persistent device names on Rpi.


usb sound card


I have two USB sound cards. This is how I identify them:

(1) Plug in one sound card - #1 and (a) $ arecord --list--, (b) $ lsusb,

(2) Plug in one more sound card - #2 and repeat Step (1),

(3) Note the IDs of #1 and #2 USB sound cards.

sound card ids


References

(1) Arecord, Aplay - command-line sound recorder and player for ALSA soundcard driver

(2) To use USB mini microphone on Raspbian - SunFounder

(3) How to set up persistent device names on Raspberry Pi - Rolf Blijleven

(4) How to name / map devices on an USB to 4 RS232 cables / ports / hub, using udev rules? - Rpi StackExchange

(5) AliExpress Ugreen USB External Sound Card - US$12

(6) USB Sound Card Selection Guide

(7) MAX9812 Microphone Amplifier

(8) PAM8610 10W Stero Class-D Audio Power Amplifier With DC Volume Control


End of answer

tlfong01
  • 4,847
  • 3
  • 12
  • 24