🐛(transcription) fix silent fail of speaker assignment

Fix bug introduced by #1362 which caused speaker assignment to
silently fail. Bug was due to change in input variable type.
This commit is contained in:
leo
2026-07-21 18:14:07 +02:00
committed by aleb_the_flash
parent 68e999a037
commit 9921ef9d09
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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
+1 -1
View File
@@ -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: