asking for highlighting words

#1
by Rixhabh - opened

after alignment how one can highlight the words as shown in the GitHub repo

Hi,
To do that with whisperX, you should use the SubtitlesWriter class with the highlight_words option.
It is defined in utils.py, and it basically adds xx (underline) html tags to the word at the precise timestamp then outputs the text in a .srt file for a subtitle reader.
I hope this helps.

Sign up or log in to comment