From 9921ef9d09f6abe8ba266425e2ebfdbcf7f760d1 Mon Sep 17 00:00:00 2001 From: leo <260626284+cameledev@users.noreply.github.com> Date: Tue, 21 Jul 2026 18:14:07 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(transcription)=20fix=20silent=20fa?= =?UTF-8?q?il=20of=20speaker=20assignment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix bug introduced by #1362 which caused speaker assignment to silently fail. Bug was due to change in input variable type. --- CHANGELOG.md | 4 ++++ src/summary/summary/core/user_assign.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b2ca454..c0199cdc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to ## [Unreleased] +## Fixed + +- 🐛(transcription) fix silent bug in speaker assignment + ## [1.24.0] - 2026-07-21 ### Added diff --git a/src/summary/summary/core/user_assign.py b/src/summary/summary/core/user_assign.py index 1a8f9b98..c373dde0 100644 --- a/src/summary/summary/core/user_assign.py +++ b/src/summary/summary/core/user_assign.py @@ -275,7 +275,7 @@ def _build_participant_timelines( def _build_speaker_timelines(transcription: Any) -> dict[str, list[Interval]]: """Build interval timelines from WhisperX transcription segments.""" intervals: dict[str, list[Interval]] = {} - segments = transcription.segments if hasattr(transcription, "segments") else [] + segments = transcription.get("segments") or [] max_word_duration = settings.resolve_speaker_identities_max_word_duration for segment in segments: