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.
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:
- You have implemented Integrate the ZIM Audio SDK.
- You have implemented Implement online authentication.
Enable the feature
After the initialization, call the enableAGC method to enable the feature.
// Enable the AGC feature.
ZIMAudio.getInstance().enableAGC(true);
After the feature is enabled, you can start recording audio files. For more information, see Send and receive audio messages.
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.