Add Go API for speaker identification (#718)

This commit is contained in:
Fangjun Kuang
2024-03-29 19:25:55 +08:00
committed by GitHub
parent 2e0bccad36
commit 6da4a1c12f
25 changed files with 641 additions and 27 deletions

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
if [ ! -f ./3dspeaker_speech_campplus_sv_zh-cn_16k-common.onnx ]; then
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/speaker-recongition-models/3dspeaker_speech_campplus_sv_zh-cn_16k-common.onnx
fi
if [ ! -f ./sr-data/enroll/fangjun-sr-1.wav ]; then
git clone https://github.com/csukuangfj/sr-data
fi
go mod tidy
go build
./speaker-identification