Add speaker identification APIs for node-addon-api (#874)

This commit is contained in:
Fangjun Kuang
2024-05-14 13:28:50 +08:00
committed by GitHub
parent 0895b64850
commit 388e6a98fc
16 changed files with 1034 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ fi
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
echo "SHERPA_ONNX_VERSION $SHERPA_ONNX_VERSION"
# SHERPA_ONNX_VERSION=1.0.20
# SHERPA_ONNX_VERSION=1.0.21
if [ -z $owner ]; then
owner=k2-fsa

View File

@@ -6,6 +6,16 @@ d=nodejs-addon-examples
echo "dir: $d"
cd $d
echo "----------speaker identification----------"
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/speaker-recongition-models/3dspeaker_speech_eres2net_base_sv_zh-cn_3dspeaker_16k.onnx
git clone https://github.com/csukuangfj/sr-data
node ./test_speaker_identification.js
rm *.onnx
rm -rf sr-data
echo "----------spoken language identification----------"
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-whisper-tiny.tar.bz2

View File

@@ -1,6 +1,9 @@
name: npm-addon-linux-aarch64
on:
push:
branches:
- node-addon
workflow_dispatch:
concurrency:

View File

@@ -1,6 +1,9 @@
name: npm-addon-linux-x64
on:
push:
branches:
- node-addon
workflow_dispatch:
concurrency:

View File

@@ -1,6 +1,9 @@
name: npm-addon-macos
on:
push:
branches:
- node-addon
workflow_dispatch:
concurrency:

View File

@@ -1,6 +1,9 @@
name: npm-addon-win-x64
on:
push:
branches:
- node-addon
workflow_dispatch:
concurrency:

View File

@@ -1,6 +1,9 @@
name: npm-addon
on:
push:
branches:
- node-addon
workflow_dispatch:
concurrency:
@@ -52,7 +55,7 @@ jobs:
SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
echo "SHERPA_ONNX_VERSION $SHERPA_ONNX_VERSION"
# SHERPA_ONNX_VERSION=1.0.20
# SHERPA_ONNX_VERSION=1.0.21
src_dir=.github/scripts/node-addon
sed -i.bak s/SHERPA_ONNX_VERSION/$SHERPA_ONNX_VERSION/g $src_dir/package.json