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

keyword spotting using vosk-api #1264

Closed summer1704 closed 1 year ago

summer1704 commented 1 year ago

I am planning to detect single keyword with a good accuracy in any sentence. For example while someone is speaking, if they say the keyword "help" at any given time, it triggers an action. Is there any way that I can approach this problem using vosk-api

nshmyrev commented 1 year ago

Sure, if you see a word "help" in recognition results you act accordingly. Thats it!

nshmyrev commented 1 year ago

Same as #107

summer1704 commented 1 year ago

Can I use this model to trigger an action immediately after the keyword has uttered without having to wait for the entire speech to get transcribed and then do the trigger action.

nshmyrev commented 1 year ago

Sure, analyze partial results