alphacep / vosk-api

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

Improve recongition of certain words #1507

Closed ilyamiro closed 1 month ago

ilyamiro commented 5 months ago

I am creating a project, where i need some specific words to be recognized more often than others. But i don't mean recognizing ONLY these words, i mean recognizing all the words, but just increase the probability that when i say something very similar to key words, a model would most likely recognize that key word, not something close to it. But if the input is not even close to the input word - it will recognize it as it is. Is it possible to achieve?

nshmyrev commented 4 months ago

Sure, you can add more examples to extra.txt and recompile the graph. It will increase probability of your keyword. See https://alphacephei.com/vosk/lm

nshmyrev commented 1 month ago

Same as #866