ph_vietnam 7.14 KB
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
 
//====================================================
//  Vietnamese Phonemes
//====================================================


phoneme 1   //  ngang tone: level
  stress
  Tone(34,36, envelope/p_level, NULL) // 28 29
endphoneme


phoneme 2   //  huyền tone: low falling
  stress
  Tone(30, 8, envelope/p_fall, NULL) //20 8
endphoneme


phoneme 3   //  sắc Tone(rising
  stress
  Tone(30, 60, envelope/p_rise, NULL) // 30 60
endphoneme


phoneme 4   //  hỏi Tone(curve (dipping rising)
  stress
  Tone(10, 55, envelope/p_fallrise, NULL) //33 31
endphoneme


phoneme 5   //  ngã tone: broken (creaking rising)
  stress
  Tone(28,58,envelope/p_214, envelope/vi_5amp) // 28,58 20 80
endphoneme


phoneme 6   //  nặng Tone(drop  (constricted)
  stress
  //length 150 // ignore because it make too short sound 75  // reduce the length of the vowel
  Tone(25, 60, envelope/p_512, envelope/vi_6amp) //40 20
endphoneme


phoneme 7   //  Tone(1 (ngang) at end of clause
  stress
  Tone(40,  35, envelope/p_fall, NULL) //40 20
endphoneme



// Vowels
//=======


phoneme a
  vowel starttype #@ endtype #@
  	length 140
	  FMT(vowel/a_4)  //a_4)
endphoneme

phoneme a:
  vowel starttype #a endtype #a
  IF nextPh(n^) OR nextPh(c) THEN
  length 100
  ELSE
  length 140 //280
  ENDIF
    FMT(vowel/a_8)
endphoneme


phoneme E
  vowel starttype #e endtype #e
  length 140
  FMT(vowel/e_e)   //ee_3)
endphoneme

phoneme e
  vowel starttype #e endtype #e
  length 140
  FMT(vowel/e)
endphoneme


phoneme i
  vowel  starttype #i  endtype #i
    IfNextVowelAppend(;)
  IF prevPhW(w) THEN
    VowelStart(w/wi)
  ENDIF
  IF nextPh(n^) OR nextPh(c) THEN
  length 100
  FMT(vnasal/ii_n)
  ELSE
  length 140
FMT(vowel/i_4)
ENDIF
endphoneme


phoneme O
  vowel starttype #o endtype #o
    IF nextPh(kh) OR nextPh(N) THEN 
	length 80
	ELSE
	length 140
	ENDIF
    FMT(vdiph2/o_oo) //vowel/oo)
endphoneme

phoneme o
  vowel starttype #o endtype #o
  IF nextPh(kh) OR nextPh(N) THEN
	length 110
	ELSE
	length 140
	ENDIF
  FMT(vowel/o)  // o_2)
endphoneme


phoneme u
  vowel starttype #u endtype #u
  IF nextPh(kh) OR nextPh(N) THEN // hear as ung sound
	length 120
	ELSE
	length 140
	ENDIF
  FMT(vnasal/u_n,60) //vowel/u_5)
endphoneme

