Dominik Macháček 2023-12-19
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
+++ whisper_online.py
@@ -389,6 +389,7 @@
             fsent = sent
             while cwords:
                 b,e,w = cwords.pop(0)
+                w = w.strip()
                 if beg is None and sent.startswith(w):
                     beg = b
                 elif end is None and sent == w:
Add a comment
List