Phenomes 
Author Message
 Phenomes

I am writing a program for realistic sound in text-to-speach.  I need
help translating words to phenomes.  I have attatched to the bottom of
this post the rules for translating words and the code I have managed to
write to convert this.  I need help, so can someone help me please!

Note that in these rules, where there are two quotation marks right next
to each other, like this "", this means that anything can be inside these
quotation marks.

English to Phoneme Translation Rules

**** Special symbols ****

     #   One or more vowels [AEIOUY]
     +   One of E, I, Y: a front vowel
     :   Zero or more consonants [BCDFGHJKLMNPQRSTVWXZ]
     ^   One consonant
     .   One of B, V, D, G, J, L, M, N, R, W, Z: a voiced consonant
     %   One of ER, E, ES, ED, ING, ELY: a suffix
     &   One of S, C, G, Z, X, J, CH, SH: a siblant

         a consonant influencing following u

**** A rules ****

  1  "" coming before "A" followed by " " = 'UH'
  2  " " coming before "ARE" followed by " " = 'AH-R'
  3  " " coming before "AR" followed by "O" = 'UH-R'
  4  "" coming before "AR" followed by "#" = 'EH-R'

  5  " ^" coming before "AS" followed by "#" = 'EY-S'
  6  "" coming before "A" followed by "WA" = 'UH'
  7  "" coming before "AW" followed by "" = 'AW'
  8  " :" coming before "ANY" followed by "" = 'EH-N-EE'
  9  "" coming before "A" followed by "^+#" = 'EY'
 10  "#:" coming before "ALLY" followed by "" = 'UH-L-EE'
 11  " " coming before "AL" followed by "#" = 'UH-L'
 12  "" coming before "AGAIN" followed by "" = 'UH-G-EH-N'
 13  "#:" coming before "AG" followed by "E" = 'IH-J'
 14  "" coming before "A" followed by "^+:#" = 'AE'
 15  " :" coming before "A" followed by "^+" = 'EY'
 16  " " coming before "ARR" followed by "" = 'UH-R'
 17  "" coming before "ARR" followed by "" = 'AE-R'
 18  " :" coming before "AR" followed by "" = 'AH-R'
 19  "" coming before "AR" followed by " " = 'ER'
 20  "" coming before "AR" followed by "" = 'AH-R'
 21  "" coming before "AIR" followed by "" = 'EH-R'
 22  "" coming before "AI" followed by "" = 'EY'
 23  "" coming before "AY" followed by "" = 'EY'
 24  "" coming before "AU" followed by "" = 'AW'
 25  "#:" coming before "AL" followed by " " = 'UH-L'
 26  "#:" coming before "ALS" followed by " " = 'UH-L-Z'
 27  "" coming before "ALK" followed by "" = 'AW-K'
 28  "" coming before "AL" followed by "^" = 'AW-L'
 29  " :" coming before "ABLE" followed by "" = 'EY-B-UH-L'
 30  "" coming before "ABLE" followed by "" = 'UH-B-UH-L'
 31  "" coming before "ANG" followed by "+" = 'EY-N-J'
 32  " C" coming before "ATHE" followed by " " = 'AE-TH-EE'
 33  "" coming before "A" followed by "" = 'AE'

**** B rules ****

  1  " " coming before "BE" followed by "^#" = 'B-IH'
  2  "" coming before "BEING" followed by "" = 'B-EE-IH-NG'
  3  " " coming before "BOTH" followed by " " = 'B-OH-TH'
  4  " " coming before "BUS" followed by "#" = 'B-IH-Z'
  5  "" coming before "BUIL" followed by "" = 'B-IH-L'
  6  "" coming before "B" followed by "" = 'B'

**** C rules ****

  1  " " coming before "CH" followed by "^" = 'K'
  2  "^E" coming before "CH" followed by "" = 'K'
  3  "" coming before "CH" followed by "" = 'CH'
  4  " S" coming before "CI" followed by "#" = 'S-I'
  5  "" coming before "CI" followed by "A" = 'SH'
  6  "" coming before "CI" followed by "O" = 'SH'
  7  "" coming before "CI" followed by "EN" = 'SH'
  8  "" coming before "C" followed by "+" = 'S'
  9  "" coming before "CK" followed by "" = 'K'
 10  "" coming before "COM" followed by "%" = 'K-AH-M'
 11  "" coming before "C" followed by "" = 'K'

