More than one listenFor tag in Speech Macro XML

I recently started visiting Windows Speech Macros, it allows you to create custom commands for Windows voice recognition. Currently I can only say one thing and it could respond and execute the command, but I want it to be like OK GOOGLE where I say my name first and then ready for a valid command if only I say CANCEL here example of what I have: (my system is called J-SIB and it refers to me as Vulpix.JS)

<?xml version="1.0" encoding="UTF-16"?>
<speechMacros>
  <command>
    <listenFor>Jay Sib, Start Chrome</listenFor>
    <speak>Yes Sir, Mister Vulpix Dot Jay Es</speak>
    <run command="C:\Users\Programming\Desktop\Chrome.exe"/>
  </command>
</speechMacros>

      

But I want it to be like this:

<?xml version="1.0" encoding="UTF-16"?>
<speechMacros>
  <command>
    <listenFor>Jay Sib</listenFor>
    <speak>Yes Sir?</speak>
   <listenFor>Start Chrome</listenFor>
   <speak>Yes Sir, Mister Vulpix Dot Jay Es</speak>
   <run command="C:\Users\Programming\Desktop\Chrome.exe"/>
  </command>
</speechMacros>

      

How could I get it where I don't speak command in one long wind? Because whenever I try to execute the command above, it says there is an error.

"The" listenFor "element is unexpected according to the parent" command "content model. Waiting: sendKeys, insertText, run, emulateRecognition, waitFor, speak, alert, confirm, setTextFeedback, script, wmpMediaPlay, WmpMed ..."

(you may ask what is wrong by telling the whole team, I just don't like it, I want it to be like OK GOOGLE)

+3


source to share


1 answer


The error tells you that you cannot have tags in that order. All tags listenFor

must be next to each other and any one of them invokes the same command.

You may have to split it into two commands as shown below.



<?xml version="1.0" encoding="UTF-16"?>
<speechMacros>
  <command>
    <listenFor>Jay Sib</listenFor>
    <speak>Yes Sir?</speak>
  </command>
  <command>
   <listenFor>Start Chrome</listenFor>
   <speak>Yes Sir, Mister Vulpix Dot Jay Es</speak>
   <run command="C:\Users\Programming\Desktop\Chrome.exe"/>
  </command>
</speechMacros>

      

0


source







All Articles