cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Voice Commands Don't Trigger JS functions

Kilbride
1-Newbie

Voice Commands Don't Trigger JS functions

I have a hololens project in Studio where i have a function setup in home.js called nextShell, which is at the $scope level. It changes a variable at the application level that is bound to a label each time it executes.

On the label I went to onClick and edited the js for it to say nextShell();

Preview, click the label, changes happen as I expected.

Okay great. Function works as intended. I now go into application events and create a new application event called NextShell, give it a voice alias of nextShell, voice response of Next Shell Type and, edit the js for the application event to be nextShell();, just like the onclick.

But for some reason when I say next shell I get the voice response but the JS doesn't seem to be occurring. the label doesn't change. Why is this? How do i fix it?

1 REPLY 1

Found solution. the js for the voice commands needs a viewCtrl. added in front of the function names to find the right scope.

Announcements

Top Tags