enableAudioVADReport method
@hidden 3.60 for internal use only
@detail api
@author gengjunjie
@brief Enables audio voice detection. After that, you will receive rtcEngine:onAudioVADStateUpdate.
@param interval Callback interval, in milliseconds.
+ <= 0: Disable callback.
+ [100, 3000]: Enable callback and set the reporting interval to this value.
+ Invalid interval values, less than 100 set to 100, greater than 3000 set to 3000.
@return
+ 0: Success.
+ < 0: Failure. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus}.
Implementation
FutureOr<int> enableAudioVADReport(NSInteger interval) async {
return await nativeCall('enableAudioVADReport:', [interval]);
}