-
Notifications
You must be signed in to change notification settings - Fork 3
/
codebook.h
76 lines (48 loc) · 3.15 KB
/
codebook.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
// mapping of ranges of harmonic energies h1-h15 to phonetic interpretation
// each entry is the acceptable range from minimum and maximum inclusive
// Energy range is 0 to 15, represeted in hex format, 0x[min][max]
#define CBSIZE 23
const unsigned char cb[CBSIZE][17]={
// silence
0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,'_',0,
0x77,0x77,0x77,0x77, 0x77,0x77,0x77,0x77, 0x77,0x77,0x77,0x77, 0x77,0x77,0x77,'_',1,
// 'ah' sound in 'i' (ae), 'j' (jae), 'r' (ar), 'y' (oae).
0x8c,0x8c,0xaf,0x9f, 0x8d,0x4b,0x28,0x25, 0x25,0x3a,0x4a,0x37, 0x37,0x39,0x2a,'a',0,
// 'ay' sound used in 'a' (A), 'h' (AC), 'k' (kA)
0x9d,0x6f,0x48,0x25, 0x15,0x15,0x26,0x4a, 0x8c,0x8e,0x7d,0x6b, 0x58,0x49,0x58,'A',0,
// 'b' sound used in 'b' (b), 'p' (bkE) and 'w' (dublyO)
0x3f,0x2b,0x36,0x26, 0x29,0x3e,0x7f,0x6d, 0x5c,0x6e,0x5a,0x59, 0x3a,0x38,0x26,'b',0,
// 'd' used in 'd' (dE), 'w' (dublO), 'z' (sed)
0x18,0x3b,0x3b,0x1a, 0x19,0x2b,0x49,0x5c, 0x5a,0x6a,0x6e,0x5c, 0x5a,0x4b,0x4c,'d',0,
0x01,0x13,0x35,0x45, 0x58,0x67,0x55,0x55, 0x88,0x9a,0x9a,0xab, 0xaf,0xac,0xbd,'d',1,
// 'ee'and 'y' sound used in 'b' (bE), 'c' (sE), 'd' (dE), 'e' (E), 'g' (jE),
// 'p' (bkE), 't' (tE), 'v' (vE or fE), 'u' (EO)
0xcf,0x59,0x24,0x03, 0x02,0x02,0x15,0x38, 0x5d,0x7d,0x7e,0x7d, 0x8e,0x6e,0x5c,'E',0,
// 'eh' sound used in 'f' (ef), 'l' (el), 'm' (em), 'n' (en),
// 's' (es), 'x' (eks), 'z' (sed)
0x8c,0x8b,0x5c,0x37, 0x35,0x29,0x3d,0x5b, 0x5a,0x6b,0x5d,0x48, 0x39,0x39,0x19,'e',0,
// 'f' sound from 'f' (ef), 'v' (fE).
0x04,0x03,0x14,0x36, 0x57,0x79,0xbf,0x7a, 0x6a,0x8c,0x7c,0x79, 0x7a,0x7c,0x7a,'f',0,
0x69,0x49,0x4a,0x57, 0x67,0x7c,0x79,0x67, 0x6b,0x78,0x49,0x47, 0x49,0x39,0x28,'f',1,
0xcc,0x77,0x55,0x44, 0x55,0x88,0x99,0x66, 0x55,0x66,0xaa,0x77, 0x66,0x66,0x66,'f',2,
// 'j/ch' sound from 'g' (jE), 'h' (Aj), 'j' (jae).
0x00,0x00,0x03,0x05, 0x03,0x25,0x58,0x6b, 0x7d,0x9f,0xdf,0xcf, 0xcf,0xbe,0x8c,'j',0,
// 'k' sound used in 'k' (kA), 'p' (bkE), 'q' (KyO).
0x02,0x14,0x25,0x25, 0x26,0x36,0x47,0x59, 0x6a,0x8d,0xbf,0x9f, 0x9c,0x8b,0x9c,'k',0,
0x55,0x44,0x44,0x44, 0x66,0x66,0x66,0x88, 0x99,0x88,0xaa,0x99, 0x88,0x99,0xaa,'k',1,
// 'l' sound in 'l' (el)
0xce,0x8f,0x7f,0x8d, 0x4a,0x36,0x15,0x05, 0x05,0x27,0x48,0x48, 0x49,0x58,0x3a,'l',0,
// 'm' sound in 'm' (em)
0xdf,0x7a,0x58,0x5a, 0x6a,0x7a,0x39,0x37, 0x49,0x59,0x47,0x36, 0x37,0x36,0x37,'m',0,
// 'n' sound in 'n' (en)
0xbf,0x6a,0x58,0x47, 0x47,0x38,0x47,0x58, 0x47,0x5b,0x6a,0x47, 0x36,0x47,0x59,'n',0,
// 'o' sound in 'o' (o), also 'w' sound in 'y' (oai).
0xef,0xbf,0xef,0x8c, 0x47,0x25,0x14,0x14, 0x25,0x3b,0x48,0x48, 0x27,0x26,0x25,'o',0,
// 'oo' sound in 'q' (kO), 'u' (EO), 'w' (dublyO)
0xcd,0x8d,0x47,0x34, 0x35,0x48,0x8d,0x68, 0x7c,0x6c,0x46,0x47, 0x4c,0x47,0x27,'O',0,
// 'r' sound only used in 'r' (ar).
0x9c,0x8d,0x6e,0x8e, 0x8c,0x7d,0x7d,0x5b, 0x25,0x04,0x05,0x15, 0x37,0x37,0x26,'r',0,
// 's' sound in 'c' (sE), 's' (es), 'x' (e_s), 'z' (sed)
0x01,0x02,0x04,0x15, 0x15,0x36,0x59,0x6b, 0x7c,0x8b,0x9c,0xaf, 0xbf,0xbf,0xaf,'s',0,
0x44,0x22,0x22,0x22, 0x44,0x44,0x44,0x66, 0x88,0x99,0x99,0xcc, 0xdd,0xbb,0xaa,'s',1,
};