def getDuration(sound_file):
    """
        Returns the duration of a given sound file.
    """

    wr = wave.open(sound_file,'r')
    nchannels, sampwidth, framerate, nframes, comptype, compname =  wr.getparams()
    return float(framerate) / nframes
dataset/ETHPy150Open Agerrr/Automated_Music_Transcription/least_squares_first_peaks_2.py/getDuration/swapped operands of `/`