Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
USB Microphone
USB Microphone
Hi so i have been getting some problems with my mic, for some reason my studio mic does not work with linux, its detected but when i click the play back on discord for example it has no playback, is this like a driver issue or something?
Thanks - Pictures:
Thanks - Pictures:
- FreewheelinFrank
- Global Moderator
- Posts: 2109
- Joined: 2010-06-07 16:59
- Has thanked: 38 times
- Been thanked: 230 times
Re: USB Microphone
Is the microphone mono? The input device name suggests it is, but Alsa has two channels. Try muting one then the other channel. It's possible that one channel is out of phase with the other. (Left channel: Q up / Z down Right channel: E up / C down.)
If that doesn't work, post output of the Alsa diagnostic commands here:
https://wiki.audacityteam.org/wiki/USB_mic_on_Linux
If that doesn't work, post output of the Alsa diagnostic commands here:
https://wiki.audacityteam.org/wiki/USB_mic_on_Linux
- oswaldkelso
- df -h | grep > 20TiB
- Posts: 1495
- Joined: 2005-07-26 23:20
- Location: UK
- Has thanked: 1 time
- Been thanked: 60 times
Re: USB Microphone
bookmarked tyvmFreewheelinFrank wrote: ↑2022-09-14 22:48 Is the microphone mono? The input device name suggests it is, but Alsa has two channels. Try muting one then the other channel. It's possible that one channel is out of phase with the other. (Left channel: Q up / Z down Right channel: E up / C down.)
If that doesn't work, post output of the Alsa diagnostic commands here:
https://wiki.audacityteam.org/wiki/USB_mic_on_Linux
Free Software Matters
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
My oldest used PC: 1999 imac 333Mhz 256MB PPC abandoned by Debian
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
My oldest used PC: 1999 imac 333Mhz 256MB PPC abandoned by Debian
Re: USB Microphone
I had an issue where my mic and my other audio inputs weren't being played back to me and I had to enable the loopback module (pactl load module loopback-module) to allow me to hear it through my headset. I was getting sound sent, and IF I recorded via something like obs and played the video back it worked...
Re: USB Microphone
is this it or am i being dumb lol im also a bit new so
Bus 002 Device 008: ID 0c76:120c JMTek, LLC. DRELANELANMIC
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0c76 JMTek, LLC.
idProduct 0x120c
bcdDevice 1.00
iManufacturer 1 Solid State System Co.,Ltd.
iProduct 2 DRELANELANMIC
iSerial 3 010000000000
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0096
bNumInterfaces 3
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 1 Control Device
bInterfaceProtocol 0
iInterface 0
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 1 (HEADER)
bcdADC 1.00
wTotalLength 0x002e
bInCollection 1
baInterfaceNr(0) 1
AudioControl Interface Descriptor:
bLength 12
Synch Type Asynchronous
Usage Type Data
wMaxPacketSize 0x0258 1x 600 bytes
bInterval 1
bRefresh 0
bSynchAddress 0
AudioStreaming Endpoint Descriptor:
bLength 7
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x01
Sampling Frequency
bLockDelayUnits 0 Undefined
wLockDelay 0x0000
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 62
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 32
Re: USB Microphone
Of course your USB mic has no playback, it is an input device. For kernel this is a separate soundcard, it has mono input and that's all. No output, no stereo channels. To use it as input you need to choose it in your recording application. For playback you need to use another soundcard. This all is valid with plain ALSA. I'm not sure how to use it with Pulse as I don't use PulseAudio.
- FreewheelinFrank
- Global Moderator
- Posts: 2109
- Joined: 2010-06-07 16:59
- Has thanked: 38 times
- Been thanked: 230 times
Re: USB Microphone
You should give the command you issued and the output in code tags.
So (I'm guessing that the command was lsusb):
Code: Select all
$ lsusb --verbose | less
Bus 002 Device 008: ID 0c76:120c JMTek, LLC. DRELANELANMIC
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
etc
- FreewheelinFrank
- Global Moderator
- Posts: 2109
- Joined: 2010-06-07 16:59
- Has thanked: 38 times
- Been thanked: 230 times
Re: USB Microphone
It looks like the OP is getting no playback from the test utility in whatever application they were running (I don't recognise it).Segfault wrote: ↑2022-09-15 19:12 Of course your USB mic has no playback, it is an input device. For kernel this is a separate soundcard, it has mono input and that's all. No output, no stereo channels. To use it as input you need to choose it in your recording application. For playback you need to use another soundcard. This all is valid with plain ALSA. I'm not sure how to use it with Pulse as I don't use PulseAudio.
Although it's a momo microphone, there are quirks with some microphones that lead to Alsa seeing two channels with one being out of polarity, and the user must elect one channel only. It looks like Alsa is using two channels for microphone input from the screenshot of alsamixer, which is why I suggested the OP try recording with one channel at a time to see if anything is recorded.
- FreewheelinFrank
- Global Moderator
- Posts: 2109
- Joined: 2010-06-07 16:59
- Has thanked: 38 times
- Been thanked: 230 times
Re: USB Microphone
Output of
might be useful.
Then a test with
modified as per the example in the link:
Change hw:1,0 according to the real output of the first command obviously.
Then see if you get any playback.
If you do, then, as the link says, you need to adjust the settings of your recording application. If not, then Alsa is not getting the correct input from the microphone.
Code: Select all
$ arecord --list-devices
Then a test with
Code: Select all
$ arecord -f [format] -D hw:card,device -d [duration]
Code: Select all
$ arecord -f cd -D hw:1,0 -d 20 test.wav
Then see if you get any playback.
Code: Select all
$ aplay -f cd test.wav
Re: USB Microphone
sorry for the late response
arecord --list-devices output:
and the recording test just returns this
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
arecord: set_params Sample format non available
Available formats:
- S24_3LE
arecord --list-devices output:
Code: Select all
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC662 rev1 Alt Analog [ALC662 rev1 Alt Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: DRELANELANMIC [DRELANELANMIC], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: Headset [Speedlink Quyre Headset], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
arecord: set_params Sample format non available
Available formats:
- S24_3LE
- FreewheelinFrank
- Global Moderator
- Posts: 2109
- Joined: 2010-06-07 16:59
- Has thanked: 38 times
- Been thanked: 230 times
Re: USB Microphone
Have you tried playing with the Alsa channels as per post #2?
Can you confirm please that the command you issued was
?
Thanks.
Edit:
If so, try changing the format to the one asked for:
Can you confirm please that the command you issued was
Code: Select all
$ arecord -f cd -D hw:2,0 -d 20 test.wav
Thanks.
Edit:
If so, try changing the format to the one asked for:
Code: Select all
$ arecord -f S16_LE -D hw:2,0 -d 20 test.wav
Re: USB Microphone
Code: Select all
Recording WAVE 'test.wav' : Signed 24 bit Little Endian in 3bytes, Rate 8000 Hz, Mono
Warning: rate is not accurate (requested = 8000Hz, got = 44100Hz)
please, try the plug plugin
arecord: xrun:1733: read/write error, state = PREPARED
- FreewheelinFrank
- Global Moderator
- Posts: 2109
- Joined: 2010-06-07 16:59
- Has thanked: 38 times
- Been thanked: 230 times
Re: USB Microphone
FreewheelinFrank wrote: ↑2022-09-14 22:48 Is the microphone mono? The input device name suggests it is, but Alsa has two channels. Try muting one then the other channel. It's possible that one channel is out of phase with the other. (Left channel: Q up / Z down Right channel: E up / C down.)
Did you try this? It is the first thing to try. I'm assuming you tried it and it didn't work, but I think we need an explicit answer before going on, just so assume doesn't make an ass of u and me.FreewheelinFrank wrote: ↑2022-09-16 05:45 Although it's a momo microphone, there are quirks with some microphones that lead to Alsa seeing two channels with one being out of polarity, and the user must elect one channel only. It looks like Alsa is using two channels for microphone input from the screenshot of alsamixer, which is why I suggested the OP try recording with one channel at a time to see if anything is recorded.
- FreewheelinFrank
- Global Moderator
- Posts: 2109
- Joined: 2010-06-07 16:59
- Has thanked: 38 times
- Been thanked: 230 times
Re: USB Microphone
OK, thanks.
The test record and playback commands work for me in Bullseye with the webcam microphone.
The errors you are getting suggest some sort of mismatch between Alsa and the microphone.
Do you have either of these files (default is they don't exist).
Code: Select all
~/asoundrc or etc/asound.conf
You may need to create a .asoundrc file to configure the microphone: mono, rate, plugin etc
https://alsa.opensrc.org/Asoundrc
Setting asymmetrical (USB mic in, soundcard out) devices might be necessary.
https://wiki.audacityteam.org/wiki/USB_mic_on_Linux
https://raspberrypi.stackexchange.com/q ... -sound-out
Could be a case of hack it and see until you find what works for your mic.
Re: USB Microphone
Hi, ok so i made the file etc/asound.conf and put
this code in and then i rebooted
but now the mic on my headset doesn't work and the mic that im trying to fix, it has no output
Code: Select all
pcm.!default {
type asym
playback.pcm "hw:3,0"
capture.pcm "hw:2,0"
}
but now the mic on my headset doesn't work and the mic that im trying to fix, it has no output
- FreewheelinFrank
- Global Moderator
- Posts: 2109
- Joined: 2010-06-07 16:59
- Has thanked: 38 times
- Been thanked: 230 times
Re: USB Microphone
You will have to experiment with other Alsa syntax options, for example:
Maybe also rate and mono. The Alsa page explains what they are:
https://alsa.opensrc.org/Asoundrc
Try a test record after each change (you will probably need to restart Alsa or reboot) - the error messages should give you a clue about changes you need to make. The spec sheet for the mic might also give you a clue. Does it mention a rate in Hz?
Code: Select all
pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "hw:0,0"
}
capture.pcm {
type plug
slave.pcm "hw:1,0"
}
}
https://alsa.opensrc.org/Asoundrc
Try a test record after each change (you will probably need to restart Alsa or reboot) - the error messages should give you a clue about changes you need to make. The spec sheet for the mic might also give you a clue. Does it mention a rate in Hz?
- FreewheelinFrank
- Global Moderator
- Posts: 2109
- Joined: 2010-06-07 16:59
- Has thanked: 38 times
- Been thanked: 230 times
Re: USB Microphone
Is the mic plugged into a USB 3 socket? Seems that can fix the microphone sometimes.
https://bbs.archlinux.org/viewtopic.php?id=272799
https://bbs.archlinux.org/viewtopic.php?id=272799