jianfch / stable-ts

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

Bug in WhisperResult.force_order #271

Closed SokoloiD closed 11 months ago

SokoloiD commented 11 months ago

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

This error depens on icorrect timestamp indexing See the following PR: https://github.com/jianfch/stable-ts/pull/270

jianfch commented 11 months ago

Thanks for the PR. Merged in 0430a31dc8fe05f4bc4a3cf39c28074d7afc79dd.