TTS plugin is broken


#1

I’m using TTS plugin for my app. After installation it worked just fine, but after some moment plugin suddenly stopped working. Any attempts to catch exception didn’t give any results.
Only reasonable logs that I found were:

W: THREAD WARNING: exec() call to TTS.speak blocked the main thread for 36ms. Plugin should use CordovaInterface.getThreadPool()
W: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:836 android.content.ContextWrapper.sendBroadcast:410 android.speech.tts.TextToSpeechService$SynthThread.broadcastTtsQueueProcessingCompleted:460 android.speech.tts.TextToSpeechService$SynthThread.queueIdle:452 android.os.MessageQueue.next:392 
W: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:836 android.content.ContextWrapper.sendBroadcast:410 com.samsung.SMT.b.i.a:-1 com.samsung.SMT.SamsungTTSService.b:-1 com.samsung.SMT.SamsungTTSService.b:-1 
W: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:836 android.content.ContextWrapper.sendBroadcast:410 com.samsung.SMT.b.i.a:-1 com.samsung.SMT.SamsungTTSService.onSynthesizeText:-1 android.speech.tts.TextToSpeechService$SynthesisSpeechItemV1.playImpl:971 
W: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:836 android.content.ContextWrapper.sendBroadcast:410 android.speech.tts.TextToSpeechService$SynthThread.broadcastTtsQueueProcessingCompleted:460 android.speech.tts.TextToSpeechService$SynthThread.queueIdle:452 android.os.MessageQueue.next:392

Any ideas what cause this or any solutions for this issue?
Just in case:
Cordova CLI: 7.0.0
Ionic Framework Version: 2.1.0
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.1.3
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v7.4.0
Xcode version: Not installed

@ionic-native/text-to-speech”: “^3.10.3”


#2

Updating everything to current versions would probably help.


#3

Thank you for your reply. I’ve already updated ionic-native/core before installation of this plugin. But the fact that it worked and then somehow stopped bothers me.


#4

Yeah, I get that - but really for each of these a newer version is available:

So maybe whatever is the problem could be fixed by using a newer Cordova, Ionic Framework, App Scripts…