我需要开发一个简单的64位C ++文本到语音(TTS)程序,以便在Windows 7和Vista上运行。 我的第一步是尝试从SAPI 5.4教程编译程序。 但是我在Windows 7计算机上找不到所需的SAPI 5.4软件包。 我搜索了Internet,只有Windows XP可以使用SAPI 5.1。
Microsoft语音技术页声称“用于对Windows 7中包含的语音引擎进行编程的本机代码API。” SAPI 5.4教程具有以下说明:
Step 1. Setting up the Project:
…
Code Listing 1
Next add the paths to SAPI.h and SAPI.lib files. The paths shown are for a
standard SAPI SDK install. If the compiler is unable to locate either file,
or if a nonstandard install was performed, use the new path to the files.
Change the project settings to reflect the paths. Using the Project->Settings.
menu item, set the SAPI.h path. Click the C/C++ tab and select Preprocessor
from the Category drop-down list. Enter the following in the "Additional
include directories": C:\Program Files\Microsoft Speech SDK 5.4\Include.
To set the SAPI.lib path:
1. Select the Link tab from the Same Settings dialog box.
2. Choose Input from the Category drop-down list.
3. Add the following path to the "Additional library path":
C:\Program Files\Microsoft Speech SDK 5.4\Lib\i386.
4. Also add "sapi.lib" to the "Object/library modules" line. Be sure that the
name is separated by a space.
…
Windows 7 PC上没有上述指令中的2个文件夹。 我应该怎么做才能在Windows 7计算机上安装SAPI 5.4并从上述教程中编译程序?
非常感谢您的帮助!
大卫