cordova-plugin-tts
cordova-plugin-tts copied to clipboard
Uncaught ReferenceError: TTS is not defined
If I copy this code
TTS.speak({
text: 'Welcome to the app!',
locale: 'en-GB',
rate: 0.75
}, function () {
alert('success');
}, function (reason) {
alert(reason);
});
into my onClick() function, I get this error: Uncaught ReferenceError: TTS is not defined
I debug my application with my phone connected with usb and running cordova run android, and then using chromium's chrome://inspect to read the console errors
is this my fault? do I need to import if before using?
Edit: my phone is running Android 10