phoneme y
  vowel starttype #u endtype #u
  IF nextPh(kh) OR nextPh(N) THEN
	length 120
	ELSE
	length 180
	ENDIF
  FMT(vowel/u#_5)
endphoneme



phoneme @
  vowel  starttype #@  endtype #a
 IF nextPh(kh) OR nextPh(N) OR nextPh(n^) OR nextPh(c) THEN
	length 120
	ELSE
	length 140
	ENDIF
  FMT(vowel/V)   //vowel/@_2)
endphoneme


phoneme @:
  vowel  starttype #@  endtype #@
  length 140
  FMT(vowel/@_2)
endphoneme



// Diphthongs
//===========

phoneme aI
  vowel starttype #a endtype #i
  length 140 //250
  FMT(vdiph/&i_2)
endphoneme


phoneme a:I
  vowel starttype #a endtype #i
  length 200  //250
  FMT(vdiph/ai)
endphoneme


phoneme @I
  vowel starttype #@ endtype #i
  length 200 //250
  FMT(vdiph/@i)
endphoneme


phoneme @:I
  vowel starttype #@ endtype #i
  length 200 //250
  FMT(vdiph/y#i)
endphoneme


phoneme eI
  vowel starttype #e endtype #i
  length 140
  FMT(vdiph/ei)
endphoneme


phoneme EI
  vowel starttype #e endtype #i
  length 140
  FMT(vdiph/eei)
endphoneme


phoneme OI
  vowel starttype #o endtype #i
  length 200
  FMT(vdiph/ooi_4)
endphoneme


phoneme oI
  vowel starttype #o endtype #i
  length 200
  FMT(vdiph/oi)
endphoneme


phoneme uI
  vowel starttype #u endtype #i
  length 200
  FMT(vdiph/ui)
endphoneme

phoneme yI
  vowel starttype #u endtype #i
  length 200
  FMT(vdiph/u-i)
endphoneme




phoneme aU
  vowel starttype #a endtype #u
  length 150
  FMT(vdiph/aau_4)
endphoneme


phoneme a:U
  vowel starttype #a endtype #u
  length 150 //270
  FMT(vdiph/au)
endphoneme


phoneme eU
  vowel starttype #e endtype #u
  length 150
  FMT(vdiph/eu)
endphoneme


phoneme EU
  vowel starttype #e endtype #u
  length 150
  FMT(vdiph/eeu)
endphoneme

phoneme iU
  vowel starttype #i endtype #u
  length 140
  FMT(vdiph2/iu)
endphoneme

phoneme @U
  vowel  starttype #@  endtype #u
  length 140
  FMT(vdiph/@u_3)
endphoneme

phoneme @:U
  vowel  starttype #@  endtype #u
  length 140
  FMT(vdiph/@u)
endphoneme



phoneme i@
  vowel  starttype #i  endtype #@
  length 140
  FMT(vdiph2/ii@_3)
endphoneme

phoneme y@
  vowel  starttype #i  endtype #@
  length 140
  FMT(vdiph2/y-y#)
endphoneme

phoneme u@
  vowel  starttype #u  endtype #@
  length 100 //200
  FMT(vdiph2/uu@)
endphoneme

// Addition Dipthongs

phoneme o# // ông
  vowel  starttype #o  endtype #o
  length 140
  FMT(vnasal/a#u_n)
endphoneme

phoneme O# // ong
  vowel  starttype #o  endtype #o
  length 140
  FMT(vnasal/&u_n)
endphoneme


phoneme o@
  vowel  starttype #o endtype #a
  length 140
  FMT(vdiph2/oa)
endphoneme

phoneme o&
  vowel  starttype #o endtype #o
  length 140
  FMT(vietnam/oe)
endphoneme

phoneme iE // iê : viết, giệc
  vowel  starttype #i  endtype #e
  length 140
  FMT(vietnam/ie_2)
endphoneme

phoneme Oi // oai sound
  vowel  starttype #o  endtype #i
  length 140
  FMT(vdiph/ooi_3)
endphoneme

// Vowel and Dipthong for south dialect

phoneme O- // ôi southern sound
  vowel  starttype #o  endtype #i
  length 150
  FMT(vnasal/oi_n)
endphoneme

phoneme @- // ơi southern sound
  vowel  starttype #o  endtype #i
  length 150
  FMT(vdiph/@i_3)
endphoneme

phoneme u- // u southern sound
  vowel  starttype #u  endtype #u
  length 150
  FMT(vowel/u_3,70)
endphoneme



phoneme kh
  vls vel frc
  lengthmod 3
  Vowelin f1=0  f2=2300 200 400  f3=200 80 len=30
  Vowelout f1=0 f2=2300 300 400  f3=200 80  rms=20
    WAV(vietnam/_c,5)  //ufric/x, 50)
endphoneme


phoneme l
  liquid
  Vowelin f1=0  f2=1700 -300 300  f3=-100 80 len=15
  //lengthmod 7
   //IF nextPh(isNotVowel) THEN
   // ChangePhoneme(l/2)
  //ENDIF
  //CALL vowelstart_l

  FMT(l/l_vi)
endphoneme

phoneme t
  vls alv stop
  //voicingswitch d
  lengthmod 2
  Vowelin f1=0  f2=1700 -300 300  f3=-100 80 len=15
  Vowelout f1=0 f2=1700 -300 250  f3=-100 80  rms=20

  WAV(vietnam/th, 50)
endphoneme

phoneme cr
  vls pla afr sibilant
  //voicingswitch dZ
  lengthmod 2
  Vowelin f1=0  f2=2300 200 400  f3=-100 80 len=15

  
  WAV(vietnam/tr,10)
endphoneme

phoneme d_
  vcd alv stop
    //	lengthmod 5
	ipa ɗ
 Vowelin f1=1  f2=1700 -300 300  f3=-100 80 len=15
  Vowelout f1=2 f2=1700 -300 300  f3=-100 80 brk len=30
WAV(vietnam/dd)
 endphoneme
 
 phoneme c
  vls pal stop palatal
  //voicingswitch J
  lengthmod 2
  length 2
    Vowelin f1=0  f2=2700 400 600  f3=300 80 len=15 brk
  Vowelout f1=1  f2=2700 400 600  f3=200 70 len=15 colr=1

  
  WAV(vietnam/ch,5)
endphoneme


phoneme p
  vls blb stop
    lengthmod 2
  Vowelin  f1=0  f2=1000 -50 -100  f3=-200 80 amp=11
  Vowelout f1=0  f2=1000 -500 -350  f3=-300 80 rms=22

    WAV(ustop/p_unasp_,10)
  
endphoneme

phoneme n
  vcd alv nasal
  Vowelin  f1=0  f2=1000 -50 -100  f3=-200 80 amp=11 brk len=15
  Vowelout f1=2 f2=1700 -300 250  f3=-100 80  rms=20 brk len=15
    lengthmod 4
	length 75
FMT(n/nr_)
endphoneme

phoneme t[        // dental variant of /t/
  vls dnt stop
  voicingswitch d[
  lengthmod 2
  length 5
  Vowelin f1=1  f2=1500 -250 250  f3=-100 80  amp=16 len=15
  Vowelout f1=0 f2=1500 -300 250  f3=-100 80  rms=20 len=15

  IF nextPh(isPause2) THEN
    WAV(ustop/t_unasp2, 5)
  ENDIF
  WAV(ustop/t_hi, 70)
endphoneme