Add Go API for audio tagging (#1840)

This commit is contained in:
Fangjun Kuang
2025-02-11 12:07:28 +08:00
committed by GitHub
parent 73d7c25233
commit f5bf8c8d4a
11 changed files with 180 additions and 2 deletions

View File

@@ -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

View File

@@ -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: |