9
« on: January 16, 2016, 11:50:20 AM »
Now that I have Denise up and running. Its time to modify my commands to accommodate her. The first one that I have is a greeting command. <?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.9-->
<command id="367" name="Greet computer" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<if ifBlockDisabled="False" ifNot="False">
<ifType>ProcessRunning</ifType>
<ifParams>Kodi&&</ifParams>
<then>
<action>
<cmdType>XJson.SoftMute</cmdType>
<params>
<param>20</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>ProcessRunning</ifType>
<ifParams>ehshell&&</ifParams>
<then>
<action>
<cmdType>WMC</cmdType>
<params>
<param>Mute</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)Contains(B)</ifType>
<ifParams>{1}&&morning</ifParams>
<then>
<action>
<cmdType>TTSMS.SpeakSync</cmdType>
<params>
<param>Good morning. who am I speaking to?</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)Contains(B)</ifType>
<ifParams>{1}&&afternoon</ifParams>
<then>
<action>
<cmdType>TTSMS.SpeakSync</cmdType>
<params>
<param>Good afternoon. who am I speaking to?</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)Contains(B)</ifType>
<ifParams>{1}&&evening</ifParams>
<then>
<action>
<cmdType>TTSMS.SpeakSync</cmdType>
<params>
<param>Good evening. who am I speaking to?</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)Contains(B)</ifType>
<ifParams>{1}&&hi</ifParams>
<then>
<action>
<cmdType>TTSMS.SPeakSync</cmdType>
<params>
<param>Hello donald! how may i help you?| Hello donald! whats up| Yes, Donald| Donald, whats up!| Hey Donald, whats up!</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else>
<action>
<cmdType />
<params />
<cmdRepeat>1</cmdRepeat>
</action>
</else>
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>ProcessRunning</ifType>
<ifParams>Kodi&&</ifParams>
<then>
<action>
<cmdType>XJson.SoftUnMute</cmdType>
<params />
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>ProcessRunning</ifType>
<ifParams>ehshell&&</ifParams>
<then>
<action>
<cmdType>WMC</cmdType>
<params>
<param>Volume Unmute</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<action>
<cmdType>VC.EnableGroup</cmdType>
<params>
<param>Program one</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<payloadList optional="true">good morning, good afternoon, good evening, hi, hey, whats up</payloadList>
<phrase>kathy</phrase>
</command>
I realize that in order to have Denise speak I would need to use the scrape action. For me, its easy enough to do for the commands that have one statement to speak. Where i get confused is when I have multiple options that are chosen randomly for Denise to speak. For example: Using the TTS method I would use <action>
<cmdType>TTSMS.SPeakSync</cmdType>
<params>
<param>Hello donald! how may i help you?| Hello donald! whats up| Yes, Donald| Donald, whats up!| Hey Donald, whats up!</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
How do I adjust this for Denise to speak using the Scrape action?