Linux - how do i tell Chrome to stop putting the microphone volume level to 100%?

3,667 views
Skip to first unread message

SProgrammer

unread,
Oct 3, 2014, 7:26:12 PM10/3/14
to discuss...@googlegroups.com
In Ubuntu 14.04 64-bit (3.13.0-35-generic), while using Chromium there i simply cant place the microphone capture volume level to 70%, every time Chromium is changing it into 100% as a result enorm echo and echo white static noise.

unless i abnormally do this abnormal boost disable + run infinite loop to reduce the microphone volume level into 70%
i have no other way to inform Chromium, please stop  putting volume level into 100% instead of leave as it is: 70% for my case


# ls /usr/share/pulseaudio/alsa-mixer/paths

 

analog
-input-aux.conf                  analog-input-linein.conf      analog-input.conf.common            analog-output.conf.common

analog
-input-dock-mic.conf             analog-input-mic-line.conf    analog-output-desktop-speaker.conf  hdmi-output-0.conf

analog
-input-fm.conf                   analog-input-mic.conf         analog-output-headphones-2.conf     hdmi-output-1.conf

analog
-input-front-mic.conf            analog-input-mic.conf.common  analog-output-headphones.conf       hdmi-output-2.conf

analog
-input-headphone-mic.conf        analog-input-rear-mic.conf    analog-output-mono.conf             hdmi-output-3.conf

analog
-input-headset-mic.conf          analog-input-tvtuner.conf     analog-output-speaker-always.conf   iec958-stereo-output.conf

analog
-input-internal-mic-always.conf  analog-input-video.conf       analog-output-speaker.conf

analog
-input-internal-mic.conf         analog-input.conf             analog-output.conf

>>> Above bold file disabled to have microphone boost which makes deadly echo by Chromium

# while true; do amixer -D hw:0 sset Capture 70% unmute; sleep 1; done

Simple mixer control 'Capture',0

 
Capabilities: cvolume cswitch

 
Capture channels: Front Left - Front Right

 
Limits: Capture 0 - 46

 
Front Left: Capture 33 [72%] [17.00dB] [on]

 
Front Right: Capture 33 [72%] [17.00dB] [on]

Simple mixer control 'Capture',0

 
Capabilities: cvolume cswitch

 
Capture channels: Front Left - Front Right

 
Limits: Capture 0 - 46

 
Front Left: Capture 33 [72%] [17.00dB] [on]

 
Front Right: Capture 33 [72%] [17.00dB] [on]

Simple mixer control 'Capture',0

 
Capabilities: cvolume cswitch

 
Capture channels: Front Left - Front Right

 
Limits: Capture 0 - 46

 
Front Left: Capture 33 [72%] [17.00dB] [on]

 
Front Right: Capture 33 [72%] [17.00dB] [on]

Simple mixer control 'Capture',0

 
Capabilities: cvolume cswitch

 
Capture channels: Front Left - Front Right

 
Limits: Capture 0 - 46

 
Front Left: Capture 33 [72%] [17.00dB] [on]

 
Front Right: Capture 33 [72%] [17.00dB] [on]

^C


>>> Above loop i am running cause Chromium making deadly echo by putting microphone volume level into 100% by ignoring the settings i have set to Alsa/Pulseaudio

Can anyone please suggest how do i stop this abnormal auto volume increment happening from Chromium please?


SProgrammer

unread,
Oct 3, 2014, 7:55:29 PM10/3/14
to discuss...@googlegroups.com
Tried in Linux with following explicit settings too to force it, but still why its everytime automatically putting the Microphone volume level to 100%? instead of using what administrator/user set it to 70%?

    media: {
      audio
: {
        optional
: [
         
//{sourceId: audio_source},
         
{googAutoGainControl: false},
         
{googAutoGainControl2: false},
         
{googEchoCancellation: false},
         
{googEchoCancellation2: false},
         
{googNoiseSuppression: false},
         
{googNoiseSuppression2: false},
         
{googHighpassFilter: false},
         
{googTypingNoiseDetection: false},
         
{googAudioMirroring: false}
       
]
     
},
     video
: {
        optional
: [
         
//{sourceId: video_source}
       
]
     
}
   
}


Is there anything else for this to achieve ?

Silvia Pfeiffer

unread,
Oct 4, 2014, 8:40:27 AM10/4/14
to discuss...@googlegroups.com
It also says that you can set the @volume attribute to change it.

HTH,
Silvia.


--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

SProgrammer

unread,
Oct 4, 2014, 9:22:52 AM10/4/14
to discuss...@googlegroups.com
@Silvia: Thank you, but That does not helped in Linux. This is what happen in Linux:

- User1 (Linux) calls User2 (Windows) and both connected
- User1 before placing the call and after connected manually set his microphone volume level into 70% and 0% microphone boost
- After few seconds Google Chrome for Linux changing that 70% into 100% and making microphone boost also to 100% 
- User2 is having deadly echo because User1 is trying to reduce his microphone volume but Chrome is spamming over and over by putting the volume into 100%

At the end User1 have no choice left to kill the echo cause Chrome is abnormally by force keep changing the Volume level to 100% over and over.

When this BUG will be resolved? its nightmare to do conversation from Linux.
We need a option to say "stop doing this auto incrementing of the microphone volume".

Benjamin Schwartz

unread,
Oct 6, 2014, 11:17:57 AM10/6/14
to discuss...@googlegroups.com
The volume adjustment you are encountering is called "Auto Gain Control" (AGC).  In Chrome it can be disabled by calling getUserMedia with a (nonstandard) constraint, setting "googAutoGainControl" to false.

SProgrammer

unread,
Oct 6, 2014, 12:20:08 PM10/6/14
to discuss...@googlegroups.com
@Benjamin Schwartz: I have done that see my earlier post please that did not helped in Linux, it was still doing forced AGC event it was set into false:
Reply all
Reply to author
Forward
0 new messages