org.robokind.api.speech.viseme
Class DefaultVisemeEvent

java.lang.Object
  extended by org.robokind.api.speech.viseme.DefaultVisemeEvent
All Implemented Interfaces:
VisemeEvent

public class DefaultVisemeEvent
extends Object
implements VisemeEvent

Author:
Matthew Stevenson

Constructor Summary
DefaultVisemeEvent(SpeechEvent speechEvent, long timestampMillisecUTC)
          Creates a DefaultVisemeEvent from the given SpeechEvent.
DefaultVisemeEvent(SpeechEvent speechEvent, long timestampMillisecUTC, long timeOffset)
           
 
Method Summary
 Viseme getCurrentViseme()
          Returns the current Viseme at the time of the event.
 int getDuration()
          Returns the number of milliseconds for the transition to the next Viseme.
 Viseme getNextViseme()
          Returns the Viseme to transition to.
 long getStream()
          Returns the speech Stream identifier.
 long getTimestampMillisecUTC()
          Returns the timestamp of the VisemeEvent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultVisemeEvent

public DefaultVisemeEvent(SpeechEvent speechEvent,
                          long timestampMillisecUTC)
Creates a DefaultVisemeEvent from the given SpeechEvent.

Parameters:
speechEvent - SpeechEvent with Viseme information

DefaultVisemeEvent

public DefaultVisemeEvent(SpeechEvent speechEvent,
                          long timestampMillisecUTC,
                          long timeOffset)
Method Detail

getStream

public long getStream()
Description copied from interface: VisemeEvent
Returns the speech Stream identifier.

Specified by:
getStream in interface VisemeEvent
Returns:
speech Stream identifier

getCurrentViseme

public Viseme getCurrentViseme()
Description copied from interface: VisemeEvent
Returns the current Viseme at the time of the event.

Specified by:
getCurrentViseme in interface VisemeEvent
Returns:
current Viseme at the time of the event

getNextViseme

public Viseme getNextViseme()
Description copied from interface: VisemeEvent
Returns the Viseme to transition to.

Specified by:
getNextViseme in interface VisemeEvent
Returns:
Viseme to transition to

getDuration

public int getDuration()
Description copied from interface: VisemeEvent
Returns the number of milliseconds for the transition to the next Viseme.

Specified by:
getDuration in interface VisemeEvent
Returns:
number of milliseconds for the transition to the next Viseme

getTimestampMillisecUTC

public long getTimestampMillisecUTC()
Description copied from interface: VisemeEvent
Returns the timestamp of the VisemeEvent.

Specified by:
getTimestampMillisecUTC in interface VisemeEvent
Returns:
timestamp of the VisemeEvent


Copyright © 2011-2013. All Rights Reserved.