Add streaming ASR examples for Dart API (#1009)

This commit is contained in:
Fangjun Kuang
2024-06-15 11:48:54 +08:00
committed by GitHub
parent d94506698d
commit e3077670c6
30 changed files with 1021 additions and 2 deletions

View File

@@ -4,6 +4,30 @@ set -ex
cd dart-api-examples
pushd streaming-asr
echo '----------streaming zipformer ctc HLG----------'
./run-zipformer-ctc-hlg.sh
rm -rf sherpa-onnx-*
echo '----------streaming zipformer ctc----------'
./run-zipformer-ctc.sh
rm -rf sherpa-onnx-*
echo '----------streaming zipformer transducer----------'
./run-zipformer-transducer.sh
rm -rf sherpa-onnx-*
echo '----------streaming NeMo transducer----------'
./run-nemo-transducer.sh
rm -rf sherpa-onnx-*
echo '----------streaming paraformer----------'
./run-paraformer.sh
rm -rf sherpa-onnx-*
popd # streaming-asr
pushd non-streaming-asr
echo '----------VAD with paraformer----------'
@@ -34,7 +58,7 @@ echo '----------zipformer transducer----------'
./run-zipformer-transducer.sh
rm -rf sherpa-onnx-*
popd
popd # non-streaming-asr
pushd vad
./run.sh

View File

@@ -6,12 +6,14 @@ on:
- master
paths:
- '.github/workflows/test-dart.yaml'
- '.github/scripts/test-dart.sh'
- 'dart-api-examples/**'
pull_request:
branches:
- master
paths:
- '.github/workflows/test-dart.yaml'
- '.github/scripts/test-dart.sh'
- 'dart-api-examples/**'
workflow_dispatch:
@@ -89,5 +91,6 @@ jobs:
run: |
cp scripts/dart/vad-pubspec.yaml dart-api-examples/vad/pubspec.yaml
cp scripts/dart/non-streaming-asr-pubspec.yaml dart-api-examples/non-streaming-asr/pubspec.yaml
cp scripts/dart/streaming-asr-pubspec.yaml dart-api-examples/streaming-asr/pubspec.yaml
.github/scripts/test-dart.sh