2013-09-28 4 views
1

Windows 7 및 Vista에서 실행되는 간단한 64 비트 C++ TTS (텍스트 음성 변환) 프로그램을 개발해야합니다. 나의 첫 번째 단계는 SAPI 5.4 튜토리얼에서 프로그램을 컴파일하는 것이다. 그러나 필자는 Windows 7 머신에서 필요한 SAPI 5.4 패키지를 찾을 수 없습니다. 필자는 인터넷을 검색했으며 SAPI 5.1 만 Windows XP에서 사용할 수 있습니다. 위의 명령에서어디에서 Microsoft 음성 SDK 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. 
… 

2 개 개의 폴더 내 Windows 7에 존재하지 않는 다음 SAPI 5.4 tutorial는 다음과 같은 명령을 가지고 "음성 엔진을 프로그래밍하는 네이티브 코드 API는 윈도우 7에 포함"고
Microsoft Speech Technology page 주장 PC. Windows SDK for Windows 7 and .NET Framework 4을 설치했지만이 두 폴더는 아직 없습니다.
내 Windows 7 시스템에 SAPI 5.4를 설치하고 위의 튜토리얼에서 프로그램을 컴파일하려면 어떻게해야합니까?
도움 주셔서 감사합니다.
David

답변

4

Microsoft Speech SDK 5.4 또는 SAPI 5.4는 "Windows 7 및 .NET Frameword 4 용 Windows SDK"패키지에 포함되어 있습니다. Microsoft 다운로드 센터에서 다운로드 할 수 있습니다. 패키지를 설치 한 후 포함 파일은 "c : \ Program Files \ Microsoft SDKs \ Windows \ v7.1 \ include"에 있고 라이브러리 파일은 "c : \ Program Files \ Microsoft SDKs \ Windows \ v7.1 \ Lib \ x64 ". 프로그램을 컴파일 할 때이 두 위치를 지정할 필요가 없습니다. Microsoft의 SAPI 5.4 자습서 및 일부 관련 문서가 오래되었습니다.