Package im.zego.zegoexpress
Class ZegoAudioVADClient
- java.lang.Object
-
- im.zego.zegoexpress.ZegoAudioVADClient
-
- Direct Known Subclasses:
ZegoAudioVADClientInternalImpl
public abstract class ZegoAudioVADClient extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ZegoAudioVADClient()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract boolean
reset()
Reset audio vad client instance.abstract ZegoAudioVADType
update(java.nio.ByteBuffer data, int dataLength, int sampleRate, int channels)
Check if an audio packet contains speech.
-
-
-
Method Detail
-
update
public abstract ZegoAudioVADType update(java.nio.ByteBuffer data, int dataLength, int sampleRate, int channels)
Check if an audio packet contains speech. Available since: 2.21.0 Description: Check if an audio packet contains speech. When to call: It can be called after [createAudioVADClient]. Caution: ZegoAudioVADTypeSpeech will also be returned when the voice data is abnormal to ensure that the voice will not be missed.- Parameters:
data
- audio data.dataLength
- audio data length.sampleRate
- sampling rate.channels
- number of channels.- Returns:
- voice detection results.
-
reset
public abstract boolean reset()
Reset audio vad client instance. Available since: 2.21.0 Description: Reset audio vad client instance. When to call: It can be called after [createAudioVADClient].- Returns:
- reset results.
-
-