Remove end_attributed_speaker in diarization_online. handled in audio processor

This commit is contained in:
Quentin Fuxa
2025-07-16 12:09:43 +02:00
parent 5b9977c9af
commit 56114d3071

View File

@@ -236,7 +236,6 @@ class DiartDiarization:
for segment in segments:
if not (segment.end <= token.start + self.lag_diart or segment.start >= token.end + self.lag_diart):
token.speaker = extract_number(segment.speaker) + 1
end_attributed_speaker = max(token.end, end_attributed_speaker)
else:
tokens = add_speaker_to_tokens(segments, tokens)
return tokens