import wave


def get_duration_seconds(wav_path):
    """
    Given a .wav file, return the duration in seconds
    """
    with wave.open(wav_path) as wav_file:
        return wav_file.getnframes() / wav_file.getframerate()