def readAudioFile(path):
	'''
	This function returns a numpy array that stores the audio samples of a specified WAV of AIFF file
	'''
	extension = os.path.splitext(path)[1]

	try:
		if extension.lower() in '.wav':
			[Fs, x] = wavfile.read(path)
		elif extension.lower() == '.aif' or extension.lower() == '.aiff':
			s = aifc.open(path, 'r')
			nframes = s.getnframes()
			strsig = s.readframes(nframes)
			x = numpy.fromstring(strsig, numpy.short).byteswap()
			Fs = s.getframerate()
		else:
			print "Error in readAudioFile(): Unknown file type!"
			return (-1,-1)
	except IOError:	
		print "Error: file not found or other I/O error."
		return (-1,-1)
	return (Fs, x)
dataset/ETHPy150Open tyiannak/pyAudioAnalysis/audioBasicIO.py/readAudioFile/operator `==` -> `in`