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.PHRASE
relation, groupingRelation.WORD
relations by breaks.- See Also:
Relation.PHRASE
,Relation.WORD
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processUtterance(Utterance utterance)
Creates aRelation.PHRASE
relation, groupingRelation.WORD
relations by breaks.java.lang.String
toString()
-
-
-
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.PHRASE
relation, groupingRelation.WORD
relations by breaks. Depends upon a phrasing CART that returns strings containing "BB" for big breaks.- Specified by:
processUtterance
in 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:
toString
in classjava.lang.Object
-
-