
//====================================================
//  Welsh
//====================================================


// Short Vowels
//=============

phoneme a
  vowel starttype #a endtype #a
  length 150
  FMT(vowel/a)
endphoneme


phoneme E
  vowel starttype #e endtype #e
  length 150
  FMT(vowel/ee_2)
endphoneme


phoneme I
  vowel starttype #i endtype #i
  ipa ɨ
  length 150
  FMT(vowel/ii_3)
endphoneme


phoneme Y   // symbol used in place of I"  (I bar)
  vowel starttype #i endtype #i
  length 150
  FMT(vowel/ii#)
endphoneme


phoneme O
  vowel starttype #o endtype #o
  length 150
  FMT(vowel/oo_2)
endphoneme


phoneme U
  vowel starttype #u endtype #u
  length 150
  FMT(vowel/u_bck)
endphoneme


phoneme V
  vowel starttype #@ endtype #@
  length 150
  FMT(vowel/@)
endphoneme


// Long Vowels
//============

phoneme i:
  vowel starttype #i endtype #i
  length 180
  ChangeIfNotStressed(I)
  FMT(vowel/i)
endphoneme


phoneme y:     // symbol used in place of i" (i bar)
  vowel starttype #i endtype #i
  ipa ɨː
  length 180
  ChangeIfNotStressed(Y)
  FMT(vowel/i#)
endphoneme


phoneme u:
  vowel starttype #u endtype #u
  length 190
  ChangeIfNotStressed(U)
  FMT(vowel/u)
endphoneme


phoneme e:
  vowel starttype #e endtype #e
  length 210
  ChangeIfNotStressed(E)
  FMT(vowel/e)
endphoneme


phoneme o:
  vowel starttype #o endtype #o
  length 210
  ChangeIfNotStressed(O)
  FMT(vowel/o_2)
endphoneme


phoneme A:
  vowel starttype #a endtype #a
  length 230
  ChangeIfNotStressed(a)
  FMT(vowel/aa_2)
endphoneme


// Diphthongs
//===========

phoneme AY
  vowel starttype #a endtype #i
  ipa ɑɨ
  length 250
  FMT(vdiph/aai_2)
endphoneme


phoneme aI
  vowel starttype #a endtype #i
  length 210
  FMT(vdiph/ai_2)
endphoneme


phoneme aY
  vowel starttype #a endtype #i
  ipa aɨ
  length 210
  FMT(vdiph/ai_2)
endphoneme


phoneme aU
  vowel starttype #a endtype #u
  length 210
  FMT(vdiph/au_4)
endphoneme


phoneme @I
  vowel starttype #@ endtype #i
  length 210
  FMT(vdiph/@i_2)
endphoneme


phoneme @Y
  vowel starttype #@ endtype #i
  ipa əɨ
  length 210
  FMT(vdiph/@i_2)
endphoneme


phoneme eU
  vowel starttype #e endtype #u
  length 210
  FMT(vdiph/eu)
endphoneme


phoneme Iu
  vowel starttype #i endtype #u
  length 210
  FMT(vdiph2/iu_4)
endphoneme


phoneme Yu
  vowel starttype #i endtype #u
  ipa ɨu
  length 210
  FMT(vdiph2/iu_4)
endphoneme


phoneme OI
  vowel starttype #o endtype #i
  length 210
  FMT(vdiph/ooi)
endphoneme


phoneme OY
  vowel starttype #o endtype #i
  ipa ɔɨ
  length 210
  FMT(vdiph/ooi)
endphoneme


phoneme uI
  vowel starttype #u endtype #i
  length 210
  FMT(vdiph/ui_3)
endphoneme


phoneme uY
  vowel starttype #u endtype #i
  ipa uɨ
  length 210
  FMT(vdiph/ui_3)
endphoneme


// CONSONANTS
//===========

phoneme r
  liquid
  trill
  lengthmod 6
  Vowelin  f1=0  f2=1600 -300 300  f3=-200 80
  Vowelout f1=2  f2=1600 -300 300  f3=-200 80 brk
  FMT(r3/r_trill2) addWav(r3/r_trill2.wav, 65)
endphoneme


phoneme g
  vcd vel stop
  lengthmod 5
  voicingswitch k
  Vowelin  f1=2  f2=2300 200 300  f3=-300 80
  Vowelout f1=2  f2=2300 250 300  f3=-300 80 brk

  IF PreVoicing THEN
    FMT(g/xg)
  ENDIF

  IF nextPh(isPause2) THEN
    FMT(g/g_) addWav(x/g_, 140)
  ENDIF
  FMT(g/g) addWav(x/g2, 150)
endphoneme
