hmi.tts
Class WordDescription
java.lang.Object
hmi.tts.WordDescription
@Immutable
public final class WordDescription
- extends Object
- Author:
- welberge Describes the phonetic structure of a word
phonemes
private final Collection<Phoneme> phonemes
visimes
private final Collection<Visime> visimes
word
private final String word
WordDescription
public WordDescription(String word,
Collection<Phoneme> phonemes,
Collection<Visime> visimes)
- constructor
- Parameters:
_word - word_phonemes - phonemes in the word
getPhonemes
public Collection<Phoneme> getPhonemes()
getVisimes
public Collection<Visime> getVisimes()
getWord
public String getWord()
getDuration
public int getDuration()
- Get the time needed to speak this word
- Returns:
- the time needed to speak this word, in ms
toString
public String toString()
- String representation of the word
- Overrides:
toString in class Object
getPhonologicalPeak
public PhonologicalPeak getPhonologicalPeak()
- Gets the phonological peak of the word
- Returns:
- the phonological peak of the word, null if not found