After a Little Reading and some experimentation I figured out how to make a random response to the VR ignore command.
The Script Looks Like This:
sub main()
hs.speak hs.plugin("ROC-Rnd").random("VR Off")
hs.ListenForCommands FALSE
' listen only for attention phrase
end sub
I Made an event called VR Off and Called The above script in the propertys dialouge.
I made The voice command "Sleep". Mike only
I made a catagory in the Randomizer setup called "VR Off" And filled it with about 30 responses to improve the odds of a different response each time.
OK now the Ignore Voice Command line in VR options cannot match the Voice command in the event VR Off or homeseer gets confused (Won't quit listening or won't speak, randomly.), So I made mine "Crash" With no response in the Ignore Acknowledge Phrase box, although I think you could put one if you want yet another option.
And I'm off. Woo Hoo
This does add about a quarter to a third of a second to the time it takes to speak the response phrase but the variety is worth it to me.
So Here Ya Go Everyone Enjoy.
The Script Looks Like This:
sub main()
hs.speak hs.plugin("ROC-Rnd").random("VR Off")
hs.ListenForCommands FALSE
' listen only for attention phrase
end sub
I Made an event called VR Off and Called The above script in the propertys dialouge.
I made The voice command "Sleep". Mike only
I made a catagory in the Randomizer setup called "VR Off" And filled it with about 30 responses to improve the odds of a different response each time.
OK now the Ignore Voice Command line in VR options cannot match the Voice command in the event VR Off or homeseer gets confused (Won't quit listening or won't speak, randomly.), So I made mine "Crash" With no response in the Ignore Acknowledge Phrase box, although I think you could put one if you want yet another option.
And I'm off. Woo Hoo
This does add about a quarter to a third of a second to the time it takes to speak the response phrase but the variety is worth it to me.
So Here Ya Go Everyone Enjoy.
Comment