Package com.sun.speech.freetts.en.us
Class FeatureProcessors
java.lang.Object
com.sun.speech.freetts.en.us.FeatureProcessors
Provides the set of feature processors that are used by this
language as part of the CART processing.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classChecks to see if the given syllable is accented.static classCounts the number of accented syllables since the last major break.static classReturns a guess of the part-of-speech.static classFind the last accented syllable This is a feature processor.static classReturns true ("1") if the given item is a number between 0 and 32 exclusive, otherwise, returns "0".static classReturns the length of the string.static classReturn consonant cplace l-labial a-alveolar p-palatal b-labio_dental d-dental v-velar This is a feature processor.static classReturn consonant type s-stop f-fricative a-affricative n-nasal * l-liquid This is a feature processor.static classReturn consonant voicing +=on -=off This is a feature processor.static classReturn vowel or consonant +=on -=off This is a feature processor.static classReturn vowel frontness 1-front 2-mid 3-back This is a feature processor.static classReturn vowel height 1-high 2-mid 3-low This is a feature processor.static classReturn vowel length s-short l-long d-dipthong a-schwa This is a feature processor.static classReturn vowel rnd (lip rounding) lip rounding +=on -=off This is a feature processor.static classFinds the position of the phoneme in the syllable This is a feature processor.static classClassifies the the syllable as single, initial, mid or final.static classChecks for fricative This is a feature processor.static classChecks for coda glide This is a feature processor.static classChecks for coda nasal This is a feature processor.static classChecks for coda stop This is a feature processor.static classReturns the duration of the given segment This is a feature processor.static classChecks for onset coda This is a feature processor.static classChecks for fricative This is a feature processor.static classChecks for onset glide This is a feature processor.static classChecks for onset nasal This is a feature processor.static classChecks for onset stop This is a feature processor.static classCounts the number of stressed syllables since the last major break.static classCounts the number of stressed syllables until the next major break.static classCounts the number of phrases before this one.static classDetermines the break level after this syllable This is a feature processor.static classDetermines the coda size This is a feature processor.static classCounts the number of stressed syllables since the last major break.static classDetermines the onset size of this syllable This is a feature processor.static classCounts the number of stressed syllables since the last major break.static classAttempts to guess the part of speech.static classDetermines the word break.static classReturns as an Integer the number of syllables in the given word.static classDetermines the word punctuation. -
Method Summary
-
Method Details
-
getPhoneFeature
Gets the phoneset feature with the given name- Parameters:
item- item the phoneme of interestfeatureName- the feature of interest- Returns:
- the phone feature for the item
-
wordBreak
Classifies the type of word break- Parameters:
item- the item to process- Returns:
- "4" for a big break, "3" for a break; otherwise "1"
- Throws:
ProcessException- if an exception occurred during the processing
-
wordPunc
Gets the punctuation associated with the word- Parameters:
item- the word to process- Returns:
- the punctuation associated with the word
- Throws:
ProcessException- if an exception occurred during the processing
-