def METHOD_NAME(root: Path, filenames: List[str], target_sr=16_000):
    out_root = root / "wav"
    out_root.mkdir(exist_ok=True, parents=True)
    print("Converting to WAV...")
    for n in tqdm(filenames):
        in_path = (root / "clips" / n).as_posix()
        waveform, sr = torchaudio.load(in_path)
        converted, converted_sr = torchaudio.sox_effects.apply_effects_tensor(
            waveform, sr, [["rate", str(target_sr)], ["channels", "1"]]
        )
        out_path = (out_root / Path(n).with_suffix(".wav").name).as_posix()
        torchaudio.save(out_path, converted, converted_sr, encoding="PCM_S",
                        bits_per_sample=16)