macdonst/TTS

Callbacks are never called on speak method.

Closed this issue · 8 comments

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.');
});

Yeah, for some odd reason the onUtteranceCompleted method is never being fired.

Any ideas on how to solve this one?

I've had no time to look at it. Soon I hope.

Why did you close it?

My bad. I did it by mistake.

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.

I'm an idiot. I forgot to set the utterance ID. Fixed now.

Well, it's fixed. No harm done. Thanks for you support.