enableAEC method
- bool enable
Whether to enable acoustic echo cancellation (AEC).
Available since: 1.1.0 Description: Turning on echo cancellation, the SDK filters the collected audio data to reduce the echo component in the audio. Use case: When you need to reduce the echo to improve the call quality and user experience, you can turn on this feature. When to call: It needs to be called after createEngine. Caution: The AEC function only supports the processing of sounds playbacked through the SDK, such as sounds played by the playing stream, media player, audio effect player, etc. Before this function is called, the SDK automatically determines whether to use AEC. Once this function is called, the SDK does not automatically determine whether to use AEC. Restrictions: None. Related APIs: Developers can use enableHeadphoneAEC to set whether to enable AEC when using headphones, and use setAECMode to set the echo cancellation mode.
enable
Whether to enable echo cancellation, true: enable, false: disable
Implementation
Future<void> enableAEC(bool enable) async {
return await ZegoExpressImpl.instance.enableAEC(enable);
}