From: Travis Cline Date: Tue, 4 Jul 2023 13:13:25 +0000 (-0700) Subject: go : call SetDuration appropriately (#1077) X-Git-Tag: upstream/1.7.4~1385 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=6f0114f4a622e4e3fcbafa941489fd30be7fdee7;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp go : call SetDuration appropriately (#1077) --- diff --git a/bindings/go/pkg/whisper/context.go b/bindings/go/pkg/whisper/context.go index adb67466..0db27705 100644 --- a/bindings/go/pkg/whisper/context.go +++ b/bindings/go/pkg/whisper/context.go @@ -93,7 +93,7 @@ func (context *context) SetOffset(v time.Duration) { // Set duration of audio to process func (context *context) SetDuration(v time.Duration) { - context.params.SetOffset(int(v.Milliseconds())) + context.params.SetDuration(int(v.Milliseconds())) } // Set timestamp token probability threshold (~0.01)