diff --git a/egs/multi_zh-hans/ASR/local/compute_fbank_stcmds.py b/egs/multi_zh-hans/ASR/local/compute_fbank_stcmds.py index b5deddeab..dc37453c3 100755 --- a/egs/multi_zh-hans/ASR/local/compute_fbank_stcmds.py +++ b/egs/multi_zh-hans/ASR/local/compute_fbank_stcmds.py @@ -78,11 +78,9 @@ def compute_fbank_thchs30(num_mel_bins: int = 80, speed_perturb: bool = False): recordings=m["recordings"], supervisions=m["supervisions"], ) - if "train" in partition: + if "train" in partition and speed_perturb: cut_set = ( (cut_set + cut_set.perturb_speed(0.9) + cut_set.perturb_speed(1.1)) - if speed_perturb - else cut_set ) cut_set = cut_set.compute_and_store_features( extractor=extractor,