code: def load_audio(file: Any) -> np.ndarray:
      
      import wavio
      try:
          wav = wavio.read(file)
      except EOFError:
          wav = wavio.Wav(np.array([[]], dtype=np.int16), 16000, 2)
      if wav.data.dtype != np.int16:
          raise InvalidAudio('Unsupported data type: ' + str(wav.data.dtype))
      if wav.rate != pr.sample_rate:
          raise InvalidAudio('Unsupported sample rate: ' + str(wav.rate))
  
      data = np.squeeze(wav.data)
      return data.astype(np.float32) / float(np.iinfo(data.dtype).max)
docs: Args:
          file: Audio filename or file object
      Returns:
          samples: Sample rate and audio samples from 0..1