

fix bug of completed sentence chunking. tested on faster-whisper in en language
@06370e72c4fb59d900c348cc4b150dbd3ddbe6a4
--- whisper_online.py
+++ whisper_online.py
... | ... | @@ -389,6 +389,7 @@ |
389 | 389 |
fsent = sent |
390 | 390 |
while cwords: |
391 | 391 |
b,e,w = cwords.pop(0) |
392 |
+ w = w.strip() |
|
392 | 393 |
if beg is None and sent.startswith(w): |
393 | 394 |
beg = b |
394 | 395 |
elif end is None and sent == w: |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?