<?xml version="1.0" encoding="utf-8"?>
<!--C:\Users\james\Desktop\VcGrp_XBMC announce songs staggered.xml-->
<VoiceCommands version="0.950">
    <commandGroup name="XBMC announce songs staggered" enabled="True">
        <command id="277" name="Current song" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>OSD.ShowText</cmdType>
                <cmdString>{DtCustom.HHmm}</cmdString>
                <cmdRepeat>0</cmdRepeat>
            </action>
            <if ifBlockDisabled="False" ifNot="False">
                <ifType>(A)==(B)</ifType>
                <ifParams>{Var.lastevent}&amp;&amp;{DtCustom.HHMM}</ifParams>
                <then>
                    <action>
                        <cmdType>Results.SetVar</cmdType>
                        <cmdString>lastevent&amp;&amp;{DtCustom.HHmm}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>VC.StopMacro</cmdType>
                        <cmdString />
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else>
                    <action>
                        <cmdType>Results.SetVar</cmdType>
                        <cmdString>lastevent&amp;&amp;{DtCustom.HHmm}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </else>
            </if>
            <if ifBlockDisabled="False" ifNot="False">
                <ifType>(A)==(B)</ifType>
                <ifParams>{Var.announcemode}&amp;&amp;doit</ifParams>
                <then>
                    <action>
                        <cmdType>Results.SetLastResult</cmdType>
                        <cmdString>{Var.lastsong}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>Results.RegEx</cmdType>
                        <cmdString>(?:Title|Artist|Album):(.*)</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <cmdString>You just heard {match.1}, by {match.2}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else>
                    <action>
                        <cmdType>OSD.ShowText</cmdType>
                        <cmdString>debug: skipping announce</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </else>
            </if>
            <action>
                <cmdType>XBMC.Send</cmdType>
                <cmdString>getcurrentlyplaying</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>System.SetClipboardText</cmdType>
                <cmdString>{LastResult}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Results.SetVar</cmdType>
                <cmdString>lastsong&amp;&amp;{LastResult}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <if ifBlockDisabled="False" ifNot="False">
                <ifType>(A)==(B)</ifType>
                <ifParams>{Var.announcemode}&amp;&amp;doit</ifParams>
                <then>
                    <action>
                        <cmdType>Results.RegEx</cmdType>
                        <cmdString>(?:Title|Artist|Album):(.*)</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <cmdString>now check out {match.1}, from the album {match.3}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>Results.SetVar</cmdType>
                        <cmdString>announcemode&amp;&amp;wait</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else>
                    <action>
                        <cmdType>Results.SetVar</cmdType>
                        <cmdString>announcemode&amp;&amp;doit</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </else>
            </if>
            <event>XBMC.MediaChanged.AudioTitle</event>
        </command>
    </commandGroup>
</VoiceCommands>