logo
In-app Chat
SDK Error Codes
Powered Byspreading
On this page

AGC

The ZIM Audio SDK provides the automatic gain control (AGC) feature to flexibly adjust the volume of the microphone, improve sound quality and stability, and enhance user experience.

Warning

To use this feature, contact ZEGOCLOUD Technical Support to enable it. Pro or Enterprise users can enable it free of charge.

Prerequisites

Before you implement the AGC feature, make sure that the following conditions are met:

Enable the feature

After the initialization, call the enableAGC method to enable the feature.

Untitled
// Enable the AGC feature.
ZIMAudio.getInstance().enableAGC(true);
1
Copied!

After the feature is enabled, you can start recording audio files. For more information, see Send and receive audio messages.

Note

If the AGC feature is enabled after recording starts, this feature does not take effect for this recording and takes effect for subsequent recordings only.

Previous

Implement online authentication

Next

ANS

On this page

Back to top