public class ProsodyElementHandler extends Object
Constructor and Description |
---|
ProsodyElementHandler() |
Modifier and Type | Method and Description |
---|---|
double[] |
getF0Contour(NodeList nl,
int arraysize)
To get a continuous pitch contour from nodelist of "ph" elements
|
void |
process(Document doc)
A method to modify prosody modifications
|
public void process(Document doc)
doc
- - MARY XML Documentpublic double[] getF0Contour(NodeList nl, int arraysize)
nl
- - NodeList of 'ph' elements; All elements in this NodeList should be 'ph' elements only All these 'ph' elements
should contain 'd', 'end' attributesarraysize
- the length of the output pitch contour array (arraysize > 0)IllegalArgumentException
- if NodeList is null or it contains elements other than 'ph' elementsIllegalArgumentException
- if given 'ph' elements do not contain 'd' or 'end' attributesIllegalArgumentException
- if given arraysize is not greater than zeroCopyright © 2000–2016 DFKI GmbH. All rights reserved.