code: def stream(q, format, src, segment_length, sample_rate):
      from torchaudio.io import StreamReader
  
      print("Building StreamReader...")
      streamer = StreamReader(src, format=format)
      streamer.add_basic_audio_stream(
          frames_per_chunk=segment_length, sample_rate=sample_rate
      )
  
      print(streamer.get_src_stream_info(0))
      print(streamer.get_out_stream_info(0))
  
      print("Streaming...")
      print()
      stream_iterator = streamer.stream(timeout=-1, backoff=1.0)
      for _ in range(NUM_ITER):
          (chunk,) = next(stream_iterator)
          q.put(chunk)
  
file_path: audio/examples/tutorials/device_asr.py
imports: import torch
  import torchaudio
label_desc: Use image node_id 1 for calling a global function with example usage: stream(q, format, src, segment_length, sample_rate) without return types