| |||||||||
Your application install program should probably also install one or more speech engines. Microsoft has nicely provided a number of speech engines that we can use in our applications license fee free. How you create an install program for you application is up to you, but at a minimum, your installer should install SAPI. To do this just include Spchapi.exe in your install routine. Spchapi.exe is provided by Microsoft in the SAPI SDK and is also available for download from here. When run, spchapi.exe installs the SAPI binaries (in \Windows\Speech) and makes the correct registry entries. When you install on of the SAPI SDK distributions you will find spchapi.exe in the "\Program Files\Microsoft Speech SDK\REDIST\API" directory.
This Talking Clock sample project includes code for a custom InstallShield Express DLL that demonstrates how to install SAPI and speech engines. Of course this code checks for the existence of SAPI and speech engines before installing them.
![]()
The stand alone, downloadable, speech engines do no include the SAPI binaries. You must also run Spchapi.exe which installs the SAPI parts.
To get a copy of Spchapi.exe you must download either the "SDK Suite" or the SDK. After installation you can find Spchapi.exe in \Program Files\Microsoft Speech SDK\REDIST\API (or something close).
![]()
Windows 2000 comes with newer versions of the SAPI 4 OS extensions and MS TTS engine than what’s available on the MS IIS website however, Windows 2000 has no a built in Speech Recognition engine.
This information is particularly important to those writing application installers and those setting up speech on a system. If the target system is Windows 2000 do not install spchapi.exe. Or if spchapi.exe is run then the questions regarding the replacement of existent files should be answered so the existing files are left alone.
This Talking Clock sample project includes code for a custom Install Shield Express DLL that demonstrates how to install SAPI and speech engines. This code checks for the existence of SAPI and speech engines before installing them so it will handle the case of a Windows 2000 target system.
![]()