Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide way of disabling the automatic volume adjustment #1263

Closed
lunarwtr opened this issue May 16, 2024 · 10 comments
Closed

Provide way of disabling the automatic volume adjustment #1263

lunarwtr opened this issue May 16, 2024 · 10 comments
Labels
known issue/workaround Workaround available in the know_issues.md file

Comments

@lunarwtr
Copy link

Teams is notorious for trying to auto adjust the microphone. The teams client has a toggle to turn this off but it seems to be missing from web version. I believe chromium has a experimental flag that might assist with this, but I am unsure how to set for the electron app.

chrome://flags/#enable-webrtc-allow-input-volume-adjustment

@IsmaelMartinez
Copy link
Owner

IsmaelMartinez commented May 17, 2024

Check the electron supported flags. https://www.electronjs.org/docs/latest/api/command-line-switches . If it is in there, then you can pass an array of flags to the app (check the config options), or you can just use them from the command line.

If it is not there, you should fill a feature request in electron. Hope helps!

@dicamarques14
Copy link

https://github.com/IsmaelMartinez/teams-for-linux/blob/develop/app/config/README.md
There's support for that in here: disableAutogain

Just create a config according to the install type you have

@IsmaelMartinez
Copy link
Owner

Thanks @dicamarques14. I think is slightly different request, but give it a try @lunarwtr and see if it works for you (and report back please). Thanks!

@IsmaelMartinez
Copy link
Owner

Hi @lunarwtr , I will close this issue as I don't think we can help much. Electron doesn't allow doing much around sound and that flag is not currently available.

I would suggest to check that is not your system audio settings that are playing with you. I used to get really annoying as my audio settings were auto adjusted in Ubuntu.

Do please let us know if the disableAutogain did something to you. It might just be what you need.

Also, we appreciate (I am tempted to make it mandatory) to use the templates to fill feature requests or bugs. It does save us a lot of time going back and forwards with issues.

@IsmaelMartinez
Copy link
Owner

IsmaelMartinez commented May 29, 2024

Actually, something to try (using --webDebug) is to see if the https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints/autoGainControl does anything. If MS is following the standards, then it should just work. Chances are they aren't, but if that works we can add it as an option to run on startup

@lunarwtr
Copy link
Author

Sorry for late reply. I could not find an electron flag that matches the particular chromium one I mentioned in description. But I will see about testing the two Auto Gain properties you mentioned.

@gorillapower
Copy link

Im also experiencing the same issue, I believe disabling the autogain as mentioned has solved my issue. I will confirm.

@IsmaelMartinez
Copy link
Owner

closing as workaround provided (or at least it should work). Do report back if that is not working and we can re-open the issue

@IsmaelMartinez IsmaelMartinez added the known issue/workaround Workaround available in the know_issues.md file label Jun 11, 2024
@dim-geo
Copy link

dim-geo commented Jun 25, 2024

Hello, tried --disableAutogain true with both teamsv1 and v2 but without any improvement (version 1.6.3)

@IsmaelMartinez
Copy link
Owner

Sorry to hear, unfortunately this is blocked by electron. I would suggest you request that flag feature to be supported on their side. Otherwise trying that autogain mention I put on the comment #1263 (comment) it "might" work, but I do not have much hope on Microsoft and Google both following those standards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
known issue/workaround Workaround available in the know_issues.md file
Projects
None yet
Development

No branches or pull requests

5 participants