def stereo2mono(x):
	if x.ndim==1:
		return x
	else:
		if x.ndim==2:
			return ( (x[:,1] / 2) + (x[:,0] / 2) )
		else:
			return -1
This function converts the input signal (stored in a numpy array) to MONO (if it is STEREO)
dataset/ETHPy150Open tyiannak/pyAudioAnalysis/audioBasicIO.py/stereo2mono