def shortTermEnergy(frame):
    """
    Calculates the short-term energy of an audio frame. The energy value is
    normalized using the length of the frame to make it independent of said
    quantity.
    """
    return sum( [ abs(x)**2 for x in frame ] ) / len(frame)