|
Couldn't you try something like using a voice to make a variable a 1 and then do a loop with a long enough timer setting to toggle that 1 back to a zero. And then another loop to fire the output:
IF(VOICE COMMAND VARIABLE = 1) THEN (OUTPUT = ON) ANTITHEN (OUTPUT=OFF)
if more than one then statement worked you could use a second antithen statement:
(VOICE COMMAND VARIABLE = 0) and set the timer for the minimum on time that you want.<<<EDIT this won't provide the timing I had originally thought, but I've been up all night, and the other idea below should work anyway.
but that doesn't work quite yet, so use a second loop to do that job..
(I'm sorry for stating "root functions" as "loops" so much, its a habit for me, I'll try to break it but just know that's what I mean if I slip up.)
IF(VOICE COMMAND VARIABLE = 1) THEN (VOICE COMMAND VARIABLE = 0)
this second root function should probably be placed prior to the first one, to ensure that there is a sufficient delay as set by your timer setting (in milli-Seconds).
Kind of cluncky, but with a little trial and error, I bet you can get that to work.
Then all you need to do is make your voice command change a variable to "1".
Last edited by h3rk; 09-16-2008 at 08:32 AM.
|