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:

 BT

Subject:

 Speech Question

Date:

 Thu, Jul 15, 2010 8:20:55 pm
Chip,

I figured that just mentioning the way to do it may help.

The event class and enumerations will give you tts engine, stream start
and stream end along with bookmarks. Now the equivalent Windoweye version
would probably be there and the object to create to fetch them. That would
be the solution for your problem.
The hoops you go through to get the methods working is the only problem,
but I think it should would work for you on a simple basis. Something like
ispevent or the WE version of it should work.

The loop would only wait for the event you are looking for to trigger
without effecting speech.


I'm not using SAPI Bruce, so can't use these functions directly, although
windoweyes does have equivalents to some of these.

Chip


-----Original Message-----
From: BT [mailto:b2me@fltg.net]
Sent: Thursday, July 15, 2010 7:45 PM
To: gw-scripting@gwmicro.com
Subject: Speech Question


Chip,

Yes, I think you use a get status function/method for sapi 5 and such. I
will get the format later if you don't already have it. End of sentence
status is what you want for your loop... I do not think there would be any
choppy voice by doing this for the wait is only for looking at the event and
nothing to do with the speech.

Bruce

thanks, I'll think about this. I'd have to make it work for those with
braille displays, and I don't want to make it come out choppy, or utilize to
many resources or slow down the system with some polling loop (although
choppy is really the only worry it looks like to me with this approach).
still, it's interesting, thanks.

Chip


-----Original Message-----
From: BT [mailto:b2me@fltg.net]
Sent: Thursday, July 15, 2010 6:25 PM
To: gw-scripting@gwmicro.com
Subject: Speech Question


Hi Chip,
Maybe something like this:
Using milliseconds inside the ()

Public Sub Talk(txt)
tts4.Speak txt
waitFlag = tts4.Speaking
Do While waitFlag
WScript.Sleep 10
waitFlag = tts4.Speaking
Loop
End Sub