|
|
|
@ -4,7 +4,6 @@ set -e
|
|
|
|
|
|
|
|
|
|
. path.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 1. compile
|
|
|
|
|
if [ ! -d ${SPEECHX_EXAMPLES} ]; then
|
|
|
|
|
pushd ${SPEECHX_ROOT}
|
|
|
|
@ -19,19 +18,6 @@ ckpt_dir=$data/model
|
|
|
|
|
model_dir=$ckpt_dir/exp/deepspeech2_online/checkpoints/
|
|
|
|
|
vocb_dir=$ckpt_dir/data/lang_char/
|
|
|
|
|
|
|
|
|
|
# output
|
|
|
|
|
aishell_wav_scp=aishell_test.scp
|
|
|
|
|
if [ ! -d $data/test ]; then
|
|
|
|
|
pushd $data
|
|
|
|
|
wget -c https://paddlespeech.bj.bcebos.com/s2t/paddle_asr_online/aishell_test.zip
|
|
|
|
|
unzip aishell_test.zip
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
realpath $data/test/*/*.wav > $data/wavlist
|
|
|
|
|
awk -F '/' '{ print $(NF) }' $data/wavlist | awk -F '.' '{ print $1 }' > $data/utt_id
|
|
|
|
|
paste $data/utt_id $data/wavlist > $data/$aishell_wav_scp
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -f $ckpt_dir/data/mean_std.json ]; then
|
|
|
|
|
mkdir -p $ckpt_dir
|
|
|
|
|