Open ozexpert opened 7 years ago
update your android sdk and use this $$(document).on('deviceready', function() {
window.TTS.speak({ text: "Hello World" locale: 'en-GB', rate: 1.3 }, function () { // Do Something after success }, function (reason) { // Handle the error case }); });
Am totally confused ..where is the audio output? Inside success function?? I want to know the result structure, so that I can extract audio from it.
Or am I missing something here?
@technotip it won't give you the audio, it will just play ;-) success callback is called when tts starts playing
Ya got it. Thanks ..
I have this problem as well; unfortunately, it's from a customer and I cannot replicate it on any of my Android devices.
The docs show
iOS 7+
Windows Phone 8
Android 4.0.3+ (API Level 15+)
My PGB config is:
<preference name="android-minSdkVersion" value="9" />
<preference name="android-targetSdkVersion" value="16" />
The SDK version is higher than the docs show. I could raise it to 21, but I'm unsure if this would even solve the issue.
Any insight?
Edit: The customer has Android 6.0.
Any update guys. I saw this happen with Samsung devices running android 6 only. Happens when I try to speak using a non available locale.
This is still happening, only on "Samsung Galaxy S5" devices running Android 6.0.1
com.wordsbaking.cordova.tts.TTS.onInit
The crash happens on launch of the app, the tts speech plugin is not even called.
error on galaxy note4