code: def read_audio_file(input_file):
      """
      This function returns a numpy array that stores the audio samples of a
      specified WAV of AIFF file
      """
  
      sampling_rate = 0
      signal = np.array([])
      if isinstance(input_file, str):
          extension = os.path.splitext(input_file)[1].lower()
          if extension in [".aif", ".aiff"]:
              sampling_rate, signal = read_aif(input_file)
          elif extension in [".wav"]:
              sampling_rate, signal = wavfile.read(
                  input_file
              )  # from scipy.io
          elif extension in [".mp3", ".au", ".ogg"]:
              sampling_rate, signal = read_audio_generic(input_file)
          else:
              print("Error: unknown file type {extension}")
      else:
          sampling_rate, signal = read_audio_generic(input_file)
  
      if signal.ndim == 2 and signal.shape[1] == 1:
          signal = signal.flatten()
  
      return sampling_rate, signal
  
file_path: pyAudioAnalysis/pyAudioAnalysis/audioBasicIO.py
imports: from __future__ import print_function
  import os
  import glob
  import aifc
  import eyed3
  import ntpath
  import shutil
  import numpy
  from pydub import AudioSegment
  from scipy.io import wavfile
label_desc: Use image node_id 3 for calling a global function with example usage: read_audio_file(input_file) and returns: sampling_rate,  signal