forked from mattiasgustavsson/libs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
speech.h
4377 lines (3815 loc) · 176 KB
/
speech.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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
------------------------------------------------------------------------------
Licensing information can be found at the end of the file.
------------------------------------------------------------------------------
speech.h - v0.1 - Very basic text-to-speech synthesizer library for C/C++.
Do this:
#define SPEECH_IMPLEMENTATION
before you include this file in *one* C/C++ file to create the implementation.
------------------------------------------------------------------------------
This file contains modified code based on the TTS code from the SoLoud audio
engine (http://sol.gfxile.net/soloud/), which in turn is based on rsynth by
Nick Ing-Simmons (et al). I have not included any code which were under the
SoLoud license (ZLib/LibPNG). I've basically just merged the code into a
single header library, converted it from C++ to C, and put my own interface
on top of it instead of the original SoLoud interface.
The original license text can be found at the end of this file, and I place my
changes under the same license.
/ Mattias Gustavsson ( [email protected] )
*/
#ifndef speech_h
#define speech_h
short* speech_gen( int* samples_pairs_generated, char const* str, void* memctx );
void speech_free( short* sample_pairs, void* memctx );
#endif /* speech_h */
/*
----------------------
IMPLEMENTATION
----------------------
*/
#ifdef SPEECH_IMPLEMENTATION
#undef SPEECH_IMPLEMENTATION
#pragma warning( push )
#pragma warning( disable: 4706 ) // assignment within conditional expression
#ifndef SPEECH_MALLOC
#define _CRT_NONSTDC_NO_DEPRECATE
#define _CRT_SECURE_NO_WARNINGS
#include <stdlib.h>
#if defined(__cplusplus)
#define SPEECH_MALLOC( ctx, size ) ( ::malloc( size ) )
#define SPEECH_FREE( ctx, ptr ) ( ::free( ptr ) )
#else
#define SPEECH_MALLOC( ctx, size ) ( malloc( size ) )
#define SPEECH_FREE( ctx, ptr ) ( free( ptr ) )
#endif
#endif
#define _CRT_NONSTDC_NO_DEPRECATE
#define _CRT_SECURE_NO_WARNINGS
#include <math.h>
#include <ctype.h>
#include <string.h>
#include <stdio.h>
#define TTS_PI 3.1415926535897932384626433832795f
struct tts_darray_t {
void* memctx;
char *mData;
int mUsed;
int mAllocated;
int mAllocChunk;
char mem[ 1024 ];
};
static void tts_darray_init( struct tts_darray_t* darray, void* memctx ) {
darray->memctx = memctx;
darray->mAllocChunk = 1024;
darray->mUsed = 0;
darray->mAllocated = sizeof( darray->mem );
darray->mData = darray->mem;
}
static void tts_darray_clear( struct tts_darray_t* darray ) {
if( darray->mData != darray->mem ) SPEECH_FREE( darray->memctx, darray->mData );
darray->mAllocChunk = 1024;
darray->mUsed = 0;
darray->mAllocated = sizeof( darray->mem );
darray->mData = darray->mem;
}
static void tts_darray_term( struct tts_darray_t* darray ) {
tts_darray_clear( darray );
}
static char* tts_darray_getDataInPos( struct tts_darray_t* darray, int aPosition ) {
if( aPosition < darray->mAllocated && aPosition < darray->mUsed )
return darray->mData + aPosition;
if( aPosition >= darray->mAllocated ) {
int newsize = darray->mAllocated;
while( newsize <= aPosition ) {
newsize += darray->mAllocChunk;
darray->mAllocChunk *= 2;
}
char* newdata = (char*) SPEECH_MALLOC( darray->memctx, newsize );
if( !newdata ) {
if( darray->mData != darray->mem ) SPEECH_FREE( memctx, darray->mData);
darray->mData = NULL;
darray->mAllocated = darray->mUsed = 0;
return NULL;
}
memcpy( newdata, darray->mData, darray->mAllocated );
if( darray->mData != darray->mem ) {
SPEECH_FREE( darray->memctx, darray->mData );
}
darray->mData = newdata;
darray->mAllocated = newsize;
}
if( aPosition >= darray->mUsed ) {
darray->mUsed = aPosition + 1;
}
return darray->mData + aPosition;
}
static void tts_darray_put( struct tts_darray_t* darray, int aData ) {
char *s = tts_darray_getDataInPos( darray, darray->mUsed );
*s = (char) aData;
}
static int tts_darray_getSize( struct tts_darray_t* darray ) {
return darray->mUsed;
}
static char* tts_darray_getData( struct tts_darray_t* darray ) {
return darray->mData;
}
struct tts_resonator_t {
float mA, mB, mC, mP1, mP2;
};
/* Convert formant freqencies and bandwidth into resonator difference equation coefficents */
static void tts_resonator_initResonator(
struct tts_resonator_t* resonator,
int aFrequency, /* Frequency of resonator in Hz */
int aBandwidth, /* Bandwidth of resonator in Hz */
int aSamplerate )
{
float arg = ( -TTS_PI / aSamplerate ) * aBandwidth;
float r = (float) exp( arg );
resonator->mC = -( r * r );
arg = ( -2.0f * TTS_PI / aSamplerate ) * aFrequency;
resonator->mB = r * (float) cos( arg ) * 2.0f;
resonator->mA = 1.0f - resonator->mB - resonator->mC;
}
/* Convert formant freqencies and bandwidth into anti-resonator difference equation constants */
static void tts_resonator_initAntiresonator(
struct tts_resonator_t* resonator,
int aFrequency, /* Frequency of resonator in Hz */
int aBandwidth, /* Bandwidth of resonator in Hz */
int aSamplerate ) {
tts_resonator_initResonator( resonator, aFrequency, aBandwidth, aSamplerate ); /* First compute ordinary resonator coefficients */
/* Now convert to antiresonator coefficients */
resonator->mA = 1.0f / resonator->mA; /* a'= 1/a */
resonator->mB *= -resonator->mA; /* b'= -b/a */
resonator->mC *= -resonator->mA; /* c'= -c/a */
}
/* Generic resonator function */
static float tts_resonator_resonate( struct tts_resonator_t* resonator, float input ) {
float x = resonator->mA * input + resonator->mB * resonator->mP1 + resonator->mC * resonator->mP2;
resonator->mP2 = resonator->mP1;
resonator->mP1 = x;
return x;
}
/* Generic anti-resonator function
Same as resonator except that a,b,c need to be set with initAntiresonator()
and we save inputs in p1/p2 rather than outputs.
There is currently only one of these - "mNasalZero"
*/
/* Output = (mNasalZero.a * input) + (mNasalZero.b * oldin1) + (mNasalZero.c * oldin2) */
static float tts_resonator_antiresonate( struct tts_resonator_t* resonator, float input ) {
float x = resonator->mA * input + resonator->mB * resonator->mP1 + resonator->mC * resonator->mP2;
resonator->mP2 = resonator->mP1;
resonator->mP1 = input;
return x;
}
static void tts_resonator_init( struct tts_resonator_t* resonator ) {
resonator->mA = resonator->mB = resonator->mC = resonator->mP1 = resonator->mP2 = 0;
}
static void tts_resonator_setGain( struct tts_resonator_t* resonator, float aG ) {
resonator->mA *= aG;
}
#define TTS_CASCADE_PARALLEL 1
#define TTS_ALL_PARALLEL 2
#define TTS_NPAR 40
struct tts_klatt_frame_t {
int mF0FundamentalFreq; // Voicing fund freq in Hz
int mVoicingAmpdb; // Amp of voicing in dB, 0 to 70
int mFormant1Freq; // First formant freq in Hz, 200 to 1300
int mFormant1Bandwidth; // First formant bw in Hz, 40 to 1000
int mFormant2Freq; // Second formant freq in Hz, 550 to 3000
int mFormant2Bandwidth; // Second formant bw in Hz, 40 to 1000
int mFormant3Freq; // Third formant freq in Hz, 1200 to 4999
int mFormant3Bandwidth; // Third formant bw in Hz, 40 to 1000
int mFormant4Freq; // Fourth formant freq in Hz, 1200 to 4999
int mFormant4Bandwidth; // Fourth formant bw in Hz, 40 to 1000
int mFormant5Freq; // Fifth formant freq in Hz, 1200 to 4999
int mFormant5Bandwidth; // Fifth formant bw in Hz, 40 to 1000
int mFormant6Freq; // Sixth formant freq in Hz, 1200 to 4999
int mFormant6Bandwidth; // Sixth formant bw in Hz, 40 to 2000
int mNasalZeroFreq; // Nasal zero freq in Hz, 248 to 528
int mNasalZeroBandwidth; // Nasal zero bw in Hz, 40 to 1000
int mNasalPoleFreq; // Nasal pole freq in Hz, 248 to 528
int mNasalPoleBandwidth; // Nasal pole bw in Hz, 40 to 1000
int mAspirationAmpdb; // Amp of aspiration in dB, 0 to 70
int mNoSamplesInOpenPeriod; // # of samples in open period, 10 to 65
int mVoicingBreathiness; // Breathiness in voicing, 0 to 80
int mVoicingSpectralTiltdb; // Voicing spectral tilt in dB, 0 to 24
int mFricationAmpdb; // Amp of frication in dB, 0 to 80
int mSkewnessOfAlternatePeriods; // Skewness of alternate periods, 0 to 40 in sample#/2
int mFormant1Ampdb; // Amp of par 1st formant in dB, 0 to 80
int mFormant1ParallelBandwidth; // Par. 1st formant bw in Hz, 40 to 1000
int mFormant2Ampdb; // Amp of F2 frication in dB, 0 to 80
int mFormant2ParallelBandwidth; // Par. 2nd formant bw in Hz, 40 to 1000
int mFormant3Ampdb; // Amp of F3 frication in dB, 0 to 80
int mFormant3ParallelBandwidth; // Par. 3rd formant bw in Hz, 40 to 1000
int mFormant4Ampdb; // Amp of F4 frication in dB, 0 to 80
int mFormant4ParallelBandwidth; // Par. 4th formant bw in Hz, 40 to 1000
int mFormant5Ampdb; // Amp of F5 frication in dB, 0 to 80
int mFormant5ParallelBandwidth; // Par. 5th formant bw in Hz, 40 to 1000
int mFormant6Ampdb; // Amp of F6 (same as r6pa), 0 to 80
int mFormant6ParallelBandwidth; // Par. 6th formant bw in Hz, 40 to 2000
int mParallelNasalPoleAmpdb; // Amp of par nasal pole in dB, 0 to 80
int mBypassFricationAmpdb; // Amp of bypass fric. in dB, 0 to 80
int mPalallelVoicingAmpdb; // Amp of voicing, par in dB, 0 to 70
int mOverallGaindb; // Overall gain, 60 dB is unity, 0 to 60
};
struct tts_slope_t {
float mValue; /* boundary value */
int mTime; /* transition time */
};
static void tts_slope_init( struct tts_slope_t* slope ) {
slope->mValue = 0.0f;
slope->mTime = 0;
}
struct tts_interp_t {
float mSteady;
float mFixed;
char mProportion;
char mExtDelay;
char mIntDelay;
};
enum tts_eparm_t {
TTS_ELM_FN, TTS_ELM_F1, TTS_ELM_F2, TTS_ELM_F3,
TTS_ELM_B1, TTS_ELM_B2, TTS_ELM_B3, TTS_ELM_AN,
TTS_ELM_A1, TTS_ELM_A2, TTS_ELM_A3, TTS_ELM_A4,
TTS_ELM_A5, TTS_ELM_A6, TTS_ELM_AB, TTS_ELM_AV,
TTS_ELM_AVC, TTS_ELM_ASP, TTS_ELM_AF,
TTS_ELM_COUNT
};
struct tts_element_t {
const char *mName; // unused
const char mRK;
const char mDU;
const char mUD;
unsigned char mFont; // unused
const char *mDict; // unused
const char *mIpa; // unused
int mFeat; // only TTS_ELM_FEATURE_VWL
struct tts_interp_t mInterpolator[ TTS_ELM_COUNT ];
};
struct tts_klatt_t {
// resonators
struct tts_resonator_t mParallelFormant1, mParallelFormant2, mParallelFormant3,
mParallelFormant4, mParallelFormant5, mParallelFormant6,
mParallelResoNasalPole, mNasalPole, mNasalZero,
mCritDampedGlotLowPassFilter, mDownSampLowPassFilter,
mOutputLowPassFilter;
int mF0Flutter;
int mSampleRate;
int mNspFr;
int mF0FundamentalFreq; // Voicing fund freq in Hz
int mVoicingAmpdb; // Amp of voicing in dB, 0 to 70
int mSkewnessOfAlternatePeriods; // Skewness of alternate periods,0 to 40
int mTimeCount; // used for f0 flutter
int mNPer; // Current loc in voicing period 40000 samp/s
int mT0; // Fundamental period in output samples times 4
int mNOpen; // Number of samples in open phase of period
int mNMod; // Position in period to begin noise amp. modul
// Various amplitude variables used in main loop
float mAmpVoice; // mVoicingAmpdb converted to linear gain
float mAmpBypas; // mBypassFricationAmpdb converted to linear gain
float mAmpAspir; // AP converted to linear gain
float mAmpFrica; // mFricationAmpdb converted to linear gain
float mAmpBreth; // ATURB converted to linear gain
// State variables of sound sources
int mSkew; // Alternating jitter, in half-period units
float mNatglotA; // Makes waveshape of glottal pulse when open
float mNatglotB; // Makes waveshape of glottal pulse when open
float mVWave; // Ditto, but before multiplication by mVoicingAmpdb
float mVLast; // Previous output of voice
float mNLast; // Previous output of random number generator
float mGlotLast; // Previous value of glotout
float mDecay; // mVoicingSpectralTiltdb converted to exponential time const
float mOneMd; // in voicing one-pole TTS_ELM_FEATURE_LOW-pass filter
int mElementCount;
unsigned char* mElement;
int mElementIndex;
struct tts_klatt_frame_t mKlattFramePars;
struct tts_element_t* mLastElement;
int mTStress;
int mNTStress;
struct tts_slope_t mStressS;
struct tts_slope_t mStressE;
float mTop;
int count; // MG: REINIT AT LONG PAUSE
};
enum tts_elm_feature_t {
TTS_ELM_FEATURE_ALV = 0x00000001,
TTS_ELM_FEATURE_APR = 0x00000002,
TTS_ELM_FEATURE_BCK = 0x00000004,
TTS_ELM_FEATURE_BLB = 0x00000008,
TTS_ELM_FEATURE_CNT = 0x00000010,
TTS_ELM_FEATURE_DNT = 0x00000020,
TTS_ELM_FEATURE_FNT = 0x00000040,
TTS_ELM_FEATURE_FRC = 0x00000080,
TTS_ELM_FEATURE_GLT = 0x00000100,
TTS_ELM_FEATURE_HGH = 0x00000200,
TTS_ELM_FEATURE_LAT = 0x00000400,
TTS_ELM_FEATURE_LBD = 0x00000800,
TTS_ELM_FEATURE_LBV = 0x00001000,
TTS_ELM_FEATURE_LMD = 0x00002000,
TTS_ELM_FEATURE_LOW = 0x00004000,
TTS_ELM_FEATURE_MDL = 0x00008000,
TTS_ELM_FEATURE_NAS = 0x00010000,
TTS_ELM_FEATURE_PAL = 0x00020000,
TTS_ELM_FEATURE_PLA = 0x00040000,
TTS_ELM_FEATURE_RND = 0x00080000,
TTS_ELM_FEATURE_RZD = 0x00100000,
TTS_ELM_FEATURE_SMH = 0x00200000,
TTS_ELM_FEATURE_STP = 0x00400000,
TTS_ELM_FEATURE_UMD = 0x00800000,
TTS_ELM_FEATURE_UNR = 0x01000000,
TTS_ELM_FEATURE_VCD = 0x02000000,
TTS_ELM_FEATURE_VEL = 0x04000000,
TTS_ELM_FEATURE_VLS = 0x08000000,
TTS_ELM_FEATURE_VWL = 0x10000000
};
enum tts_elm_t
{
TTS_ELM_END = 0,
TTS_ELM_Q, TTS_ELM_P, TTS_ELM_PY, TTS_ELM_PZ, TTS_ELM_T, TTS_ELM_TY,
TTS_ELM_TZ, TTS_ELM_K, TTS_ELM_KY, TTS_ELM_KZ, TTS_ELM_B, TTS_ELM_BY, TTS_ELM_BZ,
TTS_ELM_D, TTS_ELM_DY, TTS_ELM_DZ, TTS_ELM_G, TTS_ELM_GY, TTS_ELM_GZ, TTS_ELM_M,
TTS_ELM_N, TTS_ELM_NG, TTS_ELM_F, TTS_ELM_TH, TTS_ELM_S, TTS_ELM_SH, TTS_ELM_X,
TTS_ELM_H, TTS_ELM_V, TTS_ELM_QQ, TTS_ELM_DH, TTS_ELM_DI, TTS_ELM_Z, TTS_ELM_ZZ,
TTS_ELM_ZH, TTS_ELM_CH, TTS_ELM_CI, TTS_ELM_J, TTS_ELM_JY, TTS_ELM_L, TTS_ELM_LL,
TTS_ELM_RX, TTS_ELM_R, TTS_ELM_W, TTS_ELM_Y, TTS_ELM_I, TTS_ELM_E, TTS_ELM_AA,
TTS_ELM_U, TTS_ELM_O, TTS_ELM_OO, TTS_ELM_A, TTS_ELM_EE, TTS_ELM_ER, TTS_ELM_AR,
TTS_ELM_AW, TTS_ELM_UU, TTS_ELM_AI, TTS_ELM_IE, TTS_ELM_OI, TTS_ELM_OU, TTS_ELM_OV,
TTS_ELM_OA, TTS_ELM_IA, TTS_ELM_IB, TTS_ELM_AIR,TTS_ELM_OOR,TTS_ELM_OR
};
#define TTS_PHONEME_COUNT 52
#define TTS_AMP_ADJ 14
#define TTS_StressDur(e) (((e->mDU + e->mUD)/2))
struct tts_phoneme_to_elements_t {
int mKey;
char mData[8];
};
/* Order is important - 2 byte phonemes first, otherwise
the search function will fail*/
static struct tts_phoneme_to_elements_t tts_phoneme_to_elements[TTS_PHONEME_COUNT] = {
/* mKey, count, 0-7 elements */
/* tS */ 0x5374, 2, TTS_ELM_CH, TTS_ELM_CI, 0, 0, 0, 0, 0,
/* dZ */ 0x5a64, 4, TTS_ELM_J, TTS_ELM_JY, TTS_ELM_QQ, TTS_ELM_JY, 0, 0, 0,
/* rr */ 0x7272, 3, TTS_ELM_R, TTS_ELM_QQ, TTS_ELM_R, 0, 0, 0, 0,
/* eI */ 0x4965, 2, TTS_ELM_AI, TTS_ELM_I, 0, 0, 0, 0, 0,
/* aI */ 0x4961, 2, TTS_ELM_IE, TTS_ELM_I, 0, 0, 0, 0, 0,
/* oI */ 0x496f, 2, TTS_ELM_OI, TTS_ELM_I, 0, 0, 0, 0, 0,
/* aU */ 0x5561, 2, TTS_ELM_OU, TTS_ELM_OV, 0, 0, 0, 0, 0,
/* @U */ 0x5540, 2, TTS_ELM_OA, TTS_ELM_OV, 0, 0, 0, 0, 0,
/* I@ */ 0x4049, 2, TTS_ELM_IA, TTS_ELM_IB, 0, 0, 0, 0, 0,
/* e@ */ 0x4065, 2, TTS_ELM_AIR, TTS_ELM_IB, 0, 0, 0, 0, 0,
/* U@ */ 0x4055, 2, TTS_ELM_OOR, TTS_ELM_IB, 0, 0, 0, 0, 0,
/* O@ */ 0x404f, 2, TTS_ELM_OR, TTS_ELM_IB, 0, 0, 0, 0, 0,
/* oU */ 0x556f, 2, TTS_ELM_OI, TTS_ELM_OV, 0, 0, 0, 0, 0,
/* */ 0x0020, 1, TTS_ELM_Q, 0, 0, 0, 0, 0, 0,
/* p */ 0x0070, 3, TTS_ELM_P, TTS_ELM_PY, TTS_ELM_PZ, 0, 0, 0, 0,
/* t */ 0x0074, 3, TTS_ELM_T, TTS_ELM_TY, TTS_ELM_TZ, 0, 0, 0, 0,
/* k */ 0x006b, 3, TTS_ELM_K, TTS_ELM_KY, TTS_ELM_KZ, 0, 0, 0, 0,
/* b */ 0x0062, 3, TTS_ELM_B, TTS_ELM_BY, TTS_ELM_BZ, 0, 0, 0, 0,
/* d */ 0x0064, 3, TTS_ELM_D, TTS_ELM_DY, TTS_ELM_DZ, 0, 0, 0, 0,
/* g */ 0x0067, 3, TTS_ELM_G, TTS_ELM_GY, TTS_ELM_GZ, 0, 0, 0, 0,
/* m */ 0x006d, 1, TTS_ELM_M, 0, 0, 0, 0, 0, 0,
/* n */ 0x006e, 1, TTS_ELM_N, 0, 0, 0, 0, 0, 0,
/* N */ 0x004e, 1, TTS_ELM_NG, 0, 0, 0, 0, 0, 0,
/* f */ 0x0066, 1, TTS_ELM_F, 0, 0, 0, 0, 0, 0,
/* T */ 0x0054, 1, TTS_ELM_TH, 0, 0, 0, 0, 0, 0,
/* s */ 0x0073, 1, TTS_ELM_S, 0, 0, 0, 0, 0, 0,
/* S */ 0x0053, 1, TTS_ELM_SH, 0, 0, 0, 0, 0, 0,
/* h */ 0x0068, 1, TTS_ELM_H, 0, 0, 0, 0, 0, 0,
/* v */ 0x0076, 3, TTS_ELM_V, TTS_ELM_QQ, TTS_ELM_V, 0, 0, 0, 0,
/* D */ 0x0044, 3, TTS_ELM_DH, TTS_ELM_QQ, TTS_ELM_DI, 0, 0, 0, 0,
/* z */ 0x007a, 3, TTS_ELM_Z, TTS_ELM_QQ, TTS_ELM_ZZ, 0, 0, 0, 0,
/* Z */ 0x005a, 3, TTS_ELM_ZH, TTS_ELM_QQ, TTS_ELM_ZH, 0, 0, 0, 0,
/* l */ 0x006c, 1, TTS_ELM_L, 0, 0, 0, 0, 0, 0,
/* r */ 0x0072, 1, TTS_ELM_R, 0, 0, 0, 0, 0, 0,
/* R */ 0x0052, 1, TTS_ELM_RX, 0, 0, 0, 0, 0, 0,
/* w */ 0x0077, 1, TTS_ELM_W, 0, 0, 0, 0, 0, 0,
/* x */ 0x0078, 1, TTS_ELM_X, 0, 0, 0, 0, 0, 0,
/* % */ 0x0025, 1, TTS_ELM_QQ, 0, 0, 0, 0, 0, 0,
/* j */ 0x006a, 1, TTS_ELM_Y, 0, 0, 0, 0, 0, 0,
/* I */ 0x0049, 1, TTS_ELM_I, 0, 0, 0, 0, 0, 0,
/* e */ 0x0065, 1, TTS_ELM_E, 0, 0, 0, 0, 0, 0,
/* & */ 0x0026, 1, TTS_ELM_AA, 0, 0, 0, 0, 0, 0,
/* V */ 0x0056, 1, TTS_ELM_U, 0, 0, 0, 0, 0, 0,
/* 0 */ 0x0030, 1, TTS_ELM_O, 0, 0, 0, 0, 0, 0,
/* U */ 0x0055, 1, TTS_ELM_OO, 0, 0, 0, 0, 0, 0,
/* @ */ 0x0040, 1, TTS_ELM_A, 0, 0, 0, 0, 0, 0,
/* i */ 0x0069, 1, TTS_ELM_EE, 0, 0, 0, 0, 0, 0,
/* 3 */ 0x0033, 1, TTS_ELM_ER, 0, 0, 0, 0, 0, 0,
/* A */ 0x0041, 1, TTS_ELM_AR, 0, 0, 0, 0, 0, 0,
/* O */ 0x004f, 1, TTS_ELM_AW, 0, 0, 0, 0, 0, 0,
/* u */ 0x0075, 1, TTS_ELM_UU, 0, 0, 0, 0, 0, 0,
/* o */ 0x006f, 1, TTS_ELM_OI, 0, 0, 0, 0, 0, 0,
};
static struct tts_element_t tts_gElement[] = {
/*mName, mRK, mDU, mUD, mFont, mDict, mIpa, mFeat, interpolators*/
/* (mSteady, mFixed, mProportion, mExtDelay, mIntDelay) */
{"END", 31, 5, 5,0x00,NULL,NULL,0,
{
{ 270, 135, 50, 3, 3}, /* TTS_ELM_FN 0 */
{ 490, 0, 100, 0, 0}, /* TTS_ELM_F1 0 */
{ 1480, 0, 100, 0, 0}, /* TTS_ELM_F2 0 */
{ 2500, 0, 100, 0, 0}, /* TTS_ELM_F3 0 */
{ 60, 0, 100, 0, 0}, /* TTS_ELM_B1 0 */
{ 90, 0, 100, 0, 0}, /* TTS_ELM_B2 0 */
{ 150, 0, 100, 0, 0}, /* TTS_ELM_B3 0 */
{ -30, -10.5, 100, 3, 0}, /* TTS_ELM_AN -10.5 */
{ -30, -10.5, 100, 3, 0}, /* TTS_ELM_A1 -10.5 */
{ -30, -10.5, 100, 3, 0}, /* TTS_ELM_A2 -10.5 */
{ -30, -10.5, 100, 3, 0}, /* TTS_ELM_A3 -10.5 */
{ -30, -10.5, 100, 3, 0}, /* TTS_ELM_A4 -10.5 */
{ -30, 0, 100, 3, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 3, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 3, 0}, /* TTS_ELM_AB 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 0, 0, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"Q", 29, 6, 6,0x00,NULL,NULL,0,
{
{ 270, 135, 50, 3, 3}, /* TTS_ELM_FN 0 */
{ 490, 0, 100, 3, 3}, /* TTS_ELM_F1 0 */
{ 1480, 0, 100, 3, 3}, /* TTS_ELM_F2 0 */
{ 2500, 0, 100, 3, 3}, /* TTS_ELM_F3 0 */
{ 60, 0, 100, 3, 3}, /* TTS_ELM_B1 0 */
{ 90, 0, 100, 3, 3}, /* TTS_ELM_B2 0 */
{ 150, 0, 100, 3, 3}, /* TTS_ELM_B3 0 */
{ -30, -10.5, 100, 3, 0}, /* TTS_ELM_AN -10.5 */
{ -30, -10.5, 100, 3, 0}, /* TTS_ELM_A1 -10.5 */
{ -30, -10.5, 100, 3, 0}, /* TTS_ELM_A2 -10.5 */
{ -30, -10.5, 100, 3, 0}, /* TTS_ELM_A3 -10.5 */
{ -30, -10.5, 100, 3, 0}, /* TTS_ELM_A4 -10.5 */
{ -30, 0, 100, 3, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 3, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 3, 0}, /* TTS_ELM_AB 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 0, 0, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"P", 23, 8, 8,0x70,"p","p",TTS_ELM_FEATURE_BLB|TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VLS,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 110, 50, 2, 2}, /* TTS_ELM_F1 15 */
{ 760, 350, 50, 2, 2}, /* TTS_ELM_F2 -30 */
{ 2500, 0, 100, 0, 2}, /* TTS_ELM_F3 0 */
{ 60, 30, 50, 2, 2}, /* TTS_ELM_B1 0 */
{ 90, 45, 50, 2, 2}, /* TTS_ELM_B2 0 */
{ 150, 0, 100, 0, 2}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 60, 30, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 60, 30, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"PY", 29, 1, 1,0x70,"p","p",TTS_ELM_FEATURE_BLB|TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VLS,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 0, 100, 0, 0}, /* TTS_ELM_F1 0 */
{ 760, 0, 100, 0, 0}, /* TTS_ELM_F2 0 */
{ 2500, 0, 100, 0, 0}, /* TTS_ELM_F3 0 */
{ 60, 0, 100, 0, 0}, /* TTS_ELM_B1 0 */
{ 90, 0, 100, 0, 0}, /* TTS_ELM_B2 0 */
{ 150, 0, 100, 0, 0}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ 24.5, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ 49, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ 43.75, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ 38.5, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 60, 30, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 60, 30, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"PZ", 23, 2, 2,0x70,"p","p",TTS_ELM_FEATURE_BLB|TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VLS,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 110, 50, 2, 2}, /* TTS_ELM_F1 15 */
{ 760, 350, 50, 2, 2}, /* TTS_ELM_F2 -30 */
{ 2500, 0, 100, 2, 2}, /* TTS_ELM_F3 0 */
{ 60, 30, 50, 2, 2}, /* TTS_ELM_B1 0 */
{ 90, 45, 50, 2, 2}, /* TTS_ELM_B2 0 */
{ 150, 0, 100, 2, 2}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ 24.5, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ 38.5, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ 33.25, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ 28, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 60, 30, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 60, 30, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"T", 23, 6, 6,0x74,"t","t",TTS_ELM_FEATURE_ALV|TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VLS,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 110, 50, 2, 2}, /* TTS_ELM_F1 15 */
{ 1780, 950, 50, 2, 2}, /* TTS_ELM_F2 60 */
{ 2680, 2680, 0, 0, 2}, /* TTS_ELM_F3 0 */
{ 60, 30, 50, 2, 2}, /* TTS_ELM_B1 0 */
{ 90, 45, 50, 2, 2}, /* TTS_ELM_B2 0 */
{ 150, 150, 0, 0, 2}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 60, 30, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 60, 30, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"TY", 29, 1, 1,0x74,"t","t",TTS_ELM_FEATURE_ALV|TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VLS,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 0, 100, 0, 0}, /* TTS_ELM_F1 0 */
{ 1780, 0, 100, 0, 0}, /* TTS_ELM_F2 0 */
{ 2680, 0, 100, 0, 0}, /* TTS_ELM_F3 0 */
{ 60, 0, 100, 0, 0}, /* TTS_ELM_B1 0 */
{ 90, 0, 100, 0, 0}, /* TTS_ELM_B2 0 */
{ 150, 0, 100, 0, 0}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ 38.5, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ 50.75, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 60, 30, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 60, 30, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"TZ", 23, 2, 2,0x74,"t","t",TTS_ELM_FEATURE_ALV|TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VLS,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 110, 50, 2, 1}, /* TTS_ELM_F1 15 */
{ 1780, 950, 50, 2, 1}, /* TTS_ELM_F2 60 */
{ 2680, 2680, 0, 2, 0}, /* TTS_ELM_F3 0 */
{ 60, 30, 50, 2, 1}, /* TTS_ELM_B1 0 */
{ 90, 45, 50, 2, 1}, /* TTS_ELM_B2 0 */
{ 150, 150, 0, 2, 0}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ 28, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ 40.25, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 60, 30, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 60, 30, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"K", 23, 8, 8,0x6B,"k","k",TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VEL|TTS_ELM_FEATURE_VLS,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 110, 50, 3, 3}, /* TTS_ELM_F1 15 */
{ 1480, 1550, 50, 3, 3}, /* TTS_ELM_F2 810 */
{ 2620, 1580, 50, 3, 3}, /* TTS_ELM_F3 270 */
{ 60, 30, 50, 3, 3}, /* TTS_ELM_B1 0 */
{ 90, 45, 50, 3, 3}, /* TTS_ELM_B2 0 */
{ 150, 75, 50, 3, 3}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 60, 30, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 60, 30, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"KY", 29, 1, 1,0x6B,"k","k",TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VEL|TTS_ELM_FEATURE_VLS,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 0, 100, 0, 0}, /* TTS_ELM_F1 0 */
{ 1480, 0, 100, 0, 0}, /* TTS_ELM_F2 0 */
{ 2620, 0, 100, 0, 0}, /* TTS_ELM_F3 0 */
{ 60, 0, 100, 0, 0}, /* TTS_ELM_B1 0 */
{ 90, 0, 100, 0, 0}, /* TTS_ELM_B2 0 */
{ 150, 0, 100, 0, 0}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ 50.75, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ 50.75, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ 29.75, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 60, 30, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 60, 30, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"KZ", 23, 4, 4,0x6B,"k","k",TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VEL|TTS_ELM_FEATURE_VLS,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 110, 50, 3, 3}, /* TTS_ELM_F1 15 */
{ 1480, 1550, 50, 3, 3}, /* TTS_ELM_F2 810 */
{ 2620, 1580, 50, 3, 3}, /* TTS_ELM_F3 270 */
{ 60, 30, 50, 3, 3}, /* TTS_ELM_B1 0 */
{ 90, 45, 50, 3, 3}, /* TTS_ELM_B2 0 */
{ 150, 75, 50, 3, 3}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ 40.25, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ 40.25, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ 19.25, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 60, 30, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 60, 30, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"B", 26,12,12,0x62,"b","b",TTS_ELM_FEATURE_BLB|TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VCD,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 110, 50, 2, 2}, /* TTS_ELM_F1 15 */
{ 760, 350, 50, 2, 2}, /* TTS_ELM_F2 -30 */
{ 2500, 0, 100, 0, 2}, /* TTS_ELM_F3 0 */
{ 60, 30, 50, 2, 2}, /* TTS_ELM_B1 0 */
{ 90, 45, 50, 2, 2}, /* TTS_ELM_B2 0 */
{ 150, 0, 100, 0, 2}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ 24.5, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 0, 0, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"BY", 29, 1, 1,0x62,"b","b",TTS_ELM_FEATURE_BLB|TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VCD,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 0, 100, 0, 0}, /* TTS_ELM_F1 0 */
{ 760, 0, 100, 0, 0}, /* TTS_ELM_F2 0 */
{ 2500, 0, 100, 0, 0}, /* TTS_ELM_F3 0 */
{ 60, 0, 100, 0, 0}, /* TTS_ELM_B1 0 */
{ 90, 0, 100, 0, 0}, /* TTS_ELM_B2 0 */
{ 150, 0, 100, 0, 0}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ 24.5, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ 49, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ 43.25, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ 38.5, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 0, 0, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"BZ", 26, 0, 0,0x62,"b","b",TTS_ELM_FEATURE_BLB|TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VCD,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 110, 50, 2, 0}, /* TTS_ELM_F1 15 */
{ 760, 350, 50, 2, 0}, /* TTS_ELM_F2 -30 */
{ 2500, 0, 100, 0, 0}, /* TTS_ELM_F3 0 */
{ 60, 30, 50, 2, 0}, /* TTS_ELM_B1 0 */
{ 90, 45, 50, 2, 0}, /* TTS_ELM_B2 0 */
{ 150, 0, 100, 0, 0}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 0, 0, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"D", 26, 8, 8,0x64,"d","d",TTS_ELM_FEATURE_ALV|TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VCD,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 110, 50, 2, 2}, /* TTS_ELM_F1 15 */
{ 1780, 950, 50, 2, 2}, /* TTS_ELM_F2 60 */
{ 2680, 2680, 0, 2, 2}, /* TTS_ELM_F3 0 */
{ 60, 30, 50, 2, 2}, /* TTS_ELM_B1 0 */
{ 90, 45, 50, 2, 2}, /* TTS_ELM_B2 0 */
{ 150, 150, 0, 2, 2}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ 31.5, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 0, 0, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"DY", 29, 1, 1,0x64,"d","d",TTS_ELM_FEATURE_ALV|TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VCD,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 0, 100, 0, 0}, /* TTS_ELM_F1 0 */
{ 1780, 0, 100, 0, 0}, /* TTS_ELM_F2 0 */
{ 2680, 0, 100, 0, 0}, /* TTS_ELM_F3 0 */
{ 60, 0, 100, 0, 0}, /* TTS_ELM_B1 0 */
{ 90, 0, 100, 0, 0}, /* TTS_ELM_B2 0 */
{ 150, 0, 100, 0, 0}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ 38.5, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ 38.5, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ 35, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ 45.5, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 0, 0, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"DZ", 26, 1, 1,0x64,"d","d",TTS_ELM_FEATURE_ALV|TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VCD,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 110, 50, 2, 0}, /* TTS_ELM_F1 15 */
{ 1780, 950, 50, 2, 0}, /* TTS_ELM_F2 60 */
{ 2680, 2680, 0, 2, 0}, /* TTS_ELM_F3 0 */
{ 60, 30, 50, 2, 0}, /* TTS_ELM_B1 0 */
{ 90, 45, 50, 2, 0}, /* TTS_ELM_B2 0 */
{ 150, 150, 0, 2, 0}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ 38.5, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ 28, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ 24.5, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ 35, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 0, 0, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"G", 26,12,12,0x67,"g","g",TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VCD|TTS_ELM_FEATURE_VEL,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 110, 50, 3, 3}, /* TTS_ELM_F1 15 */
{ 1480, 1550, 50, 3, 3}, /* TTS_ELM_F2 810 */
{ 2620, 1580, 50, 3, 3}, /* TTS_ELM_F3 270 */
{ 60, 30, 50, 3, 3}, /* TTS_ELM_B1 0 */
{ 90, 45, 50, 3, 3}, /* TTS_ELM_B2 0 */
{ 150, 75, 50, 3, 3}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ 35, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 0, 0, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"GY", 29, 1, 1,0x67,"g","g",TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VCD|TTS_ELM_FEATURE_VEL,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 0, 100, 0, 0}, /* TTS_ELM_F1 0 */
{ 1480, 0, 100, 0, 0}, /* TTS_ELM_F2 0 */
{ 2620, 0, 100, 0, 0}, /* TTS_ELM_F3 0 */
{ 60, 0, 100, 0, 0}, /* TTS_ELM_B1 0 */
{ 90, 0, 100, 0, 0}, /* TTS_ELM_B2 0 */
{ 150, 0, 100, 0, 0}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ 35, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ 45.5, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ 40.25, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ 24.5, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 0, 0, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"GZ", 26, 2, 2,0x67,"g","g",TTS_ELM_FEATURE_STP|TTS_ELM_FEATURE_VCD|TTS_ELM_FEATURE_VEL,
{
{ 270, 135, 50, 0, 0}, /* TTS_ELM_FN 0 */
{ 190, 110, 50, 3, 2}, /* TTS_ELM_F1 15 */
{ 1480, 1550, 50, 3, 2}, /* TTS_ELM_F2 810 */
{ 2620, 1580, 50, 3, 2}, /* TTS_ELM_F3 270 */
{ 60, 30, 50, 3, 2}, /* TTS_ELM_B1 0 */
{ 90, 45, 50, 3, 2}, /* TTS_ELM_B2 0 */
{ 150, 75, 50, 3, 2}, /* TTS_ELM_B3 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AN 0 */
{ 35, 0, 100, 0, 0}, /* TTS_ELM_A1 0 */
{ 35, 0, 100, 0, 0}, /* TTS_ELM_A2 0 */
{ 29.75, 0, 100, 0, 0}, /* TTS_ELM_A3 0 */
{ 14, 0, 100, 0, 0}, /* TTS_ELM_A4 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 0, 0}, /* TTS_ELM_AB 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AV 0 */
{ 62, 31, 50, 0, 0}, /* TTS_ELM_AVC 0 */
{ 0, 0, 50, 0, 0}, /* TTS_ELM_ASP 0 */
{ 0, 0, 50, 0, 0} /* TTS_ELM_AF 0 */
}
},
{"M", 15, 8, 8,0x6D,"m","m",TTS_ELM_FEATURE_BLB|TTS_ELM_FEATURE_NAS,
{
{ 360, 360, 0, 3, 0}, /* TTS_ELM_FN 0 */
{ 480, 480, 0, 3, 0}, /* TTS_ELM_F1 0 */
{ 1000, 350, 50, 3, 0}, /* TTS_ELM_F2 -150 */
{ 2200, 0, 100, 5, 0}, /* TTS_ELM_F3 0 */
{ 40, 20, 50, 3, 0}, /* TTS_ELM_B1 0 */
{ 175, 87, 50, 3, 0}, /* TTS_ELM_B2 -0.5 */
{ 120, 0, 100, 5, 0}, /* TTS_ELM_B3 0 */
{ 42, 21, 50, 3, 0}, /* TTS_ELM_AN 0 */
{ 26, -10, 100, 3, 0}, /* TTS_ELM_A1 -10 */
{ 30, -10, 100, 3, 0}, /* TTS_ELM_A2 -10 */
{ 33, -10, 100, 3, 0}, /* TTS_ELM_A3 -10 */
{ -30, -10, 100, 3, 0}, /* TTS_ELM_A4 -10 */
{ -30, 0, 100, 3, 0}, /* TTS_ELM_A5 0 */
{ -30, 0, 100, 3, 0}, /* TTS_ELM_A6 0 */
{ -30, 0, 100, 3, 0}, /* TTS_ELM_AB 0 */
{ 62, 31, 50, 2, 0}, /* TTS_ELM_AV 0 */
{ 62, 31, 50, 2, 0}, /* TTS_ELM_AVC 0 */
{ 0, 0, 50, 2, 0}, /* TTS_ELM_ASP 0 */
{ 0, 0, 50, 2, 0} /* TTS_ELM_AF 0 */
}