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.


Topics - Haddood

Pages: 1 2 3 [4] 5 6 ... 9
46
Bug Reports / VC does not "hear" while Windows does
« on: February 02, 2015, 04:18:29 PM »
this is one of the weird behaviors of my PC, not sure if it VC windows or something else...

sometimes when I put VC into standby or listen mode after extended period of being off, it do not initialize the mic ...

while windows SR can hear, VC do not

this is always resolved after restarting VC

47
EventGhost / Genering Question about EG & VC connection
« on: January 26, 2015, 02:36:48 AM »
for some reason when I enable connection between VC and EG, EG log get filled with connection and disconnection events ...
is this normal ?

48
WAY Off Topic / Say welcome to the future, goodbye to the screen
« on: January 24, 2015, 02:25:56 AM »
Have you people seen this?

http://www.microsoft.com/microsoft-hololens/en-us

Imagin with VC ...
Scenario 1, info: Linked to sketch-up warehouse, or google earth and Wikipedia ... One can see , and walk through buildings, see wars ... Etc. or weather, or ...
Scenario 2: working ... Now we are seriously talking ironman !!!! VC will be a real Jarvis
Scenario 3: anti-gym, entertainment wherever u are no need even to move the head or otherwise, running on a trade mill and while running  any path in the world !!!


49
XML Exchange / Dynamic DNS Command (Auto variable IP update)
« on: January 20, 2015, 01:40:38 PM »
I use a dynamic DNS service to remotely access various stuff at home ... till now I maintain the IP updated using No-IP DUC program that consumes up to 7MB of memory when not minimized and 1 MB minimized ... since I run VCon an old PC (2.5GB ram), ram is an issue for me ...

so here is a command that do the trick so no extra programs to run, no extra icon in the tray and most save some valuable ram.
as well, with a bit of modification, you can make VC email or skype message ..etc. latest IP and drop the DynDNS completely

it starts with VC and check every 5 minutes (you can revise the delay in the first command)

(Bug fixed 2015'01'25)

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.3.6-->
<command id="337" name="Dynamic DNS No-IP" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>VC.SetEventTimer</cmdType>
    <params>
      <param>300</param>
      <param>Network.UpdateNO-IP</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://myexternalip.com/raw</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegEx</cmdType>
    <params>
      <param>(\d+).(\d+).(\d+).(\d+)</param>
      <param>.</param>
      <param>{LastResult}</param>
      <param>clean up IP</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)==(B)</ifType>
    <ifParams>{Match.1}&amp;&amp;{M:Variables.CurrentIP}</ifParams>
    <then>
      <action>
        <cmdType>VcAdvanced.Log</cmdType>
        <params>
          <param>No-IP: no change in IP ({LastResult})</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>VC.StopMacro</cmdType>
        <params />
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else>
      <action>
        <cmdType>Scrape</cmdType>
        <params>
          <param>http://dynupdate.no-ip.com/nic/update?hostname={M:Credentials.No-IPHost}&amp;myip{LastResult}</param>
          <param>{M:Credentials.StID}</param>
          <param>{M:Credentials.StPassword}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </else>
  </if>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)Contains(B)</ifType>
    <ifParams>{LastResult}&amp;&amp;good</ifParams>
    <then>
      <action>
        <cmdType>VcAdvanced.Log</cmdType>
        <params>
          <param>No-IP:  Success, IP updated to: {LastResult} old IP: {M:Variables.CurrentIP}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>Results.Replace</cmdType>
        <params>
          <param>good </param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>Map.Set</cmdType>
        <params>
          <param>Variables</param>
          <param>CurrentIP</param>
          <param>{LastResult}</param>
          <param>True</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else>
      <action>
        <cmdType>VcAdvanced.Log</cmdType>
        <params>
          <param>No-IP:  failed: {LastResult}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </else>
  </if>
  <event>Network.UpdateNO-IP</event>
  <event>VC.Loaded</event>
</command>

50
General Discussion / User id & password in url
« on: January 19, 2015, 02:19:21 PM »
Ie and Chrome has dropped passing user id and password in url ...


So something like
Http://user:pass@domain.ca

Won't work anymore

Will that affect scrape, robob & other commands in VC?

51
Bug Reports / VC continue to hear in OFF mode
« on: January 04, 2015, 02:42:17 AM »
Now I am using 2.133 ... but I noticed this in many versions ...

when I put VC in off mode from the main window button (red square with mic) VC window changes color to red ... but VC continue to hear the mic ...

I am attaching a screen shot (not sure how else to report it)
it shows in the history tht I turned VC off ... yet VC heard something after ...

