Class FeatureProcessors.SegmentDuration

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

public static class FeatureProcessors.SegmentDuration extends Object implements FeatureProcessor
Returns the duration of the given segment 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

    • SegmentDuration

      public SegmentDuration()
  • Method Details

    • process

      public String process(Item seg) throws ProcessException
      Performs some processing on the given item.
      Specified by:
      process in interface FeatureProcessor
      Parameters:
      seg - the item to process
      Returns:
      the duration of the segment as a string.
      Throws:
      ProcessException - if an exception occurred during the processing