code: def read_audio_generic(input_file):
      """
      Function to read audio files with the following extensions
      [".mp3", ".au", ".ogg"], containing PCM (int16 or int32) data
      """
      sampling_rate = -1
      signal = np.array([])
      try:
          audiofile = AudioSegment.from_file(input_file)
          data = np.array([])
          if audiofile.sample_width == 2:
              data = np.fromstring(audiofile._data, np.int16)
          elif audiofile.sample_width == 4:
              data = np.fromstring(audiofile._data, np.int32)
  
          if data.size > 0:
              sampling_rate = audiofile.frame_rate
              temp_signal = []
              for chn in list(range(audiofile.channels)):
                  temp_signal.append(data[chn :: audiofile.channels])
              signal = np.array(temp_signal).T
      except:
          print(
              "Error: file not found or other I/O error. (DECODING FAILED)"
          )
      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 5 for calling a global function with example usage: read_audio_generic(input_file) and returns: sampling_rate,  signal