From 2d86f8f11c42beedf0daf276a145d389e6085132 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Wed, 31 May 2023 22:26:14 +0800 Subject: [PATCH] trim cutset --- egs/must_c/ST/local/compute_fbank_must_c.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/egs/must_c/ST/local/compute_fbank_must_c.py b/egs/must_c/ST/local/compute_fbank_must_c.py index 0280d4a71..3af262e32 100755 --- a/egs/must_c/ST/local/compute_fbank_must_c.py +++ b/egs/must_c/ST/local/compute_fbank_must_c.py @@ -122,6 +122,11 @@ def compute_fbank_must_c( storage_type=LilcomChunkyWriter, ) + logging.info("About to split cuts into smaller chunks.") + cut_set = cut_set.trim_to_supervisions( + keep_overlapping=False, min_duration=None + ) + logging.info(f"Saving to {cuts_path}") cut_set.to_file(cuts_path) logging.info(f"Saved to {cuts_path}")