Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: replabrobin on 02 January 2025, 13:52:09

Title: Firefox and ALSA microphone
Post by: replabrobin on 02 January 2025, 13:52:09
After switching to firefox to avoid horrid advert blizzard I find I have an issue getting firefox to use an alsa microphone.

This is not a permissions issue since  have set the permissions for my test site to allow both speaker output and microphone etc etc.

In eg meet.google.com I can see a microphone called default is present, but it doesn't seem to work.

I have tried many about:config changes, but none seemed to make any difference.

To avoid installing pulseaudio which is recommended I have been able to get a working microphone by using the apulse wrapper.

Has anyone else managed to get a working microphone with firefox and alsa alone?
Title: Re: Firefox and ALSA microphone
Post by: tintin on 03 January 2025, 05:23:42
Hello,

Here is my little kitchen to use only alsa, at the end there is a spoiler that might possibly interest you:
https://forum.artixlinux.org/index.php/topic,4318.msg27848.html#msg27848
Title: Re: Firefox and ALSA microphone
Post by: replabrobin on 03 January 2025, 12:04:52
..........
https://forum.artixlinux.org/index.php/topic,4318.msg27848.html#msg27848
useful stuff, but unfortunately the spoiler doesn't apply in my case, but  I have used the module trick on another machine with a usb speaker.. I only have one card.
Code: [Select]
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [PHL 243V7]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
I have this in my /etc/asound.conf
Code: [Select]
defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 0
capture.pcm.default { type plug slave { pcm hw card 0 device 0 } }

I can record and playback using most apps. In firefox sound works, but the mic doesn't; I see an active mic called `default`, but it doesn't work. If I start firefox with the apulse wrapper then the mic does work it has the name `default_source_name`.
Title: Re: Firefox and ALSA microphone
Post by: tintin on 04 January 2025, 03:31:35
useful stuff, but unfortunately the spoiler doesn't apply in my case, but  I have used the module trick on another machine with a usb speaker.. I only have one card.
Ah, okay.


Quote
I can record and playback using most apps. In firefox sound works, but the mic doesn't; I see an active mic called `default`, but it doesn't work. If I start firefox with the apulse wrapper then the mic does work it has the name `default_source_name`.
I've never needed a microphone in Firefox and can't tell you more. :(