kripken/speak.js

speak.js doesnt work on chrome, safari and opera ...

Opened this issue · 3 comments

Hi,
I'm trying to using speak.js but it is not working when using chrome, safari and opera and it is working using FireFox,
Can you helop me?
the error i get using chrome is "Uncaught TypeError: Cannot set property 'onmessage' of undefined" on line "speakWorker.onmessage = function(event) {

and when Im trying to define: speakWorker = new Worker('speakWorker.js');
i get "Uncaught SecurityError: Failed to create a worker: script at 'file:///C:/Users/ortal.lagziel/Desktop/pp/speak-js-master/speakWorker.js' cannot be accessed from origin 'null'."
Thanks

I get the same thing. It appears speak.js is no longer in active development. The "active" fork shows up on github as page not found, and the demo linked here doesn't actually load any demo regarding speak.js.

I had the same problem initially. But after I ran it in a web server, it worked.

For anyone that is interested, this app is using web workers, which is what is breaking if you check the console - then check out this post:

http://stackoverflow.com/questions/14953847/web-worker-not-working

Basically if you want it to work in chrome off the local file system you need to start chrome with

chrome --allow-file-access-from-files

Otherwise you want to load the helloworld example from a webserver