|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.speech.freetts.cart.Intonator
Annotates the Relation.SYLLABLE relations 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 the
Relation.SYLLABLE relation.
| Field Summary | |
protected CART |
accentCart
The accent CART used for this Intonation UtteranceProcessor. |
protected CART |
toneCart
The tone CART used for this Intonation UtteranceProcessor. |
| Constructor Summary | |
Intonator(CART accentCart,
CART toneCart)
Creates a new Intonation UtteranceProcessor with the given CARTs. |
|
| Method Summary | |
void |
processUtterance(Utterance utterance)
Annotates the Relation.SYLLABLE relations of an
utterance with "accent"
and "endtone" features. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected CART accentCart
protected CART toneCart
| Constructor Detail |
public Intonator(CART accentCart,
CART toneCart)
accentCart - the CART for doing accentstoneCart - the CART for doing end tones| Method Detail |
public void processUtterance(Utterance utterance)
throws ProcessException
Relation.SYLLABLE relations 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.
processUtterance in interface UtteranceProcessorutterance - the utterance to process/tokenize
ProcessException - if an IOException is thrown during the
processing of the utterancepublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||