From 6f0114f4a622e4e3fcbafa941489fd30be7fdee7 Mon Sep 17 00:00:00 2001 From: Travis Cline Date: Tue, 4 Jul 2023 06:13:25 -0700 Subject: [PATCH] go : call SetDuration appropriately (#1077) --- bindings/go/pkg/whisper/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/go/pkg/whisper/context.go b/bindings/go/pkg/whisper/context.go index adb6746..0db2770 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)