Modifier and Type | Field and Description |
---|---|
float |
end |
String |
filename |
protected boolean |
haveFeatures |
int |
index |
float |
middle |
Unit |
next |
Unit |
previous |
float |
start |
int |
unitNum |
String |
unitType |
Constructor and Description |
---|
Unit() |
Unit(String unitType,
int unitNum,
String filename,
float start,
float middle,
float end,
Unit previous,
Unit next,
int index)
Creates a new Unit entry for the catalog.
|
Modifier and Type | Method and Description |
---|---|
void |
dumpLeftF0(DataOutputStream out) |
void |
dumpPseudoTargetValues(DataOutputStream out,
int numByteVals,
int numShortVals,
int numFloatVals) |
void |
dumpRightF0(DataOutputStream out) |
boolean |
dumpTargetValues(DataOutputStream out) |
int |
getEndFrame() |
int |
getStartFrame() |
void |
setF0(float leftF0,
float rightF0) |
void |
setStartEnd(int start,
int end) |
void |
setValues(byte[] byteValues,
short[] shortValues,
float[] floatValues) |
String |
toString() |
public String unitType
public int unitNum
public String filename
public float start
public float middle
public float end
public Unit previous
public Unit next
public int index
protected boolean haveFeatures
public Unit()
public Unit(String unitType, int unitNum, String filename, float start, float middle, float end, Unit previous, Unit next, int index)
unitType
- the type of this unitunitNum
- the index of this unitfilename
- (without extension) where the audio and STS data for this unit can be foundstart
- the timing info (in seconds) for where the audio and STS data for this unit starts in filenamemiddle
- the timing info (in seconds) for where the middle of the audio and STS data for this unit is in filenameend
- the timing info (in seconds) for where the audio and STS data for this unit ends in filenameprevious
- the unit preceding this one in the recorded utterancenext
- the unit following this one in the recorded utteranceindex
- the index of this unit in the overall catalogpublic void setValues(byte[] byteValues, short[] shortValues, float[] floatValues)
public void setStartEnd(int start, int end)
public void setF0(float leftF0, float rightF0)
public int getEndFrame()
public int getStartFrame()
public boolean dumpTargetValues(DataOutputStream out) throws IOException
IOException
public void dumpPseudoTargetValues(DataOutputStream out, int numByteVals, int numShortVals, int numFloatVals) throws IOException
IOException
public void dumpLeftF0(DataOutputStream out) throws IOException
IOException
public void dumpRightF0(DataOutputStream out) throws IOException
IOException
Copyright © 2000–2016 DFKI GmbH. All rights reserved.