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 - Cassan0va

Pages: [1]
1
Command Builder Reference / Re: unrecognized commands into text
« on: June 17, 2016, 04:32:31 AM »
Yeah ive figured as much which is why i turned to the forum.
Ive yet to find any other solution than mentioned above.

I guess i could combine the 2.
Vox says "unrecognised command, would you like me to add it?" i have to trigger a 2nd command ie "yes / start recording" to save it into a text file.

I often forget my commands so i try multiple plausible commands this will be a way to add em

2
Command Builder Reference / unrecognized commands into text
« on: June 17, 2016, 03:13:28 AM »
What im thinking i want to do is that if i say a phrase which isnt recognized i want it to say "wrong command please repeat" and that part will trigger dictation into a text file so it records tve missing command.

Did that make any sense?

Command > feedback saying it isnt recognized > trigger dictation of what ever i say into a text file so i can add this at a later state

Been looking at the dictation payload but yeah i need it to trigger

3
You are prob right, gonna play around with kodi and do some more house hold tasks. Read the news, time, events, calendar etc.

Just to grasp VC, just feels abit overwhelming.

Well recording is an option, wanted the feel of more natural speaking or even AI sort.

4
The way the door thing was done in VA was something like this.

Quote
"Lock the Door".
If  [doorstatus] = 1
run "toggle door" command
Set [doorstatus] = 2
End Condition - Exit when condition met
If [doorstatus] = 2
Run "Door is already locked" sound file.
End Condition - Exit when condition met


"open the door"
If [doorstatus] = 1
run "Door is already unlocked" sound file
End Condition - Exit when condition met
If [doorstatus] = 2
run "toggle door" command
Set [doorstatus] = 1
End Condition - Exit when condition met

Not the exact code but the gist of it, cant figure out how to recreate it here

5
found the command, setprofile. Yeah i tried looking over those topics, but as i said it links to the windows profiles right?

6
Only a hint - VC has also scrape actions  ;)

Edit: I ment VC  :P

Yeah i know, thats one of the main reasons it caught my eye.
And now loads of stuff just keep popping up thats pretty awesome, its just completely differant from VA, while its a huge setback trying to get everything over to VC i think the positive ways over the negative.

Been looking over the wiki it feels like a huge slap in the face, if you are not sure what you are looking for its hard to find... Searching kinda works but still confusing.

Was looking at profile switching for the voice recognition, i guess its tied to the windows login profiles? I guess it has to be because of the training.

Best way is to setup new login profiles to get the speech recognition profiles and start training those then run the command inside VC to switch profile?

7
I've a question about the door lock: Which command do you use to lock/unlook the door (sending a http request?)? It would be nice to get a response from the door lock, to be sure the command has worked. Maybe we can request the state from the door lock  or the door lock send an event - is this possible?


This would make a lot of things easier to create. We have (for example) the Vera HA plugin in VC, maybe your HA works in a similar way.


Your second example demonstrate not really how HA works, because VC doesn't know when the door is unlocked by hand or maybe the light was turn on by hand  ::hmm

The idea is to get it to work in VA, then have VA read a state from the scraper in homeseer as a URL.
Well in theory, have yet to test it.

The reason i want to get it to work in VC first is because it can be applied to a multitude of instances and not just a door.

8
Yes I have a lot of ideas to do this - I will take a look on it later.
I know VC need a bit of learning how things work, but we have a lot of video tutorials and also a fantastic wiki documentation.


http://voxcommando.com/mediawiki/index.php?title=Main_Page

Will do that straight away thanks :)

9
Any ideas to the Global yes problem?

IE:
-Lock the door.
-- Door is locked
-Lock the door.
-- Door is already locked would you like to open it?
-Yes [This here could become a problem unless its tied to a specific set of phrases or phrase ((it only recognize this yes in combination with a specific phrase?))]

10
Hi Conny and welcome to the Forum.


I think we can't give you the complete commands, but here is a start for your first example.


