cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Text to Speech - Snippet for each platform

A_Macierzynski
15-Moonstone

Text to Speech - Snippet for each platform

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

2 REPLIES 2

@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

randerson-3
14-Alexandrite
(To:dupatel)

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?

Announcements

Top Tags