Package com.sun.speech.freetts.cart
Class Intonator
- java.lang.Object
-
- com.sun.speech.freetts.cart.Intonator
-
- All Implemented Interfaces:
UtteranceProcessor
public class Intonator extends java.lang.Object implements UtteranceProcessor
Annotates theRelation.SYLLABLErelations of an utterance with "accent" and "endtone" features. Though not required, a typical use of this is to use the ToBI (tones and break indeces) scheme for transcribing intonation and accent in English, developed by Janet Pierrehumbert and Mary Beckman. This implementation is independent of the ToBI scheme: ToBI annotations are not used by this class, but are merely copied from the CART result to the "accent" and "endtone" features of theRelation.SYLLABLErelation.
-
-
Field Summary
Fields Modifier and Type Field Description protected CARTaccentCartThe accent CART used for this Intonation UtteranceProcessor.protected CARTtoneCartThe tone CART used for this Intonation UtteranceProcessor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessUtterance(Utterance utterance)Annotates theRelation.SYLLABLErelations of an utterance with "accent" and "endtone" features.java.lang.StringtoString()
-
-
-
Method Detail
-
processUtterance
public void processUtterance(Utterance utterance) throws ProcessException
Annotates theRelation.SYLLABLErelations of an utterance with "accent" and "endtone" features. Depends upon "NONE" being returned by either the accent or tone CART to indicate there isn't an intonation feature for a syllable.- Specified by:
processUtterancein interfaceUtteranceProcessor- Parameters:
utterance- the utterance to process/tokenize- Throws:
ProcessException- if an IOException is thrown during the processing of the utterance
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-