www.homeseer.com    
 

Go Back   HomeSeer Message Board > Gaming Related Plug-ins > Gaming Related Discussion > Kinect (3P)

Kinect (3P) Discussions related to the Kinect plugin for HS3.

Reply
 
Thread Tools Display Modes
  #1  
Old March 8th, 2016, 03:25 AM
sharrisct25 sharrisct25 is offline
Seer Plus
 
Join Date: Apr 2012
Location: New York
Posts: 95
Passing everything to a script

So I am looking at this plug in now and I really like it. The Kinect is a cheap way to get a solid mic. Too bad it can not be run easily in different rooms without a PC.

Anyway my plan is to use a script to processes the VR using a database to match phrases, learn new ones etc. So I want to pretty much have the plug-in pick up the recognition phrase and then trigger a event passing all of the phrase as a variable. I know you have the different options like KinectVar0, KinectVar1 etc. Is there a variable with the whole string unparsed?
Reply With Quote
  #2  
Old March 8th, 2016, 09:42 AM
spud's Avatar
spud spud is offline
Moderator
 
Join Date: Jan 2012
Location: Canada
Posts: 4,406
yes there is a global variable called "KinectLastVoiceCommand" which is set to the whole command string every time a command is recognized.

that being said, I'm not sure what you mean by "learn new ones", but note that the Kinect cannot recognize a phrase that is not part of its grammar.
Reply With Quote
  #3  
Old March 10th, 2016, 04:21 AM
sharrisct25 sharrisct25 is offline
Seer Plus
 
Join Date: Apr 2012
Location: New York
Posts: 95
Thank you spud

That is very helpful. The learning I am referring too is that I will be taking commands that do not match to the database and then logging them for review so that I can either map them to an existing response or create new ones.

That said I am running into a problem with using the variable. I could not figure out a syntax to pass it to the script as a parameter from inside the event itself. So I tried to pull it in the script using hs.GetVar but I am only getting the first word in the string. Is this some sort of object or array instead of a string?

Any help would be appreciated.
Reply With Quote
  #4  
Old March 10th, 2016, 09:15 AM
spud's Avatar
spud spud is offline
Moderator
 
Join Date: Jan 2012
Location: Canada
Posts: 4,406
again I'm not sure I understand what you want to do, but I guess it's not possible because the Kinect can only recognize predefined phrases that are set as "A phrase was recognized" triggers or device commands, so it can't really "learn" anything...

I just tested the KinectLastVoiceCommand global var, and it works for me, it is set to the phrase recognized. For debugging you can see the value of any global variable from the "Tools > Global Variables, Timers and Counters" menu
Reply With Quote
  #5  
Old March 10th, 2016, 02:47 PM
sharrisct25 sharrisct25 is offline
Seer Plus
 
Join Date: Apr 2012
Location: New York
Posts: 95
Sorry I did not understand

I missed the point. So I can not just let the kinect recognize any phrase use a event with a wildcard only and then push the full text to a script for processing.

I apologize for the confusion. I thought that the global var had what the kinect heard so I could just do all the processing in a script.

Thank you again.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing a parameter to a script donstephens HS3Touch General Discusion 10 August 2nd, 2014 05:03 PM
Passing a para to a script donstephens HS3/PRO Beta Releases 8 November 8th, 2013 01:59 PM
Passing variable to script richardo Designer 4 November 21st, 2010 04:45 PM
passing veriables to a script ?? collegeboyslive HS2 / HSPRO 0 October 1st, 2007 03:55 PM
passing parameters from one script to another JeffCharger Script & Plug-In Development 2 August 7th, 2002 08:22 PM


All times are GMT -4. The time now is 12:17 AM.


Copyright HomeSeer Technologies, LLC