Class FeatureProcessors.StressedSylOut

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

public static class FeatureProcessors.StressedSylOut extends Object implements FeatureProcessor
Counts the number of stressed syllables until the next major break. 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

    • StressedSylOut

      public StressedSylOut()
  • 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:
      the number of stressed syllables until the next major break
      Throws:
      ProcessException - if an exception occurred during the processing