Callbacks are never called on speak method.
Closed this issue · 8 comments
jrhames commented
The tts.speak method works, but it's callbacks are never called (either win or fail).
Example:
window.plugins.tts.speak("Text", function() {
console.log('speak finish playing.');
}, function() {
console.log('error occurred.');
});
macdonst commented
Yeah, for some odd reason the onUtteranceCompleted method is never being fired.
jrhames commented
Any ideas on how to solve this one?
macdonst commented
I've had no time to look at it. Soon I hope.
macdonst commented
Why did you close it?
jrhames commented
My bad. I did it by mistake.
jrhames commented
So, I tried yesterday replacing the UtteranceCompleteListener by the UtteranceProgressListener without success. I'm still trying to figure out why this is happening. If there's something else you think it's worth a try, let me know. I'm willing to help.
macdonst commented
I'm an idiot. I forgot to set the utterance ID. Fixed now.
jrhames commented
Well, it's fixed. No harm done. Thanks for you support.