Author Topic: Multiple confirmation commands  (Read 2226 times)

0 Members and 1 Guest are viewing this topic.

tn42

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 0
    • View Profile
Multiple confirmation commands
« on: December 05, 2014, 03:30:44 AM »
Hello!

Long time no see   :)

Well I have now bought a license of VC and started to set everything up, the multi room problem is still not completely solved, but im working on that one.

One thing I do have a problem with (kind of my original question for this forum).

I am having trouble setting up this command sequence, maybe you guys could help me out with by sending me a xml file or something?

The layout for the command sequences should be something like...

1* Me: "Goodnight sarah." or other similar phrase

2* computer:"Do you wanna watch something before you go to bed?"

3* Me: YES/NO

4* if: yes - send event to EG (this part is easy) it turns on the TV and media center and sets the TV to sleep in 60 min (I have all-ready set this part up in EG)
4* if: no - dont send anything to EG

5* computer: its cold outside, should I pree heat the car for you tomorrow?

6* me: YES/NO

7* if: YES
7* if: NO (TTSMS: Godnight TN42 | Enjou your movie... ) nothing more happens

8* computer: should i set a timer (this happens only if I say YES in 7*)

9* me: yes, set the timer for hh:mm OR no

10* if: yes (send event to EG preheatcar_hhmm)
10* if: no (send event to EG preheatcar)

11* computer: Goodnight


Is something like this possible?

Every bit of help is highly appreciable .

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Multiple confirmation commands
« Reply #1 on: December 05, 2014, 04:58:22 AM »
Hi tn42, I will do what I can, now it is in progress (it's not so easy  ::yikes  )
***********  get excited and make things  **********

tn42

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 0
    • View Profile
Re: Multiple confirmation commands
« Reply #2 on: December 05, 2014, 05:31:51 AM »
Thanx Kalle.

I was watching your video on "voxcommando human touch" - trying to get ideas on how to set up the command structure for my goodnight sequence.

I have been sitting with this problem for two days now, and I have so far not been able to solve it. The main problem is
that I need to create some type of "smart" follow up question command setup. And thats a bit to advanced for me.

If you succeed In creating the command sequence , it might be a good idea to post it in another section of the forum aswell, for others to find. I dont think that im the only user of VC that wanna do things like this?

Vielen dank Kalle for the help with this!  :)


Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Multiple confirmation commands
« Reply #3 on: December 05, 2014, 06:23:02 AM »
No problem, you are welcome!
At the moment it drive me nuts, because it looks like there is a problem in the confirm action when I trigger a second confirm action with tellvox (you can execute at the moment only one confirmation) - I will ask James for a solution, but this can take a while.
The following command group will show you how it is possible to create this command. Drag and drop the code in your command tree. If you want use the confirm phrase "Yes" or "No", get save that you have set this phrases in VC Options->General tab->"Confirm Command Phrases". If everything set up, trigger the command with "good night sarah" and see whats happen  ;)

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.2.5-->
<commandGroup open="True" name="TN42" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="306" name="good night sarah" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTSMS.SpeakSync</cmdType>
      <params>
        <param>Do you wanna watch something before you go to sleep?</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.TellVox</cmdType>
      <params>
        <param>watch TV</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>good night sarah</phrase>
  </command>
  <command id="307" name="watch TV" enabled="true" alwaysOn="False" confirm="True" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>EventGhost.Send</cmdType>
      <params>
        <param>Your command</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.TriggerEvent</cmdType>
      <params>
        <param>no TV</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>watch TV</phrase>
  </command>
  <command id="319" name="question pree heat car" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTSMS.SpeakSync</cmdType>
      <params>
        <param>its cold outside, should I pree heat the car for you tomorrow?</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.TellVox</cmdType>
      <params>
        <param>pree heat car</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>Confirm.Cancel.watch TV</event>
    <event>no TV</event>
  </command>
  <command id="398" name="pree heat car" enabled="true" alwaysOn="False" confirm="True" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTSMS.SpeakSync</cmdType>
      <params>
        <param>Ok, should i set a timer for you? If yes, please say for example: "set, pree heat car, to 30 minutes"</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>pree heat car</phrase>
  </command>
</commandGroup>
***********  get excited and make things  **********

tn42

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 0
    • View Profile
Re: Multiple confirmation commands
« Reply #4 on: December 05, 2014, 06:37:09 AM »
Great! Thanx Kalle. I will import it to VC when I get home, and try it out.

Maybe this is something that should be put in to the feature request list. (a simple way to handle follow up questions and follow up command structures with multiple responses)?

Keep me posted if you hear anything from James.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Multiple confirmation commands
« Reply #5 on: December 05, 2014, 07:06:23 AM »
One of a problem in which you can run, if you have to much chitchat commands, is to get much false positives  ;)
***********  get excited and make things  **********

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Multiple confirmation commands
« Reply #6 on: December 05, 2014, 09:17:47 AM »
Great! Thanx Kalle. I will import it to VC when I get home, and try it out.

Maybe this is something that should be put in to the feature request list. (a simple way to handle follow up questions and follow up command structures with multiple responses)?

Keep me posted if you hear anything from James.
Please take a look here: http://voxcommando.com/forum/index.php?topic=1887.msg16336#msg16336
« Last Edit: December 06, 2014, 10:11:29 AM by nime5ter »
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Multiple confirmation commands
« Reply #7 on: December 05, 2014, 09:47:48 AM »

If you succeed In creating the command sequence , it might be a good idea to post it in another section of the forum aswell, for others to find. I dont think that im the only user of VC that wanna do things like this?


This is why we encourage people to start new threads with meaningful subjects when starting new questions.