<?xml version="1.0" encoding="utf-8"?>
<!--C:\Users\james\Desktop\multilingual test for w.xml-->
<VoiceCommands version="0.885">
    <commandGroup name="detect language for W" enabled="True">
        <command id="299" name="XBMC.MediaChanged.AudioTitle" enabled="true" confirm="False" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>TTS.Stop</cmdType>
                <cmdString />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>XBMC.Send</cmdType>
                <cmdString>getcurrentlyplaying</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <if ifNot="False">
                <ifType>(A)Contains(B)</ifType>
                <ifParams>{LastResult}&amp;&amp;\Portuguesbr\</ifParams>
                <then>
                    <action>
                        <cmdType>TTS.SetVoiceName</cmdType>
                        <cmdString>*** voice for pt br ***</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <cmdString>portuguese  {1} by {2}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else />
            </if>
            <if ifNot="False">
                <ifType>(A)Contains(B)</ifType>
                <ifParams>{LastResult}&amp;&amp;\Espanhol\</ifParams>
                <then>
                    <action>
                        <cmdType>TTS.SetVoiceName</cmdType>
                        <cmdString>*** voice for Espanhol ***</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <cmdString>Espanhol  {1} by {2}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else />
            </if>
            <if ifNot="False">
                <ifType>(A)Contains(B)</ifType>
                <ifParams>{LastResult}&amp;&amp;\Italiano\</ifParams>
                <then>
                    <action>
                        <cmdType>TTS.SetVoiceName</cmdType>
                        <cmdString>*** voice for Italiano ***</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <cmdString>Italiano  {1} by {2}</cmdString>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else />
            </if>
            <event>XBMC.MediaChanged.AudioTitle</event>
        </command>
    </commandGroup>
</VoiceCommands>