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:

 release of script for Windows Speech Recognition

Date:

 Fri, Jul 16, 2010 6:23:10 pm
Hi Lloyd,

Yes, not surprised and maybe it was disabled in the IE but it does run
in VBS or VB with no problem, in fact use the class method to run either
one, in fact create an object for both and control either by just changing
one variable to indicate which one you want to use. That flag is checked
when doing each method and changes or says what is chosen. All a part of the
single class I made.
Just fails when attempting to test inside an HTML file. Only Sapi 4 flag
and not the Sapi 5. The Sapi 4 error is: No object is created for Sapi 4
when running the HTML page under IE.
I think that is also true under Java Script and may be one of those
forced choices, you just can not run them there any more as you said.

Also: you stated a memory error, but I think there is a new post out on
Sapi 5 as well. Viruses are exploiting the same issue for all Sapi products.
Something about that error when it is posted a virus gets the paths and it
enters in at that point.

Bruce



----- Original Message -----
From: "Rasmussen, Lloyd"
To:
Sent: Friday, July 16, 2010 8:45 AM
Subject: RE: release of script for Windows Speech Recognition


In SAPI 5, you are expected to control pitch contour and other prosodic
features using markup, so the synthesizers are set to a fairly flat
intonation. Under SAPI 4, there were no standards for applying markup to
the TTS input stream.

SAPI 4 hasn't really been supported by Microsoft since about 2001. In June
of 2006 or 2007 they released a patch which disabled SAPI 4 when driven by
JavaScript. They said that there was a possible buffer over-run problem in
SAPI 4, and they weren't going to try to fix it. If anyone wants the
reference knowledge base article, I'll look through my old e-mail. This
patch disabled TTS on the JavaScript player we were using to perform Q A on
our digital talking books at that time.

So I'm not sure what success you will have in driving SAPI 4 from various
languages, although I'm certain that it can be done.

Lloyd Rasmussen, Senior Project Engineer
National Library Service for the Blind and Physically Handicapped
Library of Congress 202-707-0535
http://www.loc.gov/nls
The preceding opinions are my own and do not necessarily reflect those of
the Library of Congress, NLS.

-----Original Message-----
From: BT [mailto:b2me@fltg.net]
Sent: Thursday, July 15, 2010 5:37 PM
To: Rasmussen, Lloyd; gw-scripting@gwmicro.com
Subject: release of script for Windows Speech Recognition


Hi Everyone,

On a related topic and my learning how to use VB I ran into an
interesting problem which may relate to registering but have not found any
cure when searching the web.

I made up a VBS script using a class for the Sapi 5 voices which also
included Sapi 4 methods. But when creating the object...creatobject(
"activevoice.activevoice") it says the object was not created, can't create
object error!
All web examples said to use the regsvr32 xvoice.dll to register the
Sapi 4 but it failed and said it was registered, but did not fix the
problem.

This error only comes when using IE and calling a function on an HTML
page. I am not on a server, just calling a .html file from a folder on my
computer. If I just use the vbs script and not IE it works with no problems.

So, I have tried every method I can find but it still will not create
the object inside my class method, but does create the Sapi 5 sapi.sp
object.

Any help will be appreciated. The only thing I thought but have not done
is go and get the ProgID from the registry instead.

Please give me the way to do this. I am not using .net formats yet, just
a simple VBS script.

Bruce A. Babcock

Sent: Monday, June 21, 2010 7:52 PM
Subject: release of script for Windows Speech Recognition


Hi all,

I have just released a script for the free speech recognition which is built
into Windows Vista and Windows 7. This capability allows you to both
dictate text into applications, and to control them, select menu choices,
click buttons, switch windows, and otherwise operate Windows completely
hands free. There is also an optional component, which you usually have to
download from the MS site, called WSR macros, which allows you to define
your own verbal commands and their actions (this is included in my WSR
script).