82
Views
9
Comments
Solved
[TTS Plugin] Not coming out of the speak
Question
tts-plugin
Mobile icon
Forge asset by Fábio Fantato

I am currently using the TTS plugin. It successfully finish the speaking of the text but never comes out of it i.e. any code after the speak is not getting called.

Speak log.PNG
UserImage.jpg
Prasad Rao
Solution

Found the root cause in javascript. Need to change the javascript in speak action


TTS.speak($parameters.Text, successCallback, errorCallback );

to 

TTS.speak($parameters.Text).then(successCallback, errorCallback);

2017-04-03 06-54-35
Joost Rutten

What is the output parameter of 'Succes'? What if you debug?

UserImage.jpg
Prasad Rao

Joost Rutten wrote:

What is the output parameter of 'Succes'? What if you debug?

I am still unable to debug it, hence using the log message to see if the flow proceed further and I can't see the log message which I put after the speak node.


2017-04-03 06-54-35
Joost Rutten

What input parameters do you use?

UserImage.jpg
Prasad Rao

Hard coded "Test 123"

2017-04-03 06-54-35
Joost Rutten

And for the parameters 'Locale' and 'Rate'?

UserImage.jpg
Prasad Rao

Those parameters are not there for speak, those are specific to speakwithspeed. I am using speak in my app.

2017-04-03 06-54-35
Joost Rutten

My bad... Maybe give the action a try, can tell you from my experience that one works!

UserImage.jpg
Prasad Rao
Solution

Found the root cause in javascript. Need to change the javascript in speak action


TTS.speak($parameters.Text, successCallback, errorCallback );

to 

TTS.speak($parameters.Text).then(successCallback, errorCallback);

2026-03-09 12-26-51
Fábio Fantato
 
MVP

Hi Prasad,

I saw your message only today.  I will fix it on the component and upload a new version with the fix.


Thanks to share your fix with us :)


Best regards

Fabio


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.