Class ZegoAudioVADClientInternalImpl

    • Constructor Detail

      • ZegoAudioVADClientInternalImpl

        public ZegoAudioVADClientInternalImpl()
    • Method Detail

      • destroyAudioVADClient

        public static void destroyAudioVADClient​(ZegoAudioVADClient client)
      • update

        public ZegoAudioVADType update​(java.nio.ByteBuffer data,
                                       int dataLength,
                                       int sampleRate,
                                       int channels)
        Description copied from class: ZegoAudioVADClient
        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.
        Specified by:
        update in class ZegoAudioVADClient
        Parameters:
        data - audio data.
        dataLength - audio data length.
        sampleRate - sampling rate.
        channels - number of channels.
        Returns:
        voice detection results.
      • reset

        public boolean reset()
        Description copied from class: ZegoAudioVADClient
        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].
        Specified by:
        reset in class ZegoAudioVADClient
        Returns:
        reset results.