Skip to content
New issue

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

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

Already on GitHub? # to your account

Running Initial Demo Error – window is not defined #1

Open
benjamingordon27 opened this issue Sep 13, 2018 · 1 comment
Open

Running Initial Demo Error – window is not defined #1

benjamingordon27 opened this issue Sep 13, 2018 · 1 comment

Comments

@benjamingordon27
Copy link

var getSynth = function () { return window !== undefined ? window.speechSynthesis : {}; };

It looks as if it's an issue with default speaker. Attached is a picture of the error. I was wondering if you think you know what that might mean. It seems as if it has to do with a microphone issue.

Thank you!
referenceerror

@eric-fulfil
Copy link

Apologies for never noticing this till now. "window" is a global that exists in every browser runtime, but it's called "global" in Node.js. I should change this to check for globalThis.speechSynthesis instead as described here: https://javascript.info/global-object . If only globalThis existed when I wrote this! I can add this if you need it but also check out "Front End Installation" in the README to guarantee that "window" resolves.

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

No branches or pull requests

2 participants