Add Go API for Keyword spotting (#1662)

This commit is contained in:
Fangjun Kuang
2024-12-31 11:25:32 +08:00
committed by GitHub
parent 38d64a6d81
commit 49154c957b
10 changed files with 268 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -ex
if [ ! -f ./sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01/tokens.txt ]; then
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/kws-models/sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01.tar.bz2
tar xvf sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01.tar.bz2
rm sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01.tar.bz2
fi
go mod tidy
go build
./keyword-spotting-from-file