@cache
def to_mono(y):

    # Validate the buffer.  Stereo is ok here.
    util.valid_audio(y, mono=False)

    if y.ndim > 1:
        y = np.mean(y, axis=0)

    return y
Force an audio signal down to mono.
dataset/ETHPy150Open bmcfee/librosa/librosa/core/audio.py/to_mono