black formatted

This commit is contained in:
zr_jin 2024-12-08 11:20:40 +08:00
parent 6e6b022e41
commit fa64e37dbe
2 changed files with 6 additions and 0 deletions

View File

@ -104,6 +104,9 @@ def compute_fbank_kespeech_dev_test(args):
keep_overlapping=False, min_duration=None keep_overlapping=False, min_duration=None
) )
if args.speed_perturb:
cut_set = cut_set + cut_set.perturb_speed(0.9) + cut_set.perturb_speed(1.1)
logging.info("Computing features") logging.info("Computing features")
cut_set = cut_set.compute_and_store_features_batch( cut_set = cut_set.compute_and_store_features_batch(
extractor=extractor, extractor=extractor,

View File

@ -158,6 +158,9 @@ def compute_fbank_kespeech_splits(args):
keep_overlapping=False, min_duration=None keep_overlapping=False, min_duration=None
) )
if args.speed_perturb:
cut_set = cut_set + cut_set.perturb_speed(0.9) + cut_set.perturb_speed(1.1)
logging.info("Computing features") logging.info("Computing features")
cut_set = cut_set.compute_and_store_features_batch( cut_set = cut_set.compute_and_store_features_batch(
extractor=extractor, extractor=extractor,