Add C API for audio tagging (#754)

This commit is contained in:
Fangjun Kuang
2024-04-11 14:18:43 +08:00
committed by GitHub
parent 34d70a259f
commit f204e62b44
9 changed files with 289 additions and 36 deletions

View File

@@ -126,6 +126,16 @@ jobs:
name: release-${{ matrix.build_type }}-with-shared-lib-${{ matrix.shared_lib }}-with-tts-${{ matrix.with_tts }}
path: build/bin/*
- name: Test C API
shell: bash
run: |
export PATH=$PWD/build/bin:$PATH
export SLID_EXE=spoken-language-identification-c-api
export SID_EXE=speaker-identification-c-api
export AT_EXE=audio-tagging-c-api
.github/scripts/test-c-api.sh
- name: Test Audio tagging
shell: bash
run: |
@@ -142,14 +152,6 @@ jobs:
.github/scripts/test-online-ctc.sh
- name: Test C API
shell: bash
run: |
export PATH=$PWD/build/bin:$PATH
export SLID_EXE=spoken-language-identification-c-api
export SID_EXE=speaker-identification-c-api
.github/scripts/test-c-api.sh
- name: Test spoken language identification (C++ API)
shell: bash

View File

@@ -105,6 +105,16 @@ jobs:
otool -L build/bin/sherpa-onnx
otool -l build/bin/sherpa-onnx
- name: Test C API
shell: bash
run: |
export PATH=$PWD/build/bin:$PATH
export SLID_EXE=spoken-language-identification-c-api
export SID_EXE=speaker-identification-c-api
export AT_EXE=audio-tagging-c-api
.github/scripts/test-c-api.sh
- name: Test Audio tagging
shell: bash
run: |
@@ -113,15 +123,6 @@ jobs:
.github/scripts/test-audio-tagging.sh
- name: Test C API
shell: bash
run: |
export PATH=$PWD/build/bin:$PATH
export SLID_EXE=spoken-language-identification-c-api
export SID_EXE=speaker-identification-c-api
.github/scripts/test-c-api.sh
- name: Test spoken language identification (C++ API)
shell: bash
run: |

View File

@@ -72,6 +72,17 @@ jobs:
ls -lh ./bin/Release/sherpa-onnx.exe
- name: Test C API
shell: bash
run: |
export PATH=$PWD/build/bin/Release:$PATH
export SLID_EXE=spoken-language-identification-c-api.exe
export SID_EXE=speaker-identification-c-api.exe
export AT_EXE=audio-tagging-c-api.exe
.github/scripts/test-c-api.sh
- name: Test Audio tagging
shell: bash
run: |
@@ -80,15 +91,6 @@ jobs:
.github/scripts/test-audio-tagging.sh
- name: Test C API
shell: bash
run: |
export PATH=$PWD/build/bin/Release:$PATH
export SLID_EXE=spoken-language-identification-c-api.exe
export SID_EXE=speaker-identification-c-api.exe
.github/scripts/test-c-api.sh
- name: Test spoken language identification (C++ API)
shell: bash
run: |

View File

@@ -77,6 +77,8 @@ jobs:
run: |
export PATH=$PWD/build/bin/Release:$PATH
export SLID_EXE=spoken-language-identification-c-api.exe
export SID_EXE=speaker-identification-c-api.exe
export AT_EXE=audio-tagging-c-api.exe
.github/scripts/test-c-api.sh