|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.speech.freetts.PhoneDurationsImpl
Maintains set of PhoneDuration instances read in from a file. The format of the file is as follows:
phone mean stddev phone mean stddev phone mean stddev ...Where
phone
is the phone name, mean
is
a float
representing the mean duration of the phone
(typically in seconds), and stddev
is a
float
representing the standard deviation from the
mean.
Constructor Summary | |
PhoneDurationsImpl(java.net.URL url)
Creates a new PhoneDurationsImpl by reading from the given URL. |
Method Summary | |
PhoneDuration |
getPhoneDuration(java.lang.String phone)
Gets the PhoneDuration for the given phone. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PhoneDurationsImpl(java.net.URL url) throws java.io.IOException
url
- the input source
java.io.IOException
- if an error occursMethod Detail |
public PhoneDuration getPhoneDuration(java.lang.String phone)
PhoneDuration
for the given phone. If no
duration is applicable, returns null
.
getPhoneDuration
in interface PhoneDurations
phone
- the phone
PhoneDuration
for phone
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |