ph_myanmar 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780
  1. //===========
  2. // TONES
  3. //===========
  4. phoneme 1 //low tone
  5. stress
  6. Tone(20,35, envelope/i_risefall,NULL)
  7. endphoneme
  8. phoneme 2 //high tone
  9. stress
  10. Tone(45,80, envelope/p_rise,NULL)
  11. endphoneme
  12. phoneme 3 //creaky tone
  13. stress
  14. Tone(30,75, envelope/p_214, NULL)
  15. endphoneme
  16. phoneme 4 //checked tone
  17. stress
  18. Tone(20,35, envelope/i_risefall,NULL)
  19. endphoneme
  20. //====================================================
  21. // Consonants
  22. //====================================================
  23. phoneme k
  24. vls uvl stp
  25. lengthmod 2
  26. Vowelin f1=1 f2=1700 0 200 f3=-300 80 f4
  27. Vowelout f1=1 f2=1700 0 200 f3=-300 80 f4 rms=30
  28. WAV(myanmar/k, 150)
  29. endphoneme
  30. phoneme kh
  31. vls uvl stp
  32. lengthmod 2
  33. Vowelin f1=1 f2=1700 0 200 f3=-300 80 f4
  34. Vowelout f1=1 f2=1700 0 200 f3=-300 80 f4 rms=30
  35. WAV(myanmar/kh, 150)
  36. endphoneme
  37. phoneme g
  38. vls glt stp
  39. lengthmod 2
  40. Vowelin f1=1 f2=1700 0 200 f3=-300 80 f4
  41. Vowelout f1=1 f2=1700 0 200 f3=-300 80 f4 rms=30
  42. WAV(myanmar/g.wav,150)
  43. endphoneme
  44. phoneme ng
  45. vcd pal nas pal
  46. lengthmod 1
  47. Vowelin f1=1 f2=1000 0 200 f3=-300 80 f4
  48. Vowelout f1=1 f2=200 0 300 f3=200 80 len=50 rms=10
  49. FMT(myanmar/ny,130) //addWav(r3/r_trill.wav, 50) //ng_1)
  50. endphoneme
  51. phoneme s
  52. vls alv frc sib
  53. lengthmod 2
  54. Vowelin f1=1 f2=1700 0 200 f3=-300 80 f4
  55. Vowelout f1=1 f2=1700 0 200 f3=-300 80 f4 rms=30
  56. WAV(myanmar/s, 150)
  57. endphoneme
  58. phoneme hs
  59. vls alv frc sib
  60. lengthmod 2
  61. Vowelin f1=1 f2=1700 0 200 f3=-300 80 f4
  62. Vowelout f1=1 f2=1700 0 200 f3=-300 80 f4 rms=30
  63. WAV(myanmar/hs, 150)
  64. endphoneme
  65. phoneme z
  66. vls uvl stp
  67. lengthmod 2
  68. Vowelin f1=1 f2=1700 0 200 f3=-300 80 f4
  69. Vowelout f1=1 f2=1700 0 200 f3=-300 80 f4 rms=30
  70. WAV(myanmar/z, 150)
  71. endphoneme
  72. //vv
  73. // phoneme f
  74. //
  75. // import_phoneme base/N
  76. //
  77. // endphoneme
  78. phoneme t // voiceless /ㅈ//
  79. vls blb stp
  80. lengthmod 2
  81. WAV(myanmar/t_short,150)
  82. endphoneme
  83. phoneme ht
  84. vls uvl stp
  85. lengthmod 2
  86. Vowelin f1=1 f2=1700 0 200 f3=-300 80 f4
  87. Vowelout f1=1 f2=1700 0 200 f3=-300 80 f4 rms=30
  88. WAV(myanmar/ht, 150 )
  89. endphoneme
  90. phoneme d
  91. vls uvl stp
  92. lengthmod 2
  93. Vowelin f1=1 f2=1700 0 200 f3=-300 80 f4
  94. Vowelout f1=1 f2=1700 0 200 f3=-300 80 f4 rms=30
  95. WAV(myanmar/d, 150 )
  96. endphoneme
  97. phoneme p
  98. vls blb stp
  99. lengthmod 2
  100. WAV(myanmar/p, 150)
  101. endphoneme
  102. phoneme ph
  103. vls blb stp
  104. voicingswitch b
  105. lengthmod 2
  106. Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 amp=11
  107. Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=22
  108. IF nextPh(isPause2) THEN
  109. WAV(ustop/p_)
  110. ELIF nextPh(r) THEN
  111. WAV(ustop/pr, 70)
  112. ELIF nextPh(R) OR nextPh(R2) THEN
  113. WAV(ustop/pr)
  114. ELIF nextPh(@-) THEN
  115. WAV(ustop/p_unasp)
  116. ELIF nextPh(l) THEN
  117. WAV(ustop/pl)
  118. ENDIF
  119. WAV(ustop/p)
  120. endphoneme
  121. phoneme x
  122. liquid
  123. lengthmod 7
  124. IF nextPh(isNotVowel) THEN
  125. ChangePhoneme(l/)
  126. ENDIF
  127. IF nextPh(isNotVowel) THEN
  128. PrevVowelEndings
  129. VowelEnding(l/L1_@L, -60)
  130. VowelEnding(l/L1_aL, -40)
  131. VowelEnding(l/L1_eL, -30)
  132. VowelEnding(l/L1_iL, -30)
  133. VowelEnding(l/L1_oL, -40)
  134. VowelEnding(l/L1_uL, -40)
  135. EndSwitch
  136. FMT(l/l_)
  137. RETURN
  138. ENDIF
  139. CALL vowelstart_l
  140. IF prevPh(#@) THEN
  141. VowelEnding(l/xl, -50)
  142. ELIF prevPh(isVowel) THEN
  143. VowelEnding(l/xl, -40)
  144. ENDIF
  145. IF prevPh(isPause) THEN
  146. FMT(l/_l)
  147. ENDIF
  148. IF prevPh(t) THEN
  149. FMT(l/tl)
  150. ENDIF
  151. IF prevPh(l/) THEN
  152. FMT(l/l_long) // double l, make it longer
  153. ENDIF
  154. FMT(l/l)
  155. endphoneme
  156. phoneme w
  157. liquid
  158. lengthmod 7
  159. IF nextPh(isVowel) THEN
  160. NextVowelStarts
  161. VowelStart(w/w@)
  162. VowelStart(w/wa)
  163. VowelStart(w/we)
  164. VowelStart(w/wi)
  165. VowelStart(w/wo)
  166. VowelStart(w/wu)
  167. EndSwitch
  168. VowelEnding(w/xw, -30)
  169. IF prevPhW(isNasal) THEN
  170. FMT(w/w)
  171. ELSE
  172. FMT(w/_w)
  173. ENDIF
  174. ELSE
  175. Vowelout len=50
  176. IF prevPh(#i) THEN
  177. FMT(w/iw_)
  178. ENDIF
  179. FMT(w/w_)
  180. ENDIF
  181. endphoneme
  182. phoneme th
  183. vls dnt frc
  184. voicingswitch t
  185. lengthmod 1
  186. Vowelin f1=0 f2=1700 -300 300 f3=-100 80
  187. Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
  188. WAV(myanmar/t_hi,200)
  189. endphoneme
  190. phoneme h
  191. vls blb stp
  192. lengthmod 2
  193. Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 amp=11
  194. Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=22
  195. WAV(myanmar/h, 150)
  196. endphoneme
  197. phoneme j
  198. vcd pal afr sib pal
  199. voicingswitch c
  200. lengthmod 5
  201. Vowelin f1=2 f2=2700 400 600 f3=300 80 rate len=70
  202. Vowelout f1=2 f2=2700 400 600 f3=300 80 colr=1
  203. FMT(myanmar/yy)
  204. endphoneme
  205. phoneme v
  206. vls blb stp
  207. lengthmod 2
  208. Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 amp=11
  209. Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=22
  210. FMT(myanmar/a)
  211. endphoneme
  212. phoneme ky
  213. vcd pal afr sib pal
  214. lengthmod 5
  215. Vowelin f1=2 f2=2700 400 600 f3=300 80 rate len=70
  216. Vowelout f1=2 f2=2700 400 600 f3=300 80 colr=1
  217. FMT(myanmar/ky)
  218. endphoneme
  219. ////////////////////////////
  220. phoneme q0
  221. vls uvl stp
  222. lengthmod 1
  223. Vowelin f1=1 f2=1700 0 200 f3=-300 80 f4
  224. Vowelout f1=1 f2=1700 0 200 f3=-300 80 f4 rms=30
  225. WAV(myanmar/by.wav,10)
  226. endphoneme
  227. phoneme q1
  228. vls uvl stp
  229. lengthmod 2
  230. Vowelin f1=1 f2=1700 0 200 f3=-300 80 f4
  231. Vowelout f1=1 f2=1700 0 200 f3=-300 80 f4 rms=3
  232. WAV(myanmar/ch.wav,100)
  233. endphoneme
  234. phoneme q3
  235. vls uvl stp
  236. lengthmod 2
  237. Vowelin f1=1 f2=1700 0 200 f3=-300 80 f4
  238. Vowelout f1=1 f2=1700 0 200 f3=-300 80 f4 rms=30
  239. WAV(myanmar/gya.wav, 150)
  240. endphoneme
  241. phoneme q4
  242. vls uvl stp
  243. lengthmod 2
  244. Vowelin f1=1 f2=1700 0 200 f3=-300 80 f4
  245. Vowelout f1=1 f2=1700 0 200 f3=-300 80 f4 rms=30
  246. WAV(myanmar/htya.wav, 150)
  247. endphoneme
  248. phoneme q7
  249. vls uvl stp
  250. lengthmod 2
  251. Vowelin f1=1 f2=1700 0 200 f3=-300 80 f4
  252. Vowelout f1=1 f2=1700 0 200 f3=-300 80 f4 rms=30
  253. WAV(myanmar/phya.wav, 150)
  254. endphoneme
  255. phoneme q8
  256. vls uvl stp
  257. lengthmod 2
  258. WAV(myanmar/pya.wav, 10)
  259. endphoneme
  260. phoneme q9
  261. vls uvl stp
  262. lengthmod 2
  263. Vowelin f1=1 f2=1700 0 200 f3=-300 80 f4
  264. Vowelout f1=1 f2=1700 0 200 f3=-300 80 f4 rms=30
  265. WAV(myanmar/ty.wav, 100)
  266. endphoneme
  267. ///////////////////////////////////////////////////////
  268. phoneme q46
  269. vls uvl stp
  270. lengthmod 2
  271. Vowelin f1=1 f2=1700 0 200 f3=-300 80 f4
  272. Vowelout f1=1 f2=1700 0 200 f3=-300 80 f4 rms=30
  273. WAV(myanmar/sh.wav, 150)
  274. endphoneme
  275. //====================================================
  276. // Vowels and Diphtnongs
  277. //====================================================
  278. phoneme @ //အ
  279. vwl starttype #@ endtype #@
  280. unstressed
  281. length 194
  282. FMT(myanmar/a01)
  283. endphoneme
  284. phoneme a01 //အ
  285. vwl starttype #a endtype a
  286. length 194
  287. FMT(myanmar/a01)
  288. endphoneme
  289. phoneme a02 //အာ
  290. vwl starttype #a endtype r
  291. length 180
  292. FMT(myanmar/a02) //ar_1)
  293. endphoneme
  294. phoneme a03 //အား
  295. vwl starttype #a endtype r
  296. length 200
  297. FMT(myanmar/a03)
  298. endphoneme
  299. ///////////////////////////////////////////////////////////////////////////////////////
  300. phoneme a04 //အိ
  301. vwl starttype #i endtype #i
  302. IF nextPh(3) THEN //creaky tone
  303. length 168
  304. ELIF nextPh(1) THEN //low tone
  305. length 408
  306. ELIF nextPh(2) THEN //high tone
  307. length 312
  308. ELIF nextPh(4) THEN //checked tone
  309. length 218
  310. ENDIF
  311. FMT(myanmar/a04)
  312. endphoneme
  313. phoneme a05 //အီ
  314. vwl starttype #a endtype e
  315. length 180
  316. FMT(myanmar/a05)
  317. endphoneme
  318. phoneme a06 //အီး
  319. vwl starttype #a endtype e
  320. length 200
  321. FMT(myanmar/a06)
  322. endphoneme
  323. ///////////////////////////////////////////////////////////////////////////////////////////////
  324. phoneme a07 //အု
  325. vwl starttype #a endtype u
  326. length 130
  327. FMT(myanmar/a07)
  328. endphoneme
  329. phoneme a08 //အူ
  330. vwl starttype #u endtype #u
  331. IF nextPh(3) THEN //creaky tone
  332. length 200
  333. ELIF nextPh(1) THEN //low tone
  334. length 461
  335. ELIF nextPh(2) THEN //high tone
  336. length 302
  337. // ELIF nextPh(4) THEN //checked tone
  338. // length
  339. ENDIF
  340. FMT(myanmar/a08)
  341. endphoneme
  342. phoneme a09 //အူး
  343. vwl starttype #a endtype u
  344. length 200
  345. FMT(myanmar/a09)
  346. endphoneme
  347. //////////////////////////////////////////////////////////////////////////////////////
  348. phoneme a11 //အေ့
  349. vwl starttype #a endtype a
  350. length 130
  351. FMT(myanmar/a11)
  352. endphoneme
  353. phoneme a10 //အေ
  354. vwl starttype #e endtype #e
  355. IF nextPh(3) THEN //creaky tone
  356. length 197
  357. ELIF nextPh(1) THEN //low tone
  358. length 436
  359. ELIF nextPh(2) THEN //high tone
  360. length 336
  361. ELIF nextPh(4) THEN //checked tone
  362. length 219
  363. ENDIF
  364. FMT(vowel/e)
  365. endphoneme
  366. phoneme a12 //အေး
  367. vwl starttype #a endtype a
  368. length 200
  369. FMT(myanmar/a12)
  370. endphoneme
  371. //////////////////////////////////////////////////////////////////////////////////////
  372. phoneme a14 //အဲ့
  373. vwl starttype #a endtype e
  374. length 120
  375. FMT(myanmar/a14)
  376. endphoneme
  377. phoneme a13 //အယ်
  378. vwl starttype #a endtype e
  379. length 180
  380. FMT(myanmar/a13)
  381. endphoneme
  382. phoneme a15 //အဲ
  383. vwl starttype #e endtype #e
  384. IF nextPh(3) THEN //creaky tone
  385. length 203
  386. ELIF nextPh(1) THEN //low tone
  387. length 412
  388. ELIF nextPh(2) THEN //high tone
  389. length 317
  390. ELIF nextPh(4) THEN //checked tone
  391. length 209
  392. ENDIF
  393. FMT(vowel/e_mid) //chosen at random
  394. endphoneme
  395. ///////////////////////////////////////////////////////////////////////////////////////////////
  396. phoneme a17 //အော့
  397. vwl starttype #a endtype a
  398. length 130
  399. FMT(myanmar/a17)
  400. endphoneme
  401. phoneme a18 //အော်
  402. vwl starttype #o endtype #o
  403. IF nextPh(3) THEN //creaky tone
  404. length 236
  405. ELIF nextPh(1) THEN //low tone
  406. length 471
  407. ELIF nextPh(2) THEN //high tone
  408. length 345
  409. ELIF nextPh(4) THEN //checked tone
  410. length 202
  411. ENDIF
  412. FMT(vowel/oo)
  413. endphoneme
  414. phoneme a16 //အော
  415. vwl starttype #a endtype e
  416. length 200
  417. FMT(myanmar/a16)
  418. endphoneme
  419. //////////////////////////////////////////////////////////////////////////////////////////////////
  420. phoneme a20 //အံ့
  421. vwl starttype #a endtype e
  422. length 130
  423. FMT(myanmar/a20)
  424. endphoneme
  425. phoneme a19 //အံ
  426. vwl starttype #a endtype e
  427. length 180
  428. FMT(myanmar/a19)
  429. endphoneme
  430. phoneme a21 //အန်း
  431. vwl starttype #a endtype e
  432. length 200
  433. FMT(myanmar/a21)//myanmar/an1)
  434. endphoneme
  435. ///////////////////////////////////////////////////////////////////////////////////////////////////////
  436. phoneme a23 //အို့
  437. vwl starttype #a endtype e
  438. length 130
  439. FMT(myanmar/a23)
  440. endphoneme
  441. phoneme a22 //အို
  442. vwl starttype #a endtype e
  443. length 180
  444. FMT(myanmar/a22)
  445. endphoneme
  446. phoneme a24 //အိုး
  447. vwl starttype #a endtype e
  448. length 200
  449. FMT(myanmar/a24)
  450. endphoneme
  451. /////////////////////////////////////////////////////////////////////////////////////////////////
  452. phoneme a29 //အင့်
  453. vwl starttype #a endtype e
  454. length 130
  455. FMT(myanmar/a29)
  456. endphoneme
  457. phoneme a28 //အင်
  458. vwl starttype #a endtype e
  459. length 180
  460. FMT(myanmar/a28)
  461. endphoneme
  462. phoneme a30 //အင်း
  463. vwl starttype #a endtype e
  464. length 200
  465. FMT(myanmar/a30)
  466. endphoneme
  467. phoneme a32 //အိုင့်
  468. vwl starttype #a endtype e
  469. length 130
  470. FMT(myanmar/a32)
  471. endphoneme
  472. phoneme a31 //အိုင်
  473. vwl starttype #a endtype e
  474. length 180
  475. FMT(myanmar/a31)
  476. endphoneme
  477. phoneme a33 //အိုင်း
  478. vwl starttype #a endtype e
  479. length 200
  480. FMT(myanmar/a33)
  481. endphoneme
  482. /////////////////////////////////////////////////////////
  483. phoneme a35 //အောင့်
  484. vwl starttype #a endtype e
  485. length 130
  486. FMT(myanmar/a35)
  487. endphoneme
  488. phoneme a34 //အောင်
  489. vwl starttype #a endtype e
  490. length 180
  491. FMT(myanmar/a34)
  492. endphoneme
  493. phoneme a36 //အောင်း
  494. vwl starttype #a endtype e
  495. length 200
  496. FMT(myanmar/a36)
  497. endphoneme
  498. /////////////////////////////////////////////////////////////////////////////////////////////////////////////
  499. phoneme a43 //အိန့်
  500. vwl starttype #a endtype e
  501. length 130
  502. FMT(myanmar/a43)
  503. endphoneme
  504. phoneme a42 //အိန်
  505. vwl starttype #a endtype e
  506. length 180
  507. FMT(myanmar/a42)
  508. endphoneme
  509. phoneme a44 //အိန်း
  510. vwl starttype #a endtype e
  511. length 200
  512. FMT(myanmar/a44)
  513. endphoneme
  514. /////////////////////////////////////////////////////////////////////////////////////////////////
  515. phoneme a20 //အန့်
  516. vwl starttype #a endtype e
  517. length 130
  518. FMT(myanmar/a20)
  519. endphoneme
  520. phoneme a19 //အန်
  521. vwl starttype #a endtype e
  522. length 180
  523. FMT(myanmar/a19)
  524. endphoneme
  525. phoneme a21 //အန်း
  526. vwl starttype #a endtype e
  527. length 200
  528. FMT(myanmar/a21)
  529. endphoneme
  530. ///////////////////////////////////////////////////////
  531. phoneme a49 //အွန့်
  532. vwl starttype #a endtype e
  533. length 130
  534. FMT(myanmar/a49)
  535. endphoneme
  536. phoneme a48 //အွန်
  537. vwl
  538. IF nextPh(4) THEN //diphthong with checked ton
  539. starttype #o endtype #u
  540. ELSE
  541. starttype #o endtype #o
  542. ENDIF
  543. IF nextPh(3) THEN //creaky tone
  544. length 266
  545. ELIF nextPh(1) THEN //low tone
  546. length 458
  547. ELIF nextPh(2) THEN //high tone
  548. length 325
  549. ELIF nextPh(4) THEN //checked tone
  550. length 202
  551. ENDIF
  552. FMT(vowel/oo_en) //formant
  553. endphoneme
  554. phoneme a50 //အွန်း
  555. vwl starttype #a endtype e
  556. length 200
  557. FMT(myanmar/a50)
  558. endphoneme
  559. /////////////////////////////////////////////////////////////////////////////////////////////////////////////
  560. phoneme a46 //အုန့်
  561. vwl starttype #a endtype e
  562. length 130
  563. FMT(myanmar/a46)
  564. endphoneme
  565. phoneme a45 //အုန်
  566. vwl starttype #a endtype e
  567. length 180
  568. FMT(myanmar/a45)
  569. endphoneme
  570. phoneme a47 //အုန်း
  571. vwl starttype #a endtype e
  572. length 200
  573. FMT(myanmar/a47)
  574. endphoneme
  575. /////////////////////////////////////////////////////////////////////////////////////////////////////////////
  576. //////////////////////////////////////////////////////////
  577. phoneme a25 //အက်
  578. vwl starttype #a endtype e
  579. length 130
  580. FMT(myanmar/a25)
  581. endphoneme
  582. phoneme a26 //အောက်
  583. vwl starttype #a endtype e
  584. length 130
  585. FMT(myanmar/a26)
  586. endphoneme
  587. phoneme a27 //အိုက်
  588. vwl starttype #a endtype e
  589. length 130
  590. FMT(myanmar/a27)
  591. endphoneme
  592. phoneme a37 //အစ်
  593. vwl starttype #a endtype e
  594. length 130
  595. FMT(myanmar/a37)
  596. endphoneme
  597. phoneme a38 //အတ်
  598. vwl starttype #a endtype e
  599. length 130
  600. FMT(myanmar/a38)
  601. endphoneme
  602. phoneme a39 //အိတ်
  603. vwl starttype #a endtype e
  604. length 130
  605. FMT(myanmar/a39)
  606. endphoneme
  607. phoneme a40 //အုတ်
  608. vwl starttype #a endtype e
  609. length 130
  610. FMT(myanmar/a40)
  611. endphoneme
  612. phoneme a41 //အွတ်
  613. vwl starttype #a endtype e
  614. length 130
  615. FMT(myanmar/a41)
  616. endphoneme