Skip to content

Commit

Permalink
go : call SetDuration appropriately (#1077)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmc authored Jul 4, 2023
1 parent 66616db commit 6f0114f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/go/pkg/whisper/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6f0114f

Please sign in to comment.