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.7k stars 1.08k forks source link

Is it possible to let vosk model to recognize some common other than similar words. #600

Open ghost opened 3 years ago

ghost commented 3 years ago

I want to implement Vosk in my program to recognize some command such as "refresh dashboard one", "show dashboard two". But I found out that it is more likely to recognize as "show dashboard to" which should be two. and also 'four' being recognized as 'for'. Is there any way to adapt the model to recognize those words accurately?

nshmyrev commented 3 years ago

Yes, you can run online grammar (see test_words.py) or offline grammar adaptation (see adaptation page on our website).

ghost commented 3 years ago

The "Updating the language model" section of the adaptation page is only for Kaldi model right? The "Updating words and the vocabulary in the big models" section is to add new words to the model. I am planning to work on both the English and Chinese model. Which section of the adaptation page I should follow?

ghost commented 3 years ago

The "Updating the language model" section of the adaptation page is only for Kaldi model right? The "Updating words and the vocabulary in the big models" section is to add new words to the model. I am planning to work on both the English and Chinese model. Which section of the adaptation page I should follow?

offline grammar adaptation (see adaptation page on our website).

nshmyrev commented 3 years ago

The "Updating the language model" section of the adaptation page is only for Kaldi model right

yes

ghost commented 3 years ago

I had tested the online grammar but it seems like it only works for English but not Chinese.

Which section of the adaptation page I should follow to do offline grammar adaptation?

yes