Chromium - microphone lost in some minutes

I'm using Microsoft Teams in Chromium 83.0.4103.116 browser on FreeBSD 12.1 p10.
If I start a voice call - it works, but after some minutes my colleagues cannot hear me. If I restart a call - it works again, but only during some minutes, then I'm lost again. I use internal laptop's microphone, pulseaudio is installed.
Is it a known bug? How can I debug this problem? Is there any way to change microphone used by Chromium from dsp2 (internal) to dsp4 (usb) without changing the default sound device?
Note that I don't have this problem in the native telegram-desktop client (Qt5).
 
Same thing here. After few minutes my colleagues reports they can't hear me because I got robot voice ='D
I'm keep trying to figure out a way to fix this.
 
I'm on v.87 actually. It did not work with the default backend, I rebuilt the port with pulseaudio - it does work neither. On call it says "Your microphone is muted", but the controls on page say it is not muted. So, no way to unmute it.
 
Last edited:
I've done some tests, it seems that there are two different problems (in PulseAudio version):
1. The channel to use for microphone input is not taken from settings, the default one is used. If I force the good channel on PulseAudio level - it works... for 1-2 minutes
2. After 1-2 minutes the microphone is muted. I cannot unmute it on PulseAudio level, ON/OFF does not help neither.
The same configuration perfectly works for Telegram.
 
I have the exact same problem with robot voice after 1-2 minutes. I'm on (ungoogled-)chromium 137.0.7151.103. Did anybody find any solution for that?
 
I have the exact same problem with robot voice after 1-2 minutes. I'm on (ungoogled-)chromium 137.0.7151.103. Did anybody find any solution for that?
I solved the problem using virtual_oss(8). In my case, integrated microphone on my ThinkPad X220 works fine even without virtual_oss(8) in simple cases (for example, if you just send the output from the microphone to the speakers, everything would work), but in www/ungoogled-chromium microphone becomes robotic. I guess that the problem is that browser and some other process start share (access) /dev/dsp at the same time, which reduces sound quality.

I'll write simple directions that might be helpful if you encountered the same problem:
1. Install audio/virtual_oss port.
2. Edit your /boot/loader.conf:
Code:
cuse_load="YES" # virtual_oss(8) requires cuse(3).
3. Edit your /etc/rc.conf:
Code:
virtual_oss_enable="YES"
4. (Optional) If you find that after reboot you mic sounds robotic, maybe you need to change sample rate for you microphone. virtual_oss(8) uses 48000 by default, but in my case, I had to change it to 44100. You can make this rate the default one by adding the following line to /etc/rc.conf:
Code:
virtual_oss_dsp="-C 2 -c 2 -S -i 8 -r 44100 -b 24 -s 8.0ms -f /dev/dsp0 -d dsp -t dsp.ctl"
All the options from this long line, except -r 44100, are used by default, if you omit virtual_oss_dsp variable in /etc/rc.conf.
 
Back
Top