cfry / dde

Dexter Development Environment
Other
44 stars 25 forks source link

speek in out.js provides different parameters to callback depending on platform #56

Closed JamesNewton closed 4 years ago

JamesNewton commented 4 years ago

On the Job Engine, the callback is called by "exec" and has error, stdout, and stderror paramters, on the PC it's called by the built in speech synth, and provides an "event" object.

Combining those seems impossible. You suggested providing two different callbacks.

cfry commented 4 years ago

I've extended speak to take a 2nd arg "node_callback". When running on the job engine, it will use the node_callback instead of the "callback" callback. I've documented ref man speak to tell about this new argument. It takes different args than the dde "callback".