Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ddl

Pages: [1] 2 3 ... 8
1
General Discussion / Re: What VC Action can I use?
« on: January 24, 2016, 03:08:44 PM »
All,

Thanks much for the feedback.  I added a few things to Kalle's suggestion to complete the program and it works great.  Thanks again.  I chose Kalle suggestion because it helps me to understand the logic better.  I'll need to read up and study more on how the  " VC.SetEventTimer" and "VC.StopEventTimer" work.

2
General Discussion / What VC Action can I use?
« on: January 23, 2016, 09:41:30 PM »
I have created a command in VC that listens for events from my ISY.  In summary my hope is to have VC activate my home security system via my ISY.  I have started to write a command and got stuck and need some assistance with identifying the next action that will cause VC to delay for a certain amount of time and or a confirmation requirement is met.  For example... "You have thirty seconds to provide the password before I call the police" 

Here is what I have written so far

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.9-->
<command id="478" name="Unusual Motion" 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&amp;&amp;</ifParams>
    <then>
      <action>
        <cmdType>XJson.Raw</cmdType>
        <params>
          <param>InputExecuteAction</param>
          <param>"action"."pause"</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>Scrape</cmdType>
        <params>
          <param>http://127.0.0.1:8000/Agent?function=AgentStayonTop&amp;Auth={M:botpass.botpass}&amp;onTop=True</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>Scrape</cmdType>
        <params>
          <param>http://127.0.0.1:8000/Agent?function=AgentShow&amp;Auth={M:botpass.botpass}&amp;STATE=WSMaximized</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>Scrape</cmdType>
        <params>
          <param>http://127.0.0.1:8000/Agent?function=AgentResolution&amp;Auth={M:botpass.botpass}&amp;Resolution=1</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else>
      <action>
        <cmdType>Scrape</cmdType>
        <params>
          <param>http://127.0.0.1:8000/Agent?function=AgentShow&amp;Auth={M:botpass.botpass}&amp;STATE=WSMAXIMIZED</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>Scrape</cmdType>
        <params>
          <param>http://127.0.0.1:8000/Agent?function=AgentResolution&amp;Auth={M:botpass.botpass}&amp;Resolution=0</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </else>
  </if>
  <action>
    <cmdType>VC.Pause</cmdType>
    <params>
      <param>1000</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://127.0.0.1:8000/Agent?function=AgentSpeak&amp;Auth={M:botpass.botpass}&amp;Text=Excuse me!  I don't recognize you. Please identify yourself, You have thirty seconds before I call the police</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>UnMot</phrase>
  <event>UnMot.UnMot
</event>
</command>

The next action should be the start of the timer which will be thirty seconds.  If a confirmation is not given within this time.  The next action will be to execute via a scrape command a program in my ISY that will activate my home security system.

Any help with ideas to finish my code would be appreciated.

3
General Discussion / Re: Voxcommando and Denise (Guile3d) Help
« on: January 17, 2016, 12:09:37 PM »
Yes, I'm sure that Kathy is not used as a prefix in VC options.  What happens is that when I speak the command (hi kathy or hey kathy) it shows VC not recognized in the history.  However, when speak the command "whats up kathy" it works.

