Adjust sort method for VITS, test=tts

pull/2770/head
WongLaw 3 years ago
parent b05b769e18
commit 8589502614

@ -166,7 +166,7 @@ def process_sentences(config,
if record:
results.append(record)
results.sort(key=itemgetter("utt_id"))
results.sort(key=itemgetter("feats_lengths"))
with jsonlines.open(output_dir / "metadata.jsonl", 'w') as writer:
for item in results:
writer.write(item)

Loading…
Cancel
Save