Lloyd,
Thanks for the quick response!
Delaying invocation of the return callback until the speech is complete would work fine, I think. At the moment the callback is called immediately, which isn't very useful since you already know when speech starts (but not when it is complete).
Methods to stop speech: Your suggestion makes sense: cancel, pause, resume would cover it all.
I see your point about a webpage altering systems setting. Couldn't you change these setting without changing the system prefs.? Or change them, and then change them back after speech has completed? If this isn't possible, I guess could live without the ability to change voice, volume etc.
Thanks,
Torbjörn
Thanks for posting!
Let's see. Some way of JS understanding that speech is complete: how about we delay invocation of the return callback until the speech is complete?
A method to stop speech: cancelation, pause, or both?
Both good ideas to round out the API.
In terms of voice/volume/speed, am a bit on the fence. Currently we defer to system settings. I don't know that I'd personally be comfortable if a webpage could override my volume setting, or if I've customized the system voice, if a webpage could alter that. What do you think?
best,
lloyd