gpt4 book ai didi

c++ - 在哪里可以下载微软语音 SDK 5.4

转载 作者:可可西里 更新时间:2023-11-01 09:55:11 31 4
gpt4 key购买 nike

我需要开发一个简单的 64 位 C++ 文本转语音 (TTS) 程序以在 Windows 7 和 Vista 上运行。我的第一步是尝试从 SAPI 5.4 教程编译程序。但是我在我的 Windows 7 机器上找不到所需的 SAPI 5.4 包。我在网上搜索了一下,只有 SAPI 5.1 适用于 Windows XP。
Microsoft Speech Technology page声称“用于对 Windows 7 中包含的语音引擎进行编程的 native 代码 API”。 SAPI 5.4 tutorial有以下指令:

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.

上述说明中的 2 个文件夹在我的 Windows 7 PC 上不存在。我安装了Windows SDK for Windows 7 and .NET Framework 4但是这 2 个文件夹仍然不存在。
我应该怎么做才能在我的 Windows 7 机器上安装 SAPI 5.4 并编译上述教程中的程序?
非常感谢您的帮助!
大卫

最佳答案

Microsoft Speech SDK 5.4 或 SAPI 5.4 包含在“Windows SDK for Windows 7 and .NET Frameword 4”包中。它可以从 Microsoft 下载中心下载。安装包后,包含文件在“c:\Program Files\Microsoft SDKs\Windows\v7.1\include”,库文件在“c:\Program Files\Microsoft SDKs\Windows\v7.1\”库\x64"。编译程序时无需指定这两个位置。 Microsoft 的 SAPI 5.4 教程和一些相关文档已过时。

关于c++ - 在哪里可以下载微软语音 SDK 5.4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19070351/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com