kripken / speak.js

Text-to-Speech in JavaScript using eSpeak
GNU General Public License v3.0
1.29k stars 295 forks source link

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

Open OrtalLagziel opened 10 years ago

OrtalLagziel commented 10 years ago

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

aml25 commented 10 years ago

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.

ghost commented 10 years ago

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

Gooseus commented 9 years ago

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