-
Is there a way to make the words last untill new ones come in? I want to avoid having no subtitles on the screen. I would like to make the last said words to last untill new onces are said. I saw there is
(This is the code I am using right now) |
Beta Was this translation helpful? Give feedback.
Answered by
jianfch
May 14, 2024
Replies: 1 comment
-
all_words = result.all_words()
for i, word in enumerate(all_words[:-1], 1):
word.end = all_words[i].start
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
juliuswms
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
suppress_ts_tokens
has no direct effect on the word timestamps.To make words last until new ones, just set the
end
of the each word to thestart
of the next word.With something like this: