Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hi!
I saw that there is possibility to add a snippet for text2speech:
$scope.app.speech.synthesizeSpeech({'text': 'This will be spoken by device'});
Can anyone confirm that this snippet is working for all platforms? I was able to test it on HoloLens only.
I am looking for something similar for RealWear HMT, but cannot test it cause I don't have device onsite.
Studio 8.3.1 here.
Thanks,
Adam
@A_Macierzynski As per my understanding it should work however have not tried it. Let me check internally with Product team to see if we get official confirmation and will update you Adam.
-Durgesh
I really want to get TTS working on all platforms. The Web Speech API should work, and it is easy to implement. But using this code:
if ('speechSynthesis' in window) {
// Synthesis support. Make your web apps talk!
$scope.view.wdg['label-2'].text = 'TTS is Supported';
} else {
$scope.view.wdg['label-2'].text = 'TTS Not Supported';
}
window.speechSynthesis.speak(new SpeechSynthesisUtterance('Hey'));
It shows Text to Speech cannot be done in the Android app. It works on iOS which is great. It would be really great to get support on Android. Please could the Speech API be made accessible on Android in a future release?