us_phoneset.c 8.44 KB
Newer Older
pixhawk's avatar
pixhawk committed
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
/*************************************************************************/
/*                                                                       */
/*                   Carnegie Mellon University and                      */
/*                Centre for Speech Technology Research                  */
/*                     University of Edinburgh, UK                       */
/*                       Copyright (c) 1998-2001                         */
/*                        All Rights Reserved.                           */
/*                                                                       */
/*  Permission is hereby granted, free of charge, to use and distribute  */
/*  this software and its documentation without restriction, including   */
/*  without limitation the rights to use, copy, modify, merge, publish,  */
/*  distribute, sublicense, and/or sell copies of this work, and to      */
/*  permit persons to whom this work is furnished to do so, subject to   */
/*  the following conditions:                                            */
/*   1. The code must retain the above copyright notice, this list of    */
/*      conditions and the following disclaimer.                         */
/*   2. Any modifications must be clearly marked as such.                */
/*   3. Original authors' names are not deleted.                         */
/*   4. The authors' names are not used to endorse or promote products   */
/*      derived from this software without specific prior written        */
/*      permission.                                                      */
/*                                                                       */
/*  THE UNIVERSITY OF EDINBURGH, CARNEGIE MELLON UNIVERSITY AND THE      */
/*  CONTRIBUTORS TO THIS WORK DISCLAIM ALL WARRANTIES WITH REGARD TO     */
/*  THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY   */
/*  AND FITNESS, IN NO EVENT SHALL THE UNIVERSITY OF EDINBURGH, CARNEGIE */
/*  MELLON UNIVERSITY NOR THE CONTRIBUTORS BE LIABLE FOR ANY SPECIAL,    */
/*  INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER          */
/*  RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN  AN ACTION   */
/*  OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF     */
/*  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.       */
/*                                                                       */
/*******************************************************/
/**  Autogenerated phoneset trees for us    */
/*******************************************************/

#include "cst_string.h"
#include "cst_phoneset.h"

extern const cst_phoneset us_phoneset;

static const char * const us_featnames[] = {
 "vc",
 "vlng",
 "vheight",
 "vfront",
 "vrnd",
 "ctype",
 "cplace",
 "cvox",
 NULL };

static const char * const us_phonenames[] = {
 "aa",
 "ae",
 "ah",
 "ao",
 "aw",
 "ax",
 "axr",
 "ay",
 "b",
 "ch",
 "d",
 "dh",
 "dx",
 "eh",
 "el",
 "em",
 "en",
 "er",
 "ey",
 "f",
 "g",
 "hh",
 "hv",
 "ih",
 "iy",
 "jh",
 "k",
 "l",
 "m",
 "n",
 "nx",
 "ng",
 "ow",
 "oy",
 "p",
 "r",
 "s",
 "sh",
 "t",
 "th",
 "uh",
 "uw",
 "v",
 "w",
 "y",
 "z",
 "zh",
 "pau",
 "h#",
 "brth",
 NULL };

