org.robokind.api.speech.viseme
Class VisemeBinding

java.lang.Object
  extended by org.robokind.api.speech.viseme.VisemeBinding

public class VisemeBinding
extends Object

Defines NormalizedDoubles, for each Viseme, to be bound to a key. Used to synchronize movement or visual output with speech.

Author:
Matthew Stevenson

Constructor Summary
VisemeBinding(int key)
          Creates an empty VisemeBinding for the given key.
VisemeBinding(VisemeBindingConfig<VisemePosition> config)
          Creates a new VisemeBinding with the given configuration.
 
Method Summary
 int getBindingKey()
          Returns the binding key for this VisemeBinding.
 org.robokind.api.common.position.NormalizedDouble getValue(Viseme viseme)
          Returns the NormalizedDouble mapped to the given Viseme.
 Map<Viseme,org.robokind.api.common.position.NormalizedDouble> getVisemeValueMap()
           
 void setVisemeValue(Viseme viseme, org.robokind.api.common.position.NormalizedDouble value)
          Sets the NormalizedDouble to be mapped to the given Viseme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisemeBinding

public VisemeBinding(int key)
Creates an empty VisemeBinding for the given key.

Parameters:
key - binding key for this VisemeBinding

VisemeBinding

public VisemeBinding(VisemeBindingConfig<VisemePosition> config)
Creates a new VisemeBinding with the given configuration.

Parameters:
config - configuration for the VisemeBinding
Method Detail

getBindingKey

public int getBindingKey()
Returns the binding key for this VisemeBinding.

Returns:
binding key for this VisemeBinding

getValue

public org.robokind.api.common.position.NormalizedDouble getValue(Viseme viseme)
Returns the NormalizedDouble mapped to the given Viseme.

Parameters:
viseme - Viseme value to retrieve
Returns:
NormalizedDouble mapped to the given Viseme

setVisemeValue

public void setVisemeValue(Viseme viseme,
                           org.robokind.api.common.position.NormalizedDouble value)
Sets the NormalizedDouble to be mapped to the given Viseme.

Parameters:
viseme - Viseme to map to the given NormalizedDouble
value - NormalizedDouble the Viseme should map to

getVisemeValueMap

public Map<Viseme,org.robokind.api.common.position.NormalizedDouble> getVisemeValueMap()


Copyright © 2011-2013. All Rights Reserved.