// http://espeak.sourceforge.net/phontab.html
//=========================================================
// Burmese
//=========================================================

//===========
// TONES
//===========

//phoneme 1  //see vietnamese; tones taken from there
//  stress
//  Tone(X,Y,...)
//endphoneme

phoneme 1 //low tone
  stress
  Tone(20,35, envelope/i_risefall,NULL)
endphoneme

phoneme 2  //high tone
  stress
  Tone(45,80, envelope/p_rise,NULL)
endphoneme

phoneme 3  //creaky tone
  stress
  Tone(30,75, envelope/p_214, NULL)
endphoneme

phoneme 4  //checked tone
  stress
  Tone(20,35, envelope/i_risefall,NULL)
endphoneme


//===========
// VOWELS
//===========

//phoneme X
//  vwl starttype #X endtype #X
//  length XXX
//  FMT(vowel/X_X) //refers to binary file in vowel/ directory
//endphoneme



//Oral Vowels

phoneme ə    //  Schwa 
//cannot be followed by ɴ
  vwl   starttype #@  endtype #@
  unstressed
//   IF nextPh(3) THEN //creaky tone
	//length 
//	length 
	//f1 
	//f2 
//  ELIF nextPh(1) THEN //low tone
	//length 
//	length 
	//f1 
	//f2
//  ELIF nextPh(2) THEN //high tone
	//length 
//	length 
	//f1 
	//f2
//  ELIF nextPh(4) THEN //checked tone
	//length 213 195 173
	length 194
	//f1 785 777 799
	//f2 1644 1613 1629
//  ENDIF
  FMT(vowel/@)
endphoneme

phoneme ɛ 
//cannot be followed by ɴ
  vwl starttype #e endtype #e
  IF nextPh(3) THEN //creaky tone
	//length 184 223 202
	length 203
	//formant 561,2055 566,2050 596,1978
	//f1 561 566 596: 574
	//f2 2055 2050 1978: 2028
  ELIF nextPh(1) THEN //low tone
	//length 446 431 360
	length 412
	//formant 547,2002 552,1977 558,1976
	//f1 547 552 558: 552
	//f2 2002 1977 1976: 1985
  ELIF nextPh(2) THEN //high tone
	//length 364 306 281
	length 317
	//formant 577,2111 545,2063 542,2036
	//f1 577 545 542: 555
	//f2 2111 2063 2036: 2070
  ELIF nextPh(4) THEN //checked tone
	//length 207 215 204
	length 209
	//f1 705 722 715
	//f2 1975 1866 1871
  ENDIF
  FMT(vowel/e_mid) //chosen at random
endphoneme

phoneme i
  vwl starttype #i endtype #i
  IF nextPh(3) THEN //creaky tone
	//length 159 187 158
	length 168
	//f1 418 356 398: 391
	//f2 2323 2169 2274: 2255
  ELIF nextPh(1) THEN //low tone
	//length 425 413 385
	length 408
	//formant 458,2213 487,2139 412,2215
	//f1 458 487 412: 452
	//f2 2213 2139 2215: 2189
  ELIF nextPh(2) THEN //high tone
	//length 317 338 280
	length 312
	//formant 351,2043 350,2287 365,2307
	//f1 351 350 365: 355
	//f2 2043 2287 2307: 2212
  ELIF nextPh(4) THEN //checked tone
	//length 226 217 211
	length 218
	//f1 517 536 542
	//f2 2209 2185 2191
  ENDIF
  FMT(vowel/i)
endphoneme

phoneme e
  vwl starttype #e endtype #e
  IF nextPh(3) THEN //creaky tone
	//length 191 209 191
	length 197
	//formant 431,2279 449,2343 457,2230
	//f1 431 449 457: 446
	//f2 2279 2343 2230: 2284
  ELIF nextPh(1) THEN //low tone
	//length 457 467 385
	length 436
	//formant 462,2194 453,2152 453,2149
	//f1 462 453 453: 456
	//f2 2194 2152 2149: 2165
  ELIF nextPh(2) THEN //high tone
	//length 328 352 328
	length 336
	//formant 451,2313 447,2288 487,2314
	//f1 451 447 487: 462
	//f2 2313 2288 2314: 2305
  ELIF nextPh(4) THEN //checked tone
	//length 207 225 225
	length 219
	//f1 495 502 506
	//f2 2273 2319 2280
  ENDIF
  FMT(vowel/e)
endphoneme

