]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
go : call SetDuration appropriately (#1077)
authorTravis Cline <redacted>
Tue, 4 Jul 2023 13:13:25 +0000 (06:13 -0700)
committerGitHub <redacted>
Tue, 4 Jul 2023 13:13:25 +0000 (16:13 +0300)
bindings/go/pkg/whisper/context.go

index adb67466b161f80f064e5579d3343097093e07e6..0db277052483d34036caf9699be792ca002c3a0a 100644 (file)
@@ -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)