class_docstr: Audio queue.
class_docstr_tok: ["Audio","queue","."]
code: def __init__(
      self,
      callback,
      audio_device_index,
      sample_rate_hz,
      model_sample_rate,
      frame_length,
      overlap,
  ):
      # Initialize recorder.
      downsample_factor = sample_rate_hz / model_sample_rate
      self._recorder = audio_recorder.AudioRecorder(
          sample_rate_hz,
          downsample_factor=downsample_factor,
          device_index=audio_device_index,
      )
  
      self._frame_length = frame_length
      self._overlap = overlap
  
      self._audio_buffer = np.array([], dtype=np.int16).reshape(0, 1)
      self._chunk_counter = 0
      self._callback = callback
  
imports: import multiprocessing
  import threading
  from absl import app
  from absl import flags
  import attr
  from colorama import Fore
  from colorama import Style
  from magenta.models.onsets_frames_transcription.realtime import audio_recorder
  from magenta.models.onsets_frames_transcription.realtime import tflite_model
  import numpy
label_desc: Use image node_id 1 to create a new AudioQueue object from inherited base classes: object with example: obj = AudioQueue(callback, audio_device_index, sample_rate_hz, model_sample_rate, frame_length, overlap)