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 class
Checks to see if the given syllable is accented.static class
Counts the number of accented syllables since the last major break.static class
Returns a guess of the part-of-speech.static class
Find the last accented syllable This is a feature processor.static class
Returns true ("1") if the given item is a number between 0 and 32 exclusive, otherwise, returns "0".static class
Returns the length of the string.static class
Return consonant cplace l-labial a-alveolar p-palatal b-labio_dental d-dental v-velar This is a feature processor.static class
Return consonant type s-stop f-fricative a-affricative n-nasal * l-liquid This is a feature processor.static class
Return consonant voicing +=on -=off This is a feature processor.static class
Return vowel or consonant +=on -=off This is a feature processor.static class
Return vowel frontness 1-front 2-mid 3-back This is a feature processor.static class
Return vowel height 1-high 2-mid 3-low This is a feature processor.static class
Return vowel length s-short l-long d-dipthong a-schwa This is a feature processor.static class
Return vowel rnd (lip rounding) lip rounding +=on -=off This is a feature processor.static class
Finds the position of the phoneme in the syllable This is a feature processor.static class
Classifies the the syllable as single, initial, mid or final.static class
Checks for fricative This is a feature processor.static class
Checks for coda glide This is a feature processor.static class
Checks for coda nasal This is a feature processor.static class
Checks for coda stop This is a feature processor.static class
Returns the duration of the given segment This is a feature processor.static class
Checks for onset coda This is a feature processor.static class
Checks for fricative This is a feature processor.static class
Checks for onset glide This is a feature processor.static class
Checks for onset nasal This is a feature processor.static class
Checks for onset stop This is a feature processor.static class
Counts the number of stressed syllables since the last major break.static class
Counts the number of stressed syllables until the next major break.static class
Counts the number of phrases before this one.static class
Determines the break level after this syllable This is a feature processor.static class
Determines the coda size This is a feature processor.static class
Counts the number of stressed syllables since the last major break.static class
Determines the onset size of this syllable This is a feature processor.static class
Counts the number of stressed syllables since the last major break.static class
Attempts to guess the part of speech.static class
Determines the word break.static class
Returns as an Integer the number of syllables in the given word.static class
Determines 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
-