onEarMonitoringAudioFrame property
Receives the raw audio data for ear monitoring.
To ensure the audio data format for ear monitoring meets expectations, you can set the format using the following methods: Call setEarMonitoringAudioFrameParameters to set the audio data format, then call registerAudioFrameObserver to register the audio observer object. The SDK calculates the sampling interval based on the parameters in this method and triggers the onEarMonitoringAudioFrame callback accordingly. Due to framework limitations, this callback does not support sending the processed audio data back to the SDK.
audioFrameThe raw audio data. See AudioFrame.
Implementation
final void Function(AudioFrame audioFrame)? onEarMonitoringAudioFrame;