tmctmc commited on
Commit
4528b8c
·
unverified ·
1 Parent(s): 0a7c278

go : call SetDuration appropriately (#1077)

Browse files
Files changed (1) hide show
  1. bindings/go/pkg/whisper/context.go +1 -1
bindings/go/pkg/whisper/context.go CHANGED
@@ -93,7 +93,7 @@ func (context *context) SetOffset(v time.Duration) {
93
 
94
  // Set duration of audio to process
95
  func (context *context) SetDuration(v time.Duration) {
96
- context.params.SetOffset(int(v.Milliseconds()))
97
  }
98
 
99
  // Set timestamp token probability threshold (~0.01)
 
93
 
94
  // Set duration of audio to process
95
  func (context *context) SetDuration(v time.Duration) {
96
+ context.params.SetDuration(int(v.Milliseconds()))
97
  }
98
 
99
  // Set timestamp token probability threshold (~0.01)