Add alsa-based streaming ASR example for sense voice. (#2207)

This commit is contained in:
Fangjun Kuang
2025-05-13 19:08:09 +08:00
committed by GitHub
parent 9a0e16f092
commit fdda292d5a
6 changed files with 273 additions and 6 deletions

View File

@@ -82,6 +82,8 @@ jobs:
..
make -j4 install
cp -v bin/sense-voice-simulate-streaming-alsa-cxx-api install/bin
rm -rf install/lib/pkgconfig
rm -fv install/lib/cargs.h
rm -fv install/lib/libcargs.so
@@ -126,6 +128,8 @@ jobs:
make -j4 install
cp -v bin/sense-voice-simulate-streaming-alsa-cxx-api install/bin
rm -rf install/lib/pkgconfig
rm -fv install/lib/cargs.h
rm -fv install/lib/libcargs.so
@@ -242,7 +246,7 @@ jobs:
file: sherpa-onnx-*linux-aarch64*.tar.bz2
# repo_name: k2-fsa/sherpa-onnx
# repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
# tag: v1.11.1
# tag: v1.11.5
- name: Test offline Moonshine
if: matrix.build_type != 'Debug'

View File

@@ -83,6 +83,8 @@ jobs:
make install
cp bin/sense-voice-simulate-streaming-alsa-cxx-api install/bin
ls -lh install/lib
rm -rf install/lib/pkgconfig
@@ -164,7 +166,7 @@ jobs:
file: sherpa-onnx-*linux-aarch64*.tar.bz2
# repo_name: k2-fsa/sherpa-onnx
# repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
# tag: v1.10.42
# tag: v1.11.5
- name: Test offline Moonshine
if: matrix.build_type != 'Debug'

View File

@@ -168,7 +168,7 @@ jobs:
file: sherpa-onnx-*-android.tar.bz2
# repo_name: k2-fsa/sherpa-onnx
# repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
# tag: v1.11.3
# tag: v1.11.5
build-android-aar:
needs: [build-android-libs]
@@ -297,7 +297,7 @@ jobs:
file: ./*.aar
# repo_name: k2-fsa/sherpa-onnx
# repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
# tag: v1.11.3
# tag: v1.11.5
- name: Release android aar
if: github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')