Package com.sun.speech.freetts
Class Relation
- java.lang.Object
-
- com.sun.speech.freetts.Relation
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPHRASEName of the relation that groups elements from the Word relation into phrases.static java.lang.StringSEGMENTName of the relation that contains the ordered list of the smallest units of speech (typically phonemes) for the entire utterance.static java.lang.StringSYLLABLEName of the relation that contains the description of the syllables for the Utterance.static java.lang.StringSYLLABLE_STRUCTUREName of the relation that contains the syllable structure for the utterance.static java.lang.StringTARGETName of the relation that maps fundamental frequency targets to absolute times for wave to be generated from the utterance.static java.lang.StringTOKENName of the relation that contains tokens from the original input text.static java.lang.StringUNITName of the relation that contains the ordered list of the units from the unit database that will be used to create the synthesized wave.static java.lang.StringWORDName of the relation that contains the normalized version of the original input text.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemappendItem()Adds a new item to this relation.ItemappendItem(Item originalItem)Adds a new item to this relation.voiddump(java.io.PrintWriter pw, int pad, java.lang.String title)Dumps this relation to the print writer.ItemgetHead()Gets the head of the item list.java.lang.StringgetName()Retrieves the name of this Relation.ItemgetTail()Gets the tail of the item list.UtterancegetUtterance()Returns the utterance that contains this relation.
-
-
-
Field Detail
-
TOKEN
public static final java.lang.String TOKEN
Name of the relation that contains tokens from the original input text. This is the first thing to be added to the utterance.- See Also:
WORD, Constant Field Values
-
WORD
public static final java.lang.String WORD
Name of the relation that contains the normalized version of the original input text.- See Also:
TOKEN, Constant Field Values
-
PHRASE
public static final java.lang.String PHRASE
Name of the relation that groups elements from the Word relation into phrases.- See Also:
- Constant Field Values
-
SEGMENT
public static final java.lang.String SEGMENT
Name of the relation that contains the ordered list of the smallest units of speech (typically phonemes) for the entire utterance.- See Also:
SYLLABLE,SYLLABLE_STRUCTURE,Segmenter, Constant Field Values
-
SYLLABLE
public static final java.lang.String SYLLABLE
Name of the relation that contains the description of the syllables for the Utterance. This is typically added to the utterance at the same time as theSegmentandSylStructurerelations.- See Also:
SEGMENT,SYLLABLE_STRUCTURE,Segmenter, Constant Field Values
-
SYLLABLE_STRUCTURE
public static final java.lang.String SYLLABLE_STRUCTURE
Name of the relation that contains the syllable structure for the utterance.- See Also:
SEGMENT,SYLLABLE,Segmenter, Constant Field Values
-
TARGET
public static final java.lang.String TARGET
Name of the relation that maps fundamental frequency targets to absolute times for wave to be generated from the utterance.- See Also:
- Constant Field Values
-
UNIT
public static final java.lang.String UNIT
Name of the relation that contains the ordered list of the units from the unit database that will be used to create the synthesized wave.- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
Retrieves the name of this Relation.- Returns:
- the name of this Relation
-
getHead
public Item getHead()
Gets the head of the item list.- Returns:
- the head item
-
getTail
public Item getTail()
Gets the tail of the item list.- Returns:
- the tail item
-
appendItem
public Item appendItem()
Adds a new item to this relation. The item added does not share its contents with any other item.- Returns:
- the newly added item
-
appendItem
public Item appendItem(Item originalItem)
Adds a new item to this relation. The item added shares its contents with the original item.- Parameters:
originalItem- the ItemContents that will be shared by the new item- Returns:
- the newly added item
-
getUtterance
public Utterance getUtterance()
Returns the utterance that contains this relation.- Returns:
- the utterance that contains this relation
-
-