diff --git a/whisper_online.py b/whisper_online.py index 8efbbab..82b3e09 100644 --- a/whisper_online.py +++ b/whisper_online.py @@ -389,6 +389,7 @@ class OnlineASRProcessor: 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: