class_docstr: Audio type returned by the agent.
class_docstr_tok: ["Audio","type","returned","by","the","agent","."]
code: def __init__(self, value, samplerate=16_000):
      super().__init__(value)
  
      if not is_soundfile_availble():
          raise ImportError(
              "soundfile must be installed in order to handle audio."
          )
  
      self._path = None
      self._tensor = None
  
      self.samplerate = samplerate
  
      if isinstance(value, (str, pathlib.Path)):
          self._path = value
      elif isinstance(value, torch.Tensor):
          self._tensor = value
      else:
          raise ValueError(f"Unsupported audio type: {type(value)}")
  
imports: import os
  import pathlib
  import tempfile
  import uuid
  import numpy
  from ..utils import is_soundfile_availble, is_torch_available, is_vision_available, logging
label_desc: Use image node_id 1 to create a new AgentAudio object from inherited base classes: AgentType with example: obj = AgentAudio(value, samplerate)