class_docstr: An abstract class for manipulating audio signal.
class_docstr_tok: ["An","abstract","class","for","manipulating","audio","signal","."]
docstr: Loads the audio file denoted by the given audio descriptor and
  returns it data as a waveform. Aims to be implemented by client.
  
  Parameters:
      audio_descriptor (AudioDescriptor):
          Describe song to load, in case of file based audio adapter,
          such descriptor would be a file path.
      offset (Optional[float]):
          (Optional) Start offset to load from in seconds.
      duration (Optional[float]):
          (Optional) Duration to load in seconds.
      sample_rate (Optional[float]):
          (Optional) Sample rate to load audio with.
      dtype (bytes):
          (Optional) Data type to use, default to `b'float32'`.
  
  Returns:
      Signal:
          Loaded data as (wf, sample_rate) tuple.
docstr_tok: ["Loads","the","audio","file","denoted","by","the","given","audio","descriptor","and","returns","it","data","as","a","waveform",".","Aims","to","be","implemented","by","client",".","Parameters",":","audio_descriptor","(","AudioDescriptor",")",":","Describe","song","to","load",",","in","case","of","file","based","audio","adapter",",","such","descriptor","would","be","a","file","path",".","offset","(","Optional","[","float","]",")",":","(","Optional",")","Start","offset","to","load","from","in","seconds",".","duration","(","Optional","[","float","]",")",":","(","Optional",")","Duration","to","load","in","seconds",".","sample_rate","(","Optional","[","float","]",")",":","(","Optional",")","Sample","rate","to","load","audio","with",".","dtype","(","bytes",")",":","(","Optional",")","Data","type","to","use",",","default","to","`","b'float32","'","`",".","Returns",":","Signal",":","Loaded","data","as","(","wf",",","sample_rate",")","tuple","."]
code: def load(
      self,
      audio_descriptor: AudioDescriptor,
      offset: Optional[float] = None,
      duration: Optional[float] = None,
      sample_rate: Optional[float] = None,
      dtype: bytes = b"float32",
  ) -> Signal:
      """
      Loads the audio file denoted by the given audio descriptor and
      returns it data as a waveform. Aims to be implemented by client.
  
      Parameters:
          audio_descriptor (AudioDescriptor):
              Describe song to load, in case of file based audio adapter,
              such descriptor would be a file path.
          offset (Optional[float]):
              (Optional) Start offset to load from in seconds.
          duration (Optional[float]):
              (Optional) Duration to load in seconds.
          sample_rate (Optional[float]):
              (Optional) Sample rate to load audio with.
          dtype (bytes):
              (Optional) Data type to use, default to `b'float32'`.
  
      Returns:
          Signal:
              Loaded data as (wf, sample_rate) tuple.
      """
      pass
  
file_path: spleeter/spleeter/audio/adapter.py
imports: from abc import ABC, abstractmethod
  from importlib import import_module
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Union
  import numpy
  import tensorflow
  from spleeter.audio import Codec
  from ..None import SpleeterError
  from ..types import AudioDescriptor, Signal
  from ..utils.logging import logger
label_desc: Use image node_id 1 for calling the AudioAdapter obj's underlying member method code with example usage: obj.load(audio_descriptor, offset, duration, sample_rate, dtype) without return types