chenmengzheAAA
2023-09-14 2a66366be4c2715870e4859fd5a5db6e8a9dc00a
egs/wenetspeech/conformer/local/data.sh
@@ -13,23 +13,15 @@
# general configuration
nj=10
stage=1
stage=2
stop_stage=100
set=L
data_dir="data"
WENETSPEECH=
train_cmd=
log "$0 $*"
. utils/parse_options.sh
. ./path.sh || exit 1;
. ./cmd.sh || exit 1;
. ./db.sh || exit 1;
if [ ! -e "${WENETSPEECH}" ]; then
    log "Fill the value of 'WENETSPEECH' of db.sh"
    log "or download the data set follwing the instruction in https://wenet-e2e.github.io/WenetSpeech/"
    exit 1
fi
if [ ! -d "${WENETSPEECH}/audio" ] && [ ! -f "${WENETSPEECH}/WenetSpeech.json" ]; then
    echo "Valid WENETSPEECH data not found in ${WENETSPEECH}."