public class Target extends Object
Modifier and Type | Field and Description |
---|---|
protected float |
duration |
protected float |
f0 |
protected FeatureVector |
featureVector |
protected int |
isSilence |
protected Element |
maryxmlElement |
protected String |
name |
static UserDataHandler |
targetFeatureCloner |
Constructor and Description |
---|
Target(String name,
Element maryxmlElement)
Create a target associated to the given element in the MaryXML tree.
|
Modifier and Type | Method and Description |
---|---|
Allophone |
getAllophone() |
FeatureVector |
getFeatureVector() |
Element |
getMaryxmlElement() |
String |
getName() |
float |
getTargetDurationInSeconds() |
float |
getTargetF0InHz() |
boolean |
hasFeatureVector() |
boolean |
isSilence()
Determine whether this target is a silence target
|
void |
setFeatureVector(FeatureVector featureVector) |
void |
setTargetDurationInSeconds(float newDuration) |
String |
toString() |
protected String name
protected Element maryxmlElement
protected FeatureVector featureVector
protected float duration
protected float f0
protected int isSilence
public static UserDataHandler targetFeatureCloner
public Target(String name, Element maryxmlElement)
name
- a name for the target, which may or may not coincide with the segment name.maryxmlElement
- the phone or boundary element in the MaryXML tree to be associated with this target.public Element getMaryxmlElement()
public String getName()
public FeatureVector getFeatureVector()
public void setFeatureVector(FeatureVector featureVector)
public float getTargetDurationInSeconds()
public void setTargetDurationInSeconds(float newDuration)
newDuration
- newDurationpublic float getTargetF0InHz()
public boolean hasFeatureVector()
public boolean isSilence()
public Allophone getAllophone()
Copyright © 2000–2018 DFKI GmbH. All rights reserved.