Skip to content

Commit fd498e9

Browse files
authored
Merge pull request #51 from mutablelogic/v1
Temporary fix for segment offset
2 parents 66d8915 + 758c79a commit fd498e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/whisper/task/context.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ func (task *Context) Transcribe(ctx context.Context, ts time.Duration, samples [
170170
task.params.SetSegmentCallback(task.whisper, func(new_segments int) {
171171
num_segments := task.whisper.NumSegments()
172172
for i := num_segments - new_segments; i < num_segments; i++ {
173-
fn(newSegment(ts, task.whisper.Segment(i)))
173+
// TODO: fix the segment offset
174+
fn(newSegment(ts, 0, task.whisper.Segment(i)))
174175
}
175176
})
176177
}

0 commit comments

Comments
 (0)