
On 5/24/20 4:03 PM, Bengt Gördén wrote:
On 2020-05-08 07:08, Doug McGarrett wrote:
Is there some simple way to test a mic connected to the computer via usb port? When trying to set up skype, there was a test protocol, which I failed--it said the mic was not working. I haven't been able to get back to that particular routine again. There must be some way to plug in a mic and have some indication somewhere that it works. San someone please enlighten me? Thanx! --doug
If you just want to test if you can record something, just use arecord.
First check which device to use.
arecord -l
and then record to a file
arecord -f [format] -c [channels] -D hw:card,device -d [duration] <file>
and play the file
aplay <file>
Here's is a USB Logitech G35 Headset that one of my kids use:
$ arecord -l
**** List of CAPTURE Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: CX20753/4 Analog [CX20753/4 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Headset [Logitech G35 Headset], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0
record for 5 seconds from card 1 device 0
$ arecord -f S16_LE -c 1 -D hw:1,0 -d 5 soundfile.wav
And play it
$ aplay soundfile.wav
This is the first answer I got, and it seems to be fairly full, but I have had a series of update errors in the last couple of days, since I did a zypper dup three days ago, all of them referring in one respect or another to skype. The latest one reads as follows: "Software Updates Timeout exceeded when accessing 'https://repo.skype.com.rpm/stable /repodata/repomd.xml'." I don't know if this affects mic testing or not. The example you provided when I ran it shows the webcam. I copied the file you mentioned, and it looked like something was happening, (the webcam lit up) but could not find soundfile.wav. (The first time is obvious--I did not try and record. The second time should have had the file, or what did I miss?) Here's the whole sequence, as copied from the console: doug@linux-4qnb:~> arecord -l **** List of CAPTURE Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 2: ALC887-VD Alt Analog [ALC887-VD Alt Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Webcam [HP USB Webcam], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: Device [USB Multimedia Audio Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 doug@linux-4qnb:~> aplay soundfile.wav (Had no apparent input) soundfile.wav: No such file or directory doug@linux-4qnb:~> arecord -f S16_LE -c 1 -D hw:1,0 -d 5 soundfile.wav ((The webcam lit up when I input this command.) Recording WAVE 'soundfile.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono Warning: rate is not accurate (requested = 8000Hz, got = 16000Hz) please, try the plug plugin <<<What does this mean? doug@linux-4qnb:~> doug@linux-4qnb:~> > aplay soundfile.wav soundfile.wav: command not found (This time there was input--maybe?) In a nutshell: Two problems (at least!) The skype complaints; the absence of soundfile.wav (which may mean that nothing came out of the webcam) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org