io.agora.rtc

## Class AgoraAudioVadV2.VadData

- java.lang.Object
- - io.agora.rtc.AgoraAudioVadV2.VadData

- Enclosing class:
    AgoraAudioVadV2

      private class AgoraAudioVadV2.VadData
      extends java.lang.Object

  Simple container for an audio frame and its activity flag.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `(package private) byte[]` | `data` Raw PCM data for the frame.
    `(package private) boolean` | `isActivity` Indicates whether the frame was classified as active speech.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `VadData(byte[] data, boolean isActivity)` Wraps a frame and its activity state.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### data

          byte[] data

      Raw PCM data for the frame.

    - #### isActivity

          boolean isActivity

      Indicates whether the frame was classified as active speech.

  - ### Constructor Detail

    - #### VadData

          public VadData(byte[] data,
                         boolean isActivity)

      Wraps a frame and its activity state.
      Parameters:
        `data` - PCM data
        `isActivity` - Whether the frame is active

  - ### Method Detail

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`