import re


def get_audio_paths(dataset_root_path, lst_name):
    """Extract audio paths."""
    audio_paths = []

    with open(dataset_root_path / "scoring" / lst_name) as f:
        for line in f:
            audio_path, lang = tuple(line.strip().split())
            if lang != "nnenglish":
                continue
            audio_path = re.sub(r"^.*?\/", "", audio_path)
            audio_paths.append(dataset_root_path / audio_path)

    return audio_paths