onCapturedSoundLevelInfoUpdate property

(void Function(ZegoSoundLevelInfo soundLevelInfo)?) onCapturedSoundLevelInfoUpdate
read / write

The local captured audio sound level callback, supported vad.

Available since: 2.10.0 Description: The local captured audio sound level callback. Trigger: After you start the sound level monitor by calling startSoundLevelMonitor. Caution:

  1. The callback notification period is the parameter value set when the startSoundLevelMonitor is called.
  2. This callback is a high-frequency callback, and it is recommended not to do complex logic processing inside the callback. Related APIs: Start sound level monitoring via startSoundLevelMonitor. Monitoring remote played audio sound level by callback onRemoteSoundLevelUpdate or onRemoteSoundLevelInfoUpdate.
  • soundLevelInfo Locally captured sound level value, ranging from 0.0 to 100.0 (This value only represents the range of the sound level value returned by the callback, not the precision.).

Implementation

static void Function(ZegoSoundLevelInfo soundLevelInfo)?
    onCapturedSoundLevelInfoUpdate;