#!/usr/bin/env bash # This script pack all source code into a single zip file # so that you can build it locally without accessing Internet # on your board. set -e SHERPA_NCNN_VERSION=$(grep "SHERPA_NCNN_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) echo "SHERPA_NCNN_VERSION: ${SHERPA_NCNN_VERSION}" dir=sherpa-ncnn-all-in-one-for-embedded-systems-${SHERPA_NCNN_VERSION} rm -rf $dir mkdir -p $dir pushd $dir wget \ -O sherpa-ncnn-${SHERPA_NCNN_VERSION}.tar.gz \ https://github.com/k2-fsa/sherpa-ncnn/archive/refs/tags/v${SHERPA_NCNN_VERSION}.tar.gz tar xf sherpa-ncnn-${SHERPA_NCNN_VERSION}.tar.gz rm -v sherpa-ncnn-${SHERPA_NCNN_VERSION}.tar.gz # Please also change ./build-m3axpi.sh wget \ -O kaldi-native-fbank-1.18.5.tar.gz \ https://github.com/csukuangfj/kaldi-native-fbank/archive/refs/tags/v1.18.7.tar.gz wget \ -O ncnn-sherpa-1.1.tar.gz \ https://github.com/csukuangfj/ncnn/archive/refs/tags/sherpa-1.1.tar.gz cat >README.md <