Class FeatureProcessors.Accented

java.lang.Object
com.sun.speech.freetts.en.us.FeatureProcessors.Accented
All Implemented Interfaces:
FeatureProcessor
Enclosing class:
FeatureProcessors

public static class FeatureProcessors.Accented extends Object implements FeatureProcessor
Checks to see if the given syllable is accented. This is a feature processor. A feature processor takes an item, performs some sort of processing on the item and returns an object.
  • Constructor Details

    • Accented

      public Accented()
  • Method Details

    • process

      public String process(Item item) throws ProcessException
      Performs some processing on the given item.
      Specified by:
      process in interface FeatureProcessor
      Parameters:
      item - the item to process
      Returns:
      "1" if the syllable is accented; otherwise "0"
      Throws:
      ProcessException - if an exception occurred during the processing