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

Text to Speech - Snippet for each platform

Highlighted
Aquamarine

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

Tags (3)
2 REPLIES 2

Re: Text to Speech - Snippet for each platform

@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

Re: Text to Speech - Snippet for each platform

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?