kripken / speak.js

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

Nodejs compatability but need compilation #11

Closed christopherdebeer closed 11 years ago

christopherdebeer commented 12 years ago

@kripken

The nodejs compatibility changes have been made to pre.js & post.js but need to recompiled so as to be in speak.js / speak.full.js.

Also, could i request that we create a examples folder to contain all the demos, so I can add demos for nodejs, without cluttering the root.

Once you've merged these changes, i'll grab the compiled version from you and resubmit to npm etc etc

chris

kripken commented 12 years ago

Sorry for not getting to this earlier! I knew I had to compile it, but couldn't compile because I was waiting on some emscripten updates. And in the end that turned out to be harder than I thought because some stuff broke with the updates, and I was forced to modify some of the files relevant to this pull request (which now prevents it from being automatically mergeable).

I have now updated speak.js and made a new build. As part of that I added web worker support, which also makes it easier to hook into the speech generation process. So perhaps the callbacks should now be done in a different way, what do you think?