**** D rules ****

  1  "#:" coming before "DED" followed by " " = 'D-IH-D'
  2  ".E" coming before "D" followed by " " = 'D'
  3  "#^:E" coming before "D" followed by " " = 'T'
  4  " " coming before "DE" followed by "^#" = 'D-IH'
  5  " " coming before "DO" followed by " " = 'D-OO'
  6  " " coming before "DOES" followed by "" = 'D-UH-Z'
  7  " " coming before "DOING" followed by "" = 'D-OO-IH-NG'
  8  " " coming before "DOW" followed by "" = 'D-OW'
  9  "" coming before "DU" followed by "A" = 'J-OO'
 10  "" coming before "D" followed by "" = 'D'

**** E rules ****

  1  "#:" coming before "E" followed by " " = ''
  2  "'^:" coming before "E" followed by " " = ''
  3  " :" coming before "E" followed by " " = 'EE'
  4  "#" coming before "ED" followed by " " = 'D'
  5  "#:" coming before "E" followed by "D " = ''
  6  "" coming before "EV" followed by "ER" = 'EH-V'
  7  " EL" coming before "EVEN" followed by "" = 'EH-V-EH-N'
  8  " S" coming before "EVEN" followed by "" = 'EH-V-EH-N'
  9  "" coming before "E" followed by "^%" = 'EE'
 10  "" coming before "E" followed by "PH%" = 'EE'
 11  "" coming before "ERI" followed by "#" = 'EE-R-EE'
 12  "#:" coming before "ER" followed by "#" = 'ER'
 13  "" coming before "ER" followed by "#" = 'EH-R'
 14  "" coming before "ER" followed by "" = 'ER'
 15  " " coming before "EVEN" followed by "" = 'EE-V-EH-N'
 16  "#:" coming before "E" followed by "W" = ''

 18  "" coming before "EW" followed by "" = 'Y-OO'
 19  "" coming before "E" followed by "O" = 'EE'
 20  "#:&" coming before "ES" followed by " " = 'IH-Z'
 21  "#:" coming before "E" followed by "S " = ''
 22  "#:" coming before "ELY" followed by "" = 'L-EE'
 23  "#:" coming before "EMENT" followed by "" = 'M-EH-N-T'
 24  "" coming before "EFUL" followed by "" = 'F-U-L'
 25  "" coming before "EE" followed by "" = 'EE'
 26  "" coming before "EARN" followed by "" = 'ER-N'
 27  " " coming before "EAR" followed by "^" = 'ER'
 28  "" coming before "EAD" followed by "" = 'EH-D'
 29  "#:" coming before "EA" followed by " " = 'EE-UH'
 30  "" coming before "EA" followed by "SU" = 'EH'
 31  "" coming before "EA" followed by "" = 'EE'
 32  "" coming before "EIGH" followed by "" = 'EY'
 33  "" coming before "EI" followed by "" = 'EE'
 34  " " coming before "EYE" followed by "" = 'I'
 35  "" coming before "EY" followed by "" = 'EE'
 36  "" coming before "EU" followed by "" = 'Y-OO'
 37  "" coming before "E" followed by "" = 'EH'

**** F rules ****

  1  "" coming before "FUL" followed by "" = 'F-U-L'
  2  "" coming before "F" followed by "" = 'F'

**** G rules ****

  1  "" coming before "GIV" followed by "" = 'G-IH-V'
  2  " " coming before "G" followed by "I^" = 'G'
  3  "" coming before "GE" followed by "T" = 'G-EH'
  4  "SU" coming before "GGES" followed by "" = 'G-J-EH-SS'
  5  "" coming before "GG" followed by "" = 'G'
  6  " B#" coming before "G" followed by "" = 'G'
  7  "" coming before "G" followed by "+" = 'J'
  8  "" coming before "GREAT" followed by "" = 'G-R-EY-T'
  9  "#" coming before "GH" followed by "" = ''
 10  "" coming before "G" followed by "" = 'G'

**** H rules ****

  1  " " coming before "HAV" followed by "" = 'H-AE-V'
  2  " " coming before "HERE" followed by "" = 'H-EE-R'
  3  " " coming before "HOUR" followed by "" = 'OW-ER'
  4  "" coming before "HOW" followed by "" = 'H-OW'
  5  "" coming before "H" followed by "#" = 'H'
  6  "" coming before "H" followed by "" = ''

