From 85895026146a5b5796a8b9a4822496fda9f43d12 Mon Sep 17 00:00:00 2001 From: WongLaw Date: Tue, 27 Dec 2022 09:50:51 +0000 Subject: [PATCH] Adjust sort method for VITS, test=tts --- paddlespeech/t2s/exps/vits/preprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlespeech/t2s/exps/vits/preprocess.py b/paddlespeech/t2s/exps/vits/preprocess.py index f89ab356f..2b1a40834 100644 --- a/paddlespeech/t2s/exps/vits/preprocess.py +++ b/paddlespeech/t2s/exps/vits/preprocess.py @@ -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)