hmi.tts
Class WordDescription

java.lang.Object
  extended by hmi.tts.WordDescription

@Immutable
public final class WordDescription
extends Object

Author:
welberge Describes the phonetic structure of a word

Field Summary
private  Collection<Phoneme> phonemes
           
private  Collection<Visime> visimes
           
private  String word
           
 
Constructor Summary
WordDescription(String word, Collection<Phoneme> phonemes, Collection<Visime> visimes)
          constructor
 
Method Summary
 int getDuration()
          Get the time needed to speak this word
 Collection<Phoneme> getPhonemes()
           
 PhonologicalPeak getPhonologicalPeak()
          Gets the phonological peak of the word
 Collection<Visime> getVisimes()
           
 String getWord()
           
 String toString()
          String representation of the word
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

phonemes

private final Collection<Phoneme> phonemes

visimes

private final Collection<Visime> visimes

word

private final String word
Constructor Detail

WordDescription

public WordDescription(String word,
                       Collection<Phoneme> phonemes,
                       Collection<Visime> visimes)
constructor

Parameters:
_word - word
_phonemes - phonemes in the word
Method Detail

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