The GW-Scripting list is a discussion list for information regarding the development and use of Window-Eyes scripts. Any subscriber of the GW-Scripting list has the ability to post on-topic messages.
From:
Tom Kingston <tom.kingston@charter.net>Subject:
Re: Speech Interrupt?Date:
Wed, Dec 12, 2012 10:15:28 pmI don't believe so. It would require an event to monitor speech;
something like: OnSpeechComplete. And this would require synthesizers to
return True to indicate when they've stopped speaking.
I think some of them do, or at least the hardware ones used to.
And trying to create a speech time function would at best be a
calculated guess given the wild variations in actual speed relative to
the speed value depending on the synthesizer being used.
I tried this a long time ago and ended up with unpredictable delays
after speech completed because I had to leave a healthy time buffer to
make sure it worked. And that was only working with one particular
synthesizer.
Regards,
Tom
On 12/12/2012 9:31 PM, BX wrote:
> Hi!
> I know this has been asked before, butwhen the screen speech or any
> of the 3 is given, (Screen, Keyboard, and Mouse) can everything be
> stopped, script actions, until the speech is over?
> I looked every where on the Object Model and I could not find
> anything that said, "Wait Until Done Speaking."
> There was one wait command but that was for key action, not speech.
> What I need is a way to say something before any other script
> action is done. The sleep takes too much math to be useable...
> Bruce
something like: OnSpeechComplete. And this would require synthesizers to
return True to indicate when they've stopped speaking.
I think some of them do, or at least the hardware ones used to.
And trying to create a speech time function would at best be a
calculated guess given the wild variations in actual speed relative to
the speed value depending on the synthesizer being used.
I tried this a long time ago and ended up with unpredictable delays
after speech completed because I had to leave a healthy time buffer to
make sure it worked. And that was only working with one particular
synthesizer.
Regards,
Tom
On 12/12/2012 9:31 PM, BX wrote:
> Hi!
> I know this has been asked before, butwhen the screen speech or any
> of the 3 is given, (Screen, Keyboard, and Mouse) can everything be
> stopped, script actions, until the speech is over?
> I looked every where on the Object Model and I could not find
> anything that said, "Wait Until Done Speaking."
> There was one wait command but that was for key action, not speech.
> What I need is a way to say something before any other script
> action is done. The sleep takes too much math to be useable...
> Bruce




