onFrame

Callback when an audio frame is received.

onFrame?(frame: AudioPcmFrame): void;

After registering the audio data observer, this callback is triggered each time an audio frame is received to report the audio frame information.

Parameters

frame
Audio frame information. See AudioPcmFrame.