Spaces:
Sleeping
Sleeping
update
Browse files- silero/build_silero_vad.sh +4 -0
- silero/main.go +1 -1
silero/build_silero_vad.sh
CHANGED
@@ -6,6 +6,10 @@ tar -zxvf onnxruntime-linux-x64-1.20.1.tgz
|
|
6 |
export C_INCLUDE_PATH=$C_INCLUDE_PATH:$(pwd)/onnxruntime-linux-x64-1.20.1/include
|
7 |
export LIBRARY_PATH=$LIBRARY_PATH:$(pwd)/onnxruntime-linux-x64-1.20.1/lib
|
8 |
|
|
|
|
|
|
|
|
|
9 |
# build
|
10 |
mkdir build
|
11 |
|
|
|
6 |
export C_INCLUDE_PATH=$C_INCLUDE_PATH:$(pwd)/onnxruntime-linux-x64-1.20.1/include
|
7 |
export LIBRARY_PATH=$LIBRARY_PATH:$(pwd)/onnxruntime-linux-x64-1.20.1/lib
|
8 |
|
9 |
+
# download model
|
10 |
+
# https://github.com/snakers4/silero-vad/tree/master/src/silero_vad/data
|
11 |
+
wget https://github.com/snakers4/silero-vad/raw/refs/heads/master/src/silero_vad/data/silero_vad.onnx
|
12 |
+
|
13 |
# build
|
14 |
mkdir build
|
15 |
|
silero/main.go
CHANGED
@@ -11,7 +11,7 @@ import (
|
|
11 |
|
12 |
func main() {
|
13 |
sd, err := speech.NewDetector(speech.DetectorConfig{
|
14 |
-
ModelPath: "
|
15 |
SampleRate: 16000,
|
16 |
Threshold: 0.5,
|
17 |
MinSilenceDurationMs: 100,
|
|
|
11 |
|
12 |
func main() {
|
13 |
sd, err := speech.NewDetector(speech.DetectorConfig{
|
14 |
+
ModelPath: "./silero/silero_vad.onnx",
|
15 |
SampleRate: 16000,
|
16 |
Threshold: 0.5,
|
17 |
MinSilenceDurationMs: 100,
|