eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ph_french 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738
  1. //====================================================
  2. // French
  3. //====================================================
  4. // Updated 2010-02-13 Michel Such <[email protected]>
  5. phoneme #l virtual
  6. // Used for l and l/
  7. endphoneme
  8. phoneme #r virtual
  9. // Used for r and r/2
  10. endphoneme
  11. phoneme : // Lengthen previous vowel by "length"
  12. virtual
  13. length 40 // shorter than for fr-ca
  14. endphoneme
  15. phoneme r
  16. liquid rhotic uvl
  17. lengthmod 7
  18. starttype #r endtype #r
  19. IF nextPh(isNotVowel) THEN
  20. ChangePhoneme(r/2)
  21. ENDIF
  22. VowelEnding(vwl_fr/xr)
  23. NextVowelStarts
  24. VowelStart(vwl_fr/r@)
  25. VowelStart(NULL)
  26. VowelStart(vwl_fr/re)
  27. VowelStart(vwl_fr/ri)
  28. VowelStart(vwl_fr/ro)
  29. VowelStart(vwl_fr/ru)
  30. EndSwitch
  31. IF prevPh(isPause) OR prevPhW(r/2) THEN
  32. FMT(vwl_fr/_r)
  33. ELIF prevPhW(p) OR prevPhW(k) THEN
  34. FMT(vwl_fr/tr)
  35. ELIF prevPhW(t) THEN
  36. FMT(vwl_fr/tr) addWav(r3/rx,30)
  37. ENDIF
  38. IF thisPh(isWordStart) THEN
  39. IF prevPh(isVowel) OR prevPh(isPause) OR prevPh(#l) OR prevPh(r/2) THEN
  40. FMT(vwl_fr/_r)
  41. ENDIF
  42. FMT(vwl_fr/_r2) addWav(r3/rx, 15)
  43. ENDIF
  44. FMT(vwl_fr/r) addWav(r3/rx,25)
  45. endphoneme
  46. phoneme r2 // silent unless followed by vowel
  47. liquid rhotic uvl
  48. starttype #r endtype #r
  49. lengthmod 7
  50. Vowelin f1=0 f2=1600 -300 300 f3=-200 80
  51. Vowelout f1=2 f2=1600 -300 300 f3=-300 80
  52. IF nextPh(isNotVowel) THEN
  53. ChangePhoneme(NULL)
  54. ENDIF
  55. FMT(vwl_fr/r)
  56. endphoneme
  57. phoneme r/2 // variant of [r] when not preceding a vowel
  58. liquid uvl
  59. starttype #r endtype #r
  60. Vowelout f1=2 f2=1600 -300 300 f3=-300 100
  61. lengthmod 2
  62. PrevVowelEndings
  63. VowelEnding(vwl_fr/r_@)
  64. VowelEnding(vwl_fr/r_a)
  65. VowelEnding(vwl_fr/r_e)
  66. VowelEnding(vwl_fr/r_i)
  67. VowelEnding(vwl_fr/r_o)
  68. VowelEnding(vwl_fr/r_u)
  69. EndSwitch
  70. IF prevPh(isVowel) THEN
  71. FMT(vwl_fr/r_) addWav(r3/rx, 30)
  72. ELIF prevPh(m) OR prevPh(n) THEN
  73. FMT(r3/r_n)
  74. ENDIF
  75. FMT(vwl_fr/r_)
  76. endphoneme
  77. phoneme l
  78. liquid
  79. lengthmod 7
  80. IF nextPh(isNotVowel) THEN
  81. ChangePhoneme(l/)
  82. ENDIF
  83. NextVowelStarts
  84. VowelStart(l/l@)
  85. VowelStart(l/la, -10)
  86. VowelStart(l/le, -15)
  87. VowelStart(l/li, -15)
  88. VowelStart(l/lo, -10)
  89. VowelStart(l/lu, -20)
  90. EndSwitch
  91. IF prevPh(#@) THEN
  92. VowelEnding(l/xl, -50)
  93. ELIF prevPh(isVowel) THEN
  94. VowelEnding(l/xl, -40)
  95. ENDIF
  96. IF prevPh(isPause) THEN
  97. FMT(l/_l)
  98. ENDIF
  99. IF prevPh(r/2) THEN
  100. FMT(l/_l)
  101. ENDIF
  102. IF prevPh(t) THEN
  103. FMT(l/tl)
  104. ENDIF
  105. IF prevPh(l/) THEN
  106. FMT(l/l_long) // double l, make it longer
  107. ENDIF
  108. FMT(l/l)
  109. endphoneme
  110. phoneme l/ // used for [l] when not before a vowel
  111. liquid
  112. lengthmod 7
  113. IF nextPh(isVowel) THEN
  114. ChangePhoneme(l)
  115. ENDIF
  116. PrevVowelEndings
  117. VowelEnding(l/l_@)
  118. VowelEnding(l/l_a)
  119. VowelEnding(l/l_e)
  120. VowelEnding(l/l_i)
  121. VowelEnding(l/l_o)
  122. VowelEnding(l/l_u, -20)
  123. EndSwitch
  124. IF prevPh(i) THEN
  125. FMT(l/l_)
  126. ENDIF
  127. FMT(l/_l)
  128. endphoneme
  129. // Vowels
  130. //=======
  131. phoneme @
  132. vowel starttype #@ endtype #@
  133. length 170
  134. FMT(vowel/@_hgh)
  135. endphoneme
  136. phoneme @2
  137. vowel starttype #@ endtype #@
  138. length 160
  139. FMT(vowel/@_fr)
  140. endphoneme
  141. phoneme a
  142. vowel starttype #a endtype #a
  143. length 170
  144. IF prevPh(l) THEN
  145. VowelStart(l/la, -15)
  146. ENDIF
  147. IF prevPh(#r) THEN
  148. VowelStart(vwl_fr/ra)
  149. ENDIF
  150. FMT(vowel/a_6)
  151. endphoneme
  152. phoneme e
  153. vowel starttype #e endtype #e
  154. length 170
  155. IF nextPh(l/) THEN
  156. VowelEnding(l/xl, -20)
  157. ENDIF
  158. FMT(vowel/e_8)
  159. endphoneme
  160. phoneme E
  161. vowel starttype #e endtype #e
  162. length 170
  163. FMT(vowel/e_mid)
  164. endphoneme
  165. phoneme E2 // Between e and E
  166. vowel starttype #e endtype #e
  167. length 170
  168. FMT(vowel/e_9)
  169. endphoneme
  170. phoneme i
  171. vowel starttype #i endtype #i
  172. length 160
  173. IfNextVowelAppend(;)
  174. FMT(vowel/i_2)
  175. endphoneme
  176. phoneme i- // shorter
  177. vowel starttype #i endtype #i
  178. length 110
  179. FMT(vowel/i_2)
  180. endphoneme
  181. phoneme i: // longer than i
  182. vowel starttype #i endtype #i
  183. length 240
  184. IfNextVowelAppend(;)
  185. FMT(vowel/i_3)
  186. endphoneme
  187. phoneme o
  188. vowel starttype #o endtype #o
  189. length 170
  190. ChangeIfUnstressed(o2)
  191. IF nextPh(r/2) THEN
  192. VowelEnding(vwl_fr/r_o)
  193. FMT(vowel/o_mid2)
  194. ENDIF
  195. FMT(vowel/o_8)
  196. endphoneme
  197. phoneme o2
  198. vowel starttype #o endtype #o
  199. length 170
  200. IF nextPh(r/2) THEN
  201. VowelEnding(vwl_fr/r_o)
  202. FMT(vowel/o_mid2)
  203. ENDIF
  204. IF nextPh(l/) THEN
  205. VowelEnding(l/l_o)
  206. FMT(vowel/o_mid2)
  207. ENDIF
  208. FMT(vowel/o)
  209. endphoneme
  210. phoneme O
  211. vowel starttype #o endtype #o
  212. length 170
  213. ChangeIfUnstressed(o2)
  214. FMT(vowel/o_mid2)
  215. endphoneme
  216. phoneme O2 // Like O but no reduceto
  217. vowel starttype #o endtype #o
  218. length 170
  219. FMT(vowel/o_mid2)
  220. endphoneme
  221. phoneme o3 // almost like english oU
  222. vowel starttype #@ endtype #u
  223. length 220
  224. FMT(vdiph/@u_3)
  225. endphoneme
  226. phoneme u
  227. vowel starttype #u endtype #u
  228. length 170
  229. IF nextPh(i) THEN
  230. Length 50
  231. ENDIF
  232. FMT(vowel/u_bck2)
  233. endphoneme
  234. phoneme u: // slitely longer than u
  235. vowel starttype #u endtype #u
  236. length 240
  237. FMT(vowel/u_bck2)
  238. endphoneme
  239. phoneme y
  240. vowel starttype #u endtype #u
  241. length 170
  242. IF nextPh(l/) THEN
  243. VowelEnding(l/l_y, -30)
  244. ENDIF
  245. IF nextPh(r/2) THEN
  246. VowelEnding(vwl_fr/r_y)
  247. ENDIF
  248. IF nextPh(E~) THEN
  249. Length 120
  250. ENDIF
  251. FMT(vowel/y_2)
  252. endphoneme
  253. phoneme Y
  254. vowel starttype #@ endtype #@
  255. length 170
  256. ChangeIfUnstressed(W)
  257. IF prevPh(l) THEN
  258. VowelStart(l/l@, -20)
  259. ENDIF
  260. IF nextPh(l/) THEN
  261. VowelEnding(l/l_@, -20)
  262. ENDIF
  263. FMT(vowel/y#)
  264. endphoneme
  265. phoneme W
  266. vowel starttype #@ endtype #@
  267. length 180
  268. IF prevPh(l) THEN
  269. VowelStart(l/l@, -20)
  270. ENDIF
  271. IF nextPh(l/) THEN
  272. VowelEnding(l/l_@, -20)
  273. ENDIF
  274. FMT(vowel/@)
  275. endphoneme
  276. phoneme wA
  277. vowel starttype #o endtype #a
  278. length 220
  279. IF nextPh(l/) THEN
  280. VowelEnding(l/l_a)
  281. ENDIF
  282. IF nextPh(j) THEN
  283. VowelEnding(NULL)
  284. ENDIF
  285. FMT(vwl_fr/w_a)
  286. endphoneme
  287. phoneme w^i
  288. vowel starttype #u endtype #i
  289. length 240
  290. IF prevPh(l) THEN
  291. VowelStart(l/lu, -20)
  292. ENDIF
  293. IF prevPh(#r) THEN
  294. VowelStart(vwl_fr/ry)
  295. ENDIF
  296. FMT(vdiph/yi_fr)
  297. endphoneme
  298. phoneme A~
  299. vowel starttype #a endtype #a
  300. length 190
  301. IF nextPh(r/2) THEN
  302. VowelEnding(vwl_fr/r_an)
  303. ENDIF
  304. IF prevPh(#r) THEN
  305. VowelStart(vwl_fr/raa)
  306. ENDIF
  307. FMT(vnasal/aa_n4)
  308. endphoneme
  309. phoneme E~ // same as W~ for fr-fr
  310. vowel starttype #e endtype #e
  311. length 190
  312. IF nextPh(n2) THEN
  313. FMT(vowel/e_mid)
  314. ENDIF
  315. FMT(vnasal/W_n)
  316. endphoneme
  317. phoneme O~
  318. vowel starttype #o endtype #o
  319. length 190
  320. FMT(vnasal/o_n2)
  321. endphoneme
  322. phoneme W~
  323. vowel starttype #@ endtype #@
  324. length 190
  325. FMT(vnasal/W_n)
  326. endphoneme
  327. // These vowels map to others in fr-fr, but are distinct in fr-ca
  328. phoneme I // same as [i]
  329. import_phoneme fr/i
  330. endphoneme
  331. phoneme U // same as [u]
  332. import_phoneme fr/u
  333. endphoneme
  334. phoneme y" // same as [y]
  335. import_phoneme fr/y
  336. endphoneme
  337. phoneme E: // slightly longer than [E]
  338. import_phoneme E
  339. endphoneme
  340. phoneme A // same as [a]
  341. import_phoneme a
  342. endphoneme
  343. // CONSONANTS
  344. //===========
  345. // uses the consonants in file "phonemes", unless overridden here
  346. phoneme b
  347. vcd blb stop
  348. voicingswitch p
  349. lengthmod 5
  350. Vowelout f1=2 f2=1000 -500 -300 f3=-300 80 brk
  351. IF KlattSynth THEN
  352. CALL base/b
  353. RETURN
  354. ENDIF
  355. IF PreVoicing THEN
  356. FMT(b/xb, 50)
  357. ENDIF
  358. IF nextPh(isPause2) OR nextPh(#l) THEN
  359. FMT(b/b_) addWav(x/b_)
  360. ENDIF
  361. FMT(b/b) addWav(x/b, 70)
  362. endphoneme
  363. phoneme d
  364. vcd alv stop
  365. voicingswitch t
  366. lengthmod 5
  367. Vowelin f1=0 f2=1700 -300 300 f3=-100 80 amp=20
  368. Vowelout f1=0 f2=1700 -300 300 f3=-100 80
  369. IF PreVoicing THEN
  370. FMT(d/xd)
  371. ENDIF
  372. IF nextPh(isPause2) THEN
  373. FMT(d/d_) addWav(x/d_, 50)
  374. ELIF nextPh(#r) THEN
  375. FMT(d/dr) addWav(x/d, 50)
  376. ELIF prevPh(isPause) THEN
  377. FMT(d/d) addWav(x/d, 50)
  378. ENDIF
  379. FMT(d/d) addWav(x/d, 40)
  380. endphoneme
  381. phoneme g
  382. vcd vel stop
  383. voicingswitch k
  384. lengthmod 5
  385. Vowelin f1=2 f2=2300 200 300 f3=-300 80
  386. Vowelout f1=2 f2=2300 250 300 f3=-300 80 brk
  387. IF PreVoicing THEN
  388. FMT(g/xg)
  389. ENDIF
  390. IF nextPh(isPause2) THEN
  391. FMT(g/g_) addWav(x/g_)
  392. ENDIF
  393. FMT(g/g) addWav(x/g, 20)
  394. endphoneme
  395. phoneme k
  396. vls vel stop
  397. voicingswitch g
  398. lengthmod 2
  399. Vowelin f1=0 f2=2300 200 400 f3=-100 80
  400. Vowelout f1=0 f2=2300 300 400 f3=-100 80 rms=20
  401. IF nextPh(isPause2) THEN
  402. WAV(ustop/k_)
  403. ELIF nextPh(#r) THEN
  404. WAV(ustop/k, 50)
  405. ELIF nextPh(#i) OR nextPh(;) THEN
  406. WAV(ustop/ki, 45)
  407. ELIF nextPh(#l) THEN
  408. WAV(ustop/kl, 45)
  409. ENDIF
  410. WAV(ustop/k, 40)
  411. endphoneme
  412. phoneme n2
  413. vcd alv nasal
  414. IF nextPh(isNotVowel) THEN
  415. ChangePhoneme(NULL)
  416. ENDIF
  417. ChangePhoneme(n)
  418. endphoneme
  419. phoneme p
  420. vls blb stop
  421. voicingswitch b
  422. lengthmod 2
  423. Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 amp=11
  424. Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=22
  425. IF nextPh(isPause2) THEN
  426. WAV(ustop/p_, 70)
  427. ELIF nextPh(@-) THEN
  428. WAV(ustop/p_unasp, 60)
  429. ELIF nextPh(l) THEN
  430. WAV(ustop/pl, 30)
  431. ENDIF
  432. WAV(ustop/p_unasp_, 90)
  433. endphoneme
  434. phoneme p2 // silent unless followed by vowel
  435. vls blb stop
  436. lengthmod 2
  437. Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 amp=11
  438. Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=22
  439. IF nextPh(isNotVowel) THEN
  440. ChangePhoneme(NULL)
  441. ENDIF
  442. WAV(ustop/p, 45)
  443. endphoneme
  444. phoneme s
  445. vls alv frc sibilant
  446. voicingswitch z
  447. lengthmod 3
  448. Vowelin f1=0 f2=1700 -300 300 f3=-100 80
  449. Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
  450. IF nextPh(isPause) THEN
  451. WAV(ufric/s_, 45)
  452. ELIF nextPh(p) OR nextPh(t) OR nextPh(k) THEN
  453. WAV(ufric/s!, 45)
  454. ENDIF
  455. WAV(ufric/s, 45)
  456. endphoneme
  457. phoneme S
  458. vls pla frc sibilant
  459. voicingswitch Z
  460. lengthmod 3
  461. Vowelin f1=0 f2=1900 100 300 f3=-100 80
  462. Vowelout f1=0 f2=1900 100 300 f3=-100 80
  463. IF nextPh(isPause) THEN
  464. WAV(ufric/sh_, 45)
  465. ENDIF
  466. WAV(ufric/sh, 45)
  467. endphoneme
  468. phoneme t
  469. vls alv stop
  470. voicingswitch d
  471. lengthmod 2
  472. Vowelin f1=0 f2=1600 -300 300 f3=-100 80
  473. Vowelout f1=0 f2=1600 -300 250 f3=-100 80 brk
  474. IF nextPh(isPause2) THEN
  475. WAV(ustop/t_, 40)
  476. ELIF nextPh(r/2) THEN
  477. WAV(ustop/t_short, 50)
  478. ENDIF
  479. WAV(ustop/t_short, 40)
  480. endphoneme
  481. phoneme t2 // silent unless followed by vowel
  482. vls alv stop
  483. Vowelin f1=0 f2=1600 -300 300 f3=-100 80
  484. Vowelout f1=0 f2=1600 -300 250 f3=-100 80 rms=20
  485. lengthmod 2
  486. IF nextPh(isNotVowel) THEN
  487. ChangePhoneme(NULL)
  488. ENDIF
  489. WAV(ustop/t_short, 30)
  490. endphoneme
  491. phoneme t3 // silent unless followed by vowel or pause
  492. vls alv stop
  493. lengthmod 2
  494. IF nextPh(isPause) THEN
  495. ChangePhoneme(t)
  496. ELIF nextPh(isNotVowel) THEN
  497. ChangePhoneme(NULL)
  498. ELSE
  499. ChangePhoneme(t2)
  500. ENDIF
  501. endphoneme
  502. phoneme v
  503. vcd lbd frc
  504. voicingswitch f
  505. lengthmod 6
  506. Vowelin f1=0 f2=1000 -300 -200 f3=-300 100
  507. Vowelout f1=0 f2=1000 -500 -300 f3=-300 60 len=50
  508. IF KlattSynth THEN
  509. CALL base/v
  510. RETURN
  511. ENDIF
  512. IF nextPh(isPause2) THEN
  513. FMT(voc/v_) addWav(vocw/v)
  514. ENDIF
  515. IF thisPh(isWordStart) AND nextPhW(isLiquid) THEN
  516. Length 70
  517. ENDIF
  518. FMT(voc/v) addWav(vocw/v, 75)
  519. endphoneme
  520. phoneme z
  521. vcd alv frc sibilant
  522. voicingswitch s
  523. lengthmod 6
  524. Vowelout f1=0 f2=1700 -300 300 f3=-100 60 len=50
  525. IF nextPh(isPause2) THEN
  526. FMT(voc/z_) addWav(ufric/s_, 45)
  527. ENDIF
  528. FMT(voc/z) addWav(ufric/s_, 45)
  529. endphoneme
  530. phoneme z2 // silent unless followed by vowel
  531. vcd alv frc sibilant
  532. IF nextPh(isVowel) THEN
  533. ChangePhoneme(z)
  534. ELSE
  535. ChangePhoneme(NULL)
  536. ENDIF
  537. endphoneme
  538. phoneme z3 // "six" and "dix". [s] before pause, [z] before vowel, else []
  539. vcd alv frc sibilant
  540. IF nextPh(isPause) THEN
  541. ChangePhoneme(s)
  542. ELIF nextPh(isVowel) THEN
  543. ChangePhoneme(z)
  544. ELSE
  545. ChangePhoneme(NULL)
  546. ENDIF
  547. endphoneme