Author Topic: Hint of AI or Auto-evolving VC  (Read 3078 times)

0 Members and 1 Guest are viewing this topic.

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Hint of AI or Auto-evolving VC
« on: May 15, 2014, 02:44:21 AM »
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

Code: [Select]
<?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

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Hint of AI or Auto-evolving VC
« Reply #1 on: May 15, 2014, 08:15:34 AM »
nice idea. check this vid out.

plqxw&feature=player_detailpage&v=ORzXuNWfOQo#t=234

does anyone know what tts engine he is using, i like the way it says "sir".
« Last Edit: May 15, 2014, 08:33:53 AM by xtermin8r »
Neural Net Based Artificial Intelligence.

hehrm

  • $upporter
  • Jr. Member
  • *****
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Hint of AI or Auto-evolving VC
« Reply #2 on: July 10, 2014, 07:00:51 PM »
nice idea. check this vid out.

plqxw&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