jianfch / stable-ts

Transcription, forced alignment, and audio indexing with OpenAI's Whisper
MIT License
1.59k stars 176 forks source link

fix WhisperResult.force_order. up version to 2.14.1 #270

Closed SokoloiD closed 11 months ago

SokoloiD commented 11 months ago

Fix WhisperResult.force_order

I have received the following error message:


  File "/usr/local/lib/python3.8/dist-packages/stable_whisper/result.py", line 485, in {}init{}
    self.force_order()
  File "/usr/local/lib/python3.8/dist-packages/stable_whisper/result.py", line 529, in force_order
    ts.end = ts.start if i == len(timestamps) else timestamps[i+1].start
IndexError: list index out of range