speak.js icon indicating copy to clipboard operation
speak.js copied to clipboard

Node.js version?

Open Marak opened this issue 14 years ago • 6 comments

Would it be possible / make any sense to have a node.js version of this module?

Currently we use http://github.com/marak/say.js , which is nothing more then a child process wrapper for whatever native TTS binary exists on the machine.

Would be nice to be able to do this all in pure JS.

Marak avatar Aug 18 '11 00:08 Marak

It's definitely possible. Whether that makes sense though is up to you ;)

If you have any trouble getting this to work in node.js let me know.

kripken avatar Aug 20 '11 00:08 kripken

I'm working on it, but release will have to wait for Node 0.6.0 as typed arrays are only available from Node 0.5.5. (unstable)

christopherdebeer avatar Sep 15 '11 09:09 christopherdebeer

@Marak: my fork will work in Node, its on npm here: http://search.npmjs.org/#/node-speak

christopherdebeer avatar Nov 24 '11 10:11 christopherdebeer

christopherdebeer: any chance for a pull request? :)

kripken avatar Nov 25 '11 07:11 kripken

Currently the node version, wont work in the browser, but its rather trivial to change it so that it will, once ive done that, i'll submit a pull request. :)

Also seeing as I've made my changes in the compiled version, it not ideal. Perhaps I'll make my changes in the pre.js & post.js and submit that as a pull request. So as to be sure they merge easily with yours, then you can compile it and i'll pull the compiled version from you. (perhaps)

christopherdebeer avatar Nov 25 '11 09:11 christopherdebeer

That sounds good.

kripken avatar Nov 26 '11 20:11 kripken