Add streaming ASR examples for Dart API (#1009)
This commit is contained in:
26
.github/scripts/test-dart.sh
vendored
26
.github/scripts/test-dart.sh
vendored
@@ -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
|
||||
|
||||
3
.github/workflows/test-dart.yaml
vendored
3
.github/workflows/test-dart.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user