How to redistribute SAPI 5.1 core components


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.

More Information

Where do I get the .msm files?

To download Microsoft Speech SDK 5.1, visit the following Microsoft Developer Network (MSDN) Web site: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
  • Simplified Chinese TTS support requires that the .msi file include the following files from the 2052 folder:
    • Sp5.msm
    • Sp5intl.msm
    • Sp5TTINTr.msm
    • Spcommon.msm
  • 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 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.

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.
  1. Start the Microsoft Visual Studio Installer, which is available for download from the following MSDN Web site:Note You can also use third-party tools (for example, InstallShield) to author your setup.
  2. 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.
  3. In the Name box, type the name of your project (for example, EmptyInstaller1), and then click Open.
  4. In the Project Explorer pane, under the workspace EmptyInstaller1, right-click Files, click Add, and then click Merge module(s).
  5. Browse and add the following files from the 1033 folder:
    • Sp5.msm
    • Sp5intl.msm
    • Sp5ttint.msm
    • Spcommon.msm
  6. Build the project, save the project, and then exit the program.
  7. 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.

ID do Artigo: 320207 - Última Revisão: 2 de jun de 2009 - Revisão: 1