mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-02 14:42:45 +00:00
Added makefile and speech.h for DOS build.
Moved the Windows build files together with DOS and others into a new directory: "platforms". git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@76 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
|
||||
This is a Virtual C++ project for the Windows SAPI5
|
||||
version of eSpeak.
|
||||
|
||||
Copy the program source files from the Linux "src"
|
||||
directory into this "src" directory, EXCEPT for:
|
||||
speech.h
|
||||
StdAfx.h
|
||||
stdint.h
|
||||
Keep the Windows versions of these files.
|
||||
|
||||
Executable
BIN
Binary file not shown.
Executable
+94
@@ -0,0 +1,94 @@
|
||||
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
|
||||
|
||||
|
||||
/* File created by MIDL compiler version 5.01.0164 */
|
||||
/* at Sat Dec 16 21:19:27 2006
|
||||
*/
|
||||
/* Compiler settings for C:\Program Files\Microsoft Speech SDK 5.1\Samples\CPP\Engines\TTS\TtsEng.idl:
|
||||
Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
|
||||
error checks: allocation ref bounds_check enum stub_data
|
||||
*/
|
||||
//@@MIDL_FILE_HEADING( )
|
||||
|
||||
|
||||
/* verify that the <rpcndr.h> version is high enough to compile this file*/
|
||||
#ifndef __REQUIRED_RPCNDR_H_VERSION__
|
||||
#define __REQUIRED_RPCNDR_H_VERSION__ 440
|
||||
#endif
|
||||
|
||||
#include "rpc.h"
|
||||
#include "rpcndr.h"
|
||||
|
||||
#ifndef __TtsEng_h__
|
||||
#define __TtsEng_h__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"{
|
||||
#endif
|
||||
|
||||
/* Forward Declarations */
|
||||
|
||||
#ifndef __SampleTTSEngine_FWD_DEFINED__
|
||||
#define __SampleTTSEngine_FWD_DEFINED__
|
||||
|
||||
#ifdef __cplusplus
|
||||
typedef class SampleTTSEngine SampleTTSEngine;
|
||||
#else
|
||||
typedef struct SampleTTSEngine SampleTTSEngine;
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __SampleTTSEngine_FWD_DEFINED__ */
|
||||
|
||||
|
||||
/* header files for imported files */
|
||||
#include "oaidl.h"
|
||||
#include "ocidl.h"
|
||||
#include "sapiddk.h"
|
||||
|
||||
void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
|
||||
void __RPC_USER MIDL_user_free( void __RPC_FAR * );
|
||||
|
||||
/* interface __MIDL_itf_TtsEng_0000 */
|
||||
/* [local] */
|
||||
|
||||
typedef struct VOICEITEM
|
||||
{
|
||||
LPCWSTR pText;
|
||||
ULONG ulTextLen;
|
||||
ULONG ulNumAudioBytes;
|
||||
BYTE __RPC_FAR *pAudio;
|
||||
} VOICEITEM;
|
||||
|
||||
|
||||
|
||||
extern RPC_IF_HANDLE __MIDL_itf_TtsEng_0000_v0_0_c_ifspec;
|
||||
extern RPC_IF_HANDLE __MIDL_itf_TtsEng_0000_v0_0_s_ifspec;
|
||||
|
||||
|
||||
#ifndef __SAMPLETTSENGLib_LIBRARY_DEFINED__
|
||||
#define __SAMPLETTSENGLib_LIBRARY_DEFINED__
|
||||
|
||||
/* library SAMPLETTSENGLib */
|
||||
/* [helpstring][version][uuid] */
|
||||
|
||||
|
||||
EXTERN_C const IID LIBID_SAMPLETTSENGLib;
|
||||
|
||||
EXTERN_C const CLSID CLSID_SampleTTSEngine;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
class DECLSPEC_UUID("BE985C8D-BE32-4A22-AA93-55C16A6D1D91")
|
||||
SampleTTSEngine;
|
||||
#endif
|
||||
#endif /* __SAMPLETTSENGLib_LIBRARY_DEFINED__ */
|
||||
|
||||
/* Additional Prototypes for ALL interfaces */
|
||||
|
||||
/* end of Additional Prototypes */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Executable
BIN
Binary file not shown.
Executable
+47
@@ -0,0 +1,47 @@
|
||||
/* this file contains the actual definitions of */
|
||||
/* the IIDs and CLSIDs */
|
||||
|
||||
/* link this file in with the server and any clients */
|
||||
|
||||
|
||||
/* File created by MIDL compiler version 5.01.0164 */
|
||||
/* at Sat Dec 16 21:19:27 2006
|
||||
*/
|
||||
/* Compiler settings for C:\Program Files\Microsoft Speech SDK 5.1\Samples\CPP\Engines\TTS\TtsEng.idl:
|
||||
Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
|
||||
error checks: allocation ref bounds_check enum stub_data
|
||||
*/
|
||||
//@@MIDL_FILE_HEADING( )
|
||||
#ifdef __cplusplus
|
||||
extern "C"{
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef __IID_DEFINED__
|
||||
#define __IID_DEFINED__
|
||||
|
||||
typedef struct _IID
|
||||
{
|
||||
unsigned long x;
|
||||
unsigned short s1;
|
||||
unsigned short s2;
|
||||
unsigned char c[8];
|
||||
} IID;
|
||||
|
||||
#endif // __IID_DEFINED__
|
||||
|
||||
#ifndef CLSID_DEFINED
|
||||
#define CLSID_DEFINED
|
||||
typedef IID CLSID;
|
||||
#endif // CLSID_DEFINED
|
||||
|
||||
const IID LIBID_SAMPLETTSENGLib = {0x7192AA2F,0xF759,0x43e9,{0x91,0xE7,0x22,0x63,0x71,0xEF,0x6B,0x2F}};
|
||||
|
||||
|
||||
const CLSID CLSID_SampleTTSEngine = {0xBE985C8D,0xBE32,0x4A22,{0xAA,0x93,0x55,0xC1,0x6A,0x6D,0x1D,0x91}};
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by TtsEng.rc
|
||||
//
|
||||
#define IDS_PROJNAME 100
|
||||
#define IDR_SAMPLETTSENGINE 101
|
||||
#define IDR_SAMPLEVOICEDATAOBJ 102
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 201
|
||||
#define _APS_NEXT_COMMAND_VALUE 32768
|
||||
#define _APS_NEXT_CONTROL_VALUE 201
|
||||
#define _APS_NEXT_SYMED_VALUE 103
|
||||
#endif
|
||||
#endif
|
||||
Executable
BIN
Binary file not shown.
Executable
+3
@@ -0,0 +1,3 @@
|
||||
// This is a dummy file.
|
||||
// A file of this name is needed on Windows
|
||||
|
||||
Executable
+65
@@ -0,0 +1,65 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2005,2006 by Jonathan Duddington *
|
||||
* jsd@clara.co.uk *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the *
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
// speech.h file for the Windows SAPI5 version of eSpeak
|
||||
|
||||
|
||||
// conditional compilation options
|
||||
|
||||
#define PLATFORM_WINDOWS
|
||||
#define __WIN32__
|
||||
#define NEED_WCSTOF
|
||||
#define NEED_GETOPT
|
||||
#define USE_MBROLA_LIB
|
||||
#define ESPEAK_API
|
||||
|
||||
#define PATHSEP '\\'
|
||||
//#define PLATFORM_POSIX
|
||||
//#define __cdecl // define as null, needed for Borland compiler ?
|
||||
//#define USE_PORTAUDIO
|
||||
//#define USE_NANOSLEEP
|
||||
|
||||
|
||||
// will look for espeak_data directory here, and also in user's home directory
|
||||
#define PATH_ESPEAK_DATA "/usr/share/espeak-data"
|
||||
|
||||
typedef unsigned short USHORT;
|
||||
typedef unsigned char UCHAR;
|
||||
typedef double DOUBLEX;
|
||||
|
||||
|
||||
|
||||
|
||||
typedef struct {
|
||||
const char *mnem;
|
||||
int value;
|
||||
} MNEM_TAB;
|
||||
int LookupMnem(MNEM_TAB *table, char *string);
|
||||
|
||||
|
||||
|
||||
#define N_PATH_HOME 120
|
||||
extern char path_home[N_PATH_HOME]; // this is the espeak-data directory
|
||||
|
||||
extern void strncpy0(char *to,const char *from, int size);
|
||||
int GetFileLength(const char *filename);
|
||||
char *Alloc(int size);
|
||||
void Free(void *ptr);
|
||||
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
|
||||
// dummy stdint.h file for Windows
|
||||
|
||||
typedef unsigned int uint32_t;
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
// stdafx.cpp : source file that includes just the standard includes
|
||||
// stdafx.pch will be the pre-compiled header
|
||||
// stdafx.obj will contain the pre-compiled type information
|
||||
//Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#ifdef _ATL_STATIC_REGISTRY
|
||||
#include <statreg.h>
|
||||
#include <statreg.cpp>
|
||||
#endif
|
||||
|
||||
#include <atlimpl.cpp>
|
||||
|
||||
Executable
+32
@@ -0,0 +1,32 @@
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently,
|
||||
// but are changed infrequently
|
||||
|
||||
#if !defined(AFX_STDAFX_H__3F7C4D2C_D007_11D2_B503_00C04F797396__INCLUDED_)
|
||||
#define AFX_STDAFX_H__3F7C4D2C_D007_11D2_B503_00C04F797396__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
|
||||
#ifndef STRICT
|
||||
#define STRICT
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32_WINNT
|
||||
#define _WIN32_WINNT 0x0400
|
||||
#endif
|
||||
|
||||
#include <atlbase.h>
|
||||
//You may derive a class from CComModule and use it if you want to override
|
||||
//something, but do not change the name of _Module
|
||||
extern CComModule _Module;
|
||||
#include <atlcom.h>
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_STDAFX_H__3F7C4D2C_D007_11D2_B503_00C04F797396__INCLUDED)
|
||||
|
||||
|
||||
|
||||
Executable
+77
@@ -0,0 +1,77 @@
|
||||
// TtsEng.cpp : Implementation of DLL Exports.
|
||||
//Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
|
||||
// Note: Proxy/Stub Information
|
||||
// To build a separate proxy/stub DLL,
|
||||
// run nmake -f msttsdrvps.mk in the project directory.
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "resource.h"
|
||||
#include <initguid.h>
|
||||
#include "TtsEng.h"
|
||||
#include "TtsEng_i.c"
|
||||
#include "TtsEngObj.h"
|
||||
|
||||
|
||||
|
||||
CComModule _Module;
|
||||
|
||||
BEGIN_OBJECT_MAP(ObjectMap)
|
||||
OBJECT_ENTRY( CLSID_SampleTTSEngine , CTTSEngObj )
|
||||
END_OBJECT_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// DLL Entry Point
|
||||
|
||||
#ifdef _WIN32_WCE
|
||||
extern "C" BOOL WINAPI DllMain(HANDLE hInstance, ULONG dwReason, LPVOID)
|
||||
#else
|
||||
extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/)
|
||||
#endif
|
||||
{
|
||||
if (dwReason == DLL_PROCESS_ATTACH)
|
||||
{
|
||||
_Module.Init(ObjectMap, (HINSTANCE)hInstance, &LIBID_SAMPLETTSENGLib);
|
||||
}
|
||||
else if (dwReason == DLL_PROCESS_DETACH)
|
||||
_Module.Term();
|
||||
return TRUE; // ok
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Used to determine whether the DLL can be unloaded by OLE
|
||||
|
||||
STDAPI DllCanUnloadNow(void)
|
||||
{
|
||||
return (_Module.GetLockCount()==0) ? S_OK : S_FALSE;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Returns a class factory to create an object of the requested type
|
||||
|
||||
STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
|
||||
{
|
||||
return _Module.GetClassObject(rclsid, riid, ppv);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// DllRegisterServer - Adds entries to the system registry
|
||||
|
||||
STDAPI DllRegisterServer(void)
|
||||
{
|
||||
// registers object, typelib and all interfaces in typelib
|
||||
return _Module.RegisterServer(TRUE);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// DllUnregisterServer - Removes entries from the system registry
|
||||
|
||||
STDAPI DllUnregisterServer(void)
|
||||
{
|
||||
return _Module.UnregisterServer(TRUE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
EXPORTS
|
||||
DllCanUnloadNow PRIVATE
|
||||
DllGetClassObject PRIVATE
|
||||
DllRegisterServer PRIVATE
|
||||
DllUnregisterServer PRIVATE
|
||||
Executable
+276
@@ -0,0 +1,276 @@
|
||||
# Microsoft Developer Studio Project File - Name="TtsEng" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
|
||||
|
||||
CFG=TtsEng - Win32 Debug x86
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "ttseng.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "ttseng.mak" CFG="TtsEng - Win32 Debug x86"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "TtsEng - Win32 Debug x86" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE "TtsEng - Win32 Release x86" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath "Desktop"
|
||||
CPP=cl.exe
|
||||
MTL=midl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "TtsEng - Win32 Debug x86"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "TtsEng___Win32_Debug_x86"
|
||||
# PROP BASE Intermediate_Dir "TtsEng___Win32_Debug_x86"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug_x86"
|
||||
# PROP Intermediate_Dir "Debug_x86"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MTd /W3 /Gm /ZI /Od /I "..\..\..\sdk\include" /I "..\..\..\ddk\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /FR /Yu"stdafx.h" /FD /GZ /c
|
||||
# ADD CPP /nologo /MTd /W3 /Gm /ZI /Od /I "..\..\..\..\..\ddk\include" /I "..\..\..\..\include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "_ATL_STATIC_REGISTRY" /FR /Yu"stdafx.h" /FD /GZ /c
|
||||
# ADD MTL /I "..\..\..\..\..\ddk\idl" /I "..\..\..\..\idl"
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib advapi32.lib ole32.lib /nologo /subsystem:windows /dll /map /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\..\lib\i386"
|
||||
# Begin Custom Build - Performing registration
|
||||
OutDir=.\Debug_x86
|
||||
TargetPath=.\Debug_x86\ttseng.dll
|
||||
InputPath=.\Debug_x86\ttseng.dll
|
||||
SOURCE="$(InputPath)"
|
||||
|
||||
"$(OutDir)\regsvr32.trg" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
regsvr32 /s /c "$(TargetPath)"
|
||||
echo regsvr32 exec. time > "$(OutDir)\regsvr32.trg"
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "TtsEng - Win32 Release x86"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "TtsEng___Win32_Release_x86"
|
||||
# PROP BASE Intermediate_Dir "TtsEng___Win32_Release_x86"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release_x86"
|
||||
# PROP Intermediate_Dir "Release_x86"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MT /W3 /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "_ATL_DLL" /D "_ATL_MIN_CRT" /Yu"stdafx.h" /FD /c
|
||||
# ADD CPP /nologo /MT /W3 /O1 /I "..\..\..\..\..\ddk\include" /I "..\..\..\..\include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "_ATL_STATIC_REGISTRY" /Yu"stdafx.h" /FD /c
|
||||
# ADD MTL /I "..\..\..\..\..\ddk\idl" /I "..\..\..\..\idl"
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
|
||||
# ADD LINK32 kernel32.lib advapi32.lib ole32.lib /nologo /subsystem:windows /dll /map /machine:I386 /out:"Release_x86/espeak_sapi.dll" /libpath:"..\..\..\..\lib\i386"
|
||||
# Begin Custom Build - Performing registration
|
||||
OutDir=.\Release_x86
|
||||
TargetPath=.\Release_x86\espeak_sapi.dll
|
||||
InputPath=.\Release_x86\espeak_sapi.dll
|
||||
SOURCE="$(InputPath)"
|
||||
|
||||
"$(OutDir)\regsvr32.trg" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
regsvr32 /s /c "$(TargetPath)"
|
||||
echo regsvr32 exec. time > "$(OutDir)\regsvr32.trg"
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "TtsEng - Win32 Debug x86"
|
||||
# Name "TtsEng - Win32 Release x86"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\compiledict.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\dictionary.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\intonation.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\numbers.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\phonemelist.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\readclause.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\setlengths.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\speak_lib.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\StdAfx.cpp
|
||||
# ADD BASE CPP /Yc"stdafx.h"
|
||||
# ADD CPP /Yc"stdafx.h"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\synth_mbrola.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\synthdata.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\synthesize.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\tr_english.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\tr_languages.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\translate.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\TtsEng.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\TtsEng.def
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\TtsEng.idl
|
||||
# ADD BASE MTL /I "..\..\..\sdk\idl" /tlb ".\TtsEng.tlb" /h "TtsEng.h" /iid "" /Oicf
|
||||
# ADD MTL /I "..\..\..\sdk\idl" /tlb ".\TtsEng.tlb" /h "TtsEng.h" /iid "TtsEng_i.c" /Oicf
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\TtsEng.rc
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\TtsEngObj.cpp
|
||||
# SUBTRACT CPP /YX /Yc /Yu
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\voices.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\wavegen.cpp
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\phoneme.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\portaudio.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\portaudio18.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\portaudio19.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Resource.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\sintab.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\speak_lib.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\speech.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\StdAfx.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\synthesize.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\tr_languages.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\translate.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\TtsEngObj.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\src\voice.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Resource Files"
|
||||
|
||||
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\TtsEngObj.rgs
|
||||
# End Source File
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
||||
Executable
+29
@@ -0,0 +1,29 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "TtsEng"=".\ttseng.dsp" - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Executable
+50
@@ -0,0 +1,50 @@
|
||||
/*****************************************************************************
|
||||
* TtsEng.idl *
|
||||
*------------*
|
||||
* Description:
|
||||
* This idl file is for the sample SAPI5 Text To Speech Engine.
|
||||
*-----------------------------------------------------------------------------
|
||||
* Creation: 09/17/99
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
*****************************************************************************/
|
||||
//--- Import base idl
|
||||
import "oaidl.idl";
|
||||
import "ocidl.idl";
|
||||
import "sapiddk.idl";
|
||||
|
||||
//=== Forward References ======================================================
|
||||
|
||||
//=== Constants ===============================================================
|
||||
|
||||
//=== Interface definitions ===================================================
|
||||
typedef struct VOICEITEM
|
||||
{
|
||||
LPCWSTR pText;
|
||||
ULONG ulTextLen;
|
||||
ULONG ulNumAudioBytes;
|
||||
BYTE* pAudio;
|
||||
} VOICEITEM;
|
||||
|
||||
|
||||
//=== CoClass definitions =====================================================
|
||||
[
|
||||
uuid(7192AA2F-F759-43e9-91E7-226371EF6B2F),
|
||||
version(1.0),
|
||||
helpstring("Simple TTS Engine 1.0 Type Library")
|
||||
]
|
||||
library SAMPLETTSENGLib
|
||||
{
|
||||
importlib("stdole32.tlb");
|
||||
importlib("stdole2.tlb");
|
||||
|
||||
[
|
||||
uuid(BE985C8D-BE32-4A22-AA93-55C16A6D1D91),
|
||||
// uuid(A832755E-9C2A-40b4-89B2-3A92EE705852),
|
||||
helpstring("SampleTTSEngine Class")
|
||||
]
|
||||
coclass SampleTTSEngine
|
||||
{
|
||||
[default] interface ISpTTSEngine;
|
||||
interface ISpObjectWithToken;
|
||||
};
|
||||
};
|
||||
Executable
+91
@@ -0,0 +1,91 @@
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#define APSTUDIO_HIDDEN_SYMBOLS
|
||||
#include "windows.h"
|
||||
#undef APSTUDIO_HIDDEN_SYMBOLS
|
||||
#include "resource.h"
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
|
||||
"#include ""windows.h""\r\n"
|
||||
"#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
|
||||
"#include ""resource.h""\r\n"
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"1 TYPELIB ""TtsEng.tlb""\r\n"
|
||||
"#include ""version.rc2""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// REGISTRY
|
||||
//
|
||||
|
||||
IDR_SAMPLETTSENGINE REGISTRY DISCARDABLE "TtsEngObj.rgs"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// String Table
|
||||
//
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
IDS_PROJNAME "TtsEng"
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
1 TYPELIB "TtsEng.tlb"
|
||||
#include "version.rc2"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
||||
Executable
+677
@@ -0,0 +1,677 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2005 to 2007 by Jonathan Duddington *
|
||||
* email: jonsd@users.sourceforge.net *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 3 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write see: *
|
||||
* <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "TtsEngObj.h"
|
||||
|
||||
#include "src/speak_lib.h"
|
||||
#include "stdio.h"
|
||||
|
||||
|
||||
|
||||
#define CTRL_EMBEDDED 1
|
||||
|
||||
CTTSEngObj *m_EngObj;
|
||||
ISpTTSEngineSite* m_OutputSite;
|
||||
FILE *f_log2=NULL;
|
||||
|
||||
extern int AddNameData(const char *name, int wide);
|
||||
extern void InitNamedata(void);
|
||||
|
||||
int master_volume = 100;
|
||||
int master_rate = 0;
|
||||
|
||||
int gVolume = 100;
|
||||
int gSpeed = -1;
|
||||
int gPitch = -1;
|
||||
int gRange = -1;
|
||||
int gEmphasis = 0;
|
||||
int gSayas = 0;
|
||||
|
||||
|
||||
char *path_install = NULL;
|
||||
|
||||
unsigned long audio_offset = 0;
|
||||
unsigned long audio_latest = 0;
|
||||
unsigned int gBufSize = 0;
|
||||
wchar_t *TextBuf=NULL;
|
||||
|
||||
typedef struct {
|
||||
unsigned int bufix;
|
||||
unsigned int textix;
|
||||
unsigned int cmdlen;
|
||||
} FRAG_OFFSET;
|
||||
|
||||
int srate; // samplerate, Hz/50
|
||||
int n_frag_offsets = 0;
|
||||
int frag_ix = 0;
|
||||
int frag_count=0;
|
||||
FRAG_OFFSET *frag_offsets = NULL;
|
||||
|
||||
|
||||
int SynthCallback(short *wav, int numsamples, espeak_EVENT *events);
|
||||
|
||||
int SynthCallback(short *wav, int numsamples, espeak_EVENT *events)
|
||||
{//================================================================
|
||||
int hr;
|
||||
wchar_t *tailptr;
|
||||
unsigned int text_offset;
|
||||
int length;
|
||||
|
||||
espeak_EVENT *event;
|
||||
#define N_EVENTS 100
|
||||
int n_Events = 0;
|
||||
SPEVENT *Event;
|
||||
SPEVENT Events[N_EVENTS];
|
||||
|
||||
if(m_OutputSite->GetActions() & SPVES_ABORT)
|
||||
return(1);
|
||||
|
||||
m_EngObj->CheckActions(m_OutputSite);
|
||||
|
||||
// return the events
|
||||
for(event=events; event->type != 0; event++)
|
||||
{
|
||||
audio_latest = event->audio_position + audio_offset;
|
||||
|
||||
if((event->type == espeakEVENT_WORD) && (event->length > 0))
|
||||
{
|
||||
while(((frag_ix+1) < frag_count) &&
|
||||
((event->text_position -1 + frag_offsets[frag_ix+1].cmdlen) >= frag_offsets[frag_ix+1].bufix))
|
||||
{
|
||||
frag_ix++;
|
||||
}
|
||||
text_offset = frag_offsets[frag_ix].textix +
|
||||
event->text_position -1 - frag_offsets[frag_ix].bufix + frag_offsets[frag_ix].cmdlen;
|
||||
length = event->length - frag_offsets[frag_ix].cmdlen;
|
||||
frag_offsets[frag_ix].cmdlen = 0;
|
||||
|
||||
if(text_offset < 0)
|
||||
text_offset = 0;
|
||||
|
||||
Event = &Events[n_Events++];
|
||||
Event->eEventId = SPEI_WORD_BOUNDARY;
|
||||
Event->elParamType = SPET_LPARAM_IS_UNDEFINED;
|
||||
Event->ullAudioStreamOffset = ((event->audio_position + audio_offset) * srate)/10; // ms -> bytes
|
||||
Event->lParam = text_offset;
|
||||
Event->wParam = length;
|
||||
}
|
||||
if(event->type == espeakEVENT_MARK)
|
||||
{
|
||||
Event = &Events[n_Events++];
|
||||
Event->eEventId = SPEI_TTS_BOOKMARK;
|
||||
Event->elParamType = SPET_LPARAM_IS_STRING;
|
||||
Event->ullAudioStreamOffset = ((event->audio_position + audio_offset) * 441)/10; // ms -> bytes
|
||||
Event->lParam = (long)event->id.name;
|
||||
Event->wParam = wcstol((wchar_t *)event->id.name,&tailptr,10);
|
||||
}
|
||||
#ifdef deleted
|
||||
if(event->type == espeakEVENT_SENTENCE)
|
||||
{
|
||||
Event = &Events[n_Events++];
|
||||
Event->eEventId = SPEI_SENTENCE_BOUNDARY;
|
||||
Event->elParamType = SPET_LPARAM_IS_UNDEFINED;
|
||||
Event->ullAudioStreamOffset = (event->audio_position * 441)/10; // ms -> bytes
|
||||
Event->lParam = event->text_position-1 + text_offset;
|
||||
Event->wParam = 0; // TEMP
|
||||
}
|
||||
#endif
|
||||
}
|
||||
if(n_Events > 0)
|
||||
m_OutputSite->AddEvents(Events, n_Events );
|
||||
|
||||
// return the sound data
|
||||
hr = m_OutputSite->Write(wav, numsamples*2, NULL);
|
||||
return(hr);
|
||||
}
|
||||
|
||||
|
||||
|
||||
static int ConvertRate(int new_rate)
|
||||
{//=================================
|
||||
|
||||
int rate;
|
||||
|
||||
static int rate_table[21] = {80,100,116,124,132,140,148,156,164,170,176,
|
||||
182,188,197,208,220,240,270,300,335,370 };
|
||||
|
||||
rate = new_rate + master_rate;
|
||||
if(rate < -10) rate = -10;
|
||||
if(rate > 10) rate = 10;
|
||||
|
||||
return(rate_table[rate+10]);
|
||||
} // end of ConvertRate
|
||||
|
||||
|
||||
static int ConvertPitch(int pitch)
|
||||
{//===============================
|
||||
static int pitch_table[41] =
|
||||
{0, 0, 0, 0, 0, 0, 0, 0, 4, 8,12,16,20,24,28,32,36,40,44,47,50,
|
||||
54,58,62,66,70,74,78,82,84,88,92,96,99,99,99,99,99,99,99,99};
|
||||
// {0,3,5,8,10,13,15,18,20,23,25,28,30,33,35,38,40,43,45,48,50,
|
||||
// 53,55,58,60,63,65,68,70,73,75,78,80,83,85,88,90,93,95,97,99};
|
||||
if(pitch < -20) pitch = -20;
|
||||
if(pitch > 20) pitch = 20;
|
||||
return(pitch_table[pitch+20]);
|
||||
}
|
||||
|
||||
static int ConvertRange(int range)
|
||||
{//===============================
|
||||
static int range_table[21] = {16,28,39,49,58,66,74,81,88,94,100,105,110,115,120,125,130,135,140,145,150};
|
||||
if(range < -10) range = -10;
|
||||
if(range > 10) range = 10;
|
||||
return(range_table[range+10]/2);
|
||||
}
|
||||
|
||||
HRESULT CTTSEngObj::FinalConstruct()
|
||||
{//=================================
|
||||
SPDBG_FUNC( "CTTSEngObj::FinalConstruct" );
|
||||
HRESULT hr = S_OK;
|
||||
|
||||
#ifdef LOG_DEBUG
|
||||
f_log2=fopen("C:\\log_espeak","a");
|
||||
if(f_log2) fprintf(f_log2,"\n****\n");
|
||||
#endif
|
||||
|
||||
//--- Init vars
|
||||
m_hVoiceData = NULL;
|
||||
m_pVoiceData = NULL;
|
||||
m_pWordList = NULL;
|
||||
m_ulNumWords = 0;
|
||||
|
||||
m_EngObj = this;
|
||||
|
||||
return hr;
|
||||
} /* CTTSEngObj::FinalConstruct */
|
||||
|
||||
|
||||
void CTTSEngObj::FinalRelease()
|
||||
{//============================
|
||||
SPDBG_FUNC( "CTTSEngObj::FinalRelease" );
|
||||
|
||||
delete m_pWordList;
|
||||
|
||||
#ifdef LOG_DEBUG
|
||||
if(f_log2!=NULL) fclose(f_log2);
|
||||
#endif
|
||||
|
||||
if( m_pVoiceData )
|
||||
{
|
||||
::UnmapViewOfFile( (void*)m_pVoiceData );
|
||||
}
|
||||
|
||||
if( m_hVoiceData )
|
||||
{
|
||||
::CloseHandle( m_hVoiceData );
|
||||
}
|
||||
|
||||
} /* CTTSEngObj::FinalRelease */
|
||||
|
||||
|
||||
//
|
||||
//=== ISpObjectWithToken Implementation ======================================
|
||||
//
|
||||
|
||||
void WcharToChar(char *out, const wchar_t *in, int len)
|
||||
{//====================================================
|
||||
int ix;
|
||||
|
||||
for(ix=0; ix<len; ix++)
|
||||
{
|
||||
if((out[ix] = (char)in[ix]) == 0)
|
||||
break;
|
||||
}
|
||||
out[len-1] = 0;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* CTTSEngObj::SetObjectToken *
|
||||
*----------------------------*
|
||||
* Description:
|
||||
* Read the "VoiceName" attribute from the registry, and use it to select
|
||||
* an eSpeak voice file
|
||||
*****************************************************************************/
|
||||
STDMETHODIMP CTTSEngObj::SetObjectToken(ISpObjectToken * pToken)
|
||||
{
|
||||
char voice[80];
|
||||
strcpy(voice,"default");
|
||||
|
||||
|
||||
SPDBG_FUNC( "CTTSEngObj::SetObjectToken" );
|
||||
HRESULT hr = SpGenericSetObjectToken(pToken, m_cpToken);
|
||||
|
||||
if( SUCCEEDED( hr ) )
|
||||
{
|
||||
CSpDynamicString voicename;
|
||||
CSpDynamicString path;
|
||||
HRESULT hr2;
|
||||
int len;
|
||||
|
||||
hr2 = m_cpToken->GetStringValue( L"VoiceName", &voicename);
|
||||
if( SUCCEEDED(hr2) )
|
||||
{
|
||||
WcharToChar(voice,voicename,sizeof(voice));
|
||||
}
|
||||
|
||||
|
||||
hr2 = m_cpToken->GetStringValue( L"Path", &path);
|
||||
if( SUCCEEDED(hr2) )
|
||||
{
|
||||
len = wcslen(path)+1;
|
||||
path_install = (char *)malloc(len);
|
||||
WcharToChar(path_install,path,len);
|
||||
}
|
||||
}
|
||||
|
||||
gVolume = 100;
|
||||
gSpeed = -1;
|
||||
gPitch = -1;
|
||||
gRange = -1;
|
||||
gEmphasis = 0;
|
||||
gSayas = 0;
|
||||
|
||||
espeak_Initialize(AUDIO_OUTPUT_SYNCHRONOUS,100,path_install,0);
|
||||
espeak_SetVoiceByName(voice);
|
||||
espeak_SetSynthCallback(SynthCallback);
|
||||
|
||||
return hr;
|
||||
} /* CTTSEngObj::SetObjectToken */
|
||||
|
||||
//
|
||||
//=== ISpTTSEngine Implementation ============================================
|
||||
//
|
||||
|
||||
|
||||
|
||||
int CTTSEngObj::ProcessFragList(const SPVTEXTFRAG* pTextFragList, wchar_t *pW_start, ISpTTSEngineSite* pOutputSite, int *n_text)
|
||||
{//=============================================================================================================================
|
||||
|
||||
int action;
|
||||
int control;
|
||||
wchar_t *pW;
|
||||
const SPVSTATE *state;
|
||||
unsigned int ix;
|
||||
unsigned int len;
|
||||
unsigned int total=0;
|
||||
char cmdbuf[50];
|
||||
wchar_t markbuf[32];
|
||||
|
||||
int speed;
|
||||
int volume;
|
||||
int pitch;
|
||||
int range;
|
||||
int emphasis;
|
||||
int sayas;
|
||||
|
||||
unsigned int text_offset = 0;
|
||||
|
||||
frag_count = 0;
|
||||
frag_ix = 0;
|
||||
pW = pW_start;
|
||||
|
||||
while(pTextFragList != NULL)
|
||||
{
|
||||
action = pTextFragList->State.eAction;
|
||||
control = pOutputSite->GetActions();
|
||||
len = pTextFragList->ulTextLen;
|
||||
|
||||
|
||||
if(control & SPVES_ABORT)
|
||||
break;
|
||||
|
||||
CheckActions(pOutputSite);
|
||||
sayas = 0;
|
||||
|
||||
switch(action)
|
||||
{
|
||||
case SPVA_SpellOut:
|
||||
sayas = 0x12; // SAYAS_CHARS; // drop through to SPVA_Speak
|
||||
case SPVA_Speak:
|
||||
text_offset = pTextFragList->ulTextSrcOffset;
|
||||
audio_offset = audio_latest;
|
||||
|
||||
#ifdef deleted
|
||||
// attempt to recognise when JAWS is spelling, it doesn't use SPVA_SpellOut
|
||||
if((pW != NULL) && (*n_text == 1) && ((len == 1) || ((len==2) && (pTextFragList->pTextStart[1]==' '))))
|
||||
{
|
||||
// A single text fragment with one character. Speak as a character, not a word
|
||||
sayas = 0x11;
|
||||
gSayas = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
if(frag_count >= n_frag_offsets)
|
||||
{
|
||||
if((frag_offsets = (FRAG_OFFSET *)realloc(frag_offsets,sizeof(FRAG_OFFSET)*(frag_count+500))) != NULL)
|
||||
{
|
||||
n_frag_offsets = frag_count+500;
|
||||
}
|
||||
}
|
||||
|
||||
// first set the volume, rate, pitch
|
||||
state = &pTextFragList->State;
|
||||
volume = (state->Volume * master_volume)/100;
|
||||
speed = ConvertRate(state->RateAdj);
|
||||
pitch = ConvertPitch(state->PitchAdj.MiddleAdj);
|
||||
range = ConvertRange(state->PitchAdj.RangeAdj);
|
||||
emphasis = state->EmphAdj;
|
||||
if(emphasis != 0)
|
||||
emphasis = 3;
|
||||
|
||||
len = 0;
|
||||
if(volume != gVolume)
|
||||
{
|
||||
sprintf(&cmdbuf[len],"%c%dA",CTRL_EMBEDDED,volume);
|
||||
len += strlen(&cmdbuf[len]);
|
||||
}
|
||||
if(speed != gSpeed)
|
||||
{
|
||||
sprintf(&cmdbuf[len],"%c%dS",CTRL_EMBEDDED,speed);
|
||||
len += strlen(&cmdbuf[len]);
|
||||
}
|
||||
if(pitch != gPitch)
|
||||
{
|
||||
sprintf(&cmdbuf[len],"%c%dP",CTRL_EMBEDDED,pitch);
|
||||
len += strlen(&cmdbuf[len]);
|
||||
}
|
||||
if(range != gRange)
|
||||
{
|
||||
sprintf(&cmdbuf[len],"%c%dR",CTRL_EMBEDDED,range);
|
||||
len += strlen(&cmdbuf[len]);
|
||||
}
|
||||
if(emphasis != gEmphasis)
|
||||
{
|
||||
sprintf(&cmdbuf[len],"%c%dF",CTRL_EMBEDDED,emphasis);
|
||||
len += strlen(&cmdbuf[len]);
|
||||
}
|
||||
if(sayas != gSayas)
|
||||
{
|
||||
sprintf(&cmdbuf[len],"%c%dY",CTRL_EMBEDDED,sayas);
|
||||
len += strlen(&cmdbuf[len]);
|
||||
}
|
||||
|
||||
gVolume = volume;
|
||||
gSpeed = speed;
|
||||
gPitch = pitch;
|
||||
gRange = range;
|
||||
gEmphasis = emphasis;
|
||||
gSayas = sayas;
|
||||
|
||||
total += (len + pTextFragList->ulTextLen);
|
||||
if(pTextFragList->ulTextLen > 0)
|
||||
{
|
||||
total++;
|
||||
}
|
||||
|
||||
if(pW != NULL)
|
||||
{
|
||||
for(ix=0; ix<len; ix++)
|
||||
{
|
||||
*pW++ = cmdbuf[ix];
|
||||
}
|
||||
|
||||
frag_offsets[frag_count].textix = text_offset;
|
||||
frag_offsets[frag_count].bufix = pW - pW_start;
|
||||
frag_offsets[frag_count].cmdlen = len;
|
||||
|
||||
for(ix=0; ix<pTextFragList->ulTextLen; ix++)
|
||||
{
|
||||
*pW++ = pTextFragList->pTextStart[ix];
|
||||
}
|
||||
if(pTextFragList->ulTextLen > 0)
|
||||
{
|
||||
*pW++ = ' ';
|
||||
}
|
||||
}
|
||||
frag_count++;
|
||||
break;
|
||||
|
||||
case SPVA_Bookmark:
|
||||
total += (2 + pTextFragList->ulTextLen);
|
||||
|
||||
if(pW != NULL)
|
||||
{
|
||||
int index;
|
||||
|
||||
for(ix=0; ix<pTextFragList->ulTextLen; ix++)
|
||||
{
|
||||
markbuf[ix] = (char )pTextFragList->pTextStart[ix];
|
||||
}
|
||||
markbuf[ix] = 0;
|
||||
|
||||
if((index = AddNameData((const char *)markbuf,1)) >= 0)
|
||||
{
|
||||
sprintf(cmdbuf,"%c%dM",CTRL_EMBEDDED,index);
|
||||
len = strlen(cmdbuf);
|
||||
for(ix=0; ix<len; ix++)
|
||||
{
|
||||
*pW++ = cmdbuf[ix];
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
pTextFragList = pTextFragList->pNext;
|
||||
}
|
||||
|
||||
if(pW != NULL)
|
||||
{
|
||||
*pW = 0;
|
||||
}
|
||||
*n_text = frag_count;
|
||||
return(total);
|
||||
} // end of ProcessFragList
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* CTTSEngObj::Speak *
|
||||
*-------------------*
|
||||
* Description:
|
||||
* This is the primary method that SAPI calls to render text.
|
||||
*-----------------------------------------------------------------------------
|
||||
* Input Parameters
|
||||
*
|
||||
* pUser
|
||||
* Pointer to the current user profile object. This object contains
|
||||
* information like what languages are being used and this object
|
||||
* also gives access to resources like the SAPI master lexicon object.
|
||||
*
|
||||
* dwSpeakFlags
|
||||
* This is a set of flags used to control the behavior of the
|
||||
* SAPI voice object and the associated engine.
|
||||
*
|
||||
* VoiceFmtIndex
|
||||
* Zero based index specifying the output format that should
|
||||
* be used during rendering.
|
||||
*
|
||||
* pTextFragList
|
||||
* A linked list of text fragments to be rendered. There is
|
||||
* one fragement per XML state change. If the input text does
|
||||
* not contain any XML markup, there will only be a single fragment.
|
||||
*
|
||||
* pOutputSite
|
||||
* The interface back to SAPI where all output audio samples and events are written.
|
||||
*
|
||||
* Return Values
|
||||
* S_OK - This should be returned after successful rendering or if
|
||||
* rendering was interrupted because *pfContinue changed to FALSE.
|
||||
* E_INVALIDARG
|
||||
* E_OUTOFMEMORY
|
||||
*
|
||||
*****************************************************************************/
|
||||
STDMETHODIMP CTTSEngObj::Speak( DWORD dwSpeakFlags,
|
||||
REFGUID rguidFormatId,
|
||||
const WAVEFORMATEX * pWaveFormatEx,
|
||||
const SPVTEXTFRAG* pTextFragList,
|
||||
ISpTTSEngineSite* pOutputSite )
|
||||
{
|
||||
SPDBG_FUNC( "CTTSEngObj::Speak" );
|
||||
HRESULT hr = S_OK;
|
||||
|
||||
unsigned int size;
|
||||
|
||||
int xVolume;
|
||||
int xSpeed;
|
||||
int xPitch;
|
||||
int xRange;
|
||||
int xEmphasis;
|
||||
int xSayas;
|
||||
int punctuation;
|
||||
int n_text_frag=0;
|
||||
|
||||
//--- Check args
|
||||
if( SP_IS_BAD_INTERFACE_PTR( pOutputSite ) ||
|
||||
SP_IS_BAD_READ_PTR( pTextFragList ) )
|
||||
{
|
||||
hr = E_INVALIDARG;
|
||||
}
|
||||
else
|
||||
{
|
||||
InitNamedata();
|
||||
|
||||
//--- Init some vars
|
||||
m_pCurrFrag = pTextFragList;
|
||||
m_pNextChar = m_pCurrFrag->pTextStart;
|
||||
m_pEndChar = m_pNextChar + m_pCurrFrag->ulTextLen;
|
||||
m_ullAudioOff = 0;
|
||||
|
||||
m_OutputSite = pOutputSite;
|
||||
|
||||
|
||||
xVolume = gVolume;
|
||||
xSpeed = gSpeed;
|
||||
xPitch = gPitch;
|
||||
xRange = gRange;
|
||||
xEmphasis = gEmphasis;
|
||||
xSayas = gSayas;
|
||||
|
||||
// find the size of the text buffer needed for this Speak() request
|
||||
size = ProcessFragList(pTextFragList,NULL,pOutputSite,&n_text_frag);
|
||||
|
||||
gVolume = xVolume;
|
||||
gSpeed = xSpeed;
|
||||
gPitch = xPitch;
|
||||
gRange = xRange;
|
||||
gEmphasis = xEmphasis;
|
||||
gSayas = xSayas;
|
||||
|
||||
punctuation = 0;
|
||||
if(dwSpeakFlags & SPF_NLP_SPEAK_PUNC)
|
||||
punctuation = 1;
|
||||
|
||||
espeak_SetParameter(espeakPUNCTUATION,punctuation,0);
|
||||
|
||||
size = (size + 50)*sizeof(wchar_t);
|
||||
|
||||
if(size > gBufSize)
|
||||
{
|
||||
size += 1000; // some extra so we don't need to realloc() again too often
|
||||
TextBuf = (wchar_t *)realloc(TextBuf,size);
|
||||
if(TextBuf == NULL)
|
||||
{
|
||||
gBufSize=0;
|
||||
return(1);
|
||||
}
|
||||
gBufSize = size;
|
||||
}
|
||||
|
||||
audio_latest = 0;
|
||||
size = ProcessFragList(pTextFragList,TextBuf,pOutputSite,&n_text_frag);
|
||||
|
||||
if(size > 0)
|
||||
{
|
||||
espeak_Synth(TextBuf,0,0,POS_CHARACTER,0,espeakCHARS_WCHAR | espeakKEEP_NAMEDATA,NULL,NULL);
|
||||
}
|
||||
}
|
||||
return hr;
|
||||
} /* CTTSEngObj::Speak */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
HRESULT CTTSEngObj::CheckActions( ISpTTSEngineSite* pOutputSite )
|
||||
{//==============================================================
|
||||
int control;
|
||||
USHORT volume;
|
||||
long rate;
|
||||
|
||||
control = pOutputSite->GetActions();
|
||||
|
||||
if(control & SPVES_VOLUME)
|
||||
{
|
||||
if(pOutputSite->GetVolume(&volume) == S_OK)
|
||||
{
|
||||
master_volume = volume;
|
||||
}
|
||||
}
|
||||
if(control & SPVES_RATE)
|
||||
{
|
||||
if(pOutputSite->GetRate(&rate) == S_OK)
|
||||
{
|
||||
master_rate = rate;
|
||||
}
|
||||
}
|
||||
|
||||
return(S_OK);
|
||||
} // end of CTTSEngObj::CheckActions
|
||||
|
||||
|
||||
|
||||
STDMETHODIMP CTTSEngObj::GetOutputFormat( const GUID * pTargetFormatId, const WAVEFORMATEX * pTargetWaveFormatEx,
|
||||
GUID * pDesiredFormatId, WAVEFORMATEX ** ppCoMemDesiredWaveFormatEx )
|
||||
{//========================================================================
|
||||
SPDBG_FUNC( "CTTSEngObj::GetVoiceFormat" );
|
||||
HRESULT hr = S_OK;
|
||||
enum SPSTREAMFORMAT sample_rate = SPSF_22kHz16BitMono;
|
||||
|
||||
srate = 441;
|
||||
if(espeak_GetParameter(espeakVOICETYPE,1) == 1)
|
||||
{
|
||||
srate = 320;
|
||||
sample_rate = SPSF_16kHz16BitMono; // an mbrola voice
|
||||
}
|
||||
|
||||
hr = SpConvertStreamFormatEnum(sample_rate, pDesiredFormatId, ppCoMemDesiredWaveFormatEx);
|
||||
|
||||
return hr;
|
||||
} /* CTTSEngObj::GetVoiceFormat */
|
||||
|
||||
|
||||
|
||||
int FAR PASCAL CompileDictionary(const char *voice, const char *path_log)
|
||||
{//===========================================================
|
||||
FILE *f_log;
|
||||
char fname[120];
|
||||
|
||||
f_log = fopen(path_log,"w");
|
||||
sprintf(fname,"%s/",path_install);
|
||||
|
||||
espeak_SetVoiceByName(voice);
|
||||
espeak_CompileDictionary(fname,f_log);
|
||||
fclose(f_log);
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
Executable
+121
@@ -0,0 +1,121 @@
|
||||
/******************************************************************************
|
||||
* TtsEngObj.h *
|
||||
*-------------*
|
||||
* This is the header file for the sample CTTSEngObj class definition.
|
||||
*------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
*
|
||||
******************************************************************************/
|
||||
#ifndef TtsEngObj_h
|
||||
#define TtsEngObj_h
|
||||
|
||||
//--- Additional includes
|
||||
#ifndef __TtsEng_h__
|
||||
#include "ttseng.h"
|
||||
#endif
|
||||
|
||||
#ifndef SPDDKHLP_h
|
||||
#include <spddkhlp.h>
|
||||
#endif
|
||||
|
||||
#ifndef SPCollec_h
|
||||
#include <spcollec.h>
|
||||
#endif
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
__declspec( dllexport )int FAR PASCAL _export CompileDictionary(const char *voice, const char *path_log);
|
||||
|
||||
//=== Constants ====================================================
|
||||
|
||||
//=== Class, Enum, Struct and Union Declarations ===================
|
||||
|
||||
//=== Enumerated Set Definitions ===================================
|
||||
|
||||
//=== Function Type Definitions ====================================
|
||||
|
||||
//=== Class, Struct and Union Definitions ==========================
|
||||
|
||||
/*** CSentItem
|
||||
* This object is a helper class
|
||||
*/
|
||||
class CSentItem
|
||||
{
|
||||
public:
|
||||
CSentItem() { memset( this, 0, sizeof(*this) ); }
|
||||
CSentItem( CSentItem& Other ) { memcpy( this, &Other, sizeof( Other ) ); }
|
||||
|
||||
/*--- Data members ---*/
|
||||
const SPVSTATE* pXmlState;
|
||||
LPCWSTR pItem;
|
||||
ULONG ulItemLen;
|
||||
ULONG ulItemSrcOffset; // Original source character position
|
||||
ULONG ulItemSrcLen; // Length of original source item in characters
|
||||
};
|
||||
|
||||
typedef CSPList<CSentItem,CSentItem&> CItemList;
|
||||
|
||||
/*** CTTSEngObj COM object ********************************
|
||||
*/
|
||||
class ATL_NO_VTABLE CTTSEngObj :
|
||||
public CComObjectRootEx<CComMultiThreadModel>,
|
||||
public CComCoClass<CTTSEngObj, &CLSID_SampleTTSEngine>,
|
||||
public ISpTTSEngine,
|
||||
public ISpObjectWithToken
|
||||
{
|
||||
/*=== ATL Setup ===*/
|
||||
public:
|
||||
DECLARE_REGISTRY_RESOURCEID(IDR_SAMPLETTSENGINE)
|
||||
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
||||
|
||||
BEGIN_COM_MAP(CTTSEngObj)
|
||||
COM_INTERFACE_ENTRY(ISpTTSEngine)
|
||||
COM_INTERFACE_ENTRY(ISpObjectWithToken)
|
||||
END_COM_MAP()
|
||||
|
||||
/*=== Methods =======*/
|
||||
public:
|
||||
/*--- Constructors/Destructors ---*/
|
||||
HRESULT FinalConstruct();
|
||||
void FinalRelease();
|
||||
|
||||
/*=== Interfaces ====*/
|
||||
public:
|
||||
//--- ISpObjectWithToken ----------------------------------
|
||||
STDMETHODIMP SetObjectToken( ISpObjectToken * pToken );
|
||||
STDMETHODIMP GetObjectToken( ISpObjectToken ** ppToken )
|
||||
{ return SpGenericGetObjectToken( ppToken, m_cpToken ); }
|
||||
|
||||
|
||||
//--- ISpTTSEngine --------------------------------------------
|
||||
STDMETHOD(Speak)( DWORD dwSpeakFlags,
|
||||
REFGUID rguidFormatId, const WAVEFORMATEX * pWaveFormatEx,
|
||||
const SPVTEXTFRAG* pTextFragList, ISpTTSEngineSite* pOutputSite );
|
||||
STDMETHOD(GetOutputFormat)( const GUID * pTargetFormatId, const WAVEFORMATEX * pTargetWaveFormatEx,
|
||||
GUID * pDesiredFormatId, WAVEFORMATEX ** ppCoMemDesiredWaveFormatEx );
|
||||
|
||||
HRESULT CheckActions( ISpTTSEngineSite* pOutputSite );
|
||||
int ProcessFragList(const SPVTEXTFRAG* pTextFragList, wchar_t *pW, ISpTTSEngineSite* pOutputSite, int *n_text);
|
||||
|
||||
private:
|
||||
/*--- Non interface methods ---*/
|
||||
|
||||
/*=== Member Data ===*/
|
||||
private:
|
||||
CComPtr<ISpObjectToken> m_cpToken;
|
||||
HANDLE m_hVoiceData;
|
||||
void* m_pVoiceData;
|
||||
//--- Voice (word/audio data) list
|
||||
// Note: You will probably have something more sophisticated here
|
||||
// we are just trying to keep it simple for the example.
|
||||
VOICEITEM* m_pWordList;
|
||||
ULONG m_ulNumWords;
|
||||
|
||||
//--- Working variables to walk the text fragment list during Speak()
|
||||
const SPVTEXTFRAG* m_pCurrFrag;
|
||||
const WCHAR* m_pNextChar;
|
||||
const WCHAR* m_pEndChar;
|
||||
ULONGLONG m_ullAudioOff;
|
||||
};
|
||||
|
||||
#endif //--- This must be the last line in the file
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
HKCR
|
||||
{
|
||||
TtsEng.SampleTTSEngine.1 = s 'SampleTTSEngine Class'
|
||||
{
|
||||
CLSID = s '{BE985C8D-BE32-4A22-AA93-55C16A6D1D91}'
|
||||
}
|
||||
TtsEng.SampleTTSEngine = s 'SampleTTSEngine Class'
|
||||
{
|
||||
CLSID = s '{BE985C8D-BE32-4A22-AA93-55C16A6D1D91}'
|
||||
CurVer = s 'TtsEng.SampleTTSEngine.1'
|
||||
}
|
||||
NoRemove CLSID
|
||||
{
|
||||
ForceRemove {BE985C8D-BE32-4A22-AA93-55C16A6D1D91} = s 'SampleTTSEngine Class'
|
||||
{
|
||||
ProgID = s 'TtsEng.SampleTTSEngine.1'
|
||||
VersionIndependentProgID = s 'TtsEng.SampleTTSEngine'
|
||||
InprocServer32 = s '%MODULE%'
|
||||
{
|
||||
val ThreadingModel = s 'Both'
|
||||
}
|
||||
'TypeLib' = s '{7192AA2F-F759-43E9-91E7-226371EF6B2F}'
|
||||
}
|
||||
}
|
||||
}
|
||||
Executable
+78
@@ -0,0 +1,78 @@
|
||||
/****************************************************************************
|
||||
* *
|
||||
* VERSION.H -- Version information for internal builds *
|
||||
* *
|
||||
* This file is only modified by the official builder to update the *
|
||||
* VERSION, VER_PRODUCTVERSION and VER_PRODUCTVERSION_STR values *
|
||||
* *
|
||||
* version.h is created on the fly from verhead.bat and vertail.h, *
|
||||
* with the current version numbers inserted in between *
|
||||
* *
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef VER_H
|
||||
/* ver.h defines constants needed by the VS_VERSION_INFO structure */
|
||||
//#include <winver.h>
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#define VER_FILETYPE VFT_APP
|
||||
#define VER_FILESUBTYPE VFT2_UNKNOWN
|
||||
#define VER_FILEDESCRIPTION_STR "TTS SAMPLE ENGINE 5"
|
||||
#define VER_INTERNALNAME_STR "TTSSAMPLEENG5"
|
||||
|
||||
/*--------------------------------------------------------------*/
|
||||
/* the following entry should be phased out in favor of */
|
||||
/* VER_PRODUCTVERSION_STR, but is used in the shell today. */
|
||||
/*--------------------------------------------------------------*/
|
||||
|
||||
|
||||
/*--------------------------------------------------------------*/
|
||||
/* the following values should be modified by the official */
|
||||
/* builder for each build */
|
||||
/*--------------------------------------------------------------*/
|
||||
|
||||
#define VERSION "5.0"
|
||||
#define VER_FILEVERSION_STR "5.0"
|
||||
#define VER_FILEVERSION 5,0
|
||||
#define VER_PRODUCTVERSION_STR "5.0"
|
||||
#define VER_PRODUCTVERSION 5,0
|
||||
|
||||
#define OFFICIAL 1
|
||||
#define FINAL 1
|
||||
|
||||
/*--------------------------------------------------------------*/
|
||||
/* the following section defines values used in the version */
|
||||
/* data structure for all files, and which do not change. */
|
||||
/*--------------------------------------------------------------*/
|
||||
|
||||
/* default is nodebug */
|
||||
#if _DEBUG
|
||||
#define VER_DEBUG VS_FF_DEBUG
|
||||
#else
|
||||
#define VER_DEBUG 0
|
||||
#endif
|
||||
|
||||
/* default is privatebuild */
|
||||
#ifndef OFFICIAL
|
||||
#define VER_PRIVATEBUILD VS_FF_PRIVATEBUILD
|
||||
#else
|
||||
#define VER_PRIVATEBUILD 0
|
||||
#endif
|
||||
|
||||
/* default is prerelease */
|
||||
#ifndef FINAL
|
||||
#define VER_PRERELEASE VS_FF_PRERELEASE
|
||||
#else
|
||||
#define VER_PRERELEASE 0
|
||||
#endif
|
||||
|
||||
#define VER_FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
|
||||
#define VER_FILEOS VOS_DOS_WINDOWS32
|
||||
#define VER_FILEFLAGS (VER_PRIVATEBUILD|VER_PRERELEASE|VER_DEBUG)
|
||||
|
||||
#define VER_COMPANYNAME_STR "Microsoft Corporation\0"
|
||||
#define VER_PRODUCTNAME_STR "Microsoft\256 Windows(TM) Operating System\0"
|
||||
#define VER_LEGALTRADEMARKS_STR \
|
||||
"Microsoft\256 is a registered trademark of Microsoft Corporation. Windows(TM) is a trademark of Microsoft Corporation.\0"
|
||||
|
||||
//#include "\sapi5\build\common.ver"
|
||||
Executable
+44
@@ -0,0 +1,44 @@
|
||||
#ifndef _MAC
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,0,24,00
|
||||
PRODUCTVERSION 1,0,24,00
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x40004L
|
||||
FILETYPE 0x1L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "Comments", "\0"
|
||||
VALUE "CompanyName", "Jonathan Duddington\0"
|
||||
VALUE "FileDescription", "Text to Speech\0"
|
||||
VALUE "FileVersion", "1, 0,24,00\0"
|
||||
VALUE "InternalName", "espeak1.24\0"
|
||||
VALUE "LegalCopyright", "Copyright (c) Jonathan Duddington\0"
|
||||
VALUE "LegalTrademarks", "\0"
|
||||
VALUE "OriginalFilename", "espeak_sapi.dll\0"
|
||||
VALUE "PrivateBuild", "\0"
|
||||
VALUE "ProductName", "espeak TTS\0"
|
||||
VALUE "ProductVersion", "1, 0, 24, 00\0"
|
||||
VALUE "SpecialBuild", "\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x809, 1200
|
||||
END
|
||||
END
|
||||
|
||||
#endif // !_MAC
|
||||
Reference in New Issue
Block a user