def is_audio_file(file_path):
    """
    Check if the given file_path is an audio file
    Return True if it is an audio file, otherwise, return False
    """
    file_ext = ["wav", "aac", "ac3", "aiff", "flac", "m4a", "mp3", "ogg", "opus", "wma", "webm"]

    ext = get_file_extension(file_path)
    if ext.replace('.','') in file_ext:
        return True

    mime_type, _ = mimetypes.guess_type(file_path)
    if mime_type and mime_type.startswith('audio'):
        return True
    return False

    Check if the given file_path is an audio file
    Return True if it is an audio file, otherwise, return False
    
clearvoice/clearvoice/dataloader/misc.py