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.

phonemes 27KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625
  1. // This is the master phoneme file.
  2. //*******************************************************************
  3. // Stress Phonemes
  4. //*******************************************************************
  5. phoneme % // Unstressed
  6. stress
  7. stress_type 1
  8. endphoneme
  9. phoneme %% // Diminished stress
  10. stress
  11. stress_type 0
  12. endphoneme
  13. phoneme \, // [,] Secondary stress
  14. stress
  15. stress_type 2
  16. endphoneme
  17. phoneme \,\, // [,,] Secondary stress
  18. stress
  19. stress_type 3
  20. endphoneme
  21. phoneme ' // Primary stress
  22. stress
  23. stress_type 4
  24. endphoneme
  25. phoneme '' // Primary stress (priority)
  26. stress
  27. stress_type 5
  28. endphoneme
  29. phoneme '! // Primary stress (emphasized)
  30. stress
  31. stress_type 6
  32. endphoneme
  33. phoneme = // Place stress on previous vowel
  34. stress
  35. stress_type 2
  36. endphoneme
  37. //*******************************************************************
  38. // IPA Phonemes
  39. //*******************************************************************
  40. phonemetable ipa base
  41. include ph_ipa
  42. phonemetable base1 base
  43. // The base phoneme table contains the utility phonemes, the consonants,
  44. // and a schwa. The vowels are defined in the language specific phoneme
  45. // tables, which can also redefine consonants if they wish.
  46. //*******************************************************************
  47. // UTILITY PHONEMES
  48. //*******************************************************************
  49. phoneme || // End Word
  50. pause
  51. lengthmod 9 // no effect
  52. endphoneme
  53. phoneme _ // Short pause
  54. pause
  55. starttype _ endtype _
  56. lengthmod 1
  57. length 25
  58. endphoneme
  59. phoneme _! // Short pause, don't replace by linking
  60. pause
  61. starttype _ endtype _
  62. lengthmod 1
  63. nolink
  64. length 35
  65. endphoneme
  66. phoneme _| // Very short pause
  67. pause
  68. starttype _ endtype _
  69. lengthmod 5
  70. length 1
  71. endphoneme
  72. phoneme _: // Standard pause
  73. pause
  74. starttype _ endtype _
  75. lengthmod 1
  76. length 75
  77. endphoneme
  78. phoneme _:: // Long pause
  79. pause
  80. starttype _ endtype _
  81. lengthmod 1
  82. length 150
  83. endphoneme
  84. phoneme _;_ // clause pause
  85. pause
  86. starttype _ endtype _
  87. lengthmod 1
  88. length 200
  89. endphoneme
  90. phoneme _^_ // Change dictionary (followed by language-code in ascii
  91. pause
  92. starttype _ endtype _
  93. lengthmod 1
  94. length 10
  95. endphoneme
  96. phoneme _X1 // a language specific action
  97. pause
  98. starttype _ endtype _
  99. lengthmod 1
  100. length 10
  101. endphoneme
  102. phoneme ? // glottal stp
  103. vls glt stp
  104. lengthmod 3 // ??
  105. nolink
  106. Vowelin glstop
  107. Vowelout glstop
  108. WAV(ustop/null)
  109. endphoneme
  110. phoneme : // lengthen previous vowel by "length"
  111. virtual
  112. length 70
  113. endphoneme
  114. phoneme - // Indicates the previous phoneme is a syllabic consonant
  115. virtual
  116. endphoneme
  117. // Some default vowel definitions
  118. phoneme @ // Schwa, e.g. alph**a**
  119. vwl starttype #@ endtype #@
  120. unstressed
  121. length 140
  122. FMT(vowel/@)
  123. endphoneme
  124. phoneme @- // very short schwa
  125. vwl starttype #@ endtype #@
  126. unstressed nsy
  127. ipa ə
  128. IF nextPhW(*) OR nextPhW(r) THEN
  129. ipa NULL // @-* is used to make 'r'
  130. ENDIF
  131. length 50
  132. FMT(vowel/@-)
  133. endphoneme
  134. phoneme a // tr**a**p
  135. vwl starttype #a endtype #a
  136. length 180
  137. FMT(vowel/a)
  138. endphoneme
  139. phoneme e // German **eh**, French **é**
  140. vwl starttype #e endtype #e
  141. length 170
  142. FMT(vowel/e)
  143. endphoneme
  144. phoneme i
  145. vwl starttype #i endtype #i
  146. length 170
  147. IfNextVowelAppend(;)
  148. FMT(vowel/i)
  149. endphoneme
  150. phoneme o // German **oo**, French **o**
  151. vwl starttype #o endtype #o
  152. length 170
  153. FMT(vowel/oo)
  154. endphoneme
  155. phoneme u
  156. vwl starttype #u endtype #u
  157. length 170
  158. FMT(vowel/u)
  159. endphoneme
  160. // Syllablic consonants
  161. //=====================
  162. phoneme m-
  163. vwl starttype #@ endtype #@
  164. ipa mU+0329
  165. lengthmod 4
  166. length 170
  167. IF thisPh(isWordStart) THEN
  168. length 190
  169. ENDIF
  170. IF KlattSynth THEN
  171. FMT(klatt/m-syl)
  172. ENDIF
  173. FMT(m/m-syl)
  174. endphoneme
  175. phoneme n-
  176. vwl starttype #@ endtype #@
  177. ipa nU+0329
  178. lengthmod 4
  179. length 170
  180. IF thisPh(isWordStart) THEN
  181. length 190
  182. ENDIF
  183. IF KlattSynth THEN
  184. FMT(klatt/n-syl)
  185. ENDIF
  186. FMT(n/n-syl)
  187. endphoneme
  188. phoneme N-
  189. vwl starttype #e endtype #e
  190. ipa ŋU+0329
  191. lengthmod 4
  192. length 190
  193. FMT(nn/nn-syl)
  194. endphoneme
  195. //*******************************************************************
  196. // Other sounds
  197. //*******************************************************************
  198. phoneme #X1 // click, use for indicating capital letters
  199. vls alv frc sib
  200. lengthmod 3
  201. WAV(ustop/percus10, 60)
  202. endphoneme
  203. //*******************************************************************
  204. // VIRTUAL - referred to in vowels' vwl starttype and endtype
  205. // These each apply to a class of vowels
  206. //*******************************************************************
  207. phoneme #@ virtual
  208. endphoneme
  209. phoneme #a virtual
  210. endphoneme
  211. phoneme #e virtual
  212. endphoneme
  213. phoneme #i virtual
  214. endphoneme
  215. phoneme #o virtual
  216. endphoneme
  217. phoneme #u virtual
  218. endphoneme
  219. //*******************************************************************
  220. // SONORANTS
  221. //*******************************************************************
  222. phoneme r- // syllabic r
  223. vwl starttype #@ endtype #@
  224. ipa rU+0329
  225. unstressed
  226. length 220
  227. FMT(vowelr/r-voc)
  228. endphoneme
  229. phoneme l- // syllabic l
  230. vwl starttype #@ endtype #@
  231. ipa lU+0329
  232. unstressed
  233. length 200
  234. FMT(vwl_hi/l-voc)
  235. endphoneme
  236. phoneme r // **r**ed (Omitted if not immediately followed by a vowel)
  237. import_phoneme ipa/r\\
  238. endphoneme
  239. phoneme r/ // used for [r] when not preceding a vowel
  240. import_phoneme ipa/r\\
  241. endphoneme
  242. phoneme R
  243. liquid trl
  244. lengthmod 6
  245. ipa r
  246. IF nextPhW(R2) THEN
  247. ipa NULL
  248. ENDIF
  249. Vowelin f1=0 f2=1600 -300 300 f3=-200 80
  250. Vowelout f1=2 f2=1600 -300 300 f3=-200 80 brk
  251. FMT(r3/r_trill2) addWav(r3/r_trill2.wav, 65)
  252. endphoneme
  253. phoneme R2 // this is [R] from Slovak/Czech
  254. liquid trl
  255. lengthmod 6
  256. ipa r
  257. Vowelin f1=0 f2=1700 -300 300 f3=-300 80
  258. Vowelout f1=2 f2=1700 -300 300 f3=-300 80 brk
  259. FMT(r3/r_trill) addWav(r3/r_trill.wav, 50)
  260. endphoneme
  261. phoneme R3 // Afrikaans
  262. liquid trl
  263. lengthmod 6
  264. length 60
  265. ipa r
  266. Vowelin f1=2 f2=2700 -300 -200 f3=-1300 80
  267. Vowelout f1=2 f2=1700 -300 -200 f3=-1300 80
  268. // vowel modifier is the same as for [r]
  269. NextVowelStarts
  270. VowelStart(r/r@, -15)
  271. VowelStart(r/ra, -15)
  272. VowelStart(r/re, -15)
  273. VowelStart(r/ri, -15)
  274. VowelStart(r/ro, -15)
  275. VowelStart(r/ru, -15)
  276. EndSwitch
  277. IF prevPh(isVowel) THEN
  278. VowelEnding(r/xr, -50)
  279. ENDIF
  280. FMT(r3/r_trill) addWav(r3/r_trill3.wav)
  281. endphoneme
  282. phoneme r" // uvular trill
  283. vcd uvl frc
  284. ipa ʀ
  285. lengthmod 6
  286. IF nextPh(isNotVowel) THEN
  287. FMT(r3/r_uvl) addWav(r3/r_uvl.wav, 50)
  288. ENDIF
  289. FMT(r3/r_uvl) addWav(r3/r_uvl.wav, 75)
  290. endphoneme
  291. procedure vowelstart_l
  292. NextVowelStarts
  293. VowelStart(l/l@)
  294. VowelStart(l/la)
  295. VowelStart(l/le)
  296. VowelStart(l/li, -10)
  297. VowelStart(l/lo)
  298. VowelStart(l/lu)
  299. EndSwitch
  300. endprocedure
  301. phoneme l
  302. liquid
  303. lengthmod 7
  304. IF nextPh(isNotVowel) THEN
  305. ChangePhoneme(l/)
  306. ENDIF
  307. IF nextPh(isNotVowel) THEN
  308. // in case the next phoneme is no longer a vowel, in pass=2
  309. PrevVowelEndings
  310. VowelEnding(l/L1_@L, -60)
  311. VowelEnding(l/L1_aL, -40)
  312. VowelEnding(l/L1_eL, -30)
  313. VowelEnding(l/L1_iL, -30)
  314. VowelEnding(l/L1_oL, -40)
  315. VowelEnding(l/L1_uL, -40)
  316. EndSwitch
  317. FMT(l/l_)
  318. RETURN
  319. ENDIF
  320. CALL vowelstart_l
  321. IF prevPh(#@) THEN
  322. VowelEnding(l/xl, -50)
  323. ELIF prevPh(isVowel) THEN
  324. VowelEnding(l/xl, -40)
  325. ENDIF
  326. IF prevPh(isPause) THEN
  327. FMT(l/_l)
  328. ENDIF
  329. IF prevPh(t) THEN
  330. FMT(l/tl)
  331. ENDIF
  332. IF prevPh(l/) THEN
  333. FMT(l/l_long) // double l, make it longer
  334. ENDIF
  335. FMT(l/l)
  336. endphoneme
  337. phoneme l/ // used for [l] when not before a vowel
  338. liquid
  339. lengthmod 7
  340. IF nextPh(isVowel) THEN
  341. ChangePhoneme(l)
  342. ENDIF
  343. PrevVowelEndings
  344. VowelEnding(l/L1_@L, -60)
  345. VowelEnding(l/L1_aL, -40)
  346. VowelEnding(l/L1_eL, -30)
  347. VowelEnding(l/L1_iL, -30)
  348. VowelEnding(l/L1_oL, -40)
  349. VowelEnding(l/L1_uL, -40)
  350. EndSwitch
  351. // we need to replace these with new FMT sequeces for jl and wl
  352. IF prevPhW(j) THEN
  353. FMT(l/L1_eL)
  354. ENDIF
  355. IF prevPhW(w) THEN
  356. FMT(l/L1_eL)
  357. ENDIF
  358. FMT(l/l_)
  359. endphoneme
  360. phoneme l/2 // 'dark' [l] after a vowel
  361. liquid
  362. lengthmod 7
  363. IF nextPh(isVowel) THEN
  364. ChangePhoneme(l)
  365. ENDIF
  366. CALL vowelstart_l
  367. IF prevPhW(j) THEN
  368. FMT(l/L2_eL)
  369. ENDIF
  370. IF prevPhW(w) THEN
  371. FMT(l/L2_uL)
  372. ENDIF
  373. PrevVowelEndings
  374. VowelEnding(l/L2_@L, -60)
  375. VowelEnding(l/L2_aL, -50)
  376. VowelEnding(l/L2_eL, -40)
  377. VowelEnding(l/L2_iL, -30)
  378. VowelEnding(l/L2_oL, -50)
  379. VowelEnding(l/L2_uL, -40)
  380. EndSwitch
  381. endphoneme
  382. phoneme l/3 // Replacement for [l/]
  383. liquid
  384. lengthmod 7
  385. IF nextPh(isVowel) THEN
  386. ChangePhoneme(l)
  387. ENDIF
  388. PrevVowelEndings
  389. VowelEnding(l/l_@)
  390. VowelEnding(l/l_a)
  391. VowelEnding(l/l_e)
  392. VowelEnding(l/l_i)
  393. VowelEnding(l/l_o)
  394. VowelEnding(l/l_u, -20)
  395. EndSwitch
  396. // IF nextPh(isLiquid) THEN
  397. // FMT(l/_l)
  398. // ENDIF
  399. FMT(l/l_)
  400. endphoneme
  401. phoneme l^ // palatal l, e.g. Italian **g**li
  402. liquid
  403. ipa ʎ
  404. lengthmod 7
  405. Vowelout len=60 lenadd rate
  406. length 100
  407. NextVowelStarts
  408. VowelStart(l^/j2@)
  409. VowelStart(l^/j2a)
  410. VowelStart(l^/j2e)
  411. VowelStart(l^/j2i)
  412. VowelStart(l^/j2o)
  413. VowelStart(l^/j2u)
  414. EndSwitch
  415. IF prevPh(isPause) THEN
  416. FMT(l^/_l^)
  417. ENDIF
  418. FMT(l^/l^)
  419. endphoneme
  420. phoneme l.
  421. liquid rfx
  422. ipa ɭ
  423. lengthmod 7
  424. FMT(l^/l_rfx)
  425. endphoneme
  426. phoneme L/
  427. import_phoneme base1/l/2
  428. endphoneme
  429. phoneme L // velar L
  430. liquid
  431. lengthmod 7
  432. IF nextPh(isNotVowel) THEN
  433. ChangePhoneme(L/) // use 'dark' [l] after a vowel
  434. ENDIF
  435. VowelEnding(ll/xll, -40)
  436. IF prevPh(isPause) THEN
  437. FMT(ll/_ll)
  438. ENDIF
  439. FMT(ll/ll)
  440. endphoneme
  441. phoneme w
  442. liquid
  443. lengthmod 7
  444. starttype #u
  445. IF nextPh(isVowel) THEN
  446. NextVowelStarts
  447. VowelStart(w/w@)
  448. VowelStart(w/wa)
  449. VowelStart(w/we)
  450. VowelStart(w/wi)
  451. VowelStart(w/wo)
  452. VowelStart(w/wu)
  453. EndSwitch
  454. VowelEnding(w/xw, -30)
  455. IF prevPhW(isNasal) THEN
  456. FMT(w/w)
  457. ELSEIF prevPhW(h) THEN
  458. // none, [hw]
  459. ELSE
  460. FMT(w/_w)
  461. ENDIF
  462. ELSE
  463. // no vowel follows
  464. Vowelout len=50
  465. IF prevPh(#i) THEN
  466. FMT(w/iw_)
  467. ENDIF
  468. FMT(w/w_)
  469. ENDIF
  470. endphoneme
  471. phoneme j // **y**es
  472. import_phoneme ipa/j
  473. endphoneme
  474. phoneme ; // linking j, used between (i) vowels and a following vowel
  475. // also to palatalize consonants
  476. liquid pzd
  477. lengthmod 0
  478. IF prevPh(#i) THEN
  479. ipa NULL // linking after i vowel, don't show in ipa
  480. ENDIF
  481. IF nextPh(isNotVowel) THEN
  482. ChangePhoneme(NULL) // this is to ignore this phoneme if not before a vowel
  483. ENDIF
  484. NextVowelStarts
  485. VowelStart(j2/j2@)
  486. VowelStart(j2/j2a)
  487. VowelStart(j2/j2e)
  488. VowelStart(j2/j2i)
  489. VowelStart(j2/j2o)
  490. VowelStart(j2/j2u)
  491. EndSwitch
  492. IF prevPh(#i) THEN
  493. VowelEnding(j2/xj2, -40)
  494. ENDIF
  495. IF prevPh(isPause) THEN
  496. FMT(j2/_j2)
  497. ENDIF
  498. endphoneme
  499. //*******************************************************************
  500. // NASAL CONSONANTS
  501. //*******************************************************************
  502. phoneme m
  503. import_phoneme ipa/m
  504. endphoneme
  505. phoneme n
  506. import_phoneme ipa/n
  507. endphoneme
  508. phoneme n.
  509. import_phoneme ipa/n`
  510. endphoneme
  511. phoneme n^ // Spanish **ñ**
  512. import_phoneme ipa/J
  513. endphoneme
  514. phoneme N // si**ng**
  515. import_phoneme ipa/N
  516. endphoneme
  517. phoneme ** // TEST flap
  518. liquid alv rhotic
  519. ipa ɾ
  520. lengthmod 3
  521. Vowelout f1=3 f2=1600 -300 300 f3=-300 80 rms=35 len=15
  522. Vowelin f1=2 f2=1600 -300 300 f3=-100 80 len=20
  523. IF prevPh(#i) OR prevPh(#e) THEN
  524. FMT(r3/@tap2)
  525. ENDIF
  526. FMT(r3/@tap)
  527. endphoneme
  528. phoneme * // flap
  529. vcd alv flp rhotic
  530. brkafter
  531. ipa ɾ
  532. lengthmod 3
  533. IF prevPhW(@-) THEN
  534. ipa r // @-* sequence for [r]
  535. ENDIF
  536. IF nextPh(#e) OR nextPh(#i) THEN
  537. Vowelin f1=0 f2=1500 -300 300 f3=-200 80
  538. FMT(d/tap1) addWav(r3/rx, 150)
  539. FMT(d/tap1) addWav(r3/rx, 150)
  540. ENDIF
  541. Vowelin f1=2 f2=1500 -300 300 f3=-200 80
  542. IF nextPh(#a) THEN
  543. FMT(d/tap3) addWav(r3/rx, 200)
  544. ENDIF
  545. IF nextPh(r) THEN
  546. FMT(d/dr)
  547. ENDIF
  548. Vowelout f1=3 f2=1500 -400 300 f3=-200 80 rms=35 len=50
  549. Vowelin f1=0 f2=1500 -300 300 f3=-200 80
  550. FMT(d/tap3) addWav(r3/rx, 200)
  551. endphoneme
  552. phoneme r. // retroflex
  553. liquid rfx
  554. lengthmod 3
  555. Vowelout f1=3 f2=1400 -400 300 f3=-400 80 rms=35 len=15 colr=2
  556. Vowelin f1=2 f2=1400 -400 300 f3=-400 80 len=20
  557. IF nextPh(isNotVowel) THEN
  558. FMT(r3/@tap_rfx_)
  559. ENDIF
  560. FMT(r3/@tap_rfx)
  561. endphoneme
  562. //*******************************************************************
  563. // VOICED STOPS
  564. //*******************************************************************
  565. phoneme b
  566. import_phoneme ipa/b
  567. voicingswitch p
  568. endphoneme
  569. phoneme d
  570. import_phoneme ipa/d
  571. voicingswitch t
  572. endphoneme
  573. phoneme d[
  574. import_phoneme ipa/d_d
  575. voicingswitch t[
  576. endphoneme
  577. phoneme dZ // **j**udge
  578. import_phoneme ipa/dZ\)
  579. voicingswitch tS
  580. endphoneme
  581. phoneme dZ;
  582. import_phoneme ipa/dz\\\)
  583. voicingswitch tS;
  584. endphoneme
  585. phoneme J
  586. import_phoneme ipa/J\\
  587. voicingswitch c
  588. endphoneme
  589. phoneme g
  590. import_phoneme ipa/g
  591. voicingswitch k
  592. endphoneme
  593. //*******************************************************************
  594. // VOICED fricatives
  595. //*******************************************************************
  596. phoneme B
  597. vcd blb frc
  598. voicingswitch f
  599. lengthmod 6
  600. Vowelin f1=2 f2=1000 -300 -200 f3=-100 100
  601. Vowelout f1=2 f2=1000 -500 -300 f3=-100 60 len=50
  602. IF KlattSynth THEN
  603. IF nextPh(isPause2) THEN
  604. FMT(klatt/v_) addWav(vocw/v)
  605. ENDIF
  606. FMT(klatt/bh) addWav(vocw/v)
  607. ENDIF
  608. IF nextPh(isPause2) THEN
  609. FMT(voc/v_) addWav(vocw/v)
  610. ENDIF
  611. FMT(voc/bh) addWav(vocw/v)
  612. endphoneme
  613. phoneme v
  614. vcd lbd frc
  615. voicingswitch f
  616. lengthmod 6
  617. Vowelin f1=0 f2=1000 -300 -200 f3=-300 100
  618. Vowelout f1=0 f2=1000 -500 -300 f3=-300 60 len=50
  619. IF KlattSynth THEN
  620. Vowelout f1=1 f2=1000 -500 -300 f3=-300 60 len=50 brk
  621. IF nextPh(isPause2) THEN
  622. FMT(klatt/v_) addWav(vocw/v)
  623. ENDIF
  624. FMT(klatt/v) addWav(vocw/v, 150)
  625. ENDIF
  626. IF nextPh(isPause2) THEN
  627. FMT(voc/v_) addWav(vocw/v)
  628. ENDIF
  629. IF thisPh(isWordStart) AND nextPhW(isLiquid) THEN
  630. length 70
  631. ENDIF
  632. FMT(voc/v) addWav(vocw/v)
  633. endphoneme
  634. phoneme v# // approximant, not fricative
  635. vcd lbd frc
  636. ipa ʋ
  637. lengthmod 6
  638. voicingswitch f
  639. Vowelin f1=0 f2=1000 -300 -200 f3=-300 100
  640. Vowelout f1=0 f2=1000 -500 -300 f3=-300 60 len=50
  641. IF nextPh(isPause2) THEN
  642. FMT(voc/v#_)
  643. ENDIF
  644. FMT(voc/v#)
  645. endphoneme
  646. phoneme D // **th**is
  647. vcd dnt frc
  648. voicingswitch T
  649. lengthmod 6
  650. Vowelout f1=0 f2=1700 -300 300 f3=-100 60 len=50
  651. IF KlattSynth THEN
  652. Vowelin f1=0 f2=1290 -300 300 f3=0 0
  653. ENDIF
  654. IF nextPh(isPause2) THEN
  655. FMT(voc/dh_) addWav(vocw/dh)
  656. ENDIF
  657. FMT(voc/dh) addWav(vocw/dh)
  658. endphoneme
  659. phoneme z
  660. vcd alv frc sib
  661. voicingswitch s
  662. lengthmod 6
  663. Vowelout f1=0 f2=1700 -300 300 f3=-100 60 len=50
  664. IF KlattSynth THEN
  665. Vowelin f1=0 f2=1390 -300 300 f3=0 0
  666. Vowelout f1=1 f2=1390 -300 300 f3=-100 60 len=50 brk
  667. ENDIF
  668. IF nextPh(isPause2) THEN
  669. FMT(voc/z_) addWav(ufric/s_, 70)
  670. ENDIF
  671. FMT(voc/z) addWav(ufric/s_, 85)
  672. endphoneme
  673. phoneme Z // plea**s**ure
  674. vcd pla frc sib
  675. voicingswitch S
  676. lengthmod 6
  677. Vowelin f1=0 f2=2000 0 300 f3=-200 80
  678. Vowelout f1=2 f2=2000 0 300 f3=-200 80 brk
  679. IF KlattSynth THEN
  680. IF nextPh(isPause2) THEN
  681. FMT(klatt/zh_, 60) addWav(vocw/zh, 70)
  682. ENDIF
  683. FMT(klatt/zh) addWav(vocw/zh, 130)
  684. ENDIF
  685. IF nextPh(isPause2) THEN
  686. FMT(voc/zh_, 60) addWav(vocw/zh, 70)
  687. ENDIF
  688. FMT(voc/zh) addWav(vocw/zh, 130)
  689. endphoneme
  690. phoneme z.
  691. vcd pla frc sib
  692. ipa ʐ
  693. voicingswitch s.
  694. lengthmod 6
  695. Vowelin f1=0 f2=1800 -100 300 f3=-300 80
  696. Vowelout f1=2 f2=1800 -100 300 f3=-300 80 brk
  697. IF KlattSynth THEN
  698. IF nextPh(isPause2) THEN
  699. FMT(klatt/zh_) addWav(vocw/zh_rfx)
  700. ENDIF
  701. FMT(klatt/zh) addWav(vocw/zh_rfx)
  702. ENDIF
  703. IF nextPh(isPause2) THEN
  704. FMT(voc/zh_) addWav(vocw/zh_rfx)
  705. ENDIF
  706. FMT(voc/zh) addWav(vocw/zh_rfx)
  707. endphoneme
  708. phoneme z;
  709. vcd alp sib frc
  710. ipa ʑ
  711. voicingswitch s;
  712. lengthmod 6
  713. Vowelin f1=2 f2=2700 400 600 f3=300 80 rate len=70
  714. Vowelout f1=2 f2=2300 250 300 f3=-300 80 brk
  715. IF nextPh(isPause2) THEN
  716. FMT(voc/z_pzd_) addWav(ufric/s_pzd_, 80)
  717. ENDIF
  718. FMT(voc/z_pzd) addWav(ufric/s_pzd, 80)
  719. endphoneme
  720. phoneme Z;
  721. vcd alp sib frc
  722. voicingswitch S;
  723. ipa ʑ
  724. lengthmod 6
  725. Vowelin f1=2 f2=2700 400 600 f3=300 80 rate len=70
  726. Vowelout f1=2 f2=2300 250 300 f3=-300 80 brk
  727. IF nextPh(isPause2) THEN
  728. FMT(voc/z_pzd_) addWav(ufric/sh_pzd_)
  729. ENDIF
  730. FMT(voc/z_pzd) addWav(ufric/sh_pzd, 80)
  731. endphoneme
  732. phoneme J^ // palatal fricative (Kirshenbaum C<vcd>)
  733. vcd pal frc pzd
  734. ipa ʝ
  735. voicingswitch C
  736. lengthmod 6
  737. Vowelin f1=1 f2=2700 400 600 f3=200 70
  738. Vowelout f1=1 f2=2700 400 600 f3=200 70 len=100
  739. FMT(voc/j) addWav(ufric/ch, 25)
  740. endphoneme
  741. phoneme Q
  742. vcd vel frc
  743. voicingswitch x
  744. lengthmod 6
  745. Vowelin f1=2 f2=2300 200 400 f3=-100 80
  746. Vowelout f1=2 f2=2300 250 300 f3=-300 80 brk
  747. IF KlattSynth THEN
  748. IF nextPh(isPause2) THEN
  749. FMT(klatt/qqh_) addWav(vocw/Q_)
  750. ENDIF
  751. FMT(klatt/qqh) addWav(vocw/Q)
  752. ENDIF
  753. IF nextPh(isPause2) THEN
  754. FMT(voc/Q_) addWav(vocw/Q_)
  755. ENDIF
  756. FMT(voc/Q) addWav(vocw/Q)
  757. endphoneme
  758. phoneme Q^
  759. vcd vel frc
  760. lengthmod 6
  761. Vowelin f1=2 f2=2700 400 600 f3=200 80
  762. Vowelout f1=2 f2=2700 40 600 f3=200 80 brk
  763. IF nextPh(isPause2) THEN
  764. FMT(voc/Q_) addWav(vocw/Q_)
  765. ENDIF
  766. FMT(voc/Q) addWav(vocw/Q)
  767. endphoneme
  768. phoneme Q"
  769. vcd uvl frc
  770. ipa ʁ
  771. lengthmod 6
  772. IF nextPh(isPause2) THEN
  773. FMT(voc/Q_ulv) addWav(ufric/xx, 60)
  774. ENDIF
  775. FMT(voc/Q_ulv) addWav(ufric/xx, 80)
  776. endphoneme
  777. //*******************************************************************
  778. // UNVOICED STOPS
  779. //*******************************************************************
  780. phoneme p
  781. vls blb stp
  782. voicingswitch b
  783. lengthmod 2
  784. Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 amp=11
  785. Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=22
  786. IF nextPh(isPause2) THEN
  787. WAV(ustop/p_)
  788. ELIF nextPh(r) THEN
  789. WAV(ustop/pr, 70)
  790. ELIF nextPh(R) OR nextPh(R2) THEN
  791. WAV(ustop/pr)
  792. ELIF nextPh(@-) THEN
  793. WAV(ustop/p_unasp)
  794. ELIF nextPh(l) THEN
  795. WAV(ustop/pl)
  796. ENDIF
  797. WAV(ustop/p)
  798. endphoneme
  799. phoneme t
  800. import_phoneme ipa/t
  801. voicingswitch d
  802. endphoneme
  803. phoneme t[ // dental variant of /t/
  804. import_phoneme ipa/t_d
  805. voicingswitch d[
  806. endphoneme
  807. phoneme tS // **ch**urch
  808. vls pla afr sib
  809. voicingswitch dZ
  810. lengthmod 2
  811. Vowelin f1=0 f2=2300 200 400 f3=-100 80
  812. IF nextPh(isPause2) THEN
  813. WAV(ustop/tsh_)
  814. ENDIF
  815. WAV(ustop/tsh)
  816. endphoneme
  817. phoneme tS;
  818. vls alp sib afr
  819. voicingswitch dZ;
  820. ipa tɕ
  821. lengthmod 2
  822. Vowelin f1=0 f2=2700 400 600 f3=300 80 rate len=70
  823. IF nextPh(isPause2) THEN
  824. WAV(ustop/ts_pzd)
  825. ENDIF
  826. WAV(ustop/ts_pzd)
  827. endphoneme
  828. phoneme c
  829. vls pal stp pzd
  830. voicingswitch J
  831. lengthmod 2
  832. Vowelin f1=0 f2=2700 400 600 f3=300 80 rate len=70
  833. Vowelout f1=1 f2=2700 400 600 f3=200 70 len=50 colr=1
  834. IF nextPh(isPause2) THEN
  835. WAV(ustop/t_pzd, 30)
  836. ENDIF
  837. WAV(ustop/c, 150)
  838. endphoneme
  839. phoneme k
  840. vls vel stp
  841. voicingswitch g
  842. lengthmod 2
  843. Vowelin f1=0 f2=2300 200 300 f3=-200 80
  844. Vowelout f1=0 f2=2300 300 400 f3=-200 80 rms=20
  845. IF KlattSynth THEN
  846. Vowelout f1=0 f2=2300 200 300 f3=-200 80 rms=20
  847. ENDIF
  848. IF nextPh(isPause2) THEN
  849. WAV(ustop/k_)
  850. ELIF nextPh(r) OR nextPh(R) OR nextPh(R2) THEN
  851. WAV(ustop/kr)
  852. ELIF nextPh(#i) OR nextPh(;) THEN
  853. WAV(ustop/ki)
  854. ELIF nextPh(l) THEN
  855. WAV(ustop/kl)
  856. ELIF nextPh(@-) THEN
  857. WAV(ustop/k_unasp, 70)
  858. ENDIF
  859. WAV(ustop/k)
  860. endphoneme
  861. phoneme q
  862. vls uvl stp
  863. lengthmod 2
  864. Vowelin f1=1 f2=1700 0 200 f3=-300 80 gpaus f4 rms=30
  865. Vowelout f1=1 f2=1700 -100 200 f3=-300 80 f4 rms=35
  866. IF nextPh(isPause2) THEN
  867. WAV(ustop/q, 40)
  868. ELIF nextPh(#u) THEN
  869. WAV(ustop/q_u, 80)
  870. ENDIF
  871. WAV(ustop/q, 48)
  872. endphoneme
  873. //*******************************************************************
  874. // UNVOICED fricatives
  875. //*******************************************************************
  876. phoneme f
  877. vls lbd frc
  878. voicingswitch v
  879. lengthmod 3
  880. Vowelout f1=0 f2=1000 -500 -350 f3=-200 80
  881. IF nextPh(isPause) THEN
  882. WAV(ufric/f_)
  883. ENDIF
  884. WAV(ufric/f)
  885. endphoneme
  886. phoneme T // **th**in
  887. vls dnt frc
  888. voicingswitch D
  889. lengthmod 3
  890. Vowelin f1=0 f2=1700 -300 300 f3=-100 80
  891. Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
  892. IF nextPh(isPause) THEN
  893. WAV(ufric/th_)
  894. ENDIF
  895. WAV(ufric/th)
  896. endphoneme
  897. phoneme s
  898. vls alv frc sib
  899. voicingswitch z
  900. lengthmod 3
  901. Vowelin f1=0 f2=1700 -300 300 f3=-100 80
  902. Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20
  903. IF nextPh(isPause) THEN
  904. WAV(ufric/s_)
  905. ELIF nextPh(p) OR nextPh(t) OR nextPh(k) THEN
  906. WAV(ufric/s!)
  907. ENDIF
  908. WAV(ufric/s)
  909. endphoneme
  910. phoneme S // **sh**op
  911. vls pla frc sib
  912. voicingswitch Z
  913. lengthmod 3
  914. Vowelin f1=0 f2=2100 100 300 f3=-100 80
  915. Vowelout f1=0 f2=2100 100 300 f3=-100 80
  916. IF nextPh(isPause) THEN
  917. WAV(ufric/sh_)
  918. ENDIF
  919. WAV(ufric/sh)
  920. endphoneme
  921. phoneme s.
  922. vls pla frc sib
  923. ipa ʂ
  924. voicingswitch z.
  925. lengthmod 3
  926. Vowelin f1=0 f2=1800 -100 300 f3=-300 80
  927. Vowelout f1=0 f2=1800 -100 300 f3=-300 80
  928. IF nextPh(isPause) THEN
  929. WAV(ufric/sh_rfx, 60)
  930. ENDIF
  931. WAV(ufric/sh_rfx, 90)
  932. endphoneme
  933. phoneme s;
  934. vls pal frc sib pzd
  935. ipa ʂ
  936. voicingswitch z;
  937. lengthmod 3
  938. Vowelin f1=1 f2=2700 400 600 f3=200 70 rate len=70
  939. Vowelout f1=1 f2=2700 400 600 f3=200 70 rate len=70
  940. IF nextPh(isPause) THEN
  941. WAV(ufric/s_pzd_)
  942. ENDIF
  943. WAV(ufric/s_pzd)
  944. endphoneme
  945. phoneme S;
  946. vls alp sib frc
  947. voicingswitch Z;
  948. ipa ɕ
  949. lengthmod 3
  950. Vowelin f1=1 f2=2700 400 600 f3=200 70 rate len=70
  951. Vowelout f1=1 f2=2700 400 600 f3=200 70 rate
  952. IF nextPh(isPause) THEN
  953. WAV(ufric/sh_pzd_)
  954. ENDIF
  955. WAV(ufric/sh_pzd)
  956. endphoneme
  957. phoneme l# // Lateral fricative (eg. Welsh "ll")
  958. vls alv frc
  959. ipa ɬ
  960. lengthmod 3
  961. NextVowelStarts
  962. VowelStart(l/l@)
  963. VowelStart(l/la)
  964. VowelStart(l/le)
  965. VowelStart(l/li, -10)
  966. VowelStart(l/lo)
  967. VowelStart(l/lu)
  968. EndSwitch
  969. IF prevPh(isVowel) THEN
  970. VowelEnding(l/xl, -40)
  971. ENDIF
  972. WAV(ufric/l#, 60)
  973. endphoneme
  974. phoneme C // German i**ch**
  975. vls pal frc
  976. lengthmod 3
  977. Vowelin f1=0 f2=2700 400 600 f3=200 70
  978. Vowelout f1=0 f2=2700 400 600 f3=200 70 rms=20
  979. IF nextPh(isPause) THEN
  980. WAV(ufric/ch_)
  981. ENDIF
  982. WAV(ufric/ch)
  983. endphoneme
  984. phoneme x // German bu**ch**
  985. vls vel frc
  986. voicingswitch Q
  987. lengthmod 3
  988. Vowelin f1=0 f2=2300 200 400 f3=-100 80
  989. Vowelout f1=0 f2=2300 300 400 f3=-100 80 rms=20
  990. IF nextPh(isPause) THEN
  991. WAV(ufric/x_, 60)
  992. ENDIF
  993. WAV(ufric/x_hr, 20)
  994. endphoneme
  995. phoneme X
  996. vls uvl frc
  997. voicingswitch Q"
  998. lengthmod 3
  999. IF nextPh(isPause) THEN
  1000. WAV(ufric/xx, 70)
  1001. ENDIF
  1002. WAV(ufric/xx,80)
  1003. endphoneme
  1004. phoneme h
  1005. vls glt apr
  1006. lengthmod 3
  1007. ipa h
  1008. IF nextPh(#@) THEN
  1009. WAV(h/h@)
  1010. ELIF nextPh(#a) THEN
  1011. WAV(h/ha)
  1012. ELIF nextPh(#e) THEN
  1013. WAV(h/he)
  1014. ELIF nextPh(#i) THEN
  1015. WAV(h/hi)
  1016. ELIF nextPh(#o) THEN
  1017. WAV(h/ho)
  1018. ELIF nextPh(#u) THEN
  1019. WAV(h/hu)
  1020. ENDIF
  1021. WAV(h/h_, 70) // no vowel following
  1022. endphoneme
  1023. //*******************************************************************
  1024. // ADDITIONAL PHONEME TABLES
  1025. //*******************************************************************
  1026. phonemetable jp base1
  1027. include ph_japanese
  1028. phonemetable consonants base1
  1029. include ph_consonants
  1030. phonemetable base2 base1
  1031. include ph_base2
  1032. phonemetable en base1
  1033. include ph_english
  1034. phonemetable en-n en
  1035. include ph_english_n
  1036. phonemetable en-us en
  1037. include ph_english_us
  1038. phonemetable en-sc en
  1039. include ph_english_sc
  1040. phonemetable en-rp en
  1041. include ph_english_rp
  1042. phonemetable en-wm en
  1043. include ph_english_wm
  1044. phonemetable en-wi en
  1045. include ph_english_wi
  1046. phonemetable af base1
  1047. include ph_afrikaans
  1048. phonemetable cy base1
  1049. include ph_welsh
  1050. phonemetable ga base1
  1051. include ph_irish
  1052. phonemetable de base1
  1053. include ph_german
  1054. phonemetable eo base1
  1055. include ph_esperanto
  1056. phonemetable ia eo
  1057. include ph_interlingua
  1058. phonemetable jbo eo
  1059. include ph_lojban
  1060. phonemetable nci base2
  1061. include ph_nahuatl
  1062. phonemetable fi base1
  1063. include ph_finnish
  1064. phonemetable et base1
  1065. include ph_estonian
  1066. phonemetable fr base1
  1067. include ph_french
  1068. phonemetable fr-ca fr
  1069. include ph_french_ca
  1070. phonemetable nl base1
  1071. include ph_dutch
  1072. phonemetable hi_base base1
  1073. include ph_hindi_base
  1074. phonemetable hi hi_base
  1075. include ph_hindi
  1076. phonemetable bn hi_base
  1077. include ph_bengali
  1078. phonemetable ne hi_base
  1079. include ph_nepali
  1080. phonemetable ur hi_base
  1081. include ph_urdu
  1082. phonemetable pa hi_base
  1083. include ph_punjabi
  1084. phonemetable ta hi_base
  1085. include ph_tamil
  1086. phonemetable kn hi_base
  1087. include ph_kannada
  1088. phonemetable ml hi_base
  1089. include ph_malayalam
  1090. phonemetable gu hi_base
  1091. include ph_gujarati
  1092. phonemetable mr hi_base
  1093. include ph_marathi
  1094. phonemetable hu base1
  1095. include ph_hungarian
  1096. phonemetable lt base1
  1097. include ph_lithuanian
  1098. phonemetable lv base1
  1099. include ph_latvian
  1100. phonemetable pl base1
  1101. include ph_polish
  1102. phonemetable sk pl
  1103. include ph_slovak
  1104. phonemetable cs sk
  1105. include ph_czech
  1106. phonemetable hr sk
  1107. include ph_croatian
  1108. phonemetable mk hr
  1109. include ph_macedonian
  1110. phonemetable sr hr
  1111. include ph_serbian
  1112. phonemetable ru base1
  1113. include ph_russian
  1114. phonemetable bg pl
  1115. include ph_bulgarian
  1116. phonemetable it base2
  1117. include ph_italian
  1118. phonemetable la base1
  1119. include ph_latin
  1120. phonemetable es base2
  1121. include ph_spanish
  1122. phonemetable es-la es
  1123. include ph_spanish_la
  1124. phonemetable ca es
  1125. include ph_catalan
  1126. phonemetable an es
  1127. include ph_aragon
  1128. phonemetable eu base2
  1129. include ph_basque
  1130. phonemetable pt base2
  1131. include ph_pt_brazil
  1132. phonemetable pt-pt pt
  1133. include ph_portugal
  1134. phonemetable ro base2
  1135. include ph_romanian
  1136. phonemetable el base2
  1137. include ph_greek
  1138. phonemetable grc base2
  1139. include ph_greek_ancient
  1140. phonemetable sv base1
  1141. include ph_swedish
  1142. phonemetable no base1
  1143. include ph_norwegian
  1144. phonemetable is base1
  1145. include ph_icelandic
  1146. phonemetable vi base1
  1147. include ph_vietnam
  1148. phonemetable vi-hue vi
  1149. include ph_vietnam_hue
  1150. phonemetable vi-sgn vi
  1151. include ph_vietnam_sgn
  1152. phonemetable zhy base1
  1153. include ph_zh_yue
  1154. phonemetable zh base1
  1155. include ph_zh
  1156. phonemetable sw base1
  1157. include ph_swahili
  1158. phonemetable tr base2
  1159. include ph_turkish
  1160. phonemetable ku base2
  1161. include ph_kurdish
  1162. phonemetable id base2
  1163. include ph_indonesian
  1164. phonemetable sq base1
  1165. include ph_albanian
  1166. phonemetable hy base1
  1167. include ph_armenian
  1168. phonemetable da base1
  1169. include ph_danish
  1170. phonemetable ka base1
  1171. include ph_georgian
  1172. phonemetable fa base1
  1173. include ph_farsi
  1174. phonemetable ar base1
  1175. include ph_arabic
  1176. phonemetable rw base2
  1177. include ph_kinyarwanda
  1178. phonemetable prs base1
  1179. include ph_dari
  1180. phonemetable sl pl
  1181. include ph_slovenian
  1182. phonemetable gd base1
  1183. include ph_s_gaelic
  1184. phonemetable nso base1
  1185. include ph_northern-sotho
  1186. phonemetable ht fr
  1187. include ph_haitian
  1188. phonemetable az tr
  1189. include ph_azerbaijani
  1190. phonemetable ak base1
  1191. include ph_akan
  1192. phonemetable am base1
  1193. include ph_amhari
  1194. phonemetable wo base1
  1195. include ph_wolof
  1196. phonemetable dv hi_base
  1197. include ph_divehi
  1198. phonemetable te hi_base
  1199. include ph_telugu
  1200. phonemetable si hi_base
  1201. include ph_sinhala
  1202. phonemetable as bn
  1203. include ph_assamese
  1204. phonemetable or bn
  1205. include ph_oriya
  1206. phonemetable mni bn
  1207. include ph_manipuri
  1208. phonemetable tn base1
  1209. include ph_setswana
  1210. phonemetable mt base1
  1211. include ph_maltese
  1212. phonemetable bo hi
  1213. include ph_tibetan
  1214. phonemetable kk base1
  1215. include ph_kazakh
  1216. phonemetable tt base1
  1217. include ph_tatar
  1218. phonemetable ko base1
  1219. include ph_korean
  1220. phonemetable kl base1
  1221. include ph_greenlandic
  1222. phonemetable om base1
  1223. include ph_oromo
  1224. phonemetable my base1
  1225. include ph_burmese
  1226. phonemetable gn base1
  1227. include ph_guarani
  1228. phonemetable ky base1
  1229. include ph_kyrgyz