com.sun.speech.freetts
Interface Unit


public interface Unit

Defines a generic interface to a Unit.


Method Summary
 void dump()
          Dumps this unit.
 java.lang.String getName()
          Returns the name of this Unit.
 Sample getNearestSample(float index)
          Retrieves the nearest sample.
 int getSize()
          Returns the size of this unit.
 

Method Detail

getName

public java.lang.String getName()
Returns the name of this Unit.

Returns:
the name of this Unit

getSize

public int getSize()
Returns the size of this unit.

Returns:
the size of this unit

getNearestSample

public Sample getNearestSample(float index)
Retrieves the nearest sample.

Parameters:
index - the ideal index
Returns:
the nearest Sample

dump

public void dump()
Dumps this unit.