Add C API for speaker embedding extractor. (#711)
This commit is contained in:
15
.github/scripts/test-c-api.sh
vendored
15
.github/scripts/test-c-api.sh
vendored
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -ex
|
||||
|
||||
log() {
|
||||
# This function is from espnet
|
||||
@@ -9,6 +9,7 @@ log() {
|
||||
}
|
||||
|
||||
echo "SLID_EXE is $SLID_EXE"
|
||||
echo "SID_EXE is $SID_EXE"
|
||||
echo "PATH: $PATH"
|
||||
|
||||
|
||||
@@ -24,3 +25,15 @@ rm sherpa-onnx-whisper-tiny.tar.bz2
|
||||
$SLID_EXE
|
||||
|
||||
rm -rf sherpa-onnx-whisper-tiny*
|
||||
|
||||
log "------------------------------------------------------------"
|
||||
log "Download file for speaker identification and verification "
|
||||
log "------------------------------------------------------------"
|
||||
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/speaker-recongition-models/3dspeaker_speech_campplus_sv_zh-cn_16k-common.onnx
|
||||
git clone https://github.com/csukuangfj/sr-data
|
||||
|
||||
$SID_EXE
|
||||
|
||||
rm -fv *.onnx
|
||||
rm -rf sr-data
|
||||
|
||||
Reference in New Issue
Block a user