fix prepare.sh

This commit is contained in:
Your Name 2025-04-23 00:52:04 -07:00
parent c4432d1e35
commit 58e0016925
2 changed files with 9 additions and 5 deletions

View File

@ -7,6 +7,9 @@ set -eou pipefail
stage=0 stage=0
stop_stage=0 stop_stage=0
. shared/parse_options.sh || exit 1
# All files generated by this script are saved in "data". # All files generated by this script are saved in "data".
# You can safely remove "data" and rerun this script to regenerate it. # You can safely remove "data" and rerun this script to regenerate it.
mkdir -p data mkdir -p data
@ -23,7 +26,7 @@ if [ $stage -le 0 ] && [ $stop_stage -ge 0 ]; then
# pip install huggingface_hub['cli'] # pip install huggingface_hub['cli']
# for aishell 1 # for aishell 1
huggingface-cli download --local-dir data yuekai/aishell_whisper_fbank_lhotse huggingface-cli download --repo-type dataset --local-dir data yuekai/aishell_whisper_fbank_lhotse
fi fi
@ -31,9 +34,9 @@ if [ $stage -le 1 ] && [ $stop_stage -ge 1 ]; then
log "stage 1: Download whisper-large-v2 multi-hans-zh fbank feature from huggingface" log "stage 1: Download whisper-large-v2 multi-hans-zh fbank feature from huggingface"
# for multi-hans-zh # for multi-hans-zh
huggingface-cli download --local-dir data/fbank yuekai/wenetspeech_whisper_fbank_lhotse huggingface-cli download --repo-type dataset --local-dir data/fbank yuekai/wenetspeech_whisper_fbank_lhotse
huggingface-cli download --local-dir data/fbank yuekai/multi_hans_zh_whisper_fbank_lhotse huggingface-cli download --repo-type dataset --local-dir data/fbank yuekai/multi_hans_zh_whisper_fbank_lhotse
huggingface-cli download --local-dir data/fbank yuekai/alimeeting_aishell4_training_whisper_fbank_lhotse huggingface-cli download --repo-type dataset --local-dir data/fbank yuekai/alimeeting_aishell4_training_whisper_fbank_lhotse
fi fi
if [ $stage -le 2 ] && [ $stop_stage -ge 2 ]; then if [ $stage -le 2 ] && [ $stop_stage -ge 2 ]; then
@ -41,6 +44,6 @@ if [ $stage -le 2 ] && [ $stop_stage -ge 2 ]; then
# for speechio test sets # for speechio test sets
mkdir data_speechio mkdir data_speechio
huggingface-cli download --local-dir data_speechio yuekai/icefall_asr_speechio huggingface-cli download --repo-type model --local-dir data_speechio yuekai/icefall_asr_speechio
mv data_speechio/fbank/* data/fbank mv data_speechio/fbank/* data/fbank
fi fi

View File

@ -0,0 +1 @@
../../../icefall/shared