News:

If you have an Android device, check out VoxWav!

Main Menu

Global 'VC.Recognized' event?

Started by Sandurz, November 06, 2014, 12:52:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sandurz

Short of adding one to every action, is there an option to trigger an event on success of any recognized command?

nime5ter

#1
You can use this solution:
http://voxcommando.com/forum/index.php?topic=1689.msg14686#msg14686

It generates a VC.Reco event any time a command is recognized, whether or not the confidence level was high enough for the command to be executed.

The event generated by that script includes 6 payloads that can theoretically be used as well, with the 4th payload being the confidence level.
The script can be customized to your preferences, of course.

If you haven't yet used the Python plugin, that needs to be enabled. Save the .py script and then have it load automatically when VC starts up using a VC.Loaded event. http://voxcommando.com/mediawiki/index.php?title=Python#PY.ExecFile
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

Another important question is "why do you want this?".

Because there may be a better (more efficient) solution.

Sandurz

Quote from: nime5ter on November 06, 2014, 01:15:41 PM
You can use this solution:
http://voxcommando.com/forum/index.php?topic=1689.msg14686#msg14686

It generates a VC.Reco event any time a command is recognized, whether or not the confidence level was high enough for the command to be executed.

The event generated by that script includes 6 payloads that can theoretically be used as well, with the 4th payload being the confidence level.
The script can be customized to your preferences, of course.

If you haven't yet used the Python plugin, that needs to be enabled. Save the .py script and then have it load automatically when VC starts up using a VC.Loaded event. http://voxcommando.com/mediawiki/index.php?title=Python#PY.ExecFile

I'll check that out, thanks.

Quote from: jitterjames on November 06, 2014, 01:38:07 PM
Another important question is "why do you want this?".

Because there may be a better (more efficient) solution.

I want some EventGhost stuff to fire on every recognized command to flash the LED I have set to represent the VoxCommando status: red for standby, green for listening, etc. Got it flashing blue briefly when nothing is recognized and want some green flashes for recognized commands.