Package com.sun.speech.freetts
Interface Unit
-
public interface UnitDefines a generic interface to a Unit.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddump()Dumps this unit.java.lang.StringgetName()Returns the name of this Unit.SamplegetNearestSample(float index)Retrieves the nearest sample.intgetSize()Returns the size of this unit.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of this Unit.- Returns:
- the name of this Unit
-
getSize
int getSize()
Returns the size of this unit.- Returns:
- the size of this unit
-
getNearestSample
Sample getNearestSample(float index)
Retrieves the nearest sample.- Parameters:
index- the ideal index- Returns:
- the nearest Sample
-
dump
void dump()
Dumps this unit.
-
-