onLocalAudioSpectrum property
Gets the local audio spectrum.
After successfully calling registerAudioSpectrumObserver to implement the onLocalAudioSpectrum callback in AudioSpectrumObserver and calling enableAudioSpectrumMonitor to enable audio spectrum monitoring, the SDK triggers this callback at the set time interval to report the spectrum of the local audio data before encoding.
dataThe local user's audio spectrum data. See AudioSpectrumData.
Implementation
final void Function(AudioSpectrumData data)? onLocalAudioSpectrum;