alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
8.18k stars 1.12k forks source link

SetPartialWords side effects #1224

Open johngebbie opened 1 year ago

johngebbie commented 1 year ago

Hello, I just reporting something I found surprising. I thought SetPartialWords(1) just made the output more verbose, but it significantly changes the "partial" field with the full (not per word) text. Printing the "partial" field with SetPartialWords off, you see each word come in and the text rapidly changing, but with it on, you can get 4/5 words are a time.

I'm guessing it uses a different system when it's on and is not a bug, but thought it might be worth documenting it has side effects. It took me a while to hunt down why my program wasn't working the same.

nshmyrev commented 1 year ago

Yes, it is true. In general partial confidence is a big problem which might need a different search algorithm.