Has anyone had any luck with this plugin. Maybe I’m just implementing it wrong. It keeps giving me an error that ‘speak’ is undefined.
Here’s what I have.
document.addEventListener(‘deviceready’, function() {
window.TTS.speak({
text: word,
locale: ‘en-US’,
rate: 1
}, function() {
console.log(‘Text succesfully spoken’);
}, function(reason) {
console.log(reason);
});
}, false);