diff --git a/whisperx/alignment.py b/whisperx/alignment.py index e2c86f74..38c2f007 100644 --- a/whisperx/alignment.py +++ b/whisperx/alignment.py @@ -439,8 +439,8 @@ def get_raw_text(word_row): word_list.append( { "word": curr_text.rstrip(), - "start": word_start, - "end": word_end, + "start": wseg.iloc[wdx]['start'], + "end": wseg.iloc[wdx]['end'], } )