Merge pull request #438 from invisprints/fix-speaker-missing

fix missing speaker prefix
This commit is contained in:
Max Bain
2023-08-29 10:03:06 -06:00
committed by GitHub

View File

@ -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(
[ [