import os
wav_scp_dict={}
#读取文件
with open ("wav.sco",'r',encoding="utf-8")as file:
#按行去遍历
for line in file.readline():
#去掉换行符
line=line.strip("/n")
#拿到id
idx=line.split(" ")[0]
#拿到路径
content=line.split(" ")[-1]
#保存字典
wav_scp_dict[idx]=content
pass
pass