Package com.sun.speech.freetts.cart
Class Phraser
java.lang.Object
com.sun.speech.freetts.cart.Phraser
- All Implemented Interfaces:
UtteranceProcessor
Creates a
Relation.PHRASE
relation, grouping
Relation.WORD
relations by breaks.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
processUtterance
(Utterance utterance) Creates aRelation.PHRASE
relation, groupingRelation.WORD
relations by breaks.toString()
-
Field Details
-
cart
The CART used for this Phrasing UtteranceProcessor. It is passed into the constructor.
-
-
Constructor Details
-
Phraser
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 Details
-
processUtterance
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
-