-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Add word cmd map #17
base: main
Are you sure you want to change the base?
Conversation
Nice to see this moved into examples, although this is significant enough that I think it should be a separate example, since it contains quite a lot of command specific logic. Also, there should be a way to force nerd-dictation to reset so that existing commands are not re-written based on further speech analysis. Although this can be handled separately. |
Yes, I also see it exactly that way. Please have a look at issue #19 where I am proposing:
|
38f30a0
to
3018c66
Compare
@omlins got any new updates? I'm looking into this feature as well. |
this is too much to be in a config file. only the command map should be in the config file. |
so I think we need two user config functions. First one that is called looking for cmd keywords. then it will "fall through" to nerd_dictation_process if no commands are recognized. |
569fdae
to
4a922ad
Compare
ac42ce8
to
1df83e0
Compare
f72c0d1
to
5f3b3e9
Compare
2436242
to
72eef57
Compare
It would be neat if you can teach Vosk a grammar with only the words and the command structure. I'm not sure if the vosk python library supports this, but reducing the words that are matched would increase the accuracy of commands that are spoken. |
Enable mapping of single words to commands, here mouse-clicks.
WIP: This requires an option for single-pass word-by-word processing (or similar) in order to enable continuous listening to commands without emitting them multiple times, c.f. #16 (at present, the PR will lead to a firework of mouse-clicks...).
Also, to avoid undesired behavior in continuous listening the option to
Add '--commands' command line argument to restrict input to a limited set of commands
(#3) could also be a solution here.