**** I rules ****

  1  " " coming before "IN" followed by "" = 'IH-N'
  2  " " coming before "I" followed by " " = 'I'
  3  "" coming before "IN" followed by "D" = 'I-N'
  4  "" coming before "IER" followed by "" = 'EE-ER'
  5  "#:R" coming before "IED" followed by "" = 'EE-D'
  6  "" coming before "IED" followed by " " = 'I-D'
  7  "" coming before "IEN" followed by "" = 'EE-EH-N'
  8  "" coming before "IE" followed by "T" = 'I-EH'
  9  " :" coming before "I" followed by "%" = 'I'
 10  "" coming before "I" followed by "%" = 'EE'
 11  "" coming before "IE" followed by "" = 'EE'
 12  "N" coming before "INE" followed by "" = 'I-N'
 13  "T" coming before "IME" followed by "" = 'I-M'
 14  "" coming before "I" followed by "^+:#" = 'IH'
 15  "" coming before "IR" followed by "#" = 'I-R'
 16  "" coming before "IS" followed by "%" = 'I-S'
 17  "" coming before "IX" followed by "%" = 'IH-K-S'
 18  "" coming before "IZ" followed by "%" = 'I-Z'
 19  "" coming before "I" followed by "D%" = 'I'
 20  "+^" coming before "I" followed by "^+" = 'IH'
 21  "" coming before "I" followed by "T%" = 'I'
 22  "#^:" coming before "I" followed by "^+" = 'IH'
 23  "" coming before "I" followed by "^+" = 'I'
 24  "" coming before "IR" followed by "" = 'ER'
 25  "" coming before "IGH" followed by "" = 'I'
 26  "" coming before "ILD" followed by "" = 'I-L-D'
 27  "" coming before "IGN" followed by " " = 'I-N'
 28  "" coming before "IGN" followed by "^" = 'I-N'
 29  "" coming before "IGN" followed by "%" = 'I-N'
 30  "" coming before "IQUE" followed by "" = 'EE-K'
 31  "" coming before "I" followed by "" = 'IH'

**** J rules ****

  1  "" coming before "J" followed by "" = 'J'

**** K rules ****

  1  "" coming before "K" followed by "N" = ''
  2  "" coming before "K" followed by "" = 'K'

**** L rules ****

  1  "" coming before "LO" followed by "C#" = 'L-OH'
  2  "L" coming before "L" followed by "" = ''
  3  "#^:" coming before "L" followed by "%" = 'UH-L'
  4  "" coming before "LEAD" followed by "" = 'L-EE-D'
  5  "" coming before "L" followed by "" = 'L'

**** M rules ****

  1  "" coming before "MOV" followed by "" = 'M-OO-V'
  2  "" coming before "M" followed by "" = 'M'

**** N rules ****

  1  "E" coming before "NG" followed by "+" = 'N-J'
  2  "" coming before "NG" followed by "R" = 'NG'
  3  "" coming before "NG" followed by "#" = 'NG'
  4  "" coming before "NGL" followed by "%" = 'NG-UH-L'
  5  "" coming before "NG" followed by "" = 'NG'
  6  "" coming before "NK" followed by "" = 'N-K'
  7  " " coming before "NOW" followed by " " = 'N-OW'
  8  "" coming before "N" followed by "" = 'N'

**** O rules ****

  1  "" coming before "OF" followed by " " = 'UH-V'
  2  "" coming before "OROUGH" followed by "" = 'ER-OH'
  3  " F" coming before "OR" followed by "TY" = 'OH-R'
  4  "#:" coming before "OR" followed by " " = 'ER'
  5  "#:" coming before "ORS"
...

read more »



Thu, 18 May 2000 03:00:00 GMT  
 Phenomes


 >This is Quickbasic source (I was working in it, because I had a
 >computer with it handy), but it should convert easily to VB.

Can you possibly be _serious_? You give us a ream of rules,
ask for vague help (no specific question), and then, to top it
all off, want _us_ to convert your code from QB to VB. That's
really UNcool, dude.  Fortunately, I can't get "steamed" over
it because I'm laughing too hard.

Oh, and by the way, that's _phonemes_.



Fri, 19 May 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 
 

 
Powered by phpBB® Forum Software