I'm making a second counter for some workout routines. The concept is to say, "set clock for xx seconds." Then Vox says, "setting clock for xx seconds." Now I have it working at that point. So if I set the clock for 30 seconds, at the end of that time Vox will say, "30 seconds are up." However, I'm stuck on figuring out how to make it wait for me to say "begin" to then start the timer. I suppose I could have it require confirmation and have one of my confirmation phrases be "begin," but I have the confirmation set to expire after a certain amount of time elapses -- I think I have it set to 20 seconds. I would like to be able to wait longer than that set time to begin the timer.
I'm having one other small problem with the timer too (it's probably really simple). If I set the timer for 30 seconds, Vox should say at the end of that time, "30 seconds are up." But I can't seem to get it to say the number of seconds. It's just saying the payload number, "1".
Here's what I have so far:
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.2-->
<commandGroup open="True" name="Second counter" enabled="True" prefix="" priority="0" requiredProcess="" description="">
<command id="409" name="Timer" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>VC.SetEventTimer</cmdType>
<params>
<param>0h 0m {1}s</param>
<param>Timer</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Speak</cmdType>
<params>
<param>Clock set for {1} seconds</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>set clock for</phrase>
<payloadRange>1,60</payloadRange>
<phrase>second, seconds</phrase>
</command>
<command id="425" name="Say When time is up" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>TTS.Speak</cmdType>
<params>
<param>{1} seconds are up</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<event>Timer</event>
</command>
</commandGroup>