

Merge pull request #36 from luweigen/bug-chunk_completed_sentence
fix bug of completed sentence chunking. tested on faster-whisper in e…
@c236a9984f7e71465eb04a63b5545198fce1c8eb
--- 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?