SIP.js
SIP.js copied to clipboard
Automatic Gain Control (AGC)
I cant find anything in docs about how to disable AGC.
Earlier it was possible to use "{ optional: [{ googAutoGainControl: false }] }", but i cant get it to work on v0.17.1 (upgraded from 0.15.7)
We've run into the same thing. Related to this issue here, if you want a quick workaround:
https://github.com/onsip/SIP.js/pull/592
Would definitely be good to have a better solution than this in the core SDH, though I understand the considerations on that.
Disabling AGC (and a bunch of other stuff) was moved to getUserMedia()
a while ago and is that how you are trying to set it? (Not using a second parameter to RTCPeerConnection per #592)...
https://groups.google.com/g/discuss-webrtc/c/m6Rory-FjAg https://groups.google.com/g/discuss-webrtc/c/-ACwaFI7jWQ
So you should be able to pass them as constraints
on SessionDescriptionHandlerOptions
. For example...
new Inviter(ua, target, {
sessionDescriptionHandlerOptions: {
constraints: // here
}
I haven't tested this exact bit of code, but I believe this is something like what you want for constraints
...
constraints: {
audio: {
mandatory: {
googEchoCancellation: false,
googAutoGainControl: false,
googAutoGainControl2: false,
googNoiseSuppression: false,
googHighpassFilter: false,
googTypingNoiseDetection: false
}
},
video: false
}
Regardless, I believe you are able to do what you are looking to do without changes to the library code.
but for some reason it didn't work for me