This command mirroring exact your example 1 - hard to explain each action.
It create also a event timer (clear answer) which will clear the last answer from your computer after 20 seconds otherwise it will answer you random "Same as last time you asked"; "Age hitting you that hard"; "You already asked me that!". The time start over and over again as long as the 20 seconds not past.
You can edit the timer action to your needs and also the text file.


I hope this will help you.


Copy and paste the following command group in your VC command tree - save the "randomAnswer.txt" file in your VC main folder.


Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.9-->
<commandGroup open="True" name="example 1" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="351" name="how are you today" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="parameter (B) in the logic block contain a blank (space key) and is not empty!">
    <if ifBlockDisabled="False" ifNot="False">
      <ifType>(A)==(B)</ifType>
      <ifParams>{Var.lastAnswer}&amp;&amp; </ifParams>
      <then />
      <else>
        <action>
          <cmdType>VC.StopEventTimer</cmdType>
          <params>
            <param>clear answer</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>TTS.Speak</cmdType>
          <params>
            <param>Same as last time you asked | Age hitting you that hard | You already asked me that!</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>VC.SetEventTimer</cmdType>
          <params>
            <param>20</param>
            <param>clear answer</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>VC.StopMacro</cmdType>
          <params />
          <cmdRepeat>1</cmdRepeat>
        </action>
      </else>
    </if>
    <action>
      <cmdType>File.Read</cmdType>
      <params>
        <param>randomAnswer.txt</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegExSingle</cmdType>
      <params>
        <param>^(.*?)\r\n</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>{Match.1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>{Match.1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegExReplace</cmdType>
      <params>
        <param>^(.*?)\n</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>File.WriteLine</cmdType>
      <params>
        <param>randomAnswer.txt</param>
        <param>{LastResult}{CR}{Match.1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.GetLastText</cmdType>
      <params />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.SetVar</cmdType>
      <params>
        <param>lastAnswer</param>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.SetEventTimer</cmdType>
      <params>
        <param>15</param>
        <param>clear answer</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>how are you today</phrase>
  </command>
  <command id="352" name="clear event timer" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>VC.StopEventTimer</cmdType>
      <params>
        <param>clear answer</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.SetVar</cmdType>
      <params>
        <param>lastAnswer</param>
        <param><![CDATA[ ]]></param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>clear answer</event>
  </command>
</commandGroup>

Wow thanks a bunch, already starting to feel that the switch over here was the right one :)
Really quick turn around and simple to edit, just have to study it abit to figure out what each bit does.

Any databank with examples like that one you just posted?
If not it might be an idea so people dont have to reinvent the wheel :)

11
So what im trying to do (havnt found any CLEAR documentation on this) is that i drop a commando to get a response, random and fixed.

Example 1:

- Sarah, how are you today?
-- Im fine thank you; Could be better; Im a robot what do i know [Multiple responses that are used randomly]

Responses are either prerecorded WAVs or TTS, undecided.


Now i ask the same thing again shortly after, but since i already asked i would get a different response.

- Sarah, how are you today?
-- Same as last time you asked; Age hitting you that hard?; You already asked me that.

Example 2:

- Sarah, lock the door.
-- [Wait 5sec] Door is now locked.

Now i ask the same thing again shortly after, but since i already asked i would get a different response.

- Sarah, lock the door.
-- Door is already locked, would you like me to unlock it?

This triggers the next step which is a global [Yes] tied to this but it could also be tied to multiple phrases.
IE, Would you like me to unlock? Would you like me to turn on the lights? Would you like me to turn on the TV.

All of these questions should have the same simple answer of yes and no but tied to each phrase as a sub?

Thats basicly what im trying to do right now.
Another thing ive been thinking of is if after ive asked her to lock the door i can ask "Is the door locked".

Anyhow hope you understand what im getting at, currently working on homeseer setup to get this working properly, VA worked alright but this software seems like it was aimed towards what i want to achieve.

If you dont want to answer with examples atleast point me in the right direction.

Best regards Conny

Pages: [1]