com.sun.speech.freetts.cart
Class Phraser

java.lang.Object
  extended bycom.sun.speech.freetts.cart.Phraser
All Implemented Interfaces:
UtteranceProcessor

public class Phraser
extends java.lang.Object
implements UtteranceProcessor

Creates a Relation.PHRASE relation, grouping Relation.WORD relations by breaks.

See Also:
Relation.PHRASE, Relation.WORD

Field Summary
protected  CART cart
          The CART used for this Phrasing UtteranceProcessor.
 
Constructor Summary
Phraser(CART cart)
          Creates a new Phrasing UtteranceProcessor with the given CART.
 
Method Summary
 void processUtterance(Utterance utterance)
          Creates a Relation.PHRASE relation, grouping Relation.WORD relations by breaks.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cart

protected 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 a Relation.PHRASE relation, grouping Relation.WORD relations by breaks. Depends upon a phrasing CART that returns strings containing "BB" for big breaks.

Specified by:
processUtterance in interface UtteranceProcessor
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()