phoneme u
  vwl starttype #u endtype #u
  IF nextPh(3) THEN //creaky tone
	//length 198 216 187
	length 200
	//formant 376,1082 363,1072 348,1110
	//f1 376 363 348: 362
	//f2 1082 1072 1110: 1088
  ELIF nextPh(1) THEN //low tone
	//length 508 479 396
	length 461
	//formant 377,1254 386,1223 340,1246
	//f1 377 386 340: 368
	//f2 1254 1223 1246: 1241
  ELIF nextPh(2) THEN //high tone
	//length 295 335 277
	length 302
	//formant 350,1125 325,1104 326,1183
	//f1 350 325 326: 3334
	//f2 1125 1104 1183: 1137
//  ELIF nextPh(4) THEN //checked tone
	//length 
//	length 
	//f1 
	//f2 
  ENDIF
  FMT(vowel/u)
endphoneme

phoneme o
  vwl starttype #o endtype #o
  IF nextPh(3) THEN //creaky tone
	//length 216 277 216
	length 236
	//formant 461,1073 496,1121 505,1047
	//f1 461 496 505: 487
	//f2 1073 1121 1047: 1080
  ELIF nextPh(1) THEN //low tone
	//length 545 471 396
	length 471
	//formant 479,1285 477,1167 477,1241
	//f1 479 477 477: 478
	//f2 1285 1167 1241: 1231
  ELIF nextPh(2) THEN //high tone
	//length 360 382 292
	length 345
	//formant 449,1038 462,1036 507,1030
	//f1 449 462 507: 473
	//f2 1038 1036 1030: 1035
  ELIF nextPh(4) THEN //checked tone
	//length 202 211 193
	length 202
	//f1 547 542 541
	//f2 1095 1110 1146
  ENDIF
  FMT(vowel/oo)
endphoneme

phoneme ɔ
  vwl
  IF nextPh(4) THEN //diphthong with checked tone
  	starttype #o  endtype #u
  ELSE
	starttype #o  endtype #o
  ENDIF
  IF nextPh(3) THEN //creaky tone
	//length 252 270 277
	length 266
	//formant 601,1073 583,1105 604,1091 
	//f1 601 583 604: 596
	//f2 1073 1105 1091: 1090
  ELIF nextPh(1) THEN //low tone
	//length 453 511 410
	length 458
	//formant 549,1028 587,1068 582,1027
	//f1 549 587 582: 573
	//f2 1028 1068 1027: 1041
  ELIF nextPh(2) THEN //high tone
	//length 334 338 302
	length 325
	//formant 580,1075 560,1048 578,1097
	//f1 580 560 578: 573
	//f2 1075 1049 1097: 1074
  ELIF nextPh(4) THEN //checked tone
	//length 202 224 180
	length 202
	//f1 888 851 840
	//f2 1290 1317 1321 
  ENDIF
  FMT(vowel/oo_en) //formant
endphoneme

phoneme a
  vwl
  IF nextPh(4) THEN //diphthong with checked tone
  	starttype #a  endtype #i
  ELSE
	starttype #a  endtype #a
  ENDIF
//  IF nextPh(3) THEN //creaky tone
	//length 
//	length 
	//f1 
	//f2 
//  ELIF nextPh(1) THEN //low tone
	//length 
//	length 
	//f1 
	//f2 
//  ELIF nextPh(2) THEN //high tone
	//length 
//	length 
	//f1 
	//f2 
//  ELIF nextPh(4) THEN //checked tone
	//length 246 244 209
	length 233
	//f1 806 753 734
	//f2 1789 1862 1928
//  ENDIF
  FMT(vowel/oo_en) //formant
endphoneme

//Nasal Vowels
//Nasal vowels cannot take checked tone

phoneme iɴ
  vwl starttype #i endtype #i
//  IF nextPh(3) THEN //creaky tone
	//length 
//	length 
	//f1 
	//f2	
//  ELIF nextPh(1) THEN //low tone
	//length 379 400 359
	length 379
	//f1 479 548 577
	//f2 2015 2235 2126
//  ELIF nextPh(2) THEN //high tone
	//length 
//	length 
	//f1 
	//f2 
//  ENDIF
  FMT(vowel/i)
endphoneme

phoneme eɴ
  vwl starttype #e endtype #e
//  IF nextPh(3) THEN //creaky tone
	//length 
//	length 
	//f1 
	//f2 
//  ELIF nextPh(1) THEN //low tone
	//length 417 476 497
	length 463
	//f1 478 550 605
	//f2 2323 2295 2292
//  ELIF nextPh(2) THEN //high tone
	//length 
//	length 
	//f1 
	//f2 
//  ENDIF
  FMT(vowel/e)
endphoneme

phoneme uɴ
  vwl starttype #u endtype #u
//  IF nextPh(3) THEN //creaky tone
	//length 
