Add Go API for audio tagging (#1840)
This commit is contained in:
15
.github/workflows/test-go-package.yaml
vendored
15
.github/workflows/test-go-package.yaml
vendored
@@ -26,6 +26,8 @@ jobs:
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
arch: amd64
|
||||
- os: ubuntu-22.04-arm
|
||||
arch: arm64
|
||||
- os: macos-13
|
||||
arch: amd64
|
||||
- os: macos-14
|
||||
@@ -460,6 +462,19 @@ jobs:
|
||||
./run-tdnn-yesno.sh
|
||||
rm -rf sherpa-onnx-tdnn-yesno
|
||||
|
||||
- name: Test audio tagging (Linux/macOS)
|
||||
if: matrix.os != 'windows-latest'
|
||||
shell: bash
|
||||
run: |
|
||||
cd go-api-examples/audio-tagging
|
||||
ls -lh
|
||||
go mod tidy
|
||||
cat go.mod
|
||||
go build
|
||||
ls -lh
|
||||
|
||||
./run.sh
|
||||
|
||||
- name: Test streaming decoding files (Linux/macOS)
|
||||
if: matrix.os != 'windows-latest'
|
||||
shell: bash
|
||||
|
||||
13
.github/workflows/test-go.yaml
vendored
13
.github/workflows/test-go.yaml
vendored
@@ -33,7 +33,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-latest, macos-13, ubuntu-latest, windows-latest]
|
||||
os: [macos-latest, macos-13, ubuntu-latest, windows-latest, ubuntu-22.04-arm]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -87,7 +87,7 @@ jobs:
|
||||
make -j2 install
|
||||
fi
|
||||
|
||||
if [[ ${{ matrix.os }} == ubuntu-latest ]]; then
|
||||
if [[ ${{ matrix.os }} == ubuntu-latest || ${{ matrix.os }} == ubuntu-22.04-arm ]]; then
|
||||
cp -v ./lib/*.so $upload_dir
|
||||
cp -v _deps/onnxruntime-src/lib/libonnxruntime*so* $upload_dir
|
||||
|
||||
@@ -132,6 +132,15 @@ jobs:
|
||||
name: ${{ matrix.os }}-libs
|
||||
path: to-upload/
|
||||
|
||||
- name: Test audio tagging
|
||||
shell: bash
|
||||
run: |
|
||||
cd scripts/go/_internal/audio-tagging/
|
||||
|
||||
./run.sh
|
||||
|
||||
ls -lh
|
||||
|
||||
- name: Test Keyword spotting
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user