class_docstr: MediaPipe Tasks' audio container.
class_docstr_tok: ["MediaPipe","Tasks","'","audio","container","."]
docstr: Initializes the `AudioData` object.
  
  Args:
    buffer_length: the length of the audio buffer.
    audio_format: the audio format metadata.
docstr_tok: ["Initializes","the","`","AudioData","`","object",".","Args",":","buffer_length",":","the","length","of","the","audio","buffer",".","audio_format",":","the","audio","format","metadata","."]
code: def __init__(
      self,
      buffer_length: int,
      audio_format: AudioDataFormat = AudioDataFormat(),
  ) -> None:
      """Initializes the `AudioData` object.
  
      Args:
        buffer_length: the length of the audio buffer.
        audio_format: the audio format metadata.
      """
      self._audio_format = audio_format
      self._buffer = np.zeros(
          [buffer_length, self._audio_format.num_channels],
          dtype=np.float32,
      )
  
file_path: mediapipe/mediapipe/tasks/python/components/containers/audio_data.py
imports: import dataclasses
  from typing import Optional
  import numpy
label_desc: Use image node_id 1 to create a new AudioData object from inherited base classes: object with example: obj = AudioData(buffer_length, audio_format)