Skip to content

Commit

Permalink
Update prepare.sh (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZr authored Apr 20, 2024
1 parent ed6bc20 commit 9f8f0bc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions egs/multi_zh-hans/ASR/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,15 @@ if [ $stage -le 12 ] && [ $stop_stage -ge 12 ]; then
log "Compute KeSpeech fbank for test/dev"
./local/compute_fbank_kespeech_dev_test.py

if [ ! -f data/fbank/kespeech/kespeech-asr_cuts_train_phase1.jsonl.gz ]; then
pieces=$(find data/fbank/kespeech/train_phase1_split_${num_splits} -name "kespeech-asr_cuts_train_phase1.*.jsonl.gz")
lhotse combine $pieces data/fbank/kespeech/kespeech-asr_cuts_train_phase1.jsonl.gz
fi
if [ ! -f data/fbank/kespeech/kespeech-asr_cuts_train_phase2.jsonl.gz ]; then
pieces=$(find data/fbank/kespeech/train_phase2_split_${num_splits} -name "kespeech-asr_cuts_train_phase2.*.jsonl.gz")
lhotse combine $pieces data/fbank/kespeech/kespeech-asr_cuts_train_phase2.jsonl.gz
fi

touch data/fbank/.kespeech.done
fi
fi
Expand Down

0 comments on commit 9f8f0bc

Please sign in to comment.