Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
How do I trigger a function with the voice command? I have added an external application which recognice my voice, but the function I have added in the box below dont seem to be triggered? What should I do next here?
thank you.
Solved! Go to Solution.
There's a trick to this: to reference your function use "viewCtrl.myFunction()" (where "myFunction" is the name of your function) when triggering it from a voice command in a Hololens project.
If it still doesn't work, then try using the debugging tools in the Preview window to see if any errors are being generated when you click the button to simulate saying the target phrase.
There's a trick to this: to reference your function use "viewCtrl.myFunction()" (where "myFunction" is the name of your function) when triggering it from a voice command in a Hololens project.
If it still doesn't work, then try using the debugging tools in the Preview window to see if any errors are being generated when you click the button to simulate saying the target phrase.
Hello ClayHelberg,
I have added "viewCtrl.myFunction()" , where myFunction is my separate 'xyz' function.
When I execute the "Play" command, Creo illustrate animation is playing and one image is getting true\visible and When I execute "Back" command for Rewinding same step, the image is not showing but Animation is playing. However It is working fine in Preview but not on Hololens2.
Is there any workaround to it? As its working correctly in preview, ideally it should work on the device as well.
Looking forward for some guidance.
It's hard to say what might be happening here without seeing your code. But if there is a discrepancy between what you see in preview and what you see on the device, that is probably an issue that you should report to PTC. They may be able to tell you why you are seeing a difference, and how to fix it.