onEarMonitoringAudioFrame

Gets the in-ear monitoring audio frame.

onEarMonitoringAudioFrame?(audioFrame: AudioFrame): boolean;

In order to ensure that the obtained in-ear audio data meets the expectations, Agora recommends that you set the in-ear monitoring-ear audio data format as follows: After calling setEarMonitoringAudioFrameParameters to set the audio data format and registerAudioFrameObserver to register the audio frame observer object, the SDK calculates the sampling interval according to the parameters set in the methods, and triggers the onEarMonitoringAudioFrame callback according to the sampling interval.

Parameters

audioFrame
The raw audio data. See AudioFrame.

Returns

Without practical meaning.