mirror of
https://github.com/m-bain/whisperX.git
synced 2025-07-01 18:17:27 -04:00
fix missing prefix
Fixed missing the speaker part when enable --highlight_words
This commit is contained in:
@ -296,7 +296,7 @@ class SubtitlesWriter(ResultWriter):
|
|||||||
start = self.format_timestamp(this_word["start"])
|
start = self.format_timestamp(this_word["start"])
|
||||||
end = self.format_timestamp(this_word["end"])
|
end = self.format_timestamp(this_word["end"])
|
||||||
if last != start:
|
if last != start:
|
||||||
yield last, start, subtitle_text
|
yield last, start, prefix + subtitle_text
|
||||||
|
|
||||||
yield start, end, prefix + " ".join(
|
yield start, end, prefix + " ".join(
|
||||||
[
|
[
|
||||||
|
Reference in New Issue
Block a user