Microsoft KB Archive/320207

= How to redistribute SAPI 5.1 core components =

Article ID: 320207

Article Last Modified on 3/29/2007

-

APPLIES TO


 * Microsoft Windows XP Professional
 * Microsoft Windows Millennium Edition
 * Microsoft Windows 2000 Standard Edition
 * Microsoft Windows 98 Standard Edition

-



This article was previously published under Q320207





SUMMARY
Applications that are developed based on Speech Application Programming Interface (SAPI) version 5.1 require that you install the SAPI 5.1 core component on the client computer.

You can redistribute the SAPI 5.1 core components as Microsoft Windows Installer merge modules (known as .msm files). You must include these merge modules in the program's setup. To do this, create a Microsoft Installer (.msi) file that consumes the merge modules and handles the actual installation process. The Setup.exe program runs the .msi file.

The combined size of all the SAPI 5.1 redistributable .msm files is 131.58 megabytes (MB). These files provide both speech recognition (SR) and Text-to-speech (TTS) support for English and Simplified Chinese and only speech recognition for Japanese.

This article explains the minimum file requirements to support speech applications if you do not want to redistribute all of these files. Your reasons might include:
 * The program only supports one language and is not designed to include .msm files for other languages.
 * The program supports only TTS and is not designed to include the .msm files for SR.



Where do I get the .msm files?
To download Microsoft Speech SDK 5.1, visit the following Microsoft Developer Network (MSDN) Web site:

http://www.microsoft.com/speech/download/old/sapi5.asp

You must click Redist.: All (131.58 MB) to download the file.

The download process creates three folders that contain the following .msm files:
 * The 1033 (English) folder contains .msm files for English TTS and SR.
 * The 1041 (Japanese) folder contains .msm files for Japanese SR.
 * The 2052 (Simplified Chinese) folder contains .msm files for Simplified Chinese TTS and SR.

Which .msm files do I need for TTS applications?
The following files are required for TTS applications:  English TTS support requires that the .msi file include the following files from the 1033 folder:  Sp5.msm Sp5intl.msm Sp5ttint.msm Spcommon.msm </li> Simplified Chinese TTS support requires that the .msi file include the following files from the 2052 folder:  Sp5.msm</li> Sp5intl.msm</li> Sp5TTINTr.msm</li> Spcommon.msm</li></ul> </li> If you want to provide the Mike and Mary voice (for English TTS applications) on Windows XP, you must include the Sp5ttintxp.msm file. The following file is available for download from the Microsoft Download Center:

Download the Microsoft Speech SDK 5.1 package now. For more information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to obtain Microsoft support files from online services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.</li></ul>

Which .msm files do I need for SR applications?
To support SR applications, the .msi file must include the following files from the corresponding language folder:
 * Sp5.msm
 * Sp5sr.msm
 * Sp5itn.msm
 * Sp5ccint.msm
 * Sp5Intl.msm
 * Spcommon.msm

Note The same set of .msm files are required to provide support to the Command and Control (C&C) SR. In other words, you cannot create an .msi file that provides support only to C&C SR.

How do I create an .msi file?
These steps use English TTS to create an .msi file. <ol> Start the Microsoft Visual Studio Installer, which is available for download from the following MSDN Web site:

http://msdn2.microsoft.com/en-us/vstudio/aa718352.aspx

Note You can also use third-party tools (for example, InstallShield) to author your setup.</li> In the New Project dialog box, click to expand the Visual Studio folder (if it is not already expanded), click the Visual Studio Installer Projects folder, and then click Empty Installer.</li> In the Name box, type the name of your project (for example, EmptyInstaller1 ), and then click Open.</li> In the Project Explorer pane, under the workspace EmptyInstaller1, right-click Files, click Add, and then click Merge module(s).</li> Browse and add the following files from the 1033 folder:  Sp5.msm</li> Sp5intl.msm</li> Sp5ttint.msm</li> <li>Spcommon.msm</li></ul> </li> <li>Build the project, save the project, and then exit the program.</li> <li>To install the SAPI English TTS component on the client computer, locate the Emptyinstaller1.msi file in the C:\EmptyInstaller1\Output\disk_1 folder, and then run the Emptyinstaller1.msi file on the client computer.</li></ol>

Keywords: kbdswmm2003swept kbhowtomaster kbinfo KB320207

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.