Add Flutter text to speech demo (#1087)

This commit is contained in:
Fangjun Kuang
2024-07-08 11:23:11 +08:00
committed by GitHub
parent 1fe12c5107
commit e832d356c7
133 changed files with 6686 additions and 143 deletions

View File

@@ -23,11 +23,15 @@ log "arch: $arch"
{% 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 assets
mkdir assets
pushd assets
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/${model_name}.tar.bz2
@@ -38,6 +42,9 @@ tar xvf ${model_name}.tar.bz2
rm -rf *.tar.bz2
ls -lh $model_name
ls -lh
ls -lh *
popd
git checkout ./
@@ -64,9 +71,15 @@ ls -lh
app=sherpa-onnx-$SHERPA_ONNX_VERSION-osx-$arch-asr-$lang-$short_name.app
mv streaming_asr.app $app
tar cjfv $app.tar.bz2 $app
tar cjf $app.tar.bz2 $app
rm -rf $app
ls -lh
mv $app.tar.bz2 $SHERPA_ONNX_DIR
pushd $SHERPA_ONNX_DIR
ls -lh *.tar.bz2
popd
popd
popd