From 49e7a7f1e3b055d8c2ef159d15165bdec43d2db6 Mon Sep 17 00:00:00 2001 From: bobqianic <129547291+bobqianic@users.noreply.github.com> Date: Mon, 5 Feb 2024 11:58:49 +0000 Subject: [PATCH 1/2] Update context.go --- bindings/go/pkg/whisper/context.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bindings/go/pkg/whisper/context.go b/bindings/go/pkg/whisper/context.go index 0863ef6bb16..7b61f323532 100644 --- a/bindings/go/pkg/whisper/context.go +++ b/bindings/go/pkg/whisper/context.go @@ -81,10 +81,6 @@ func (context *context) SetSpeedup(v bool) { context.params.SetSpeedup(v) } -func (context *context) SetSplitOnWord(v bool) { - context.params.SetSplitOnWord(v) -} - // Set number of threads to use func (context *context) SetThreads(v uint) { context.params.SetThreads(int(v)) From 891a4539e3ff7fa087d3e63333bfc486aab98ffd Mon Sep 17 00:00:00 2001 From: bobqianic <129547291+bobqianic@users.noreply.github.com> Date: Mon, 5 Feb 2024 11:59:26 +0000 Subject: [PATCH 2/2] Update interface.go --- bindings/go/pkg/whisper/interface.go | 1 - 1 file changed, 1 deletion(-) diff --git a/bindings/go/pkg/whisper/interface.go b/bindings/go/pkg/whisper/interface.go index 4339e16f847..b6c47397894 100644 --- a/bindings/go/pkg/whisper/interface.go +++ b/bindings/go/pkg/whisper/interface.go @@ -42,7 +42,6 @@ type Context interface { SetDuration(time.Duration) // Set duration SetThreads(uint) // Set number of threads to use SetSpeedup(bool) // Set speedup flag - SetSplitOnWord(bool) // Set split on word flag SetTokenThreshold(float32) // Set timestamp token probability threshold SetTokenSumThreshold(float32) // Set timestamp token sum probability threshold SetMaxSegmentLength(uint) // Set max segment length in characters