Skip to content

Commit bf2b9b8

Browse files
authored
go : call SetDuration appropriately (ggml-org#1077)
1 parent 6af1f96 commit bf2b9b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/go/pkg/whisper/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (context *context) SetOffset(v time.Duration) {
9393

9494
// Set duration of audio to process
9595
func (context *context) SetDuration(v time.Duration) {
96-
context.params.SetOffset(int(v.Milliseconds()))
96+
context.params.SetDuration(int(v.Milliseconds()))
9797
}
9898

9999
// Set timestamp token probability threshold (~0.01)

0 commit comments

Comments
 (0)