Package com.sun.speech.freetts
Class PhoneDuration
java.lang.Object
com.sun.speech.freetts.PhoneDuration
Maintains the mean duration and standard deviation about a phone.
These are meant to be used by the code that calculates segment
durations via statistical methods, and are paired with the phone
by
PhoneDurations
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPhoneDuration
(float mean, float standardDeviation) Creates a newPhoneDuration
with the given mean and standard deviation. -
Method Summary
Modifier and TypeMethodDescriptionfloat
getMean()
Gets the mean.float
Gets the standard deviation from the mean.
-
Constructor Details
-
PhoneDuration
public PhoneDuration(float mean, float standardDeviation) Creates a newPhoneDuration
with the given mean and standard deviation.- Parameters:
mean
- mean duration, typically in secondsstandardDeviation
- standardDeviation from the mean
-
-
Method Details
-
getMean
public float getMean()Gets the mean. The return value is typically in seconds.- Returns:
- the mean
-
getStandardDeviation
public float getStandardDeviation()Gets the standard deviation from the mean.- Returns:
- the standard deviation from the mean
-