Not clear how to update recognizer vocabulary in runtime
RiccaDS opened this issue · 1 comments
RiccaDS commented
Hi, I don't understand how to add words to the dictionary without rebuilding the model. From the Vosk website, in the "adaptation" section, I am pointed to the following code snippet:
https://github.com/alphacep/vosk-api/blob/master/python/example/test_words.py
I have added only the following line to my code
rec = KaldiRecognizer(model, args.samplerate, '["[unk]","python", "elisa""]')
however the words that can be recognized are only those in the list and no other words. Is this normal behavior?
Also what the SetGrammar method do in the example snippet?
Thank you