Class FeatureProcessors

java.lang.Object
com.sun.speech.freetts.en.us.FeatureProcessors

public class FeatureProcessors extends Object
Provides the set of feature processors that are used by this language as part of the CART processing.
  • Method Details

    • getPhoneFeature

      public static String getPhoneFeature(Item item, String featureName)
      Gets the phoneset feature with the given name
      Parameters:
      item - item the phoneme of interest
      featureName - the feature of interest
      Returns:
      the phone feature for the item
    • wordBreak

      public static String wordBreak(Item item) throws ProcessException
      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

      public static String wordPunc(Item item) throws ProcessException
      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