From cc81ab7db79feea4ff384470824b73eb2d1f4acb Mon Sep 17 00:00:00 2001 From: invisprints Date: Fri, 25 Aug 2023 12:08:16 +0800 Subject: [PATCH] fix missing prefix Fixed missing the speaker part when enable --highlight_words --- whisperx/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whisperx/utils.py b/whisperx/utils.py index ee63e2b..67476cb 100644 --- a/whisperx/utils.py +++ b/whisperx/utils.py @@ -296,7 +296,7 @@ class SubtitlesWriter(ResultWriter): start = self.format_timestamp(this_word["start"]) end = self.format_timestamp(this_word["end"]) if last != start: - yield last, start, subtitle_text + yield last, start, prefix + subtitle_text yield start, end, prefix + " ".join( [