UtteranceProcessorpublic class ContourGenerator extends java.lang.Object implements UtteranceProcessor
| Constructor | Description |
|---|---|
ContourGenerator(java.net.URL url,
float modelMean,
float modelStddev) |
Creates a ContourGenerator utterance processor.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
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 frequencyjava.io.IOException - if an error occurs while loading datapublic void processUtterance(Utterance utterance) throws ProcessException
processUtterance in interface UtteranceProcessorutterance - the utterance to processProcessException - 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()
toString in class java.lang.Object