streamer45 / silero-vad-go

A Golang (CGO) implementation of a Silero VAD powered speech detector
MIT License
23 stars 11 forks source link

Configurable log level #9

Closed tbarbugli closed 4 months ago

tbarbugli commented 4 months ago

Add a LogLevel struct field to DetectorConfig so that it is possible to change ONNX log level. Current behaviour stays the same, when not provided Warn is used as before this change.

speech.NewDetector(speech.DetectorConfig{
   ModelPath:     "path/to/model",
   LogLevel:      speech.LogLevelError,
})

This change originates from this issue: https://github.com/streamer45/silero-vad-go/issues/8