import sndhdr


def is_wav(fn):
    """Returns True if ``fn`` is a WAV file."""
    hinfo = sndhdr.what(fn)
    if hinfo is None:
        return False
    elif hinfo[0] != 'wav':
        return False
    return True