for merge

This commit is contained in:
djeon
2025-10-30 10:24:09 +09:00
parent 66101b2465
commit 503078bf3f
4 changed files with 59 additions and 4 deletions
@@ -25,6 +25,7 @@ public class TranscriptionEvent {
private String segmentId;
private String recordingId;
private String meetingId;
private String sessionId; // SSE 연결을 위한 세션 ID
private String text;
private String speakerId;
private String speakerName;
@@ -34,7 +35,7 @@ public class TranscriptionEvent {
private Boolean warningFlag;
private LocalDateTime eventTime;
public static SegmentCreated of(String segmentId, String recordingId, String meetingId,
public static SegmentCreated of(String segmentId, String recordingId, String meetingId, String sessionId,
String text, String speakerId, String speakerName,
LocalDateTime timestamp, Double duration, Double confidence, Boolean warningFlag) {
return SegmentCreated.builder()
@@ -43,6 +44,7 @@ public class TranscriptionEvent {
.segmentId(segmentId)
.recordingId(recordingId)
.meetingId(meetingId)
.sessionId(sessionId)
.text(text)
.speakerId(speakerId)
.speakerName(speakerName)
@@ -84,7 +84,7 @@ public class TranscriptionServiceImpl implements TranscriptionService {
ZoneId.systemDefault()
);
TranscriptionEvent.SegmentCreated event = TranscriptionEvent.SegmentCreated.of(
segmentId, request.getRecordingId(), recording.getMeetingId(),
segmentId, request.getRecordingId(), recording.getMeetingId(), recording.getSessionId(),
recognizedText, speakerId, "화자-" + speakerId.substring(4),
timestampAsDateTime, 3.5, confidence, warningFlag
);