Spaces:
Running
Running
go : call SetDuration appropriately (#1077)
Browse files
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.
|
| 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)
|