fix bug of completed sentence chunking. tested on faster-whisper in en language

This commit is contained in:
Wei Lu
2023-11-28 18:51:36 +02:00
parent 8f32dea5ca
commit a60c64c831

View File

@@ -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: