ph_french 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969
  1. //====================================================
  2. // French
  3. //====================================================
  4. // Updated 2011-10-14 Michel Such <michel.such@free.fr>
  5. phoneme #l virtual
  6. // Used for l and l/
  7. endphoneme
  8. phoneme #r virtual
  9. // Used for "r" sounds
  10. endphoneme
  11. phoneme : // Lengthen previous vowel by "length"
  12. virtual
  13. length 40
  14. endphoneme
  15. phoneme #cFR virtual
  16. // To identify "b k d f g p t v" when before "r"
  17. endphoneme
  18. procedure pre_r
  19. IF prevPh(y) THEN
  20. VowelEnding(vwl_fr/y2r)
  21. ELIF prevPh(E) THEN
  22. VowelEnding(vwl_fr/e_2r)
  23. ELIF prevPh(A~) THEN
  24. VowelEnding(vwl_fr/aa2r)
  25. ELIF prevPh(E~) OR prevPh(W~) THEN
  26. VowelEnding(vwl_fr/ee2r)
  27. ELIF prevPh(O~) THEN
  28. VowelEnding(vwl_fr/oo2r)
  29. ELIF prevPh(isVowel) THEN
  30. PrevVowelEndings
  31. VowelEnding(vwl_fr/@2r)
  32. VowelEnding(vwl_fr/a2r)
  33. VowelEnding(vwl_fr/e2r)
  34. VowelEnding(vwl_fr/i2r)
  35. VowelEnding(vwl_fr/o2r)
  36. VowelEnding(vwl_fr/u2r)
  37. EndSwitch
  38. ENDIF
  39. endprocedure
  40. procedure post_r
  41. IF nextPh(E) THEN
  42. VowelStart(vwl_fr/re2)
  43. ELIF nextPh(W) THEN
  44. VowelStart(vwl_fr/r@2)
  45. ELIF nextPh(A~) THEN
  46. VowelStart(vwl_fr/raa)
  47. ELIF nextPh(E~) OR nextPh(W~) THEN
  48. VowelStart(vwl_fr/ree)
  49. ELIF nextPh(y) THEN
  50. VowelStart(vwl_fr/ry)
  51. ELIF nextPh(w) THEN
  52. VowelStart(vwl_fr/rw)
  53. ELIF nextPh(O~) THEN
  54. VowelStart(vwl_fr/roo)
  55. ELIF nextPh(j) OR nextPh(j/) THEN
  56. VowelStart(vwl_fr/rj)
  57. ELIF nextPh(isVowel) THEN
  58. NextVowelStarts
  59. VowelStart(vwl_fr/r@)
  60. VowelStart(vwl_fr/ra)
  61. VowelStart(vwl_fr/re)
  62. VowelStart(vwl_fr/ri)
  63. VowelStart(vwl_fr/ro)
  64. VowelStart(vwl_fr/ru)
  65. EndSwitch
  66. ENDIF
  67. endprocedure
  68. phoneme r
  69. vcd uvl frc nopause
  70. rhotic
  71. starttype #r endtype #r
  72. Vowelin f1=0 f2=1500 -400 400 f3=-400 80
  73. lengthmod 7
  74. ipa U+0281
  75. IF nextPh(isNotVowel) THEN
  76. ChangePhoneme(r/)
  77. ELIF prevPh(isNotVowel) OR prevPh(isPause) THEN
  78. ChangePhoneme(r/2)
  79. ENDIF
  80. CALL pre_r
  81. CALL post_r
  82. FMT(vwl_fr/r)
  83. endphoneme
  84. phoneme r2 // silent unless followed by vowel
  85. vcd uvl frc
  86. rhotic
  87. starttype #r endtype #r
  88. ipa U+0281
  89. IF nextPh(isNotVowel) THEN
  90. ChangePhoneme(NULL)
  91. ELSE
  92. ChangePhoneme(r)
  93. ENDIF
  94. endphoneme
  95. phoneme r/ // variant of [r] when not preceding a vowel
  96. vcd uvl frc
  97. rhotic
  98. starttype #r endtype #r
  99. lengthmod 7
  100. ipa ʁ
  101. IF prevPhW(t) OR prevPhW(p) OR prevPhW(k) THEN
  102. FMT(vwl_fr/trr) addWav(r3/rx, 15)
  103. ELIF prevPh(isNotVowel) THEN
  104. FMT(vwl_fr/rr) addWav(r3/rx, 15)
  105. ENDIF
  106. PrevVowelEndings
  107. VowelEnding(vwl_fr/r_@)
  108. VowelEnding(vwl_fr/r_a)
  109. VowelEnding(vwl_fr/r_e)
  110. VowelEnding(vwl_fr/r_i)
  111. VowelEnding(vwl_fr/r_o)
  112. VowelEnding(vwl_fr/r_u)
  113. EndSwitch
  114. IF prevPh(y) THEN
  115. VowelEnding(vwl_fr/r_y)
  116. ENDIF
  117. IF nextPh(isNasal) THEN
  118. FMT(vwl_fr/r_n) addWav(r3/rx, 20)
  119. ELIF nextPh(#r) THEN
  120. length 30
  121. ENDIF
  122. FMT(vwl_fr/r_) addWav(r3/rx, 20)
  123. endphoneme
  124. phoneme r/2
  125. liquid rhotic uvl nopause
  126. starttype #r endtype #r
  127. Vowelin f1=0 f2=1500 -400 400 f3=-400 80
  128. ipa U+0281
  129. CALL post_r
  130. IF prevPhW(f) OR prevPhW(k) OR prevPhW(p) OR prevPhW(s) OR prevPhW(t) OR prevPhW(S) THEN
  131. FMT(vwl_fr/tr)
  132. ELIF prevPhW(#cFR) THEN
  133. FMT(vwl_fr/br)
  134. ELSE
  135. length 80
  136. FMT(vwl_fr/r)
  137. ENDIF
  138. endphoneme
  139. phoneme l
  140. liquid
  141. starttype #l endtype #l
  142. lengthmod 7
  143. IF nextPh(isNotVowel) THEN
  144. ChangePhoneme(l/)
  145. ELIF prevPhW(#cFR) THEN
  146. ChangePhoneme(l/2)
  147. ENDIF
  148. NextVowelStarts
  149. VowelStart(l/l@)
  150. VowelStart(l/la, -10)
  151. VowelStart(l/le, -15)
  152. VowelStart(l/li, -15)
  153. VowelStart(vwl_fr/lo, -10)
  154. VowelStart(l/lu, -20)
  155. EndSwitch
  156. IF prevPh(#@) THEN
  157. VowelEnding(l/xl, -50)
  158. ELIF prevPh(isVowel) THEN
  159. VowelEnding(l/xl, -40)
  160. ENDIF
  161. IF prevPh(isPause) OR thisPh(isWordStart) THEN
  162. FMT(l/_l)
  163. ENDIF
  164. IF prevPh(isRhotic) OR prevPh(isNasal) THEN
  165. FMT(l/_l)
  166. ENDIF
  167. IF prevPh(t) THEN
  168. FMT(l/tl)
  169. ENDIF
  170. IF prevPh(l/) THEN
  171. FMT(l/l_long) // double l, make it longer
  172. ENDIF
  173. FMT(l/l)
  174. endphoneme
  175. phoneme l/ // used for [l] when not before a vowel
  176. liquid rfx
  177. starttype #l endtype #l
  178. lengthmod 7
  179. IF nextPh(isVowel) THEN
  180. ChangePhoneme(l)
  181. ENDIF
  182. IF prevPhW(y) THEN
  183. VowelEnding(l/l_y)
  184. ELIF prevPhW(isVowel) THEN
  185. PrevVowelEndings
  186. VowelEnding(l/l_@)
  187. VowelEnding(l/l_a)
  188. VowelEnding(l/l_e)
  189. VowelEnding(l/l_i)
  190. VowelEnding(l/l_o)
  191. VowelEnding(l/l_u)
  192. EndSwitch
  193. ENDIF
  194. IF prevPh(#r) THEN
  195. FMT(l/_l)
  196. ENDIF
  197. FMT(l/l_)
  198. endphoneme
  199. phoneme l/2
  200. liquid
  201. starttype #l endtype #l
  202. IF nextPh(isNotVowel) THEN
  203. ChangePhoneme(l/)
  204. ENDIF
  205. NextVowelStarts
  206. VowelStart(l/l@)
  207. VowelStart(l/la, -10)
  208. VowelStart(l/le, -15)
  209. VowelStart(l/li, -15)
  210. VowelStart(l/lo, -10)
  211. VowelStart(l/lu, -20)
  212. EndSwitch
  213. IF prevPh(t) THEN
  214. FMT(l/tl)
  215. ENDIF
  216. FMT(l/l)
  217. endphoneme
  218. // Vowels
  219. //=======
  220. phoneme @
  221. vwl starttype #@ endtype #@
  222. length 170
  223. FMT(vowel/@_hgh)
  224. endphoneme
  225. phoneme @-
  226. vwl starttype #@ endtype #@
  227. unstressed
  228. length 130
  229. FMT(vowel/@_hgh)
  230. endphoneme
  231. phoneme a
  232. vwl starttype #a endtype #a
  233. IF nextPhW(isVowel) THEN
  234. length 220
  235. ELSE
  236. length 170
  237. ENDIF
  238. FMT(vowel/a_7)
  239. endphoneme
  240. phoneme a-
  241. vwl starttype #a endtype #a
  242. unstressed
  243. length 130
  244. FMT(vowel/a_7, 85)
  245. endphoneme
  246. phoneme a# // For english words
  247. import_phoneme en/a#
  248. endphoneme
  249. phoneme e
  250. vwl starttype #e endtype #e
  251. IF nextPh(l/) THEN
  252. VowelEnding(l/xl, -20)
  253. ELIF nextPh(isVowel) THEN
  254. length 200
  255. ELSE
  256. length 170
  257. ENDIF
  258. FMT(vowel/e_8)
  259. endphoneme
  260. phoneme e-
  261. vwl starttype #e endtype #e
  262. unstressed
  263. length 130
  264. FMT(vowel/e_8)
  265. endphoneme
  266. phoneme E
  267. vwl starttype #e endtype #e
  268. IF nextPhW(j) THEN
  269. length 190
  270. ELSE
  271. length 170
  272. ENDIF
  273. FMT(vowel/e_mid)
  274. endphoneme
  275. phoneme E-
  276. vwl starttype #e endtype #e
  277. unstressed
  278. length 130
  279. FMT(vowel/e_mid)
  280. endphoneme
  281. phoneme i
  282. vwl starttype #i endtype #i
  283. pzd
  284. IF prevPhW(r/2) OR prevPhW(l/2) THEN
  285. IF nextPhW(isVowel) THEN
  286. length 240
  287. ENDIF
  288. ELIF prevPhW(#r) AND nextPhW(isVowel) THEN
  289. IF nextPhW(#i) THEN
  290. length 220
  291. IfNextVowelAppend(;)
  292. ELSE
  293. ChangePhoneme(j/)
  294. ENDIF
  295. ELIF nextPhW(isVowel) THEN
  296. ChangePhoneme(j)
  297. ELSE
  298. length 150
  299. IfNextVowelAppend(;)
  300. ENDIF
  301. FMT(vowel/i_8)
  302. endphoneme
  303. phoneme I // For english words
  304. import_phoneme en/I
  305. endphoneme
  306. phoneme I2 // For english words
  307. import_phoneme en/I2
  308. endphoneme
  309. phoneme j/ // Short "i" between "r" and a vowel
  310. vwl starttype #i endtype #i
  311. length 80
  312. // unstressed
  313. NextVowelStarts
  314. VowelStart(j/j@)
  315. VowelStart(j/ja)
  316. VowelStart(j/je)
  317. VowelStart(j/ji)
  318. VowelStart(j/jo)
  319. VowelStart(j/ju)
  320. EndSwitch
  321. FMT(vwl_fr/j)
  322. endphoneme
  323. phoneme o
  324. vwl starttype #o endtype #o
  325. IF nextPh(isVowel) THEN
  326. length 220
  327. ELSE
  328. length 170
  329. ENDIF
  330. IF thisPh(isFinalVowel) THEN
  331. FMT(vowel/o_8)
  332. ELSE
  333. FMT(vowel/o)
  334. ENDIF
  335. endphoneme
  336. phoneme O
  337. vwl starttype #o endtype #o
  338. length 170
  339. IF thisPh(isFinalVowel) THEN
  340. FMT(vowel/o_mid2)
  341. ENDIF
  342. IF nextPhW(#l) AND next2Ph(isNotVowel) THEN
  343. FMT(vowel/o_mid2)
  344. ENDIF
  345. IF nextPhW(#r) AND next2Ph(isNotVowel) THEN
  346. FMT(vowel/o_mid2)
  347. ENDIF
  348. FMT(vowel/o_mid)
  349. endphoneme
  350. phoneme oU
  351. import_phoneme en/oU
  352. endphoneme
  353. phoneme u
  354. vwl starttype #u endtype #u
  355. IF nextPh(isVowel) OR nextPh(j) THEN
  356. length 220
  357. ELSE
  358. length 180
  359. ENDIF
  360. FMT(vowel/u_bck2)
  361. endphoneme
  362. phoneme u: // slitely longer than u
  363. vwl starttype #u endtype #u
  364. length 240
  365. FMT(vowel/u_bck2)
  366. endphoneme
  367. phoneme y
  368. vwl starttype #u endtype #u
  369. IF nextPhW(E~) OR nextPhW(#i) THEN
  370. length 110
  371. FMT(vowel/y, 80)
  372. ENDIF
  373. length 180
  374. FMT(vowel/y)
  375. endphoneme
  376. phoneme y-
  377. vwl starttype #u endtype #u
  378. unstressed
  379. length 130
  380. FMT(vowel/y)
  381. endphoneme
  382. phoneme W
  383. vwl starttype #@ endtype #@
  384. length 180
  385. FMT(vowel/@_6)
  386. endphoneme
  387. phoneme W2 // For english words
  388. vwl starttype #@ endtype #@
  389. length 100
  390. unstressed
  391. FMT(vowel/@_6)
  392. endphoneme
  393. phoneme Y
  394. vwl starttype #@ endtype #@
  395. length 170
  396. FMT(vowel/y#)
  397. endphoneme
  398. phoneme w
  399. vwl starttype #u endtype #u
  400. IF prevPh(#r) OR prevPhW(#l) THEN
  401. NextVowelStarts
  402. VowelStart(w/w@)
  403. VowelStart(vwl_fr/wa)
  404. VowelStart(w/we)
  405. VowelStart(w/wi)
  406. VowelStart(w/wo)
  407. VowelStart(w/wu)
  408. EndSwitch
  409. ELSE
  410. ChangePhoneme(w/)
  411. ENDIF
  412. endphoneme
  413. phoneme w/
  414. liquid
  415. lengthmod 7
  416. IF nextPh(isVowel) THEN
  417. NextVowelStarts
  418. VowelStart(w/w@)
  419. VowelStart(vwl_fr/wa)
  420. VowelStart(w/we)
  421. VowelStart(w/wi)
  422. VowelStart(w/wo)
  423. VowelStart(w/wu)
  424. EndSwitch
  425. VowelEnding(w/xw, -30)
  426. IF prevPh(isPause) THEN
  427. FMT(w/_w)
  428. ELSE
  429. FMT(w/_w)
  430. ENDIF
  431. ELSE
  432. // no vowel follows
  433. Vowelout len=50
  434. IF prevPh(#i) THEN
  435. FMT(w/iw_)
  436. ENDIF
  437. FMT(w/w_)
  438. ENDIF
  439. endphoneme
  440. phoneme A~
  441. vwl starttype #a endtype #a
  442. length 190
  443. FMT(vnasal/aa_n4)
  444. endphoneme
  445. phoneme E~ // same as W~ for fr-fr
  446. vwl starttype #e endtype #e
  447. length 190
  448. IF nextPh(n2) THEN
  449. FMT(vowel/e_mid)
  450. ENDIF
  451. FMT(vnasal/W_n)
  452. endphoneme
  453. phoneme O~
  454. vwl starttype #o endtype #o
  455. length 190
  456. FMT(vnasal/o_n5)
  457. endphoneme
  458. phoneme W~
  459. vwl starttype #@ endtype #@
  460. length 190
  461. FMT(vnasal/W_n)
  462. endphoneme
  463. // CONSONANTS
  464. //===========
  465. // uses the consonants in file "phonemes", unless overridden here
  466. phoneme b
  467. vcd blb stp
  468. starttype #cFR endtype #cFR
  469. voicingswitch p
  470. lengthmod 6
  471. Vowelin f1=2 f2=1000 -300 -200 f3=-100 100
  472. Vowelout f1=2 f2=1000 -500 -300 f3=-300 80 brk
  473. IF KlattSynth THEN
  474. Vowelin f1=1 f2=1000 -500 -300 f3=-300 80
  475. IF nextPh(isPause2) THEN
  476. FMT(klatt/b) addWav(x/b_)
  477. ENDIF
  478. FMT(klatt/b) addWav(x/b)
  479. ENDIF
  480. IF PreVoicing THEN
  481. IF nextPhW(#r) THEN
  482. FMT(b/xbr)
  483. ELSE
  484. FMT(b/xb)
  485. ENDIF
  486. ENDIF
  487. IF nextPh(isPause2) OR nextPh(l) THEN
  488. FMT(b/b_) addWav(x/b_)
  489. ELIF nextPh(l/) THEN
  490. FMT(b/b)
  491. ELIF nextPh(#r) THEN
  492. FMT(b/br) addWav(x/b, 50)
  493. ENDIF
  494. FMT(b/b) addWav(x/b, 70)
  495. endphoneme
  496. phoneme d
  497. vcd alv stp
  498. starttype #cFR endtype #cFR
  499. voicingswitch t
  500. lengthmod 5
  501. Vowelin f1=1 f2=1700 -300 300 f3=-100 80 amp=20
  502. Vowelout f1=2 f2=1700 -300 300 f3=-100 80
  503. IF PreVoicing THEN
  504. IF nextPhW(#r) THEN
  505. FMT(d/xdr)
  506. ELSE
  507. FMT(d/xd)
  508. ENDIF
  509. ENDIF
  510. IF nextPh(isPause2) THEN
  511. FMT(d/d_) addWav(x/d_, 50)
  512. ELIF nextPhW(#r) THEN
  513. FMT(d/dr) addWav(x/d_, 50)
  514. ENDIF
  515. FMT(d/d) addWav(x/d, 40)
  516. endphoneme
  517. phoneme f
  518. vls lbd frc
  519. starttype #cFR endtype #cFR
  520. voicingswitch v
  521. lengthmod 3
  522. Vowelout f1=0 f2=1000 -500 -350 f3=-200 100
  523. IF nextPh(isPause) THEN
  524. WAV(ufric/f_)
  525. ENDIF
  526. WAV(ufric/f, 80)
  527. endphoneme
  528. phoneme g
  529. vcd vel stp
  530. starttype #cFR endtype #cFR
  531. voicingswitch k
  532. lengthmod 5
  533. Vowelin f1=2 f2=2300 200 300 f3=-300 80
  534. Vowelout f1=1 f2=2300 250 300 f3=-300 80 brk
  535. IF PreVoicing THEN
  536. IF nextPhW(#r) THEN
  537. FMT(g/xgr)
  538. ELSE
  539. FMT(g/xg)
  540. ENDIF
  541. ENDIF
  542. IF nextPh(isPause2) THEN
  543. FMT(g/g_) addWav(x/g_)
  544. ELIF nextPhW(#r) THEN
  545. FMT(g/gr) addWav(x/g, 20)
  546. ENDIF
  547. FMT(g/g) addWav(x/g, 20)
  548. endphoneme
  549. phoneme k
  550. vls vel stp
  551. starttype #cFR endtype #cFR
  552. voicingswitch g
  553. length 50
  554. lengthmod 2
  555. Vowelin f1=0 f2=2300 200 400 f3=-100 80
  556. Vowelout f1=0 f2=2300 300 400 f3=-100 80 rms=20
  557. IF nextPh(isPause2) THEN
  558. WAV(ustop/k_)
  559. ELIF nextPh(#i) OR nextPh(;) THEN
  560. WAV(ustop/ki, 45)
  561. ELIF nextPh(#l) THEN
  562. WAV(ustop/kl, 40)
  563. ELIF nextPh(#r) THEN
  564. length 45
  565. WAV(ustop/k, 50)
  566. ENDIF
  567. WAV(ustop/k, 40)
  568. endphoneme
  569. phoneme n
  570. vcd alv nas
  571. Vowelout f1=2 f2=1700 -300 250 f3=-100 80 rms=20 brk
  572. lengthmod 4
  573. IF KlattSynth THEN
  574. Vowelin f1=0 f2=1500 -200 200 f3=0 80
  575. FMT(klatt/n)
  576. ENDIF
  577. NextVowelStarts
  578. VowelStart(n/n@)
  579. VowelStart(n/na)
  580. VowelStart(n/ne)
  581. VowelStart(n/ni)
  582. VowelStart(n/no)
  583. VowelStart(n/nu)
  584. EndSwitch
  585. IF prevPh(isNotVowel) AND nextPhW(isLiquid) THEN
  586. FMT(n/nj)
  587. ELIF prevPh(isPause) OR prevPh(n) THEN
  588. FMT(n/_n)
  589. ELIF nextPh(isNotVowel) THEN
  590. length 120
  591. FMT(n/n_long_)
  592. ENDIF
  593. endphoneme
  594. phoneme n2
  595. vcd alv nas
  596. IF nextPh(w) OR nextPh(isVowel) THEN
  597. ChangePhoneme(n)
  598. ELSE
  599. ChangePhoneme(NULL)
  600. ENDIF
  601. endphoneme
  602. phoneme p
  603. vls blb stp
  604. starttype #cFR endtype #cFR
  605. voicingswitch b
  606. lengthmod 2
  607. Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 amp=11
  608. Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=22
  609. IF nextPh(isPause2) THEN
  610. WAV(ustop/p_, 80)
  611. ELIF nextPh(@-) THEN
  612. WAV(ustop/p_unasp, 70)
  613. ELIF nextPh(#l) THEN
  614. WAV(ustop/pl, 50)
  615. ELIF nextPh(#r) THEN
  616. length 40
  617. WAV(ustop/p_, 80)
  618. ENDIF
  619. WAV(ustop/p_unasp_, 90)
  620. endphoneme
  621. phoneme p2 // silent unless followed by vowel
  622. vls blb stp
  623. lengthmod 2
  624. Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 amp=11
  625. Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=22
  626. IF nextPh(isNotVowel) THEN
  627. ChangePhoneme(NULL)
  628. ENDIF
  629. WAV(ustop/p, 45)
  630. endphoneme
  631. phoneme s
  632. vls alv frc sib
  633. voicingswitch z
  634. lengthmod 3
  635. Vowelin f1=0 f2=1700 -300 300 f3=-100 80
  636. Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
  637. IF nextPh(isPause) THEN
  638. WAV(ufric/s_, 45)
  639. ELIF nextPh(p) OR nextPh(t) OR nextPh(k) THEN
  640. WAV(ufric/s!, 45)
  641. ENDIF
  642. WAV(ufric/s, 45)
  643. endphoneme
  644. phoneme S
  645. vls pla frc sib
  646. starttype #cFR endtype #cFR
  647. voicingswitch Z
  648. lengthmod 3
  649. Vowelin f1=0 f2=1900 100 300 f3=-100 80
  650. Vowelout f1=0 f2=1900 100 300 f3=-100 80
  651. IF prevPhW(t) THEN
  652. length 60
  653. ENDIF
  654. IF nextPh(isPause) THEN
  655. WAV(ufric/sh_, 45)
  656. ENDIF
  657. WAV(ufric/sh, 45)
  658. endphoneme
  659. phoneme t
  660. vls alv stp
  661. starttype #cFR endtype #cFR
  662. voicingswitch d
  663. lengthmod 2
  664. Vowelin f1=0 f2=1700 -300 300 f3=-100 80
  665. Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
  666. IF nextPh(isPause2) THEN
  667. WAV(ustop/t_, 40)
  668. ELIF nextPh(#r) THEN
  669. length 40
  670. WAV(ustop/t_short_, 50)
  671. ENDIF
  672. WAV(ustop/t_short, 40)
  673. endphoneme
  674. phoneme t2 // silent unless followed by vowel
  675. vls alv stp
  676. Vowelin f1=0 f2=1600 -300 300 f3=-100 80
  677. Vowelout f1=0 f2=1600 -300 250 f3=-100 80 rms=20
  678. lengthmod 2
  679. IF nextPh(isVowel) OR nextPh(w) OR nextPh(j) THEN
  680. WAV(ustop/t_short, 30)
  681. ELSE
  682. ChangePhoneme(NULL)
  683. ENDIF
  684. endphoneme
  685. phoneme t3 // silent unless followed by vowel or pause
  686. vls alv stp
  687. lengthmod 2
  688. IF nextPh(isPause) THEN
  689. ChangePhoneme(t)
  690. ELIF nextPh(isNotVowel) THEN
  691. ChangePhoneme(NULL)
  692. ELSE
  693. ChangePhoneme(t2)
  694. ENDIF
  695. endphoneme
  696. phoneme v
  697. vcd lbd frc
  698. starttype #cFR endtype #cFR
  699. voicingswitch f
  700. lengthmod 6
  701. length 90
  702. Vowelin f1=0 f2=1000 -300 -200 f3=-300 100
  703. Vowelout f1=0 f2=1000 -500 -300 f3=-300 100
  704. IF KlattSynth THEN
  705. CALL base1/v
  706. RETURN
  707. ENDIF
  708. IF nextPh(isPause2) THEN
  709. FMT(voc/v_) addWav(vocw/v)
  710. ENDIF
  711. IF thisPh(isWordStart) AND nextPhW(isLiquid) THEN
  712. length 70
  713. ELIF nextPhW(w/) OR nextPhW(#r) THEN
  714. length 60
  715. ENDIF
  716. FMT(voc/v) addWav(vocw/v, 60)
  717. endphoneme
  718. phoneme V // For english words
  719. vwl starttype #a endtype #@
  720. length 140
  721. ChangeIfDiminished(@)
  722. FMT(vowel/V_2)
  723. endphoneme
  724. phoneme z
  725. vcd alv frc sib
  726. voicingswitch s
  727. lengthmod 6
  728. Vowelout f1=0 f2=1700 -300 300 f3=-100 60 len=50
  729. IF nextPhW(z) THEN
  730. FMT(d/xd)
  731. ENDIF
  732. IF nextPh(isPause2) OR nextPh(isPause) THEN
  733. FMT(voc/z_) addWav(ufric/s_, 45)
  734. ENDIF
  735. IF prevPhW(t) THEN
  736. length 60
  737. ENDIF
  738. FMT(voc/z) addWav(ufric/s_, 45)
  739. endphoneme
  740. phoneme z2 // silent unless followed by vowel
  741. vcd alv frc sib
  742. IF nextPh(isVowel) OR nextPh(w/) OR nextPh(j) THEN
  743. length 70
  744. FMT(voc/z) addWav(ufric/s, 40)
  745. ELSE
  746. ChangePhoneme(NULL)
  747. ENDIF
  748. endphoneme
  749. phoneme z3 // "six" and "dix". [s] before pause, [z] before vowel, else []
  750. vcd alv frc sib
  751. IF nextPh(isPause) THEN
  752. ChangePhoneme(s)
  753. ELIF nextPh(isVowel) OR nextPh(w/) THEN
  754. ChangePhoneme(z)
  755. ELSE
  756. ChangePhoneme(NULL)
  757. ENDIF
  758. endphoneme
  759. phoneme j.
  760. liquid
  761. lengthmod 7
  762. ipa U+0265
  763. ChangePhoneme(y)
  764. endphoneme