52
following the steps of Keith in http://voxcommando.com/forum/index.php?topic=1757.0

I am starting this thread to document my setup using Gentner Clearone XAP800, and to discuss obstacles and solutions ...

this should apply to AP400, AP800 and XAP400... these are extremely advanced matrix mixers ... at the time of this post they are flooding ebay .. you can get one from 25$ and up (I saw it for more than 1000)... I believe the reason is that in US, these are being phased out from schools or government setups to be replaced by newer models (according to one reply from ebay seller)...

if you are planning to implement a permanent open-air mic at some point, I highly recommend that you grab one or 2 (depending on how many input signals you need - more on that later) .. boundary mics can be found on ebay for reasonable prices as well (I managed a deal of 4 for 60$ including shipping)... the irony, the various cables I am buying to pass through my apartment are more expensive than the device and the mics   :o :o

the reason I decided to go for these ...
1. those mics are crazy sensitive ... they can hear me whispering from about 10 feet (3m)
2. multiple active mics (up to 8 in XAP 800) + 4 inputs line level on one device. Devices can be chained to get even more !!!
3. adaptive noise cancellation, which is doing great in my initial testing
4. echo cancellation ... make your music, tv, pc ..etc. go through the device and it can filter it out from what it hears through the mic... so VC won't react to speech coming from a speaker ...
5. with 1 or 2 devices and multiple sound cards (depending on number of rooms and stereo or mono signal) these devices can double as audio routers ... meaning VC can send music on sound card 1 to bedroom , and radio on another to kitchen, while watching Blu-ray 5.1 in the living ... or send the music to all rooms ... that applies as well to VC responses ...
status and control ports ... these can be used easily to create control panels around the house to trigger certain setups (scenes) ... those can be routed back to PC through com port
6. and a very important feature, all the features of the device can be controlled through com port by PC
7. gating ... means VC can now the command from which room (although one guy blogged that he disabled this feature, but I believe right configuration can make it work)


53
I access my VC PC a lot through RDP using my PC at work, or my desk ... and if I have something on full screen mode (like XBMC) then I see nothing... so I figured this to inform VC that I am connecting through RDP and it will shutdown or send window mode key to XBMC ...

to achieve that, a windows task inform VC that a user connected to PC (attached windows task scheduler xml file)... VC run bat file to determine the type of the session ... then take action ...

to make it happen import the attached xml as a task in windows task scheduler ..
create a bat file with one line of code: (I couldn't figure a way to use launch.capture with cmd)
@echo %sessionname%
- no need for batch file anymore command revised

save it somewhere and fix the path and the name in the VC command below ...

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.2.9-->
<command id="305" name="Windows User Connect" 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 "echo %sessionname%</param>
      <param>True</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)Contains(B)</ifType>
    <ifParams>{LastResult}&amp;&amp;RDP-Tcp</ifParams>
    <then>
      <action>
        <cmdType>OSD.ShowText</cmdType>
        <params>
          <param>Remote Desktop</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>VcAdvanced.Log</cmdType>
        <params>
          <param>put commands to switch XBMC to windowed</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>Window.Focus</cmdType>
        <params>
          <param>xbmc</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>SendKeys</cmdType>
        <params>
          <param>\</param>
        </params>
        <cmdRepeat>0</cmdRepeat>
      </action>
    </then>
    <else>
      <action>
        <cmdType>OSD.ShowText</cmdType>
        <params>
          <param>Local Consol</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>VcAdvanced.Log</cmdType>
        <params>
          <param>put commands to switch XBMC to full screen</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </else>
  </if>
  <event>Windows.UserConnected</event>
</command>

