From: Jake G. <dat...@gm...> - 2017-01-12 03:40:52
|
Hi, I am attempting to port speechPlayer in espeak to sapi5 using espeaks sapi5 interface. When I am compiling, I get the following output: --------------------Configuration: TtsEng - Win32 Release x86-------------------- Creating Type Library... Microsoft (R) MIDL Compiler Version 5.01.0164 Copyright (c) Microsoft Corp 1991-1997. All rights reserved. Processing C:\windows_sapi\TtsEng.idl TtsEng.idl Processing C:\vc6\VC98\INCLUDE\oaidl.idl oaidl.idl Processing C:\vc6\VC98\INCLUDE\objidl.idl objidl.idl Processing C:\vc6\VC98\INCLUDE\unknwn.idl unknwn.idl Processing C:\vc6\VC98\INCLUDE\wtypes.idl wtypes.idl Processing C:\vc6\VC98\INCLUDE\ocidl.idl ocidl.idl Processing C:\vc6\VC98\INCLUDE\oleidl.idl oleidl.idl Processing C:\vc6\VC98\INCLUDE\servprov.idl servprov.idl Processing C:\vc6\VC98\INCLUDE\urlmon.idl urlmon.idl Processing C:\vc6\VC98\INCLUDE\msxml.idl msxml.idl Processing .\sapiddk.idl sapiddk.idl Processing .\sapi.idl sapi.idl Compiling resources... Compiling... StdAfx.cpp Compiling... compiledict.cpp dictionary.cpp frame.cpp C:\vc6\VC98\INCLUDE\xstring(525) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX C:\vc6\VC98\INCLUDE\xstring(521) : while compiling class-template member function 'void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Copy(unsigned int)' intonation.cpp klatt.cpp C:\windows_sapi\src\klatt.cpp(35) : warning C4244: '*=' : conversion from 'double' to 'int', possible loss of data numbers.cpp phonemelist.cpp readclause.cpp setlengths.cpp sonic.cpp C:\windows_sapi\src\sonic.cpp(79) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data C:\windows_sapi\src\sonic.cpp(264) : warning C4244: '=' : conversion from 'float' to 'short', possible loss of data C:\windows_sapi\src\sonic.cpp(747) : warning C4244: '=' : conversion from 'float' to 'int', possible loss of data C:\windows_sapi\src\sonic.cpp(781) : warning C4244: '=' : conversion from 'float' to 'long', possible loss of data C:\windows_sapi\src\sonic.cpp(784) : warning C4244: '=' : conversion from 'float' to 'int', possible loss of data C:\windows_sapi\src\sonic.cpp(807) : warning C4244: '=' : conversion from 'float' to 'long', possible loss of data C:\windows_sapi\src\sonic.cpp(810) : warning C4244: '=' : conversion from 'float' to 'int', possible loss of data speak_lib.cpp C:\windows_sapi\src\speak_lib.cpp(746) : warning C4068: unknown pragma C:\windows_sapi\src\speak_lib.cpp(1301) : warning C4068: unknown pragma speechPlayer.cpp C:\vc6\VC98\INCLUDE\xstring(525) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX C:\vc6\VC98\INCLUDE\xstring(521) : while compiling class-template member function 'void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Copy(unsigned int)' speechWaveGenerator.cpp C:\vc6\VC98\INCLUDE\istream(547) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX C:\windows_sapi\src\speechPlayer\speechWaveGenerator.cpp(31) : error C2065: 'M_PI' : undeclared identifier synth_mbrola.cpp synthdata.cpp synthesize.cpp tr_languages.cpp C:\windows_sapi\src\tr_languages.cpp(203) : warning C4305: 'initializing' : truncation from 'const int' to 'const char' C:\windows_sapi\src\tr_languages.cpp(203) : warning C4309: 'initializing' : truncation of constant value C:\windows_sapi\src\tr_languages.cpp(203) : warning C4305: 'initializing' : truncation from 'const int' to 'const char' C:\windows_sapi\src\tr_languages.cpp(203) : warning C4309: 'initializing' : truncation of constant value translate.cpp TtsEng.cpp C:\windows_sapi\TtsEngObj.h(27) : warning C4236: nonstandard extension used : '_export' is an obsolete keyword, see documentation for __declspec(dllexport) voices.cpp C:\windows_sapi\src\voices.cpp(1914) : warning C4068: unknown pragma C:\windows_sapi\src\voices.cpp(1983) : warning C4068: unknown pragma Generating Code... Compiling... wavegen.cpp C:\windows_sapi\src\wavegen.cpp(2030) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data Generating Code... Error executing cl.exe. espeak_sapi.dll - 1 error(s), 21 warning(s) I am using visual studio 6 to compile, and I have successfully compiled a normal sapi5 espeak dll with it. You can find the source code that I am using at http://grossgang.com/windows_sapi.zip Jake |