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:[email protected]] 
Sent: Thursday, July 15, 2010 5:37 PM
To: Rasmussen, Lloyd; [email protected]
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).

Reply via email to