You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PaddleSpeech/runtime/examples/silero_vad/run.sh

39 lines
530 B

#!/bin/bash
set -e
. path.sh
nj=40
stage=-1
stop_stage=100
. utils/parse_options.sh
# input
data=data
exp=exp
mkdir -p $exp $data
# 1. compile
if [ ! -d ${SPEECHX_BUILD} ]; then
pushd ${SPEECHX_ROOT}
bash build.sh
# build for android armv8/armv7
# bash build_android.sh
popd
fi
ckpt_dir=$data/silero_vad
wav=$data/silero_vad_sample.wav
if [ ${stage} -le 0 ] && [ ${stop_stage} -ge 0 ];then
./local/download.sh
fi
if [ ${stage} -le 1 ] && [ ${stop_stage} -ge 1 ]; then
./local/decode.sh
fi