游雁
2023-06-29 bc723ea200144bd6fa8a5dff4b9a780feda144fc
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}."