VoxCommando

Help and Support (Using VoxCommando) => VoxCommando Basics and Core Features => Topic started by: bergasha on October 21, 2016, 07:28:00 PM

Title: Prefix and confirm command
Post by: bergasha on October 21, 2016, 07:28:00 PM
Hey guys, just purchased vox and it is great. Just a quick question. I use prefix mode, is there a way not to use the prefix on a confirm command?

Example "computer turn TV off" and then just say yes or no, not "computer yes"

I have searched and can't seem to figure this one out.
Cheers
Title: Re: Prefix and confirm command
Post by: nime5ter on October 21, 2016, 08:52:55 PM
Hi and welcome to the forum.

There's a workaround. It's kind of sleight of hand. Instead of using the confirmation phrases that are set up in your Options, you can instead create an "always on" voice command that provides confirmation. There is a standard action VC.ConfirmYes (http://voxcommando.com/mediawiki/index.php?title=Actions#ConfirmYes).  Setting a command as "always on" means that it will execute when in standby mode, even if you don't say a prefix.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.3.0-->
<command id="53" name="Yes go ahead (confirmation command)" enabled="true" alwaysOn="True" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>VC.ConfirmYes</cmdType>
    <params />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Yes go ahead</phrase>
</command>
Title: Re: Prefix and confirm command
Post by: nime5ter on October 21, 2016, 08:58:53 PM
Note that the phrase you use for this special always on command should be different from the confirmation phrases you have set in Options or it won't work.
Title: Re: Prefix and confirm command
Post by: bergasha on October 22, 2016, 02:06:46 AM
That my friend was just the thing I was trying to do.
Thank you!