vosk-api icon indicating copy to clipboard operation
vosk-api copied to clipboard

Getting confidence score for each word in Vosk android demo

Open hannahfaghihi opened this issue 4 months ago • 1 comments

Hi I wanted to get the confidence score for each word and run two different language models and compare the confidence score in both of the language models. How can I get access to confidence score in Vosk android demo?

hannahfaghihi avatar Mar 04 '24 12:03 hannahfaghihi

Hi. If you output word times, there is a confidence field too. It is not very reliable though.

https://github.com/alphacep/vosk-api/blob/master/src/vosk_api.h#L178

nshmyrev avatar Mar 05 '24 09:03 nshmyrev