//	length 
	//f1 
	//f2 
//  ELIF nextPh(1) THEN //low tone
	//length 
//	length 
	//f1 
	//f2 
//  ELIF nextPh(2) THEN //high tone
	//length 
//	length 
	//f1 
	//f2 
//  ENDIF
  FMT(vowel/u)
endphoneme

phoneme oɴ
  vwl starttype #a endtype #u
//  IF nextPh(3) THEN //creaky tone
	//length 
//	length 
	//f1 
	//f2 
//  ELIF nextPh(1) THEN //low tone
	//length 372 371 329
	length 357
	//f1 530 559 573
	//f2 1006 1035 1057
//  ELIF nextPh(2) THEN //high tone
	//length 
//	length 
	//f1 
	//f2 
//  ENDIF
  FMT(vowel/oo)
endphoneme

phoneme ɔɴ
  vwl  starttype #o  endtype #u
//  IF nextPh(3) THEN //creaky tone
	//length 
//	length
	//f1 
	//f2 
//  ELIF nextPh(1) THEN //low tone
	//length 572 582 395
	length 511
	//f1 823 840 801
	//f2 1463 1535 1393
//  ELIF nextPh(2) THEN //high tone
	//length 
//	length 
	//f1 
	//f2 
//  ENDIF
  FMT(vowel/oo_en) //formant
endphoneme

phoneme aɴ
  vwl  starttype #a  endtype #i
//  IF nextPh(3) THEN //creaky tone
	//length 
//	length
	//f1 
	//f2 
//  ELIF nextPh(1) THEN //low tone
	//length 451 393 357
	length 400
	//f1 776 762 792
	//f2 1908 1772 1753
//  ELIF nextPh(2) THEN //high tone
	//length 
//	length 
	//f1 
	//f2 
//  ENDIF
  FMT(vowel/a) //formant
endphoneme


//===========
// CONSONANTS
//===========

phoneme mh //voiceless
  vls blb nas
endphoneme

phoneme m
  //vcd blb nas
  import_phoneme base1/m
endphoneme

phoneme nh
  vls alv nas
endphoneme

phoneme n
  //vcd alv nas
  import_phoneme base1/n
endphoneme

phoneme ɲh
  vls pal nas
endphoneme

phoneme ɲ
  //vcd pal nasal pzd
  import_phoneme base1/n^
endphoneme

phoneme ŋh
  vls vel nas
endphoneme

phoneme ŋ
  //vcd vel nas
  import_phoneme base1/N
endphoneme

//phoneme ɴ
//  vcd glt nas
//endphoneme

phoneme p
  //vls blb stp
  import_phoneme base1/b
endphoneme

phoneme b
  //vcd blb stp
  import_phoneme base1/b
endphoneme

phoneme ph //aspirated
  //vls blb stp
  import_phoneme base1/p
endphoneme

phoneme t
  //vls alv stp
  import_phoneme base1/d
endphoneme

phoneme d
  //vcd alv stp
  import_phoneme base1/d
endphoneme

phoneme th
  //vls alv stp
  import_phoneme base1/t
endphoneme

phoneme tɕ
  //vls pla afr sib
  import_phoneme base1/tS
endphoneme

phoneme dʑ
  //vcd pla afr sib
  import_phoneme base1/dZ
endphoneme

phoneme tɕh
  vls pla afr sib
  // aspirated
endphoneme

phoneme k
  //vls vel stp
  import_phoneme base1/k
endphoneme

phoneme g
  //vcd vel stp
  import_phoneme base1/g
endphoneme

phoneme kh
  //vls vel stp
  import_phoneme base1/k
endphoneme

phoneme ʔ
  vls glt stp
endphoneme

phoneme θ
  //vls dnt frc
  import_phoneme base1/T
endphoneme

phoneme ð
  //vcd dnt frc
  import_phoneme base1/D
endphoneme

phoneme s
  //vls alv frc sib
  import_phoneme base1/s
endphoneme

phoneme z
  //vcd alv frc sib
  import_phoneme base1/z
endphoneme

phoneme sh //aspirated not pzd
  vls alv frc sib
endphoneme

phoneme ʃ
  //vls pla frc sib
  import_phoneme base1/S
endphoneme

phoneme h
  vls glt frc
endphoneme

phoneme j
  vcd pal liquid
endphoneme

phoneme ɹ
  vcd alv liquid
endphoneme

phoneme wh //voiceless
  vls blb liquid
endphoneme

phoneme w
  vcd blb liquid
endphoneme

phoneme lh //voiceless
  vls alv liquid
endphoneme

phoneme l
  //vcd alv liquid
  import_phoneme base1/l  
endphoneme