Article - CS327306

The call window.speechSynthesis.speak() works only in Preivew and on IOS device but not on Android device

Modified: 19-May-2022   


Applies To

  • Vuforia Studio 9.0.0 to 9.2.2

Description

  • The call window.speechSynthesis.speak() works only in Preivew and on IOS device but not on Android device?
  • The following code for output of  spokentext( converting step instructions to speech ) work fine in Preview mode and on IOS devices:

$scope.speak = function(){
var spokenText = $scope.view.wdg["label-1"].text;
var msg = new SpeechSynthesisUtterance(spokenText);
window.speechSynthesis.speak(msg);}

  • The code above works only on IOS, and does not work on Android.
  • What code should be used for Android to use speechSynthesis 
  • How to cancel speechSynthesis in iOS and Android devices


 

This is a printer-friendly version of Article 327306 and may be out of date. For the latest version click CS327306