Work instruction Speech and Step Number to be adjusted
Hello,
I am using the below script to hear work instruction( on IoS Device ) created in Illustrate as well as show it up on a 3d label.
var labelId = "3DLabel-1";
$scope.$on('newStep', function(evt, arg)
{
$scope.setWidgetProp( labelId, "text", arg);
var msg = new SpeechSynthesisUtterance(arg)
window.speechSynthesis.speak(msg);
});
But I am facing two challenges here:
1. Even before the 3DLabel is made visible, the the first step of the work instruction( Illustrate Sequence Name ) is said out loud as soon as the experience is loaded, which is not needed, even though the rest of the sequence comes up only after I click the button.
2. Also it pronounces the steps numbers as well (eg., 1/11 Step1, 2/11 Step 2 .,.) I would like to avoid it saying 1/11 or 2/11 step numbers.
Any suggestions?
Thanks,
Avinash

