enableCustomAudioCaptureProcessing method

Future<void> enableCustomAudioCaptureProcessing(
  1. bool enable,
  2. ZegoCustomAudioProcessConfig config
)

Enable local collection and custom audio processing(before ear return).

Available since: 1.13.0 Description: Enable custom audio processing(before ear return), developers can receive locally collected audio frames through onProcessCapturedAudioData, and can modify the audio data. Use cases: If the developer wants to implement special functions (such as voice change, bel canto, etc.) through custom processing after the audio data is collected or before the remote audio data is drawn for rendering. When to call: It needs to be called before startPublishingStream, startPlayingStream, startPreview, createMediaPlayer, createAudioEffectPlayer and createRealTimeSequentialDataManager to be effective. Restrictions: None.

  • enable Whether to enable local capture custom audio processing.
  • config Custom audio processing configuration.

Implementation

Future<void> enableCustomAudioCaptureProcessing(
    bool enable, ZegoCustomAudioProcessConfig config) async {
  return await ZegoExpressImpl.instance
      .enableCustomAudioCaptureProcessing(enable, config);
}