| 1 |
// Japanese Phonemes |
| 2 |
// |
| 3 |
// Copyright (C) 2017 Reece H. Dunn |
| 4 |
// |
| 5 |
// This program is free software; you can redistribute it and/or modify |
| 6 |
// it under the terms of the GNU General Public License as published by |
| 7 |
// the Free Software Foundation; either version 3 of the License, or |
| 8 |
// (at your option) any later version. |
| 9 |
// |
| 10 |
// This program is distributed in the hope that it will be useful, |
| 11 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
// GNU General Public License for more details. |
| 14 |
// |
| 15 |
// You should have received a copy of the GNU General Public License |
| 16 |
// along with this program; if not, see: <http://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
// This is using the X-SAMPA transcriptions |
| 19 |
// (http://www.phon.ucl.ac.uk/home/sampa/x-sampa.htm). |
| 20 |
|
| 21 |
phoneme : |
| 22 |
virtual |
| 23 |
length 70 |
| 24 |
endphoneme |
| 25 |
|
| 26 |
phoneme _j |
| 27 |
liquid pzd starttype #i |
| 28 |
ipa ʲ |
| 29 |
lengthmod 2 |
| 30 |
|
| 31 |
NextVowelStarts |
| 32 |
VowelStart(j/j@) |
| 33 |
VowelStart(j/ja) |
| 34 |
VowelStart(j/je) |
| 35 |
VowelStart(j/ji) |
| 36 |
VowelStart(j/jo) |
| 37 |
VowelStart(j/ju) |
| 38 |
EndSwitch |
| 39 |
endphoneme |
| 40 |
|
| 41 |
// Vowels ///////////////////////////////////////////////////////////////////// |
| 42 |
|
| 43 |
// Close Vowels |
| 44 |
|
| 45 |
phoneme i |
| 46 |
vwl starttype #i endtype #i |
| 47 |
length 160 |
| 48 |
|
| 49 |
FMT(vowel/i) |
| 50 |
endphoneme |
| 51 |
|
| 52 |
phoneme i~ |
| 53 |
vwl lng starttype #i endtype #i |
| 54 |
ipa ĩ |
| 55 |
length 220 |
| 56 |
FMT(vnasal/i_n2) |
| 57 |
endphoneme |
| 58 |
|
| 59 |
phoneme u~ |
| 60 |
vwl starttype #u endtype #u |
| 61 |
ipa ũ |
| 62 |
length 220 |
| 63 |
FMT(vnasal/u_n) |
| 64 |
endphoneme |
| 65 |
|
| 66 |
phoneme u |
| 67 |
vwl starttype #u endtype #u |
| 68 |
ipa ɯᵝ |
| 69 |
length 160 |
| 70 |
|
| 71 |
FMT(vowel/i#_7) |
| 72 |
endphoneme |
| 73 |
|
| 74 |
// Mid Vowels |
| 75 |
|
| 76 |
phoneme e |
| 77 |
vwl starttype #e endtype #e |
| 78 |
ipa e̞ |
| 79 |
length 160 |
| 80 |
|
| 81 |
FMT(vowel/e_8) |
| 82 |
endphoneme |
| 83 |
|
| 84 |
phoneme o |
| 85 |
vwl starttype #o endtype #o |
| 86 |
ipa o̞ |
| 87 |
length 160 |
| 88 |
|
| 89 |
FMT(vowel/oo_3) |
| 90 |
endphoneme |
| 91 |
|
| 92 |
// Open Vowels |
| 93 |
|
| 94 |
phoneme a |
| 95 |
vwl starttype #a endtype #a |
| 96 |
ipa ä |
| 97 |
length 160 |
| 98 |
|
| 99 |
FMT(vowel/a) |
| 100 |
endphoneme |
| 101 |
|
| 102 |
// Consonants ///////////////////////////////////////////////////////////////// |
| 103 |
|
| 104 |
phoneme m |
| 105 |
vcd blb nas |
| 106 |
Vowelout f1=2 f2=1000 -500 -350 f3=-200 80 brk |
| 107 |
lengthmod 4 |
| 108 |
|
| 109 |
NextVowelStarts |
| 110 |
VowelStart(m/m@) |
| 111 |
VowelStart(m/ma) |
| 112 |
VowelStart(m/me) |
| 113 |
VowelStart(m/mi) |
| 114 |
VowelStart(m/mo) |
| 115 |
VowelStart(m/mu) |
| 116 |
EndSwitch |
| 117 |
|
| 118 |
IF nextPh(isNotVowel) THEN |
| 119 |
FMT(m/m_) |
| 120 |
ENDIF |
| 121 |
endphoneme |
| 122 |
|
| 123 |
phoneme n |
| 124 |
vcd alv nas |
| 125 |
Vowelout f1=2 f2=1500 -300 250 f3=-100 80 rms=20 brk |
| 126 |
lengthmod 4 |
| 127 |
|
| 128 |
NextVowelStarts |
| 129 |
VowelStart(n/n@) |
| 130 |
VowelStart(n/na) |
| 131 |
VowelStart(n/ne) |
| 132 |
VowelStart(n/ni) |
| 133 |
VowelStart(n/no) |
| 134 |
VowelStart(n/nu) |
| 135 |
EndSwitch |
| 136 |
|
| 137 |
IF nextPh(isNotVowel) THEN |
| 138 |
FMT(n/n_) |
| 139 |
ENDIF |
| 140 |
endphoneme |
| 141 |
|
| 142 |
phoneme N |
| 143 |
vcd vel nas |
| 144 |
ipa ŋ |
| 145 |
Vowelout f1=3 f2=2300 300 400 f3=-200 80 len=40 rms=20 brk |
| 146 |
lengthmod 3 |
| 147 |
|
| 148 |
NextVowelStarts |
| 149 |
VowelStart(nn/nn@) |
| 150 |
VowelStart(nn/nna) |
| 151 |
VowelStart(nn/nne) |
| 152 |
VowelStart(nn/nni) |
| 153 |
VowelStart(nn/nno) |
| 154 |
VowelStart(nn/nnu) |
| 155 |
EndSwitch |
| 156 |
|
| 157 |
IF prevPh(#i) THEN |
| 158 |
VowelEnding(nn/inn, -40) |
| 159 |
ENDIF |
| 160 |
|
| 161 |
IF prevPh(isNotVowel) AND nextPhW(isLiquid) THEN |
| 162 |
FMT(nn/nnj) |
| 163 |
ELIF prevPh(isPause) THEN |
| 164 |
FMT(nn/_nn) |
| 165 |
ELIF nextPh(isNotVowel) THEN |
| 166 |
FMT(nn/nn_) |
| 167 |
ENDIF |
| 168 |
endphoneme |
| 169 |
|
| 170 |
phoneme N\\ |
| 171 |
vcd uvl nas |
| 172 |
ipa ɴ |
| 173 |
// FIXME: Stub phoneme. |
| 174 |
CALL ja/n |
| 175 |
endphoneme |
| 176 |
|
| 177 |
// Plosives |
| 178 |
|
| 179 |
phoneme p |
| 180 |
vls blb stp |
| 181 |
voicingswitch b |
| 182 |
lengthmod 2 |
| 183 |
Vowelin f1=0 f2=1000 -50 -100 f3=-200 80 amp=11 |
| 184 |
Vowelout f1=0 f2=1000 -500 -350 f3=-300 80 rms=22 |
| 185 |
|
| 186 |
WAV(ustop/p) |
| 187 |
endphoneme |
| 188 |
|
| 189 |
phoneme b |
| 190 |
vcd blb stp |
| 191 |
voicingswitch p |
| 192 |
Vowelout f1=2 f2=1000 -500 -300 f3=-300 80 brk |
| 193 |
lengthmod 5 |
| 194 |
|
| 195 |
IF nextPh(isPause2) THEN |
| 196 |
FMT(b/b_) addWav(x/b_) |
| 197 |
ELIF nextPh(@-) THEN |
| 198 |
FMT(b/b@2) addWav(x/b) |
| 199 |
ELIF nextPh(#@) THEN |
| 200 |
FMT(b/b@) addWav(x/b) |
| 201 |
ELIF nextPh(#a) THEN |
| 202 |
FMT(b/ba) addWav(x/b) |
| 203 |
ELIF nextPh(#e) THEN |
| 204 |
FMT(b/be) addWav(x/b) |
| 205 |
ELIF nextPh(#i) THEN |
| 206 |
FMT(b/bi) addWav(x/b) |
| 207 |
ELIF nextPh(#o) THEN |
| 208 |
FMT(b/bo) addWav(x/b) |
| 209 |
ELIF nextPh(#u) THEN |
| 210 |
FMT(b/bu) addWav(x/b) |
| 211 |
ENDIF |
| 212 |
|
| 213 |
FMT(b/b) addWav(x/b) |
| 214 |
endphoneme |
| 215 |
|
| 216 |
phoneme t |
| 217 |
vls alv stp |
| 218 |
voicingswitch d |
| 219 |
lengthmod 2 |
| 220 |
Vowelin f1=0 f2=1700 -300 300 f3=-100 80 |
| 221 |
Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20 |
| 222 |
|
| 223 |
WAV(ustop/t, 90) |
| 224 |
endphoneme |
| 225 |
|
| 226 |
phoneme d |
| 227 |
vcd alv stp |
| 228 |
voicingswitch t |
| 229 |
lengthmod 5 |
| 230 |
Vowelin f1=1 f2=1700 -300 300 f3=-100 80 |
| 231 |
Vowelout f1=2 f2=1700 -300 300 f3=-100 80 brk |
| 232 |
|
| 233 |
FMT(d/d) addWav(x/d) |
| 234 |
endphoneme |
| 235 |
|
| 236 |
phoneme k |
| 237 |
vls vel stp |
| 238 |
voicingswitch g |
| 239 |
lengthmod 2 |
| 240 |
Vowelin f1=0 f2=2300 200 300 f3=-200 80 |
| 241 |
Vowelout f1=0 f2=2300 300 400 f3=-200 80 rms=20 |
| 242 |
|
| 243 |
WAV(ustop/k) |
| 244 |
endphoneme |
| 245 |
|
| 246 |
phoneme g |
| 247 |
vcd vel stp |
| 248 |
voicingswitch k |
| 249 |
lengthmod 5 |
| 250 |
Vowelin f1=2 f2=2300 200 300 f3=-300 80 |
| 251 |
Vowelout f1=2 f2=2300 250 300 f3=-300 80 brk |
| 252 |
|
| 253 |
FMT(g/g) addWav(x/g2, 150) |
| 254 |
endphoneme |
| 255 |
|
| 256 |
phoneme ? |
| 257 |
vls glt stp |
| 258 |
lengthmod 3 |
| 259 |
nolink |
| 260 |
Vowelin glstop |
| 261 |
Vowelout glstop |
| 262 |
WAV(ustop/null) |
| 263 |
endphoneme |
| 264 |
|
| 265 |
// Sibilant Affricates |
| 266 |
|
| 267 |
phoneme t_s |
| 268 |
vls alv afr sib |
| 269 |
ipa ts |
| 270 |
lengthmod 2 |
| 271 |
Vowelin f1=0 f2=1700 -300 300 f3=-100 80 |
| 272 |
Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20 |
| 273 |
WAV(ustop/ts, 70) |
| 274 |
endphoneme |
| 275 |
|
| 276 |
phoneme t_s\\ |
| 277 |
vls alp sib afr |
| 278 |
voicingswitch d_z\\ |
| 279 |
ipa tɕ |
| 280 |
lengthmod 2 |
| 281 |
Vowelin f1=0 f2=2700 400 600 f3=300 80 rate len=70 |
| 282 |
|
| 283 |
WAV(ustop/ts_pzd) |
| 284 |
endphoneme |
| 285 |
|
| 286 |
phoneme d_z\\ |
| 287 |
vcd alp sib afr |
| 288 |
voicingswitch t_s\\ |
| 289 |
ipa dʑ |
| 290 |
lengthmod 5 |
| 291 |
Vowelin f1=2 f2=2700 400 600 f3=300 80 rate len=70 |
| 292 |
Vowelout f1=2 f2=2700 400 600 f3=300 80 |
| 293 |
|
| 294 |
FMT(dzh/dzh) addWav(x/dz_pzd) |
| 295 |
endphoneme |
| 296 |
|
| 297 |
// Sibilant Fricatives |
| 298 |
|
| 299 |
phoneme s |
| 300 |
vls alv frc sib |
| 301 |
voicingswitch z |
| 302 |
lengthmod 3 |
| 303 |
Vowelin f1=0 f2=1700 -300 300 f3=-100 80 |
| 304 |
Vowelout f1=0 f2=1700 -300 250 f3=-100 80 rms=20 |
| 305 |
|
| 306 |
WAV(ufric/s) |
| 307 |
endphoneme |
| 308 |
|
| 309 |
phoneme z |
| 310 |
vcd alv frc sib |
| 311 |
voicingswitch s |
| 312 |
lengthmod 6 |
| 313 |
Vowelout f1=0 f2=1700 -300 300 f3=-100 60 len=50 |
| 314 |
|
| 315 |
FMT(voc/z) addWav(ufric/s_, 85) |
| 316 |
endphoneme |
| 317 |
|
| 318 |
phoneme s\\ |
| 319 |
vls alp sib frc |
| 320 |
ipa ɕ |
| 321 |
lengthmod 3 |
| 322 |
Vowelin f1=1 f2=2700 400 600 f3=200 70 rate len=70 |
| 323 |
Vowelout f1=1 f2=2700 400 600 f3=200 70 rate |
| 324 |
|
| 325 |
WAV(ufric/sh_pzd) |
| 326 |
endphoneme |
| 327 |
|
| 328 |
// Fricatives |
| 329 |
|
| 330 |
phoneme p\\ |
| 331 |
vls blb frc |
| 332 |
ipa ɸ |
| 333 |
Vowelout f1=0 f2=1000 -500 -350 f3=-200 80 |
| 334 |
lengthmod 2 |
| 335 |
WAV(ufric/f) |
| 336 |
endphoneme |
| 337 |
|
| 338 |
phoneme v |
| 339 |
vcd lbd frc |
| 340 |
lengthmod 6 |
| 341 |
Vowelin f1=0 f2=1000 -300 -200 f3=-300 100 |
| 342 |
Vowelout f1=0 f2=1000 -500 -300 f3=-300 60 len=50 |
| 343 |
|
| 344 |
FMT(voc/v) addWav(vocw/v) |
| 345 |
endphoneme |
| 346 |
|
| 347 |
phoneme C |
| 348 |
vls pal frc |
| 349 |
ipa ç |
| 350 |
lengthmod 3 |
| 351 |
Vowelin f1=0 f2=2700 400 600 f3=200 70 |
| 352 |
Vowelout f1=0 f2=2700 400 600 f3=200 70 rms=20 |
| 353 |
|
| 354 |
WAV(ufric/ch) |
| 355 |
endphoneme |
| 356 |
|
| 357 |
// Approximant |
| 358 |
|
| 359 |
phoneme j |
| 360 |
liquid pal starttype #i |
| 361 |
lengthmod 7 |
| 362 |
|
| 363 |
NextVowelStarts |
| 364 |
VowelStart(j/j@) |
| 365 |
VowelStart(j/ja) |
| 366 |
VowelStart(j/je) |
| 367 |
VowelStart(j/ji) |
| 368 |
VowelStart(j/jo) |
| 369 |
VowelStart(j/ju) |
| 370 |
EndSwitch |
| 371 |
|
| 372 |
IF nextPh(isNotVowel) THEN |
| 373 |
Vowelout len=70 |
| 374 |
FMT(j/j_) |
| 375 |
ENDIF |
| 376 |
endphoneme |
| 377 |
|
| 378 |
// Flap or Tap |
| 379 |
|
| 380 |
phoneme r` |
| 381 |
liquid rfx |
| 382 |
ipa ɽ |
| 383 |
lengthmod 3 |
| 384 |
Vowelout f1=3 f2=1400 -400 300 f3=-400 80 rms=35 len=15 colr=2 |
| 385 |
Vowelin f1=2 f2=1400 -400 300 f3=-400 80 len=20 |
| 386 |
|
| 387 |
FMT(r3/@tap_rfx) |
| 388 |
endphoneme |
| 389 |
|
| 390 |
// Coarticulated |
| 391 |
|
| 392 |
phoneme w |
| 393 |
liquid |
| 394 |
lengthmod 7 |
| 395 |
starttype #u |
| 396 |
|
| 397 |
NextVowelStarts |
| 398 |
VowelStart(w/w@) |
| 399 |
VowelStart(w/wa) |
| 400 |
VowelStart(w/we) |
| 401 |
VowelStart(w/wi) |
| 402 |
VowelStart(w/wo) |
| 403 |
VowelStart(w/wu) |
| 404 |
EndSwitch |
| 405 |
|
| 406 |
IF nextPh(isNotVowel) THEN |
| 407 |
Vowelout len=50 |
| 408 |
FMT(w/w_) |
| 409 |
ENDIF |
| 410 |
endphoneme |