go : Enable VAD for Go bindings (#3563)

* reset context.n so that NextSegment can be called for multiple Process calls

* enable VAD params
This commit is contained in:
Josh Montoya
2025-12-10 13:31:36 +02:00
committed by GitHub
parent a8f45ab11d
commit 9f5ed26e43
3 changed files with 74 additions and 0 deletions
+9
View File
@@ -60,6 +60,15 @@ type Context interface {
SetTemperature(t float32) // Set temperature
SetTemperatureFallback(t float32) // Set temperature incrementation
SetVAD(v bool)
SetVADModelPath(path string)
SetVADThreshold(t float32)
SetVADMinSpeechMs(ms int)
SetVADMinSilenceMs(ms int)
SetVADMaxSpeechSec(s float32)
SetVADSpeechPadMs(ms int)
SetVADSamplesOverlap(sec float32)
// Process mono audio data and return any errors.
// If defined, newly generated segments are passed to the
// callback function during processing.