class_docstr: Audio data file wrapper that ensures that the file is loaded with the correct sample rate, channels,
  and width, and converts the file on the fly otherwise.
class_docstr_tok: ["Audio","data","file","wrapper","that","ensures","that","the","file","is","loaded","with","the","correct","sample","rate",",","channels",",","and","width",",","and","converts","the","file","on","the","fly","otherwise","."]
code: def __init__(
      self, audio_path, as_path=False, audio_format=DEFAULT_FORMAT
  ):
      self.audio_path = audio_path
      self.audio_format = audio_format
      self.as_path = as_path
      self.open_file = None
      self.open_wav = None
      self.tmp_file_path = None
      self.tmp_src_file_path = None
  
imports: import collections
  import ctypes
  import io
  import math
  import numpy
  import os
  import pyogg
  import tempfile
  import wave
  from .helpers import LimitingPool
  from collections import namedtuple
  from .io import open_remote, remove_remote, copy_remote, is_remote_path
label_desc: Use image node_id 1 to create a new AudioFile object  with example: obj = AudioFile(audio_path, as_path, audio_format)