Spaces:
No application file
No application file
File size: 300 Bytes
6755a2d |
1 2 3 4 5 6 7 8 9 10 |
import os
from typing import Dict, Tuple
from ...utils.path_util import get_dir_file_map
def get_audio_path_dct(path, exts=["mp3", "flac", "wav"]) -> Dict[str, str]:
"""遍历目标文件夹及子文件夹下所有音频文件,生成字典。"""
return get_dir_file_map(path, exts=exts)
|