def cropSilenceInEdges(sampleList, silenceThreshold, sampleFreq):
    """
    Returns the left and right boundaries of the meaningful data in a wav file
    """
    startI = 0
    while sampleList[startI] < silenceThreshold:
        startI += 1
    endI = len(sampleList) - 1
    while sampleList[endI] < silenceThreshold:
        endI -= 1
    startTime = startI * sampleFreq
    endTime = endI * sampleFreq
    return startTime, endTime
