Wei Lu 2023-11-29
fix bug of completed sentence chunking. tested on faster-whisper in en language
@06370e72c4fb59d900c348cc4b150dbd3ddbe6a4
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