4
General Discussion / Re: Voxcommando and Denise (Guile3d) Help
« on: January 17, 2016, 11:33:28 AM »
Thank you for the tutorial.  Working to understand it all.  Here is a command that I have created as a result of one examples that you have listed.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.9-->
<command id="372" name=" Greet Computer New" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>PayloadXML.GetRandomP</cmdType>
    <params>
      <param>C:\Users\Donald\VC42615\payloads\Greeting Responses.xml</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://127.0.0.1:8000/Agent?function=AgentSpeak&amp;Auth={M:botpass.botpass}&amp;Text={Match.1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>OSD.ShowText</cmdType>
    <params>
      <param>{Match.1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <payloadList optional="true">hi,hey kathy,whats up</payloadList>
  <payloadFromXML phraseOnly="True" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\Greeting Responses.xml</payloadFromXML>
  <phrase>Kathy</phrase>
</command>

Not sure if my code is written correctly or not but I only get a response when I use the "Whats up" phrase.  I get nothing when using the other two.  What am I doing wrong?

5
General Discussion / Re: Voxcommando and Denise (Guile3d) Help
« on: January 16, 2016, 05:35:18 PM »
tried your example.  The answers were repeated. 

6
General Discussion / Re: Voxcommando and Denise (Guile3d) Help
« on: January 16, 2016, 04:46:23 PM »
gotcha...

last question for the day :)  I have created a command to greet Denise.  The command has three terms that I can use to address Denise that will generate three different responses from Denise.
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.9-->
<command id="359" name=" Greet Computer New" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)Contains(B)</ifType>
    <ifParams>{1}&amp;&amp;hi</ifParams>
    <then>
      <action>
        <cmdType>scrape</cmdType>
        <params>
          <param>http://127.0.0.1:8000/Agent?function=AgentSpeak&amp;Auth={M:botpass.botpass}&amp;Text=Hi  Donald, what can I do for you.</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)Contains(B)</ifType>
    <ifParams>{1}&amp;&amp;hey</ifParams>
    <then>
      <action>
        <cmdType>scrape</cmdType>
        <params>
          <param>http://127.0.0.1:8000/Agent?function=AgentSpeak&amp;Auth={M:botpass.botpass}&amp;Text=Hey Donald, Whats up.</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)Contains(B)</ifType>
    <ifParams>{1}&amp;&amp;whats up</ifParams>
    <then>
      <action>
        <cmdType>scrape</cmdType>
        <params>
          <param>http://127.0.0.1:8000/Agent?function=AgentSpeak&amp;Auth={M:botpass.botpass}&amp;Text=Nothing much, how can I help you.</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <payloadList>hi,hey,whats up</payloadList>
  <phrase>kathy</phrase>
</command>

I would like to expand on the list of responses but I am having trouble figuring out how the payload list via xml works.  At the end of the day I would like to shorten my command so that I can have more responses from Denise that are chosen at random.  Can you help me by pointing me in the right direction?  Meanwhile, will read up a little more on how generate building and implementing payloads.

7
General Discussion / Re: Voxcommando and Denise (Guile3d) Help
« on: January 16, 2016, 12:31:34 PM »
Also,  I looked at the talking head option provided by VC.  If I went this route going forward.  Can I create my own avatar with the movements such as Denise?  Trying to keep my setup as clean as possible to avoid a nightmare with troubleshooting if necessary.

8
General Discussion / Re: Voxcommando and Denise (Guile3d) Help
« on: January 16, 2016, 12:26:46 PM »
Ok, figured that as much.  I have no experience with using the action "Result.SetLastResult" in VC so I think at this point I will stay away from using it.  I have very little experience using payloads but am willing to try and figure it out. 

9
General Discussion / Re: Voxcommando and Denise (Guile3d) Help
« 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.
Code: [Select]
<?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&amp;&amp;</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&amp;&amp;</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}&amp;&amp;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}&amp;&amp;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}&amp;&amp;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}&amp;&amp;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&amp;&amp;</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&amp;&amp;</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
Code: [Select]
<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?

10
General Discussion / Re: Voxcommando and Denise (Guile3d) Help
« on: January 16, 2016, 10:19:05 AM »
Whew! Whooo!!!  It was the third scenario.  Changed the voices and it works!!!  Thanks for all your help.   

11
General Discussion / Re: Voxcommando and Denise (Guile3d) Help
« on: January 16, 2016, 09:18:15 AM »
No, I did not.  I have done a fresh install off VC and the only commands that I have are those that was provided in the xml to connect to Denise. 

12
General Discussion / Re: Voxcommando and Denise (Guile3d) Help
« on: January 15, 2016, 09:15:34 PM »
Ok, Thanks...

13
General Discussion / Re: Voxcommando and Denise (Guile3d) Help
« on: January 15, 2016, 04:49:47 PM »
Just completed a test...  Here is whats happening.  When the computer is started Denise is started and works as expected.  Audio to and from Denise works.  When VC is started it kills the audio to and from Denise.  However, the audio from VC continues to work as expected.  I have disabled exclusive control of the audio devices as suggested in the computers Advanced audio properties.  Additionally, I have toggle between the audio outputs for TTS and still the same results.  No audio from Denise.

I am totally lost at this point. 

14
General Discussion / Re: Voxcommando and Denise (Guile3d) Help
« on: January 15, 2016, 03:56:16 PM »
Kalle.. Examples may help. Thanks

15
General Discussion / Re: Voxcommando and Denise (Guile3d) Help
« on: January 15, 2016, 03:42:23 PM »
@Kalle... Do I need to change the IP Address if both products are running on the same machine?

@Nime5ter...Yes, I am referring to TTS Responses and it doesn't matter which program is opened first.  I will check the other items you suggested shortly and report back.


Pages: [1] 2 3 ... 8