Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ZegoAudioVADClient

        public ZegoAudioVADClient()
    • 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.