enableAGC abstract method

Future<void> enableAGC(
  1. bool enable
)

Enables or disables automatic gain control (AGC).

Available since: 1.0.0 Description: After turning on this function, the SDK can automatically adjust the microphone volume to adapt to far and near pickup and keep the volume stable. Use case: This feature can be turned on when volume stability needs to be ensured to improve the vocal quality and user experience of recorded audio. When to call: Called at any time after init. Caution: This API can only be called normally after the authentication is within the legal usage period, or the use is allowed in the authentication information; otherwise, an error message will be reported that the authentication has expired or this feature is not supported. Restrictions: None.

  • enable Whether to enable automatic gain control, true: enable, false: disable

Implementation

Future<void> enableAGC(bool enable);