diff --git a/src/worker/processor.rs b/src/worker/processor.rs index fc6419d..322c90a 100644 --- a/src/worker/processor.rs +++ b/src/worker/processor.rs @@ -1501,10 +1501,11 @@ impl ProcessorPool { "speaker_id": segment.speaker_id, "timestamp": segment.start_time, "end_time": segment.end_time, + "start_frame": segment.start_frame, + "end_frame": segment.end_frame, }); - // ASRX is time-based, so we use segment index or start time as coordinate. - pre_chunks_to_store.push((i as i64, Some(segment.start_time), data, None, None)); + pre_chunks_to_store.push((segment.start_frame as i64, Some(segment.start_time), data, None, None)); speaker_detections.push(( segment.speaker_id.clone().unwrap_or_default(),