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

Question regarding model adaptation #1461

Open jumper047 opened 1 year ago

jumper047 commented 1 year ago

I'm trying to add improve recognition of the specific phrases (I'm using vosk as recognizer for "smart speaker"). I followed the guide - https://alphacephei.com/vosk/adaptation , generated new Gr.fst and it works, and resulting model recognizes only phrases I added. But what if I want to update phrases model can recognize, and not replace it? Is it possible to find phrases which were used to generate original Gr.fst?

nshmyrev commented 1 year ago

Default graph rebuilding process adds phrases, not replaces them. You probably modified something on the way.

jumper047 commented 11 months ago

Started rebuilding process from scratch and got same results. Also old and new Gr.fst drastically differs in size:

5969333 Gr.new.fst
24013795 Gr.fst

Commands I executed:

text.txt contains about 20 lines with some phrases