<?xml version="1.0" encoding="utf-8"?>
<VoiceCommands version="" space="preserve" date="8/30/2013 12:00:00 AM">
    <commandGroup open="True" name="USBUIRT learn payloadxml" enabled="True" prefix="" priority="6" requiredProcess="" description="">
        <command id="1141" name="I want to program my {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>Results.SetVar</cmdType>
                <cmdString>LearnMap&amp;&amp;uu_{1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Map.CreateTable</cmdType>
                <cmdString>{Var.LearnMap}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.Speak</cmdType>
                <cmdString>ready to learn buttons for your {1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>OSD.ShowText</cmdType>
                <cmdString>ready to learn buttons for your {1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <if ifBlockDisabled="False" ifNot="False">
                <ifType>(A)==(B)</ifType>
                <ifParams>{1}&amp;&amp;Fan</ifParams>
                <then>
                    <action>
                        <cmdType>UsbUIRT.AllowBurst</cmdType>
                        <cmdString>94</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else>
                    <action>
                        <cmdType>UsbUIRT.DisableBurst</cmdType>
                        <cmdString />
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </else>
            </if>
            <phrase>I want to</phrase>
            <phrase>learn, program</phrase>
            <phrase optional="true">buttons, codes</phrase>
            <phrase>from my, my</phrase>
            <payloadList>TV, Fan, Stereo, DVD</payloadList>
            <phrase optional="true">remote, remote control</phrase>
        </command>
        <command id="1110" name="Learn button {1}  (XML)" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>Results.SetVar</cmdType>
                <cmdString>LearnButton&amp;&amp;{1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>UsbUIRT.LearnUU</cmdType>
                <cmdString>50</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.Speak</cmdType>
                <cmdString>ready, press {1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>OSD.ShowText</cmdType>
                <cmdString>ready, press {1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>learn button</phrase>
            <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\payloadAllButtonNames.xml</payloadFromXML>
        </command>
        <command id="1136" name="try again" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>UsbUIRT.LearnUU</cmdType>
                <cmdString />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.Speak</cmdType>
                <cmdString>ready, press {Var.LearnButton}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>try again</phrase>
        </command>
        <command id="1150" name="test that button" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>UsbUIRT.Send</cmdType>
                <cmdString>{Var.TestCode}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>test that button</phrase>
        </command>
        <command id="1140" name="learn code too short" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>TTS.Speak</cmdType>
                <cmdString>Code is too short.  Say "try again"</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <event>UUIRT.LearnTooShort</event>
        </command>
        <command id="1080" name="learn complete set map" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <if ifBlockDisabled="False" ifNot="False">
                <ifType>(A)Contains(B)</ifType>
                <ifParams>{Var.LearnMap}{Var.LearnButton}&amp;&amp;Var.</ifParams>
                <then>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <cmdString>error</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else>
                    <action>
                        <cmdType>Map.Set</cmdType>
                        <cmdString>{Var.LearnMap}&amp;&amp;{Var.LearnButton}&amp;&amp;{1}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>OSD.ShowText</cmdType>
                        <cmdString>Saved: {Var.LearnMap} / {Var.LearnButton}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>OSD.AddText</cmdType>
                        <cmdString>{1}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <cmdString>{Var.LearnButton} button saved</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </else>
            </if>
            <action>
                <cmdType>Results.SetVar</cmdType>
                <cmdString>TestCode&amp;&amp;{1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <event>UUIRT.LearnComplete</event>
        </command>
    </commandGroup>
    <commandGroup open="False" name="USBUIRT learn dictation" enabled="False" prefix="" priority="0" requiredProcess="" description="">
        <command id="1145" name="Learn button {1}  (Dictation)" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>Results.SetVar</cmdType>
                <cmdString>LearnButton&amp;&amp;{1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>UsbUIRT.LearnUU</cmdType>
                <cmdString>50</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.Speak</cmdType>
                <cmdString>ready, press {1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>OSD.ShowText</cmdType>
                <cmdString>ready, press {1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>learn button</phrase>
            <payloadDictation>payloadDictation: Regular</payloadDictation>
        </command>
    </commandGroup>
</VoiceCommands>