News:

HOT TIP! Enable the History Window in the main UI when trying to problem solve. It provides a handy log of what is happening. Roll over lines in the History to get more details.

Main Menu

My First Command Need Help

Started by eugekiller, January 07, 2016, 09:43:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

eugekiller

Ok so i am trying to do this comand to tell me the weather when i say hello. I think i did everything corectly when i test it, it does tell me the weather and all. But when i say hello VOX is not recognizing what i am saying. :(

I dont know if its because something wrong with the code or it just actully not understanding what i am saying.
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.9-->
<commandGroup open="True" name="HELLO" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="326" name="Hello" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>WUnder.GetCustom</cmdType>
      <params>
        <param>Current temperature {C.temp_c}. The high for today is {D0.high}. </param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
</commandGroup>
]

Any help would be great thanks :)

jitterjames

#1
The phrase you have assigned to your command is simply "hello" so why would you expect it to understand "hello vox"?  I believe that VC will sometimes recognize  just the "hello" even if you said another word after it but if you want to be able to say "hello vox" then you should add "vox" as a phrase.

Please watch tutorial 1A about the basics of building commands. https://www.youtube.com/watch?v=lPyfxpXRr9Q&feature=share&list=PL5EB7936BE8F07625

nime5ter

Quote from: jitterjames on January 07, 2016, 09:59:26 AM
The phrase you have assigned to your command is simply "hello" so why would you expect it to understand "hello vox"?  I

Actually, if the command XML that was posted is what eugekiller is using, there is no phrase assigned to the command at all.

The command is given the name, "Hello", but it has only a macro without any phrase triggers assigned to it.

http://voxcommando.com/mediawiki/index.php?title=Customizing_Commands#Element_1._Command_Input
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

My mistake. I thought I saw the phrase hello in the xml. With no phrases assigned to a command it will obviously not work at all.