code: def _get_audio_data(filepath):
      # Construct a true .wav file.
      out_filepath = filepath.strip(".WAV") + ".wav"
      # Assumes sox is installed on system. Sox converts from NIST SPHERE to WAV.
      subprocess.call(["sox", filepath, out_filepath])
      wav_file = wave.open(open(out_filepath))
      frame_count = wav_file.getnframes()
      byte_array = wav_file.readframes(frame_count)
      data = [int(b.encode("hex"), base=16) for b in byte_array]
      return (
          data,
          frame_count,
          wav_file.getsampwidth(),
          wav_file.getnchannels(),
      )
  
file_path: tensor2tensor/tensor2tensor/data_generators/audio.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import subprocess
  import tarfile
  import wave
  from absl import flags
  import tensorflow.compat.v1
label_desc: Use image node_id 3 for calling a global function with example usage: _get_audio_data(filepath) and returns: data,  frame_count,  wav_file,  wav_file