from local

This commit is contained in:
dohe0342 2023-03-13 16:05:55 +09:00
parent d1bce0c45d
commit ff1cc90901
2 changed files with 1 additions and 0 deletions

View File

@ -808,6 +808,7 @@ def main():
res_dict = sorted(res_dict.items(), key=lambda x:x[0])
for k, v in res_dict:
os.makedirs(f"/DB/LibriSpeech_tar/vox/{params.spk_id}_texts")
utt_id = '-'.join(k.split('-')[:-1])
f = open(f'/DB/LibriSpeech_tar/vox/{params.spk_id}_texts/{utt_id}.txt', 'w')
f.write(v.strip())