alphacep/vosk-api

Question for Implementation for Short Commands

MarioIb14 opened this issue · 7 comments

Hello, I am working on project the user requires user to say short commands such as "in" and "out". Is there way to modify the code for single worded commands so command do not chain together? Also is there a way to reduce the time that the function waits for silence?

What kind of project exactly

Sorry I am looking to use python version. I meant the project is trying convert voice to text for short commands and text will be used interact GUI program with single word commands. I started to use setgrammer and EndpointerMode(cannot import from vosk it for some reason).

I'm asking what kind of short commands your software is going to recognize

So the ones I am planning to use is '["in", "out", "left","right","up", "down", "pause", "stop","next","start", "[unk]"]'

Sorry do you need any more clarification on the specific short commands?

Yes, I need to understand the application you are creating

So we have a Matlab script that runs in the background and has a GUI with a text input box that our software needs to write voice commands in each iteration. So the script checks the text input each iteration to control the movement of a robotic arm with commands seen above(if no new command it will take the previous command for movement). So we need a program that can be running in the background checking if a specific command (single-worded) is said to write in the input box and press enter, I am trying to make fast as possible by limiting amount words (setting grammar), preventing the program from stringing words into sentences (if possible) and reduce time from partial to final output (I notice when the test microphone example code that it would detect word command so quick from partial output but it would wait some time output the result).