-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdectalkf.h
262 lines (215 loc) · 8.17 KB
/
dectalkf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
/*
***********************************************************************
*
* Copyright ©
* Copyright © 2000-2001 Force Computers, a Solectron Company. All rights reserved.
* © Digital Equipment Corporation 1995-98. All rights reserved.
*
* Restricted Rights: Use, duplication, or disclosure by the U.S.
* Government is subject to restrictions as set forth in subparagraph
* (c) (1) (ii) of DFARS 252.227-7013, or in FAR 52.227-19, or in FAR
* 52.227-14 Alt. III, as applicable.
*
* This software is proprietary to and embodies the confidential
* technology of Force Computers Incorporated and other parties.
* Possession, use, or copying of this software and media is authorized
* only pursuant to a valid written license from Force or an
* authorized sublicensor.
*
***********************************************************************
*
* Created By: Matthew Schnee
* Created On: xx-mar-1998
*
* Function: DECtalk new features definitions file
*
***********************************************************************
* Modification History
* 001 03/10/1998 cjl Add copyright header.
* 002 03/13/1998 tek sapi group H (audio timing)
* 003 03/13/1998 MGS Added new parser
* 004 03/16/1998 JAW Added comment about compiling under CE.
* 005 03/25/1998 GL Added DBGV command for debug variable passing
* 006 03/31/1998 JAW BATS 637: Removed comment about compiling under
* CE.
* 007 04/02/1998 MGS Added #ifndef NWSNOAA for the new parser
* Added FP_VTM for alpha builds
* 008 04/03/1998 EAB Added new features required by German and needed by all languages NEW_VTM adds
* new capabilities to the vocal tract and NEW_INTONATION adds new flexiblity and control
* to the intonation routines and allows for seperate tuning of the female voice.
* 009 04/29/1998 MGS Added NEW_BINARY_PARSER for GERMAN
* 010 05/22/1998 MGS added FP_VTM for __osf__
* 011 06/10/1998 MGS added GERMAN_COMPOUND_NOUNS for german only
* 012 06/11/1998 MGS Enabled GERMAN_COMPOUND_NOUNS
* 013 07/13/1998 In process of switching code from old to new for English and Spanish.
* 014 08/18/1998 MGS Enabled the new parser for all languages
* this fixes many bug in english and spanish as well as adding new functionality
* 015 10/16/1998 EAB Modified to support the latest levels of the languages
* 016 10/26/1998 EAB Add #define NEW_NOISE option to list
* 017 10/27/1998 EAB Add UK_ENGLISH to new base code stuff
* 018 10/30/1998 TK Add COMPRESSION option
* 019 11/13/1998 GL turn off NEW_VTM and NEW_INTONATION for US ENGLISH
* 020 02/08/1999 GL add NWS_LA and NWS_US support
* 021 02/09/1999 EAB Changed OLD_TILT to NEW_TILT to follow convention of
* enabling new functions
* 022 02/10/1999 Opps wanted new_tilt disabled for submital until it's checked out
* 023 02/12/1999 EAB Added comments and chnaged one ifdef
* 024 02/22/1999 Modified to support new ad_buid and multiple vdef files
and turned off ad for defalt
025 02/23/1999 EAB spanish should include latin as well for the vdef file
026 03/19/1999 EAB Fixed for NWSNOAA plus fixed bug in spanish an german
vdef fetch also nwsnoaa needs to fetch yet another vdef file
027 03/19/1999 EAB Added chages to support the 16 build for Noaa SPanish inluding
a new nwsnoaa tuning file set
028 03/22/1999 EAB In process broke ad_base builds so fixed that
029 02/22/1999 EAB Added code to support Wang's closing time work you get this
if you dont define new_tilt and define closing_time
* 021 12/04/1999 mfg shutoff LOWCOMPUTE for Windows CE
* 022 03/13/2000 mfg turned of AD_BASE for MSDOS build
* 023 04/13/2000 MGS Changes for integrated phoneme set
* 024 05/09/2000 EAB Adjusted new level tuning base.
* 025 10/16/2000 CAB Added copyright info
* 026 01/15/2001 EAb Turned on new_noise for all languages may cause short term burp but needed
// ditto for new_tilt
* 027 01/29/2001 CAB Updated copyright info
* 028 05/09/2001 MGS Access32 Merge BATS#972
* 029 07/09/2001 CAB Exclude access32 for SAPI5
* 030 07/26/2001 CAB Exclude HLSYN for Windows CE
* 031 07/30/2001 CAB Defined SLOWTALK
* 032 02/26/2002 MGS ACNA changes
* 033 07/17/2002 MFG Included HLSYN for Windows CE
* 034 09/24/2002 MFG set CUP28PROJECt for the mitsubichi build
* 035 05/08/2003 MFG defined LOWCOMPUTE_MITSU for WINCE to lower computes
*
*
***********************************************************************
*/
#ifndef _DECTALK_H_
#define _DECTALK_H_
#define SAPI_MULTI_LANGUAGE_SUPPORT
#define SAPI_GROUP_F_INTERFACES
#define SAPI_GROUP_H_TIMING
//#ifndef NWSNOAA
/* MGS 08/18/1998 enabeled new parser for all languages */
//#define GWMICRO 1
#define NEW_BINARY_PARSER
#define GERMAN_COMPOUND_NOUNS
#ifndef ARM7
#define INLINE_FUNC_IN_FILE_USED
#ifdef _DEBUG
#define PH_DEBUG
#endif
#endif
#ifdef EPSON_ARM7
#include "ltsnames.h"
#endif
//#define NON_HLSYN
#define HLSYN
//#ifndef SAPI5DECTALK
#ifdef EPSON_ARM7
#define HLSYN
#define INLINE_FUNC_IN_FILE_USED
#define NO_TONE_SUPPORT
#endif
#if !defined OS_SYMBIAN && !defined OS_PALM
#ifdef ARM7
#ifndef DICT_IN_MEMORY
#define DICT_IN_MEMORY
#endif //DICT_IN_MEMORY
#else //ARM7
#define ALLOC_MEMORY
#endif //ARM7
#endif //!OS_SYMBIAN
#if defined(OS_SYMBIAN) || defined (OS_PALM)
#define ALLOC_MEMORY
#endif
#ifdef ACCESS_SOLUTIONS
#undef HLSYN
#define EMB_INDEX_MARKS
#define DICT_COMPLETE
#define INLINE_FUNC_IN_FILE_USED
#endif
//#define SCI
#ifdef AD_VDSP
#define INLINE_FUNC_IN_FILE_USED
#endif
//#define NEW_PARSER_FILE_LOADING
/* LTS stuff */
//#define NEW_LTS
#ifdef ENGLISH
#define NEW_ACNA
#endif
#ifdef _APPLE_MAC_
#define USE_PORTAUDIO
#endif
#ifndef SAPI5DECTALK
// Turn on ACCESS32, TYPING_MODE, and SLOWTALK
#ifndef ARM7
#ifndef ACCESS32
#define ACCESS32
#endif
#ifndef TYPING_MODE
#define TYPING_MODE
#endif
#endif
#ifndef SLOWTALK
#define SLOWTALK
#endif
#endif // SAPI5DECTALK
#define NEW_PHONES
#if defined ALPHA || defined __osf__
#define FP_VTM
#endif
#define TONGUE_BODY_AREA
// Bypass license validation checks in licenseu only.
// Used to generate registry values for a new release.
//#define VALIDATION_BYPASS
// Symbol for DBGV activation
//#define DBGV_ON
/* The tuning files vary based on language and whether or not anything has changed
as literally changing anything could cause a new tuning to be needed
Therefore do the documentation and callout here.
On tuning for AD it will give the first letters of the voice(s) that should be reasonable
if any.
LANGUAGE VDEF_FILE TUNING UP VDEF_FILE TUNING UP
Source FOR TO DATE SOURCE FOR UP TO DATE
RELEASE AD
US P_US_VDF.C YES P_US_VD1.C P,B
SP P_SP_VDF1.C YES P_SP_VD2.C no
LA P_LA_VDF1.C YES P_LA_VD2.C no
GR P_GR_VDF1.C YES P_GR_VD2.C no
UK P_UK_VDF.C YES P_UK_VD1.C no
Below will call out the appropriate USE_VDEFXXX and global callout for USEVDEF
so the default if nothing defined is the base level _vdef.c version
*/
#ifndef MSDOS
#define AD_BASE //Turns on advanced development build
#endif
#ifdef AD_BASE
#define NEW_VOCAL_TRACT
#endif
#define SINGLE_THREADED
#define NEW_VTM
/* EAB 5/11/98 This enables the new VTM control parameters and enabling code in both VTM and Ph
for a 4.5 or NWS build this should not be defined. It is needed for German, others need checking*/
#define NEW_TILT // EAB 2/9/99 Use new tilt filter-but not for Spanish and German
#define NEW_INTONATION
#define NEW_NOISE //Turns on new noise generator note it's level is different and it does
//affect the speaker def tunings.
#ifdef CASIO_SH3
#define LOWCOMPUTE //EAB 6/12/03 Until we get it solved this is on to to downsampling filter
#endif
// problems
//#define TOMBUCHLER
//#define TESTING
#if defined UNDER_CE
/* THIS MUST BE LEFT DEFINED FOR ARM7 AND CE !!!!!!!!!!!!!!!!!!! */
#define LOWCOMPUTE_MITSU //MFG 05/06/02 needed for windoe ce to lower computes
//Note EAB May 9,2000 Now everything should have LowCompute
#endif
/* TK 12/30/98, new switch for voice compression */
//#define COMPRESSION
#if defined (NWSNOAA) && defined (SPANISH_LA)
#define NWS_LA
#endif
#endif // _DECTALK_H_