onLocalAudioSpectrum property
Gets the statistics of a local audio spectrum.
After successfully calling registerAudioSpectrumObserver to implement the onLocalAudioSpectrum callback in AudioSpectrumObserver and calling enableAudioSpectrumMonitor to enable audio spectrum monitoring, the SDK will trigger the callback as the time interval you set to report the received remote audio data spectrum.
data
The audio spectrum data of the local user. See AudioSpectrumData.
Implementation
final void Function(AudioSpectrumData data)? onLocalAudioSpectrum;