Stop the Speech
Hello,
I am using the below code to convert text to speech for my AR experience.
$scope.speak = function(){
var spokenText = $scope.view.wdg["label-1"].text;
var msg = new SpeechSynthesisUtterance(spokenText);
window.speechSynthesis.speak(msg);
}
Help I need: I need to be able to stop the speech in middle(in case the speech/text is too long) and move to the next step.
Any thoughts on how this can be achieved?
Avinash

