enableCustomAudioCaptureProcessingAfterHeadphoneMonitor method
- bool enable,
- ZegoCustomAudioProcessConfig config
Turn on local collection and custom audio processing (after ear return).
Available since: 1.13.0
Description: Enable custom audio processing(after 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> enableCustomAudioCaptureProcessingAfterHeadphoneMonitor(
bool enable, ZegoCustomAudioProcessConfig config) async {
return await ZegoExpressImpl.instance
.enableCustomAudioCaptureProcessingAfterHeadphoneMonitor(
enable, config);
}