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

Hint of AI or Auto-evolving VC

Started by Haddood, May 15, 2014, 02:44:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Haddood

While I am working on integrating iOS Reminder with VC, I wrote the following command that converts group of folders into a payload xml (each reminders list from various accounts is represented by a folder on my pc).

then another command will flush the cache (or parts of it) restart VC. VC will rebuild the grammar. Now what VC can understand is adapted to the new conditions ...

Since then I have been thinking that this can be expanded into modifying voicecommands.xml itself ... so VC can add commands to itself based on new conditions ... I am not saying it is gonna be easy but I think it is totally doable ... imagine finding a way to:

You say "VC wake me up at 8:00 am"
VC answer "I do not know what you mean By: VC wake me up at 8:00 am, do I have a similar command"
You answer "yes: Set an alarm"
VC "OK, new alternative to set an alarm has been added"

with time VC will evolve by learning the various ways we say the same thing which renders it even more natural ...

just a thought ... anyway here is the code that converts a list of folders into payload xml


<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 1.9.3.3-->
<command id="432" name="Lists XML" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Launch.Capture</cmdType>
    <params>
      <param>C:\Windows\System32\cmd.exe</param>
      <param>/C dir "C:\Users\iHome\Dropbox\IFTTT\iOS Reminders"</param>
      <param>true</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegExReplace</cmdType>
    <params>
      <param>Volume.*</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegExReplace</cmdType>
    <params>
      <param>Directory.*\n</param>
      <param>&lt;?xml version="1.0" encoding="utf-8"?&gt;{CR}&lt;!--A VoxCommando Payload file--&gt;{CR}&lt;PayloadsRoot&gt;</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegExReplace</cmdType>
    <params>
      <param>.*&lt;DIR&gt;.*\.+\r\n</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegExReplace</cmdType>
    <params>
      <param>.*&lt;DIR&gt;\s+(.*)\r</param>
      <param>    &lt;payload&gt;{CR}        &lt;value&gt;$1&lt;/value&gt;{CR}        &lt;phrase&gt;$1&lt;/phrase&gt;{CR}    &lt;/payload&gt;{CR}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegExReplace</cmdType>
    <params>
      <param>.*bytes free\r\n</param>
      <param>&lt;/PayloadsRoot&gt;</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegExReplace</cmdType>
    <params>
      <param>.*bytes\r\n</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegExReplace</cmdType>
    <params>
      <param>\s\n\s\n\r\n\s</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType />
    <params />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>File.Write</cmdType>
    <params>
      <param>C:\Extensions\Vox Commando\payloads\iOS Reminders.xml</param>
      <param>{LastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VC.Pause</cmdType>
    <params>
      <param>1000</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VC.RestartFull</cmdType>
    <params />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <event>iOS Reminders List</event>
  <phrase>Remind me</phrase>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\iOS Reminders.xml</payloadFromXML>
</command>
/code]
When Voice command gets tough, use hand gestures

xtermin8r

#1
nice idea. check this vid out.

http://www.youtube.com/watch?list=UUxqlwcSqWwC9-qB0v6plqxw&feature=player_detailpage&v=ORzXuNWfOQo#t=234

does anyone know what tts engine he is using, i like the way it says "sir".
Neural Net Based Artificial Intelligence.

hehrm

Quote from: xtermin8r on May 15, 2014, 08:15:34 AM
nice idea. check this vid out.

http://www.youtube.com/watch?list=UUxqlwcSqWwC9-qB0v6plqxw&feature=player_detailpage&v=ORzXuNWfOQo#t=234

does anyone know what tts engine he is using, i like the way it says "sir".

Holy cow thats crazy.  there was a source forge link down at the bottom of that video I dont know if thats what your looking for