startAudioVADStableStateMonitor method

Future<void> startAudioVADStableStateMonitor(
  1. ZegoAudioVADStableStateMonitorType type,
  2. {int? millisecond}
)

Start audio VAD stable state monitoring, and the monitoring period can be set.

Available: since 2.17.0 Description: After monitoring is started, you can use the onAudioVADStateUpdate callback to receive the specified type of audio VAD callback. Use cases: For example, when you specify the type of collection and use the microphone to collect, you can check whether the host has continuous and stable voice input through this interface. When to call: Before publish stream, you can call startPreview with this function and combine it with onAudioVADStateUpdate callback to determine whether the audio device is working properly. Restrictions: None. Related APIs: stopAudioVADStableStateMonitor.

  • type audio VAD monitor type.
  • millisecond monitoring period default 3000. value of 200, 10000

Implementation

Future<void> startAudioVADStableStateMonitor(
    ZegoAudioVADStableStateMonitorType type,
    {int? millisecond}) async {
  return await ZegoExpressImpl.instance
      .startAudioVADStableStateMonitor(type, millisecond: millisecond);
}