Add Flutter text to speech demo (#1087)
This commit is contained in:
@@ -17,11 +17,16 @@ log "SHERPA_ONNX_VERSION: $SHERPA_ONNX_VERSION"
|
||||
|
||||
{% for model in model_list %}
|
||||
pushd $SHERPA_ONNX_DIR/flutter-examples/streaming_asr/
|
||||
|
||||
model_name={{ model.model_name }}
|
||||
lang={{ model.lang }}
|
||||
type={{ model.idx }}
|
||||
short_name={{ model.short_name }}
|
||||
|
||||
rm -rf build
|
||||
rm -rf assets
|
||||
mkdir assets
|
||||
|
||||
pushd assets
|
||||
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/${model_name}.tar.bz2
|
||||
@@ -32,6 +37,9 @@ tar xvf ${model_name}.tar.bz2
|
||||
rm -rf *.tar.bz2
|
||||
ls -lh $model_name
|
||||
|
||||
ls -lh
|
||||
ls -lh *
|
||||
|
||||
popd
|
||||
|
||||
git checkout ./
|
||||
@@ -55,9 +63,14 @@ ls -lh
|
||||
|
||||
dst=sherpa-onnx-$SHERPA_ONNX_VERSION-win-x64-asr-$lang-$short_name
|
||||
mv Release $dst
|
||||
tar cjfv $dst.tar.bz2 ./$dst
|
||||
tar cjf $dst.tar.bz2 ./$dst
|
||||
rm -rf $dst
|
||||
mv $dst.tar.bz2 $SHERPA_ONNX_DIR
|
||||
|
||||
pushd $SHERPA_ONNX_DIR
|
||||
ls -lh *.tar.bz2
|
||||
popd
|
||||
|
||||
popd
|
||||
|
||||
popd
|
||||
|
||||
Reference in New Issue
Block a user