static const int us_fv_000[] = { 0, 1, 2, 2, 3, 4, 4, 4,   -1 };
static const int us_fv_001[] = { 0, 5, 2, 6, 3, 4, 4, 4,   -1 };
static const int us_fv_002[] = { 0, 5, 7, 7, 3, 4, 4, 4,   -1 };
static const int us_fv_003[] = { 0, 1, 2, 2, 0, 4, 4, 4,   -1 };
static const int us_fv_004[] = { 0, 8, 2, 7, 3, 4, 4, 4,   -1 };
static const int us_fv_005[] = { 0, 9, 7, 7, 3, 4, 4, 4,   -1 };
static const int us_fv_006[] = { 0, 9, 7, 7, 3, 10, 9, 0,   -1 };
static const int us_fv_007[] = { 0, 8, 2, 7, 3, 4, 4, 4,   -1 };
static const int us_fv_008[] = { 3, 4, 4, 4, 4, 5, 1, 0,   -1 };
static const int us_fv_009[] = { 3, 4, 4, 4, 4, 9, 11, 3,   -1 };
static const int us_fv_010[] = { 3, 4, 4, 4, 4, 5, 9, 0,   -1 };
static const int us_fv_011[] = { 3, 4, 4, 4, 4, 12, 8, 0,   -1 };
static const int us_fv_012[] = { 3, 9, 4, 4, 4, 5, 9, 0,   -1 };
static const int us_fv_013[] = { 0, 5, 7, 6, 3, 4, 4, 4,   -1 };
static const int us_fv_014[] = { 0, 5, 4, 4, 4, 1, 9, 0,   -1 };
static const int us_fv_015[] = { 0, 5, 4, 4, 4, 13, 1, 0,   -1 };
static const int us_fv_016[] = { 0, 5, 4, 4, 4, 13, 9, 0,   -1 };
static const int us_fv_017[] = { 0, 9, 7, 7, 3, 10, 4, 4,   -1 };
static const int us_fv_018[] = { 0, 8, 7, 6, 3, 4, 4, 4,   -1 };
static const int us_fv_019[] = { 3, 4, 4, 4, 4, 12, 14, 3,   -1 };
static const int us_fv_020[] = { 3, 4, 4, 4, 4, 5, 15, 0,   -1 };
static const int us_fv_021[] = { 3, 4, 4, 4, 4, 12, 16, 3,   -1 };
static const int us_fv_022[] = { 3, 4, 4, 4, 4, 12, 16, 0,   -1 };
static const int us_fv_023[] = { 0, 5, 6, 6, 3, 4, 4, 4,   -1 };
static const int us_fv_024[] = { 0, 1, 6, 6, 3, 4, 4, 4,   -1 };
static const int us_fv_025[] = { 3, 4, 4, 4, 4, 9, 11, 0,   -1 };
static const int us_fv_026[] = { 3, 4, 4, 4, 4, 5, 15, 3,   -1 };
static const int us_fv_027[] = { 3, 4, 4, 4, 4, 1, 9, 0,   -1 };
static const int us_fv_028[] = { 3, 4, 4, 4, 4, 13, 1, 0,   -1 };
static const int us_fv_029[] = { 3, 4, 4, 4, 4, 13, 9, 0,   -1 };
static const int us_fv_030[] = { 3, 4, 4, 4, 4, 13, 8, 0,   -1 };
static const int us_fv_031[] = { 3, 4, 4, 4, 4, 13, 15, 0,   -1 };
static const int us_fv_032[] = { 0, 8, 7, 2, 0, 4, 4, 4,   -1 };
static const int us_fv_033[] = { 0, 8, 7, 2, 0, 4, 4, 4,   -1 };
static const int us_fv_034[] = { 3, 4, 4, 4, 4, 5, 1, 3,   -1 };
static const int us_fv_035[] = { 3, 4, 4, 4, 4, 10, 9, 0,   -1 };
static const int us_fv_036[] = { 3, 4, 4, 4, 4, 12, 9, 3,   -1 };
static const int us_fv_037[] = { 3, 4, 4, 4, 4, 12, 11, 3,   -1 };
static const int us_fv_038[] = { 3, 4, 4, 4, 4, 5, 9, 3,   -1 };
static const int us_fv_039[] = { 3, 4, 4, 4, 4, 12, 8, 3,   -1 };
static const int us_fv_040[] = { 0, 5, 6, 2, 0, 4, 4, 4,   -1 };
static const int us_fv_041[] = { 0, 1, 6, 2, 0, 4, 4, 4,   -1 };
static const int us_fv_042[] = { 3, 4, 4, 4, 4, 12, 14, 0,   -1 };
static const int us_fv_043[] = { 3, 4, 4, 4, 4, 10, 1, 0,   -1 };
static const int us_fv_044[] = { 3, 4, 4, 4, 4, 10, 11, 0,   -1 };
static const int us_fv_045[] = { 3, 4, 4, 4, 4, 12, 9, 0,   -1 };
static const int us_fv_046[] = { 3, 4, 4, 4, 4, 12, 11, 0,   -1 };
static const int us_fv_047[] = { 3, 4, 4, 4, 4, 4, 4, 3,   -1 };
static const int us_fv_048[] = { 3, 4, 4, 4, 4, 4, 4, 3,   -1 };
static const int us_fv_049[] = { 3, 4, 4, 4, 4, 4, 4, 3,   -1 };
static const int us_fv_050[] = { 0 };

