cordova-plugin-tts icon indicating copy to clipboard operation
cordova-plugin-tts copied to clipboard

Uncaught ReferenceError: TTS is not defined

Open tubbadu opened this issue 3 years ago • 0 comments

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

tubbadu avatar Mar 31 '22 22:03 tubbadu