Voice chat: how can I auto adjust mic input gain?

Hey, I was wondering if anyone knows how to auto adjust the mic input gain based on the players mic sensitivity like how discord does it instead of the player having to manually adjust it themselves otherwise the voice starts breaking/jittering when too loud?

Also, right now, the OSS.VoiceLoopback 1 which allows the player to hear themselves only works when the packaged setting is set to development mode, but when set to shipping it stops working so now the only way the player can adjust their mic input gain value manually is that they need another player to guide them on how loud their mic is. Anyone know how to make OSS.VoiceLoopback to work on shipping mode?

Thanks in advanced, I’ve been stuck on this issue for months.