[jawsscripts] Re: Confused with SpeechInUse function

  • From: "James Panes" <jimpanes@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 9 Apr 2009 17:55:34 -0400

Hi Kamil,

Yes, we have confirmed this with several experiments that span JAWS 7 
through 10. The SpeechInUse function only returns false if the synthisizer 
is turned off. Setting synthisizer to none or using SpeechOFF will cause 
this result.

If anyone out there knows of a function that will actually let us know if 
the synthesizer is speaking, we would really like to know about it.

Regards,
James

jimpanes@xxxxxxxxx
jimpanes@xxxxxxxxxxxx
"Everything is easy when you know how."

----- Original Message ----- 
From: "Kamil" <kamilimak@xxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, April 07, 2009 6:25 AM
Subject: [jawsscripts] Confused with SpeechInUse function


Hi All,

I'm confused with the way SpeechInUse () behaves or rather misbehaves.
What I experience is that, it acts like the inverted version of IsSpeechOff
() function.
I expect it to return FALSE, when the synthisizer is silent, regardless of
being ON or OFF.
I tried the following piece of code, and it only gets out of the loop, if I
press a key.
Could you verify this observation please.

Many thanks in advance,
Kamil

Script SayAndWait ()
    SayString ("I wish, I could be wrong sometimes.")
    While SpeechInUse () && Not IsKeyWaiting ()
        Pause ()
    EndWhile
    SayString ("Finished")
EndScript

__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: