Package com.sun.speech.freetts.diphone
Class DiphonePitchmarkGenerator
- java.lang.Object
-
- com.sun.speech.freetts.diphone.DiphonePitchmarkGenerator
-
- All Implemented Interfaces:
UtteranceProcessor
public class DiphonePitchmarkGenerator extends java.lang.Object implements UtteranceProcessor
Calculates pitchmarks. This is an utterance processor that expects the utterance to have a target relation. It will create an LPCResult and add it to the utterance based upon features of the target relation.- See Also:
LPCResult
,Relation
,SampleInfo
-
-
Constructor Summary
Constructors Constructor Description DiphonePitchmarkGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processUtterance(Utterance utterance)
Generates the LPCResult for this utterance.java.lang.String
toString()
Returns a string representation of this object.
-
-
-
Method Detail
-
processUtterance
public void processUtterance(Utterance utterance) throws ProcessException
Generates the LPCResult for this utterance.- Specified by:
processUtterance
in interfaceUtteranceProcessor
- Parameters:
utterance
- the utterance to process- Throws:
ProcessException
- if an error occurs while processing the utterancejava.lang.IllegalStateException
- if the given utterance has no relation named Relation.TARGET or a feature named SampleInfo.UTT_NAME
-
toString
public java.lang.String toString()
Returns a string representation of this object.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string representation of this object
-
-