Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: TTS is not defined #121

Open
tubbadu opened this issue Mar 31, 2022 · 0 comments
Open

Uncaught ReferenceError: TTS is not defined #121

tubbadu opened this issue Mar 31, 2022 · 0 comments

Comments

@tubbadu
Copy link

tubbadu commented Mar 31, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant