|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.speech.freetts.en.ContourGenerator
Calculates the F0 curve for an utterance based on the Black and Hunt article "Generating F0 Contours from ToBI Labels Using Linear Regression," ICSLP96, vol. 3, pp 1385-1388, Philadelphia, PA. 1996.
Constructor Summary | |
ContourGenerator(java.net.URL url,
float modelMean,
float modelStddev)
Creates a ContourGenerator utterance processor. |
Method Summary | |
protected void |
parseAndAdd(java.util.List list,
java.lang.String line)
Parses the line into an F0ModelTerm. |
void |
processUtterance(Utterance utterance)
Generates the F0 contour for the utterance. |
java.lang.String |
toString()
Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ContourGenerator(java.net.URL url, float modelMean, float modelStddev) throws java.io.IOException
url
- source of the datamodelMean
- the average frequencymodelStddev
- the std deviation of the frequency
java.io.IOException
- if an error occurs while loading dataMethod Detail |
public void processUtterance(Utterance utterance) throws ProcessException
processUtterance
in interface UtteranceProcessor
utterance
- the utterance to process
ProcessException
- if an IOException
is
thrown during the processing of the utteranceprotected void parseAndAdd(java.util.List list, java.lang.String line)
list
- resulting F0ModelTerm is added to this listline
- the string to parsepublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |