rita.support
Class RiPhone

java.lang.Object
  extended by rita.support.RiPhone

public abstract class RiPhone
extends java.lang.Object

Static utility methods for operations involving phonemes.

        TTS-Phoneme   Example     Translation    (39 entries, 11 missing?)
        ========================================================
          AA            odd         AA D
          AE            at          AE T
          AH            hut         HH AH T
          AO            ought       AO T
          AW            cow         K AW
          AY            hide        HH AY D
          B             be          B IY
          CH            cheese      CH IY Z
          D             dee         D IY
          DH            thee        DH IY
          EH            Ed          EH D
          ER            hurt        HH ER T
          EY            ate         EY T
          F             fee         F IY
          G             green       G R IY N
          HH            he          HH IY
          IH            it          IH T
          IY            eat         IY T
          JH            gee         JH IY
          K             key         K IY
          L             lee         L IY
          M             me          M IY
          N             knee        N IY
          NG            ping        P IH NG
          OW            oat         OW T
          OY            toy         T OY
          P             pee         P IY
          R             read        R IY D
          S             sea         S IY
          SH            she         SH IY
          T             tea         T IY
          TH            theta       TH EY T AH
          UH            hood        HH UH D
          UW            two         T UW
          V             vee         V IY
          W             we          W IY
          Y             yield       Y IY L D
          Z             zee         Z IY
          ZH            seizure     S IY ZH ER


    SAMPA  IPA(hex), IPA(dec),           DESC                 29 Entries
    ======================================================================== 
    ('A',  '?',  593,    "open back unrounded, Cardinal 5, Eng. start");
    ('{',  '',  230,    "near-open front unrounded, Eng. trap");
    ('6',  '?',  592,    "open schwa, Ger. besser");
    ('Q',  '?',  594,    "open back rounded, Eng. lot");
    ('E',  '?',  603,    "open-mid front unrounded, C3, Fr. m�me");
    ('@',  '?',  601,    "schwa, Eng. banana");
    ('3',  '?',  604,    "long mid central, Eng. nurse");
    ('I',  '?',  618,    "lax close front unrounded, Eng. kit");
    ('O',  '?',  596,    "open-mid back rounded, Eng. thought");
    ('2',  '',  248,    "close-mid front rounded, Fr. deux");
    ('9',  '',  339,    "open-mid front rounded, Fr. neuf");
    ('&',  '?',  630,    "open front rounded");
    ('U',  '?',  650,    "lax close back rounded, Eng. foot");
    ('}',  '?',  649,    "close central rounded, Swedish sju");
    ('V',  '?',  652,    "open-mid back unrounded, Eng. strut");
    ('Y',  '?',  655,    "lax [y], Ger. h�bsc");
    ('B',  '?',  946,    "voiced bilabial fricative, Sp. cabo");
    ('C',  '',  231,    "voiceless palatal fricative, Ger. ich");
    ('D',  '?',  240,    "voiced dental fricative, Eng. then");
    ('G',  '?',  611,    "voiced velar fricative, Sp. fuego");
    ('L',  '?',  654,    "palatal lateral, It. famiglia");
    ('J',  '?',  626,    "palatal nasal, Sp. a�o");
    ('N',  '?',  331,    "velar nasal, Eng. thing");
    ('R',  '?',  641,    "vd. uvular fric. or trill, Fr. roi");
    ('S',  '?',  643,    "voiceless palatoalveolar fricative, Eng. ship");
    ('T',  '?',  952,    "voiceless dental fricative, Eng. thin");
    ('H',  '?',  613,    "labial-palatal semivowel, Fr. huit");
    ('Z',  '?',  658,    "vd. palatoalveolar fric., Eng. measure");
    ('?',  '?',  660,    "glottal stop, Ger. Verein, also Danish st�d");


Field Summary
static java.lang.String[] TTS_PHONEMES
           
 
Constructor Summary
RiPhone()
           
 
Method Summary
static int getSonority(java.lang.String phone)
          Determines the sonority for the given phone.
static boolean hasVowel(java.util.List phones)
          Determines if there is a vowel in given list of phones.
static boolean hasVowel(java.lang.String[] phones, int index)
          Determines if there is a vowel in the remainder of the array, starting at the given index.
static boolean isConsonant(java.lang.String phoneme)
          Determines if the given phone is a consonant
static boolean isPhoneme(java.lang.String phoneme)
           
static boolean isSilence(java.lang.String phone)
          Determines if the given phone represents a silent phone.
static boolean isVowel(java.lang.String phone)
          Determines if the given phone is a vowel
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TTS_PHONEMES

public static final java.lang.String[] TTS_PHONEMES
Constructor Detail

RiPhone

public RiPhone()
Method Detail

isPhoneme

public static boolean isPhoneme(java.lang.String phoneme)

isVowel

public static boolean isVowel(java.lang.String phone)
Determines if the given phone is a vowel

Parameters:
phone - the phone to test
Returns:
true if phone is a vowel otherwise false.

isConsonant

public static boolean isConsonant(java.lang.String phoneme)
Determines if the given phone is a consonant

Parameters:
phoneme - the phone to test
Returns:
true if phone is a consonant otherwise false.

isSilence

public static boolean isSilence(java.lang.String phone)
Determines if the given phone represents a silent phone.

Parameters:
phone - the phone to test
Returns:
true if the phone represents a silent phone; otherwise false.

hasVowel

public static boolean hasVowel(java.lang.String[] phones,
                               int index)
Determines if there is a vowel in the remainder of the array, starting at the given index.

Parameters:
phones - the set of phones to check
index - start checking at this index
Returns:
true if a vowel is found; otherwise false.

hasVowel

public static boolean hasVowel(java.util.List phones)
Determines if there is a vowel in given list of phones.

Parameters:
phones - the list of phones
Returns:
true if a vowel is found; otherwise false.

getSonority

public static int getSonority(java.lang.String phone)
Determines the sonority for the given phone.

Parameters:
phone - the phone of interest
Returns:
an integer that classifies phone transitions

main

public static void main(java.lang.String[] args)