mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-04 17:39:22 +08:00
Fix Golang example
This commit is contained in:
@@ -11,11 +11,11 @@ import (
|
||||
|
||||
func main() {
|
||||
sd, err := speech.NewDetector(speech.DetectorConfig{
|
||||
ModelPath: "../../files/silero_vad.onnx",
|
||||
ModelPath: "../../src/silero_vad/data/silero_vad.onnx",
|
||||
SampleRate: 16000,
|
||||
Threshold: 0.5,
|
||||
MinSilenceDurationMs: 0,
|
||||
SpeechPadMs: 0,
|
||||
MinSilenceDurationMs: 100,
|
||||
SpeechPadMs: 30,
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatalf("failed to create speech detector: %s", err)
|
||||
|
||||
Reference in New Issue
Block a user