mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
95aebcb635
commit
167100c243
Binary file not shown.
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user