Author Topic: Global 'VC.Recognized' event?  (Read 2115 times)

0 Members and 2 Guests are viewing this topic.

Sandurz

  • Jr. Member
  • **
  • Posts: 3
  • Karma: 3
    • View Profile
Global 'VC.Recognized' event?
« on: November 06, 2014, 12:52:50 PM »
Short of adding one to every action, is there an option to trigger an event on success of any recognized command?

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Global 'VC.Recognized' event?
« Reply #1 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
« Last Edit: November 06, 2014, 01:33:42 PM by nime5ter »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Global 'VC.Recognized' event?
« Reply #2 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.

Sandurz

  • Jr. Member
  • **
  • Posts: 3
  • Karma: 3
    • View Profile
Re: Global 'VC.Recognized' event?
« Reply #3 on: November 12, 2014, 08:59:15 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.

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.