Re: Help with USB audio card
Curt writes: > On 2017-08-14, Rodolfo Medina wrote: >> Rodolfo Medina writes: >> >>> How do I choose the one I want? Each of them has a red button with a check >>> in it, but nothing changes if I click on them... >> >> >> ...Sorry, a green button, not red... > > Right. > > I have successfully recorded my speaking voice using a usb sound device > (webcam, but that's all I got) with audacity. > > So you attach your usb dongle and plug in your microphone (turn it on, if it > turns on), then open audacity. > > There are two microphone icons with drop down menus on the toolbar in > audacity. Next to the lower left microphone icon, I selected 'USB > Device' (hw:2,0) in the drop down menu. The mic's mono so no choice > there for me. > > For the upper right mic icon select 'start monitoring' in the drop down > menu. Now when you make a sound into the microphone the red monitoring > meter should hop to the right. If that doesn't happen you can stop right > there because something is wrong that must be fixed first. No meter > movement--no sound input detected; you will end up with another empty > wav. > > Press red button to record. Yes, thanks... Something is wrong with the device: the test with Audacity is negative. Besides, today I got a new USB audio card, that I bought in internet when I saw that the first one wouldn't work: here it is: https://www.amazon.it/dp/B01KLZR3TY/ref=pe_3310731_189395851_TE_dp_1 I bought it because it was claimed to be working with Linux. And in fact, it works perfectly, also with the test you suggested with pavucontrol, and also with this test in Audacity, and it records fine. But maybe, it is simply that the first one is defective... Thank you indeed, Curt, for your help... Thanks to all. Cheers, Rodolfo
Re: Help with USB audio card
On 2017-08-14, Rodolfo Medina wrote: > Rodolfo Medina writes: > >> How do I choose the one I want? Each of them has a red button with a check >> in it, but nothing changes if I click on them... > > > ...Sorry, a green button, not red... Right. I have successfully recorded my speaking voice using a usb sound device (webcam, but that's all I got) with audacity. So you attach your usb dongle and plug in your microphone (turn it on, if it turns on), then open audacity. There are two microphone icons with drop down menus on the toolbar in audacity. Next to the lower left microphone icon, I selected 'USB Device' (hw:2,0) in the drop down menu. The mic's mono so no choice there for me. For the upper right mic icon select 'start monitoring' in the drop down menu. Now when you make a sound into the microphone the red monitoring meter should hop to the right. If that doesn't happen you can stop right there because something is wrong that must be fixed first. No meter movement--no sound input detected; you will end up with another empty wav. Press red button to record. > Rodolfo > > -- "Until the Lion learns to write, tales of the hunt shall always glorify the Hunter." — African proverb
Re: Help with USB audio card
Rodolfo Medina writes: > How do I choose the one I want? Each of them has a red button with a check > in it, but nothing changes if I click on them... ...Sorry, a green button, not red... Rodolfo
Re: Help with USB audio card
Curt writes: > On 2017-08-11, Rodolfo Medina wrote: >>> I did. Besides, the USB card does not even work with headphones: when >>> headphones are plugged into it, no sound is heard from them. >> >> >> I had the USB work with headphones doing: >> >> $ mplayer -ao alsa:device=hw=2.0 > >> Can this help to solve also the recording problem...? I get no sound >> recorded doing: > > The wild goose is getting further and further away. > > It's strange to record to the same device number you listened to above, but > who knows? $ arecord -l List of CAPTURE Hardware Devices card 1: Generic [HD-Audio Generic], device 0: ALC662 rev3 Analog [ALC662 rev3 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Generic [HD-Audio Generic], device 2: ALC662 rev3 Alt Analog [ALC662 rev3 Alt Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 > There's only one input device on the dongle. Have you tried recording to > the laptop's mic with the sox command below? Does that work? Is your > microphone busted? Are you singing loud enough (from the diaphragm)? > >> $ sox -t alsa hw:2,0 output.wav Yes everything. Voice is recorded fine if the microphone is plugged into the `mic' entry of the PC, with the command `sox -t alsa default output.wav'. So it is not busted. It's not a matter of loudness either... > ffmpeg -f alsa -i hw:2 -t 30 out.wav > > Thirty seconds. What's this for? ffmpeg complains: [alsa @ 0x562c7a3dbe40] cannot set channel count to 2 (Invalid argument) hw:2: Input/output error > I'd open pavucontrol, select your usb audio dongle's mic as your input > device, How? I see a list of three input devices: Monitor of Built-in Audio Analog Stereo Built-in Audio Analog Stereo CM108 Audio Controller Analog Mono How do I choose the one I want? Each of them has a red button with a check in it, but nothing changes if I click on them... > start singing (after plugging in your microphone), and see if > you can get that input level gauge to start hopping to the tune of your > dulcet tenor arpeggios on the upper end of the Richter scale. Well, no, wherever I click that level does not arise... Thanks, Rodolfo
Re: Help with USB audio card
On 2017-08-11, Rodolfo Medina wrote: >>> >>> This makes no sense BTW. Unmuted everything? You're *recording*, so what >>> you want to do in alsamixer is to select your external usb audio card >>> (F6), display its capture device(s) (F5), and toggle on the input >>> channel of your choice (space bar). >>> >>> But I assume you have arrived at this crucial result in one way or another. >> >> >> I did. Besides, the USB card does not even work with headphones: when >> headphones are plugged into it, no sound is heard from them. > > > I had the USB work with headphones doing: > > $ mplayer -ao alsa:device=hw=2.0 > Can this help to solve also the recording problem...? I get no sound recorded > doing: The wild goose is getting further and further away. It's strange to record to the same device number you listened to above, but who knows? There's only one input device on the dongle. Have you tried recording to the laptop's mic with the sox command below? Does that work? Is your microphone busted? Are you singing loud enough (from the diaphragm)? > $ sox -t alsa hw:2,0 output.wav ffmpeg -f alsa -i hw:2 -t 30 out.wav Thirty seconds. I'd open pavucontrol, select your usb audio dongle's mic as your input device, start singing (after plugging in your microphone), and see if you can get that input level gauge to start hopping to the tune of your dulcet tenor arpeggios on the upper end of the Richter scale. > Rodolfo > > -- "Until the Lion learns to write, tales of the hunt shall always glorify the Hunter." — African proverb
Re: Help with USB audio card
Rodolfo Medina writes: > Curt writes: > >> On 2017-08-07, Rodolfo Medina wrote: >>> >>> Besides, I ran alsamixer, selected the USB card and unmuted everything. >>> But then, when I try to record, no sound is recorded. I do: >>> >> >> This makes no sense BTW. Unmuted everything? You're *recording*, so what >> you want to do in alsamixer is to select your external usb audio card >> (F6), display its capture device(s) (F5), and toggle on the input >> channel of your choice (space bar). >> >> But I assume you have arrived at this crucial result in one way or another. > > > I did. Besides, the USB card does not even work with headphones: when > headphones are plugged into it, no sound is heard from them. I had the USB work with headphones doing: $ mplayer -ao alsa:device=hw=2.0 Can this help to solve also the recording problem...? I get no sound recorded doing: $ sox -t alsa hw:2,0 output.wav Rodolfo
Re: Help with USB audio card
On 08/10/2017 09:06 AM, Rodolfo Medina wrote: Curt writes: On 2017-08-07, Rodolfo Medina wrote: Besides, I ran alsamixer, selected the USB card and unmuted everything. But then, when I try to record, no sound is recorded. I do: This makes no sense BTW. Unmuted everything? You're *recording*, so what you want to do in alsamixer is to select your external usb audio card (F6), display its capture device(s) (F5), and toggle on the input channel of your choice (space bar). But I assume you have arrived at this crucial result in one way or another. I did. Besides, the USB card does not even work with headphones: when headphones are plugged into it, no sound is heard from them. If you were running pulseaudio, you would merely select the headphones. I suggest you use USB headphones. They are cheap. Works a charm. Ric -- My father, Victor Moore (Vic) used to say: "There are two Great Sins in the world... ..the Sin of Ignorance, and the Sin of Stupidity. Only the former may be overcome." R.I.P. Dad. http://linuxcounter.net/user/44256.html
Re: Help with USB audio card
Curt writes: > On 2017-08-10, Rodolfo Medina wrote: >> >>> I read that for the Lenovo to get an external >>> usb sound card working the card must be indexed as card 0 (numero uno). >> >> The card doesn't work with my netbook Acer Aspire One either... > > Maybe it's defective. No, it was tested by the shop owner and works fine with MS Windows... Rodolfo
Re: Help with USB audio card
On 2017-08-10, Rodolfo Medina wrote: > >> I read that for the Lenovo to get an external >> usb sound card working the card must be indexed as card 0 (numero uno). > > The card doesn't work with my netbook Acer Aspire One either... Maybe it's defective. > Thanks, > > Rodolfo > > -- "Until the Lion learns to write, tales of the hunt shall always glorify the Hunter." — African proverb
Re: Help with USB audio card
Curt writes: > Whether making the usb dongle the default card by creating a ~.asoundrc file: > > pcm.!default { > type hw > card 2 > } > > ctl.!default { > type hw > card 2 > } > > would work or not I dunno. It seems it does: now I get: $ arecord -l List of CAPTURE Hardware Devices card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: Generic [HD-Audio Generic], device 0: ALC662 rev3 Analog [ALC662 rev3 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: Generic [HD-Audio Generic], device 2: ALC662 rev3 Alt Analog [ALC662 rev3 Alt Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 but still the card does not work, neither with headphones nor with microphone: to record from mic, I do now: $ sox -t alsa hw:1,0 output.wav but no sound is recorded. > I read that for the Lenovo to get an external > usb sound card working the card must be indexed as card 0 (numero uno). The card doesn't work with my netbook Acer Aspire One either... Thanks, Rodolfo
Re: Help with USB audio card
On 2017-08-10, Rodolfo Medina wrote: >> >> Perhaps comment out the following line in '/etc/modprobe.d/alsa-base.conf': >> >> # Keep snd-usb-audio from beeing loaded as first soundcard >> options snd-usb-audio index=-2 > > > No '/etc/modprobe.d/alsa-base.conf' on my PC... /etc/modprobe.d is empty. > There's /usr/share/alsa.conf, but it doesn't contain any occurrence of `usb'. https://wiki.debian.org/ALSA ? /etc/modprobe.d/sound options snd-usb-audio index=0 options snd_hda_codec_hdmi(or whatever it's called)=1 options snd(etc...)=2 There's a plethora of info on sound card ordering, but much of it is obsolete I'm afraid. Whether making the usb dongle the default card by creating a ~.asoundrc file: pcm.!default { type hw card 2 } ctl.!default { type hw card 2 } would work or not I dunno. I read that for the Lenovo to get an external usb sound card working the card must be indexed as card 0 (numero uno). > Thanks, > > Rodolfo > > -- "Until the Lion learns to write, tales of the hunt shall always glorify the Hunter." — African proverb
Re: Help with USB audio card
Curt writes: > On 2017-08-10, Rodolfo Medina wrote: >>> >>> This makes no sense BTW. Unmuted everything? You're *recording*, so what >>> you want to do in alsamixer is to select your external usb audio card >>> (F6), display its capture device(s) (F5), and toggle on the input >>> channel of your choice (space bar). >>> >>> But I assume you have arrived at this crucial result in one way or another. >> >> >> I did. Besides, the USB card does not even work with headphones: when >> headphones are plugged into it, no sound is heard from them. > > Try making the USB audio dongle the first sound card (0). > > I'm not certain how to do that. > > Perhaps comment out the following line in '/etc/modprobe.d/alsa-base.conf': > > # Keep snd-usb-audio from beeing loaded as first soundcard > options snd-usb-audio index=-2 No '/etc/modprobe.d/alsa-base.conf' on my PC... /etc/modprobe.d is empty. There's /usr/share/alsa.conf, but it doesn't contain any occurrence of `usb'. Thanks, Rodolfo
Re: Help with USB audio card
On 2017-08-10, Rodolfo Medina wrote: >> >> This makes no sense BTW. Unmuted everything? You're *recording*, so what >> you want to do in alsamixer is to select your external usb audio card >> (F6), display its capture device(s) (F5), and toggle on the input >> channel of your choice (space bar). >> >> But I assume you have arrived at this crucial result in one way or another. > > > I did. Besides, the USB card does not even work with headphones: when > headphones are plugged into it, no sound is heard from them. Try making the USB audio dongle the first sound card (0). I'm not certain how to do that. Perhaps comment out the following line in '/etc/modprobe.d/alsa-base.conf': # Keep snd-usb-audio from beeing loaded as first soundcard options snd-usb-audio index=-2 > Rodolfo > > -- "Until the Lion learns to write, tales of the hunt shall always glorify the Hunter." — African proverb
Re: Help with USB audio card
Curt writes: > On 2017-08-07, Rodolfo Medina wrote: >> >> Besides, I ran alsamixer, selected the USB card and unmuted everything. But >> then, when I try to record, no sound is recorded. I do: >> > > This makes no sense BTW. Unmuted everything? You're *recording*, so what > you want to do in alsamixer is to select your external usb audio card > (F6), display its capture device(s) (F5), and toggle on the input > channel of your choice (space bar). > > But I assume you have arrived at this crucial result in one way or another. I did. Besides, the USB card does not even work with headphones: when headphones are plugged into it, no sound is heard from them. Rodolfo
Re: Help with USB audio card
On 2017-08-07, Rodolfo Medina wrote: > > Besides, I ran alsamixer, selected the USB card and unmuted everything. But > then, when I try to record, no sound is recorded. I do: > This makes no sense BTW. Unmuted everything? You're *recording*, so what you want to do in alsamixer is to select your external usb audio card (F6), display its capture device(s) (F5), and toggle on the input channel of your choice (space bar). But I assume you have arrived at this crucial result in one way or another. -- "Until the Lion learns to write, tales of the hunt shall always glorify the Hunter." — African proverb
Re: Help with USB audio card
deloptes writes: > Rodolfo Medina wrote: > >> I unmuted it from within alsamixer menu: F6 and went into the USB card >> table. Then I gave the command... > > perhaps there is also a volume control to set the volume Yes, but volume is loud... Rodolfo
Re: Help with USB audio card
Rodolfo Medina wrote: > I unmuted it from within alsamixer menu: F6 and went into the USB card > table. Then I gave the command... perhaps there is also a volume control to set the volume regards
Re: Help with USB audio card
On 2017-08-09, Rodolfo Medina wrote: > Curt writes: > >> On 2017-08-09, Rodolfo Medina wrote: >>> >>> I had done so... no output. >> >> Have you tried opening up pavucontrol and selecting your usb audio >> gadget as input device? > > > It is regularly listed within pavucontrol among all input devices... That's good and encouraging news. Wasn't the question I asked, but you can't have everything. My little mixer widget has a slider to adjust the input volume on the selected device, as well as a gauge indicating the input level. Testing, one, two, three. > > Rodolfo > > -- “Certitude is not the test of certainty.” --Oliver Wendell Holmes, Jr.
Re: Help with USB audio card
Curt writes: > On 2017-08-09, Rodolfo Medina wrote: >> >> I had done so... no output. > > Have you tried opening up pavucontrol and selecting your usb audio > gadget as input device? It is regularly listed within pavucontrol among all input devices... Thanks, Rodolfo
Re: Help with USB audio card
On 2017-08-09, Rodolfo Medina wrote: > > I had done so... no output. Have you tried opening up pavucontrol and selecting your usb audio gadget as input device? > Thanks > Rodolfo > > -- “Certitude is not the test of certainty.” --Oliver Wendell Holmes, Jr.
Re: Help with USB audio card
David Christensen writes: > On 08/08/17 00:38, Rodolfo Medina wrote: >> >> $ cat /etc/debian_version >> buster/sid > > Have you tried the USB audio interface with the stable version of Debian? > > >> $ uname -a >> Linux lenovo 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2 (2017-06-12) x86_64 >> GNU/Linux > > Okay. > > >> `dmesg | grep -i cm108 -A 10 -B 10' produced no output at all... > > Try running the command after you plug in the USB audio interface. I had done so... no output. Thanks Rodolfo
Re: Help with USB audio card
On 08/08/17 00:38, Rodolfo Medina wrote: $ cat /etc/debian_version buster/sid Have you tried the USB audio interface with the stable version of Debian? $ uname -a Linux lenovo 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2 (2017-06-12) x86_64 GNU/Linux Okay. `dmesg | grep -i cm108 -A 10 -B 10' produced no output at all... Try running the command after you plug in the USB audio interface. David
Re: Help with USB audio card
deloptes writes: > Rodolfo Medina wrote: > >> hw_ptr : 0 >> #+ | 00%^C >> Aborted by signal Interrupt... >> #+ | 00% >> > > Before you abort, did you see any indication - these percent signs are > actually indicating the level of the input. This is the output without abortion: $ arecord -c1 -Dplughw:2,0 -f cd -vv /dev/null Recording WAVE '/dev/null' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Plug PCM: Route conversion PCM (sformat=S16_LE) Transformation table: 0 <- 0 1 <- 0 Its setup is: stream : CAPTURE access : RW_INTERLEAVED format : S16_LE subformat: STD channels : 2 rate : 44100 exact rate : 44100 (44100/1) msbits : 16 buffer_size : 22050 period_size : 5513 period_time : 125011 tstamp_mode : NONE tstamp_type : MONOTONIC period_step : 1 avail_min: 5513 period_event : 0 start_threshold : 1 stop_threshold : 22050 silence_threshold: 0 silence_size : 0 boundary : 6206523236469964800 Slave: Hardware PCM card 2 'USB PnP Sound Device' device 0 subdevice 0 Its setup is: stream : CAPTURE access : MMAP_INTERLEAVED format : S16_LE subformat: STD channels : 1 rate : 44100 exact rate : 44100 (44100/1) msbits : 16 buffer_size : 22050 period_size : 5513 period_time : 125011 tstamp_mode : NONE tstamp_type : MONOTONIC period_step : 1 avail_min: 5513 period_event : 0 start_threshold : 1 stop_threshold : 22050 silence_threshold: 0 silence_size : 0 boundary : 6206523236469964800 appl_ptr : 0 hw_ptr : 0 #+ | 00% > If not, is it perhaps muted? > > You can use to unmute > > alsamixer -c 2 > > -c 2 is for the second card not to mix up with arecord -c1 which is telling > arecord to use mono input I unmuted it from within alsamixer menu: F6 and went into the USB card table. Then I gave the command... Cheers, Rodolfo
Re: Help with USB audio card
Rodolfo Medina wrote: > hw_ptr : 0 > #+ | 00%^C > Aborted by signal Interrupt... > #+ | 00% > Before you abort, did you see any indication - these percent signs are actually indicating the level of the input. If not, is it perhaps muted? You can use to unmute alsamixer -c 2 -c 2 is for the second card not to mix up with arecord -c1 which is telling arecord to use mono input regards
Re: Help with USB audio card
deloptes writes: > Rodolfo Medina wrote: > >> I just bought an external USB audio card. I plugged it into the USB port >> of my >> PC and plugged a 3.5mm jack microphone into the `mic' input of the card. >> It is shown in lsusb: >> >> $ lsusb >> Bus 002 Device 005: ID 17ef:602e Lenovo >> Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard >> Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. >> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> Bus 001 Device 010: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio >> Controlle Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. >> RTS5129 Card Reader Bus 001 Device 002: ID 0438:7900 Advanced Micro >> Devices, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root >> hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub >> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> >> >> and also in arecord: >> >> $ arecord --list-devices >> List of CAPTURE Hardware Devices >> card 1: Generic [HD-Audio Generic], device 0: ALC662 rev3 Analog [ALC662 >> rev3 Analog] >> Subdevices: 0/1 >> Subdevice #0: subdevice #0 >> card 1: Generic [HD-Audio Generic], device 2: ALC662 rev3 Alt Analog >> [ALC662 rev3 Alt Analog] >> Subdevices: 1/1 >> Subdevice #0: subdevice #0 >> card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] >> Subdevices: 1/1 >> Subdevice #0: subdevice #0 >> >> Besides, I ran alsamixer, selected the USB card and unmuted everything. >> But >> then, when I try to record, no sound is recorded. I do: >> >> $ sox -t alsa hw:2,0 output.wav >> >> , or >> >> $ arecord -f S16_LE -D hw:2,0 -r 96000 test.wav >> >> , or also within Audacity. But nothing, my voice is not recorded. Please >> help whoever can. > > > A short howto I wrote years ago > > 1) find out cards and inputs > > shell> cat /proc/asound/cards > 0 [Intel ]: HDA-Intel - HDA Intel > HDA Intel at 0xff95 irq 22 > 1 [HVR900 ]: USB-Audio - WinTV HVR-900 > WinTV HVR-900 at usb-:00:1a.7-3, high speed > 2 [Webcam ]: USB-Audio - Philips SPC 1000NC Webcam > Philips CE Philips SPC 1000NC Webcam at > usb-:00:1a.7-5.4, high speed > > => I'm going to use the Webcam built in mic => card # 2 > > 2) find out the input > > shell> cat /proc/asound/devices > 0: [ 0] : control > 1:: sequencer > 6: [ 0- 2]: hardware dependent > 7: [ 0- 3]: hardware dependent > 16: [ 0- 0]: digital audio playback > 17: [ 0- 1]: digital audio playback > 19: [ 0- 3]: digital audio playback > 24: [ 0- 0]: digital audio capture > 32: [ 1] : control > 33:: timer > 56: [ 1- 0]: digital audio capture > 64: [ 2] : control > 88: [ 2- 0]: digital audio capture > > => my input is the capture on the second card > > 88: [ 2- 0]: digital audio capture > > 3) so no we can test the mic > > shell> arecord -c1 -Dplughw:2,0 -f cd -vv /dev/null Here are my outputs: $ cat /proc/asound/cards 0 [HDMI ]: HDA-Intel - HDA ATI HDMI HDA ATI HDMI at 0xfea64000 irq 39 1 [Generic]: HDA-Intel - HD-Audio Generic HD-Audio Generic at 0xfea6 irq 16 2 [Device ]: USB-Audio - USB PnP Sound Device C-Media Electronics Inc. USB PnP Sound Device at usb-:00:12.0-1.3, full spe $ cat /proc/asound/devices 2: [ 0] : control 3: [ 0- 3]: digital audio playback 4: [ 0- 0]: hardware dependent 5: [ 1] : control 6: [ 1- 0]: digital audio playback 7: [ 1- 0]: digital audio capture 8: [ 1- 2]: digital audio capture 9: [ 1- 0]: hardware dependent 10: [ 2] : control 11: [ 2- 0]: digital audio playback 12: [ 2- 0]: digital audio capture 33:: timer $ arecord -c1 -Dplughw:2,0 -f cd -vv /dev/null Recording WAVE '/dev/null' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Plug PCM: Route conversion PCM (sformat=S16_LE) Transformation table: 0 <- 0 1 <- 0 Its setup is: stream : CAPTURE access : RW_INTERLEAVED format : S16_LE subformat: STD channels : 2 rate : 44100 exact rate : 44100 (44100/1) msbits : 16 buffer_size : 22050 period_size : 5513 period_time : 125011 tstamp_mode : NONE tstamp_type : MONOTONIC period_step : 1 avail_min: 5513 period_event : 0 start_threshold : 1 stop_threshold : 22050 silence_threshold: 0 silence_size : 0 boundary : 6206523236469964800 Slave: Hardware PCM card 2 'USB PnP Sound Device' device 0 subdevice 0 Its setup is: stream : CAPTURE access : MMAP_INTERLEAVED format : S16_LE subformat: STD channels : 1 rate : 44100 exact rate : 44100 (44100/1) msbits : 16 buffer_size : 22050 period_size : 5513 period_time : 125011 tstamp_mode : NONE tstamp_type : MONOTONIC per
Re: Help with USB audio card
Rodolfo Medina wrote: > Hi all. > > I just bought an external USB audio card. I plugged it into the USB port > of my > PC and plugged a 3.5mm jack microphone into the `mic' input of the card. > It is shown in lsusb: > > $ lsusb > Bus 002 Device 005: ID 17ef:602e Lenovo > Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard > Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > Bus 001 Device 010: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio > Controlle Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. > RTS5129 Card Reader Bus 001 Device 002: ID 0438:7900 Advanced Micro > Devices, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root > hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub > Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > > > and also in arecord: > > $ arecord --list-devices > List of CAPTURE Hardware Devices > card 1: Generic [HD-Audio Generic], device 0: ALC662 rev3 Analog [ALC662 > rev3 Analog] > Subdevices: 0/1 > Subdevice #0: subdevice #0 > card 1: Generic [HD-Audio Generic], device 2: ALC662 rev3 Alt Analog > [ALC662 rev3 Alt Analog] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > > Besides, I ran alsamixer, selected the USB card and unmuted everything. > But > then, when I try to record, no sound is recorded. I do: > > $ sox -t alsa hw:2,0 output.wav > > , or > > $ arecord -f S16_LE -D hw:2,0 -r 96000 test.wav > > , or also within Audacity. But nothing, my voice is not recorded. Please > help whoever can. > > Thanks, > > Rodolfo A short howto I wrote years ago 1) find out cards and inputs shell> cat /proc/asound/cards 0 [Intel ]: HDA-Intel - HDA Intel HDA Intel at 0xff95 irq 22 1 [HVR900 ]: USB-Audio - WinTV HVR-900 WinTV HVR-900 at usb-:00:1a.7-3, high speed 2 [Webcam ]: USB-Audio - Philips SPC 1000NC Webcam Philips CE Philips SPC 1000NC Webcam at usb-:00:1a.7-5.4, high speed => I'm going to use the Webcam built in mic => card # 2 2) find out the input shell> cat /proc/asound/devices 0: [ 0] : control 1:: sequencer 6: [ 0- 2]: hardware dependent 7: [ 0- 3]: hardware dependent 16: [ 0- 0]: digital audio playback 17: [ 0- 1]: digital audio playback 19: [ 0- 3]: digital audio playback 24: [ 0- 0]: digital audio capture 32: [ 1] : control 33:: timer 56: [ 1- 0]: digital audio capture 64: [ 2] : control 88: [ 2- 0]: digital audio capture => my input is the capture on the second card 88: [ 2- 0]: digital audio capture 3) so no we can test the mic shell> arecord -c1 -Dplughw:2,0 -f cd -vv /dev/null regards
Re: Help with USB audio card
David Wright writes: > On Tue 08 Aug 2017 at 09:38:40 (+0200), Rodolfo Medina wrote: >> David Christensen writes: >> >> > On 08/07/17 05:15, Rodolfo Medina wrote: >> >> Hi all. >> >> >> >> I just bought an external USB audio card. I plugged it into the USB port >> >> of my PC and plugged a 3.5mm jack microphone into the `mic' input of the >> >> card. It is shown in lsusb: >> >> >> >> $ lsusb >> >> Bus 002 Device 005: ID 17ef:602e Lenovo >> >> Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard >> >> Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. >> >> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> >> Bus 001 Device 010: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio >> >> Controlle > > >> > Please run the following commands, and cut and past the commands and their >> > outputs into a reply: >> > >> > cat /etc/debian_version >> > >> > uname -a >> > >> > dmesg | grep -i cm108 -A 10 -B 10 >> >> >> Thanks... >> >> $ cat /etc/debian_version >> buster/sid >> >> $ uname -a >> Linux lenovo 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2 (2017-06-12) x86_64 >> GNU/Linux >> >> `dmesg | grep -i cm108 -A 10 -B 10' produced no output at all... > > Assuming dmesg is producing any output (some systems may require > root), try the address above instead (keeping the -i). > > dmesg | grep -i 013c -A 10 -B 10 # dmesg | grep -i 013c -A 10 -B 10 [ 68.109662] hid-generic 0003:17EF:602E.0003: input,hidraw1: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-:00:13.0-1.4/input0 [ 124.794483] usb 2-1.4: USB disconnect, device number 5 [ 126.295343] usb 2-1.4: new low-speed USB device number 6 using ehci-pci [ 126.407744] usb 2-1.4: New USB device found, idVendor=17ef, idProduct=602e [ 126.407751] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 126.407755] usb 2-1.4: Product: USB Optical Mouse [ 126.407759] usb 2-1.4: Manufacturer: PixArt [ 126.410985] input: PixArt USB Optical Mouse as /devices/pci:00/:00:13.0/usb2/2-1/2-1.4/2-1.4:1.0/0003:17EF:602E.0004/input/input15 [ 126.468103] hid-generic 0003:17EF:602E.0004: input,hidraw1: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-:00:13.0-1.4/input0 [12578.608934] usb 1-1.3: new full-speed USB device number 4 using ehci-pci [12578.718654] usb 1-1.3: New USB device found, idVendor=0d8c, idProduct=013c [12578.718660] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [12578.718664] usb 1-1.3: Product: USB PnP Sound Device [12578.718668] usb 1-1.3: Manufacturer: C-Media Electronics Inc. [12578.723544] input: C-Media Electronics Inc. USB PnP Sound Device as /devices/pci:00/:00:12.0/usb1/1-1/1-1.3/1-1.3:1.3/0003:0D8C:013C.0005/input/input16 [12578.781249] hid-generic 0003:0D8C:013C.0005: input,hidraw2: USB HID v1.00 Device [C-Media Electronics Inc. USB PnP Sound Device] on usb-:00:12.0-1.3/input3 [12578.875986] usbcore: registered new interface driver snd-usb-audio Thanks, cheers Rodolfo
Re: Help with USB audio card
On Tue 08 Aug 2017 at 09:38:40 (+0200), Rodolfo Medina wrote: > David Christensen writes: > > > On 08/07/17 05:15, Rodolfo Medina wrote: > >> Hi all. > >> > >> I just bought an external USB audio card. I plugged it into the USB port > >> of > >> my PC and plugged a 3.5mm jack microphone into the `mic' input of the card. > >> It is shown in lsusb: > >> > >> $ lsusb > >> Bus 002 Device 005: ID 17ef:602e Lenovo > >> Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard > >> Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. > >> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > >> Bus 001 Device 010: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio > >> Controlle > > Please run the following commands, and cut and past the commands and their > > outputs into a reply: > > > > cat /etc/debian_version > > > > uname -a > > > > dmesg | grep -i cm108 -A 10 -B 10 > > > Thanks... > > $ cat /etc/debian_version > buster/sid > > $ uname -a > Linux lenovo 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2 (2017-06-12) x86_64 > GNU/Linux > > `dmesg | grep -i cm108 -A 10 -B 10' produced no output at all... Assuming dmesg is producing any output (some systems may require root), try the address above instead (keeping the -i). dmesg | grep -i 013c -A 10 -B 10 Cheers, David.
Re: Help with USB audio card
David Christensen writes: > On 08/07/17 05:15, Rodolfo Medina wrote: >> Hi all. >> >> I just bought an external USB audio card. I plugged it into the USB port of >> my PC and plugged a 3.5mm jack microphone into the `mic' input of the card. >> It is shown in lsusb: >> >> $ lsusb >> Bus 002 Device 005: ID 17ef:602e Lenovo >> Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard >> Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. >> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> Bus 001 Device 010: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio >> Controlle >> Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card >> Reader >> Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. >> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub >> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> >> >> and also in arecord: >> >> $ arecord --list-devices >> List of CAPTURE Hardware Devices >> card 1: Generic [HD-Audio Generic], device 0: ALC662 rev3 Analog [ALC662 >> rev3 Analog] >> Subdevices: 0/1 >> Subdevice #0: subdevice #0 >> card 1: Generic [HD-Audio Generic], device 2: ALC662 rev3 Alt Analog [ALC662 >> rev3 Alt Analog] >> Subdevices: 1/1 >> Subdevice #0: subdevice #0 >> card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] >> Subdevices: 1/1 >> Subdevice #0: subdevice #0 >> >> Besides, I ran alsamixer, selected the USB card and unmuted everything. But >> then, when I try to record, no sound is recorded. I do: >> >> $ sox -t alsa hw:2,0 output.wav >> >> , or >> >> $ arecord -f S16_LE -D hw:2,0 -r 96000 test.wav >> >> , or also within Audacity. But nothing, my voice is not recorded. Please >> help whoever can. > > STFW I found some information that might be useful. > > > Here is the chip makers web site: > > https://www.cmedia.com.tw/EN/index.html > > > It looks like two versions of the chip are currently made: > > https://www.cmedia.com.tw/products/USB20_FULL_SPEED/CM108AH > > https://www.cmedia.com.tw/products/USB20_FULL_SPEED/CM108B > > > This link indicates that some version of the chip worked on some Linux > machines > at some point in time: > > https://linux-hardware.org/index.php?id=usb:0d8c-013c > > > More links: > > http://www.linux-usb.org/USB-guide/x319.html > > https://linux-hardware.org/index.php?id=usb:0d8c-013c > > > There are several links for people with Raspberry Pi boards running Raspian. > They made changes to their ALSA configuration to use a CM108 USB audio > interface. I don't know if those instructions apply to Debian. > > > Please run the following commands, and cut and past the commands and their > outputs into a reply: > > cat /etc/debian_version > > uname -a > > dmesg | grep -i cm108 -A 10 -B 10 Thanks... $ cat /etc/debian_version buster/sid $ uname -a Linux lenovo 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2 (2017-06-12) x86_64 GNU/Linux `dmesg | grep -i cm108 -A 10 -B 10' produced no output at all... Cheers, Rodolfo
Re: Help with USB audio card
On 08/07/17 05:15, Rodolfo Medina wrote: Hi all. I just bought an external USB audio card. I plugged it into the USB port of my PC and plugged a 3.5mm jack microphone into the `mic' input of the card. It is shown in lsusb: $ lsusb Bus 002 Device 005: ID 17ef:602e Lenovo Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 010: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controlle Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub and also in arecord: $ arecord --list-devices List of CAPTURE Hardware Devices card 1: Generic [HD-Audio Generic], device 0: ALC662 rev3 Analog [ALC662 rev3 Analog] Subdevices: 0/1 Subdevice #0: subdevice #0 card 1: Generic [HD-Audio Generic], device 2: ALC662 rev3 Alt Analog [ALC662 rev3 Alt Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 Besides, I ran alsamixer, selected the USB card and unmuted everything. But then, when I try to record, no sound is recorded. I do: $ sox -t alsa hw:2,0 output.wav , or $ arecord -f S16_LE -D hw:2,0 -r 96000 test.wav , or also within Audacity. But nothing, my voice is not recorded. Please help whoever can. STFW I found some information that might be useful. Here is the chip makers web site: https://www.cmedia.com.tw/EN/index.html It looks like two versions of the chip are currently made: https://www.cmedia.com.tw/products/USB20_FULL_SPEED/CM108AH https://www.cmedia.com.tw/products/USB20_FULL_SPEED/CM108B This link indicates that some version of the chip worked on some Linux machines at some point in time: https://linux-hardware.org/index.php?id=usb:0d8c-013c More links: http://www.linux-usb.org/USB-guide/x319.html https://linux-hardware.org/index.php?id=usb:0d8c-013c There are several links for people with Raspberry Pi boards running Raspian. They made changes to their ALSA configuration to use a CM108 USB audio interface. I don't know if those instructions apply to Debian. Please run the following commands, and cut and past the commands and their outputs into a reply: cat /etc/debian_version uname -a dmesg | grep -i cm108 -A 10 -B 10 David
Re: Help with USB audio card
Jeremy Nicoll writes: > On Mon, 7 Aug 2017, at 13:15, Rodolfo Medina wrote: >> Hi all. >> >> I just bought an external USB audio card. > > Which one? Where can we see a description of its capabilities? Unfortunately I threw away the box, but it's just this: http://www.dx.com/p/usb-3d-sound-adapter-color-assorted-5831#.WYiR0q2dK00 I had it tested with MS Windows and works fine. Under Linux, as I wrote, it is detected by arecord and lsusb, and also by Audacity, and also by alsamixer, but does not produce nor record any sound. What do you suggest...? Thanks, Rodolfo
Re: Help with USB audio card
On Mon, 7 Aug 2017, at 13:15, Rodolfo Medina wrote: > Hi all. > > I just bought an external USB audio card. Which one? Where can we see a description of its capabilities? -- Jeremy Nicoll - my opinions are my own.
Help with USB audio card
Hi all. I just bought an external USB audio card. I plugged it into the USB port of my PC and plugged a 3.5mm jack microphone into the `mic' input of the card. It is shown in lsusb: $ lsusb Bus 002 Device 005: ID 17ef:602e Lenovo Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 010: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controlle Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub and also in arecord: $ arecord --list-devices List of CAPTURE Hardware Devices card 1: Generic [HD-Audio Generic], device 0: ALC662 rev3 Analog [ALC662 rev3 Analog] Subdevices: 0/1 Subdevice #0: subdevice #0 card 1: Generic [HD-Audio Generic], device 2: ALC662 rev3 Alt Analog [ALC662 rev3 Alt Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 Besides, I ran alsamixer, selected the USB card and unmuted everything. But then, when I try to record, no sound is recorded. I do: $ sox -t alsa hw:2,0 output.wav , or $ arecord -f S16_LE -D hw:2,0 -r 96000 test.wav , or also within Audacity. But nothing, my voice is not recorded. Please help whoever can. Thanks, Rodolfo