54
Feature Requests / Instapush
« on: December 16, 2014, 07:55:02 PM »
I am looking into integrating instapush (https://instapush.im/) with VC ... it works android and iOS ... python wrappers are available ... however making it a plug-in will give it ease of use and make it useable by all users without the need to dive in python ....

55
General Discussion / Disable group vs unload group
« on: November 06, 2014, 02:57:29 PM »
I thought to discuss this idea here as opposed to put as a request .... As I am not sure if it is doable
Is it possible to create group unload and load commands? Or make it an option on how disable work.

As I know for a while now VC has an amazing feature of loading groups separately, which makes small ones available in no time rather than waiting for all to load...

As well I have noticed that disabled groups commands are still recognised but not executed. Which, in some cases, cause VC to get confused (and it is not easy to create very distinct commands when the command tree grow complex and long) ... I had this happening more frequently since I added Netflix commands and XBMC

So I was thinking that if one can load those groups only when needed ... Instead of just enabling them... I understand that it will take longer to make the commands available (though in most cases I think it is neglectible)  ... But we gain less confusion on VC side / mor reliability  ... And as a bonus much neater log and history window

56
Haddood's Gems / Fun stuff + Ungroupable !!!
« on: November 05, 2014, 02:25:49 PM »
this thread those fun commands that nobody knows where to track them !!!!

57
XML Exchange / Bing Image Downloader
« on: November 02, 2014, 07:41:06 AM »
here is a command that will download Bing Image of the day .... one practical use, I put them in folder then set XBMC amber skin to various background, command can be extended using http://www.sg20.com/wallpaperchanger/ to change the desktop background

trigger it once and it will keep triggering itself at 5:00am everyday ...
You need cURL installed ... make sure to fix the path of the cURL and where you want to save the images

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.0.7-->
<command id="302" name="Bing Image of the day" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Scrape.XML</cmdType>
    <params>
      <param>http://www.bing.com/HPImageArchive.aspx?format=xml&amp;idx=0&amp;n=1&amp;mkt=en-US</param>
      <param>urlBase</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.SetVar</cmdType>
    <params>
      <param>BingURL</param>
      <param>http://www.bing.com{Match.1}_1920x1080.jpg</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegEx</cmdType>
    <params>
      <param>.*/(.*)</param>
      <param />
      <param>{var.BingURL}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Launch.Capture</cmdType>
    <params>
      <param>C:\Extensions\cURL\curl.exe</param>
      <param>-o "C:\Wallpaper\Bing\{Match.1}" {var.BingURL}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VC.SetEventTimer</cmdType>
    <params>
      <param>5:00 AM</param>
      <param>Bing.ImageSave</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <event>Bing.ImageSave</event>
</command>

58
General Discussion / Mic Setup type
« on: October 28, 2014, 01:09:17 AM »
Just curious to see the percentage of users using open air mic set-up

59
XML Exchange / Adaptive (self-adjusting) Prefix Confidence
« on: October 26, 2014, 09:46:33 AM »
this requires version 2.107 and up

here is a command that self-adjust the confidence level required for the prefix .... I am not sure if the prefix start event triggers if prefix confidence is low... if not, the value will go up only ....
restarting VC will set it back to the level set in options.

This is an experimental command and might prove to be useful for open air mic setup. The first 2 if commands set a maximum and minimum (default 90 & 50)

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.0.7-->
<command id="586" name="Adaptive Prefix Confidence" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="{1} the recognised Prefix&#xD;&#xA;{2} Status&#xD;&#xA;{3} prefix confidence level">
  <action>
    <cmdType>VcAdvanced.Log</cmdType>
    <params>
      <param>--------------------------------------- Start: Adaptive Prefix Confidence --------------------------------------- </param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)&lt;(B)</ifType>
    <ifParams>90.0&amp;&amp;{3}</ifParams>
    <then>
      <action>
        <cmdType>VcAdvanced.Log</cmdType>
        <params>
          <param>--------------------------------------- End: Adaptive Prefix Confidence Posetive --------------------------------------- </param>
          <param>Confidence too high...</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>VC.StopMacro</cmdType>
        <params />
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)&lt;(B)</ifType>
    <ifParams>{3}&amp;&amp;50</ifParams>
    <then>
      <action>
        <cmdType>VcAdvanced.Log</cmdType>
        <params>
          <param>--------------------------------------- End: Adaptive Prefix Confidence Posetive --------------------------------------- </param>
          <param>Confidence too low...</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>VC.StopMacro</cmdType>
        <params />
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <action>
    <cmdType>VcAdvanced.GetOption</cmdType>
    <params>
      <param>intRequiredPrefixConfidence</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>PY.ExecString</cmdType>
    <params>
      <param>result=round(({3}+{LastResult})/2)</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VcAdvanced.SetOption</cmdType>
    <params>
      <param>intRequiredPrefixConfidence</param>
      <param>{LastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VcAdvanced.Log</cmdType>
    <params>
      <param>--------------------------------------- End: Adaptive Prefix Confidence Posetive --------------------------------------- </param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <event>VC.Prefix.Start</event>
</command>

60
RegEx (Regular Expressions) / Need HelppppppppppP!!!!!
« on: October 26, 2014, 09:36:50 AM »
ok this is driving me  :bonk :bonk

I am working on improved "what can I say" command,  which scrape the info from voicecommand.xml directly instead of relying on the help html.

after isolating the group code ... I am applying regex to isolate the commands within the group (after this I am supposed to extract the phrases)

I am applying regex.single using
<command\sid=.*?>(.*?)</command>
on the attached xml ... I get back 18 matches instead of 5

what is the missing part ????


Pages: 1 2 3 [4] 5 6 ... 9