JavaScript API (node-addon) for speaker diarization (#1408)
This commit is contained in:
22
.github/scripts/node-addon/package-optional.json
vendored
22
.github/scripts/node-addon/package-optional.json
vendored
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "sherpa-onnx-PLATFORM2-ARCH",
|
||||
"version": "SHERPA_ONNX_VERSION",
|
||||
"description": "Speech-to-text and text-to-speech using Next-gen Kaldi without internet connection",
|
||||
"description": "Speech-to-text, text-to-speech, and speaker diarization using Next-gen Kaldi without internet connection",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
@@ -16,8 +16,18 @@
|
||||
"transcription",
|
||||
"real-time speech recognition",
|
||||
"without internet connection",
|
||||
"locally",
|
||||
"local",
|
||||
"embedded systems",
|
||||
"open source",
|
||||
"diarization",
|
||||
"speaker diarization",
|
||||
"speaker recognition",
|
||||
"speaker",
|
||||
"speaker segmentation",
|
||||
"speaker verification",
|
||||
"spoken language identification",
|
||||
"sherpa",
|
||||
"zipformer",
|
||||
"asr",
|
||||
"tts",
|
||||
@@ -30,13 +40,13 @@
|
||||
"offline",
|
||||
"privacy",
|
||||
"open source",
|
||||
"vad",
|
||||
"speaker id",
|
||||
"language id",
|
||||
"node-addon-api",
|
||||
"streaming speech recognition",
|
||||
"speech",
|
||||
"recognition"
|
||||
"recognition",
|
||||
"vad",
|
||||
"node-addon-api",
|
||||
"speaker id",
|
||||
"language id"
|
||||
],
|
||||
"author": "The next-gen Kaldi team",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
22
.github/scripts/node-addon/package.json
vendored
22
.github/scripts/node-addon/package.json
vendored
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "sherpa-onnx-node",
|
||||
"version": "SHERPA_ONNX_VERSION",
|
||||
"description": "Speech-to-text and text-to-speech using Next-gen Kaldi without internet connection",
|
||||
"description": "Speech-to-text, text-to-speech, and speaker diarization using Next-gen Kaldi without internet connection",
|
||||
"main": "sherpa-onnx.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
@@ -16,8 +16,18 @@
|
||||
"transcription",
|
||||
"real-time speech recognition",
|
||||
"without internet connection",
|
||||
"locally",
|
||||
"local",
|
||||
"embedded systems",
|
||||
"open source",
|
||||
"diarization",
|
||||
"speaker diarization",
|
||||
"speaker recognition",
|
||||
"speaker",
|
||||
"speaker segmentation",
|
||||
"speaker verification",
|
||||
"spoken language identification",
|
||||
"sherpa",
|
||||
"zipformer",
|
||||
"asr",
|
||||
"tts",
|
||||
@@ -30,13 +40,13 @@
|
||||
"offline",
|
||||
"privacy",
|
||||
"open source",
|
||||
"vad",
|
||||
"speaker id",
|
||||
"language id",
|
||||
"node-addon-api",
|
||||
"streaming speech recognition",
|
||||
"speech",
|
||||
"recognition"
|
||||
"recognition",
|
||||
"vad",
|
||||
"node-addon-api",
|
||||
"speaker id",
|
||||
"language id"
|
||||
],
|
||||
"author": "The next-gen Kaldi team",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
14
.github/scripts/test-nodejs-addon-npm.sh
vendored
14
.github/scripts/test-nodejs-addon-npm.sh
vendored
@@ -10,6 +10,20 @@ arch=$(node -p "require('os').arch()")
|
||||
platform=$(node -p "require('os').platform()")
|
||||
node_version=$(node -p "process.versions.node.split('.')[0]")
|
||||
|
||||
echo "----------non-streaming speaker diarization----------"
|
||||
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/speaker-segmentation-models/sherpa-onnx-pyannote-segmentation-3-0.tar.bz2
|
||||
tar xvf sherpa-onnx-pyannote-segmentation-3-0.tar.bz2
|
||||
rm sherpa-onnx-pyannote-segmentation-3-0.tar.bz2
|
||||
|
||||
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
|
||||
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/speaker-segmentation-models/0-four-speakers-zh.wav
|
||||
|
||||
node ./test_offline_speaker_diarization.js
|
||||
|
||||
rm -rfv *.onnx *.wav sherpa-onnx-pyannote-*
|
||||
|
||||
echo "----------non-streaming asr + vad----------"
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-whisper-tiny.en.tar.bz2
|
||||
tar xvf sherpa-onnx-whisper-tiny.en.tar.bz2
|
||||
|
||||
Reference in New Issue
Block a user