from local

This commit is contained in:
dohe0342 2023-03-13 16:10:15 +09:00
parent 95aebcb635
commit 167100c243
2 changed files with 4 additions and 0 deletions

View File

@ -809,7 +809,11 @@ def main():
try: os.makedirs(f"/DB/LibriSpeech_tar/vox/{params.spk_id}_texts")
except: pass
for k, v in res_dict:
v = v.strip()
if len(v) < 10:
continue
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())