static const int * const us_fvtable[] = {
  us_fv_000, 
  us_fv_001, 
  us_fv_002, 
  us_fv_003, 
  us_fv_004, 
  us_fv_005, 
  us_fv_006, 
  us_fv_007, 
  us_fv_008, 
  us_fv_009, 
  us_fv_010, 
  us_fv_011, 
  us_fv_012, 
  us_fv_013, 
  us_fv_014, 
  us_fv_015, 
  us_fv_016, 
  us_fv_017, 
  us_fv_018, 
  us_fv_019, 
  us_fv_020, 
  us_fv_021, 
  us_fv_022, 
  us_fv_023, 
  us_fv_024, 
  us_fv_025, 
  us_fv_026, 
  us_fv_027, 
  us_fv_028, 
  us_fv_029, 
  us_fv_030, 
  us_fv_031, 
  us_fv_032, 
  us_fv_033, 
  us_fv_034, 
  us_fv_035, 
  us_fv_036, 
  us_fv_037, 
  us_fv_038, 
  us_fv_039, 
  us_fv_040, 
  us_fv_041, 
  us_fv_042, 
  us_fv_043, 
  us_fv_044, 
  us_fv_045, 
  us_fv_046, 
  us_fv_047, 
  us_fv_048, 
  us_fv_049, 
 us_fv_050 };

DEF_STATIC_CONST_VAL_STRING(featval_0,"+");
DEF_STATIC_CONST_VAL_STRING(featval_1,"l");
DEF_STATIC_CONST_VAL_STRING(featval_2,"3");
DEF_STATIC_CONST_VAL_STRING(featval_3,"-");
DEF_STATIC_CONST_VAL_STRING(featval_4,"0");
DEF_STATIC_CONST_VAL_STRING(featval_5,"s");
DEF_STATIC_CONST_VAL_STRING(featval_6,"1");
DEF_STATIC_CONST_VAL_STRING(featval_7,"2");
DEF_STATIC_CONST_VAL_STRING(featval_8,"d");
DEF_STATIC_CONST_VAL_STRING(featval_9,"a");
DEF_STATIC_CONST_VAL_STRING(featval_10,"r");
DEF_STATIC_CONST_VAL_STRING(featval_11,"p");
DEF_STATIC_CONST_VAL_STRING(featval_12,"f");
DEF_STATIC_CONST_VAL_STRING(featval_13,"n");
DEF_STATIC_CONST_VAL_STRING(featval_14,"b");
DEF_STATIC_CONST_VAL_STRING(featval_15,"v");
DEF_STATIC_CONST_VAL_STRING(featval_16,"g");

static const cst_val * const us_featvals[] = {
 (cst_val *)&featval_0,
 (cst_val *)&featval_1,
 (cst_val *)&featval_2,
 (cst_val *)&featval_3,
 (cst_val *)&featval_4,
 (cst_val *)&featval_5,
 (cst_val *)&featval_6,
 (cst_val *)&featval_7,
 (cst_val *)&featval_8,
 (cst_val *)&featval_9,
 (cst_val *)&featval_10,
 (cst_val *)&featval_11,
 (cst_val *)&featval_12,
 (cst_val *)&featval_13,
 (cst_val *)&featval_14,
 (cst_val *)&featval_15,
 (cst_val *)&featval_16,
 NULL };

const cst_phoneset us_phoneset = {
  "us",
  us_featnames,
  us_featvals,
  us_phonenames,
  "pau",
  50,
  us_fvtable
};