This repository has been archived on 2025-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
Files
enginex-mr_series-sherpa-onnx/go-api-examples/vad-speaker-identification/run.sh

20 lines
549 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2024-05-21 11:50:13 +08:00
set -ex
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
2024-03-29 19:58:04 +08:00
if [ ! -f ./silero_vad.onnx ]; then
curl -SL -O https://github.com/snakers4/silero-vad/raw/master/src/silero_vad/data/silero_vad.onnx
2024-03-29 19:58:04 +08:00
fi
go mod tidy
go build
2024-03-29 19:58:04 +08:00
./vad-speaker-identification