Package com.sun.speech.freetts.cart
Class Phraser
- java.lang.Object
-
- com.sun.speech.freetts.cart.Phraser
-
- All Implemented Interfaces:
UtteranceProcessor
public class Phraser extends java.lang.Object implements UtteranceProcessor
Creates aRelation.PHRASErelation, groupingRelation.WORDrelations by breaks.- See Also:
Relation.PHRASE,Relation.WORD
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessUtterance(Utterance utterance)Creates aRelation.PHRASErelation, groupingRelation.WORDrelations by breaks.java.lang.StringtoString()
-
-
-
Field Detail
-
cart
protected final CART cart
The CART used for this Phrasing UtteranceProcessor. It is passed into the constructor.
-
-
Constructor Detail
-
Phraser
public Phraser(CART cart)
Creates a new Phrasing UtteranceProcessor with the given CART. The phrasing CART is expected to return "BB" values for big breaks.- Parameters:
cart- a phrasing CART
-
-
Method Detail
-
processUtterance
public void processUtterance(Utterance utterance) throws ProcessException
Creates aRelation.PHRASErelation, groupingRelation.WORDrelations by breaks. Depends upon a phrasing CART that returns strings containing "BB" for big breaks.- Specified by:
processUtterancein interfaceUtteranceProcessor- Parameters:
utterance- the utterance to process- Throws:
ProcessException- if a problem is encountered during the processing of the utterance
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-