public class VocalizationIntonationReader extends Object
Constructor and Description |
---|
VocalizationIntonationReader(String fileName)
Create a unit file reader from the given unit file
|
Modifier and Type | Method and Description |
---|---|
double[] |
getContour(int unitIndexNumber)
get an intonation contour
|
double[] |
getIntonationCoeffs(int unitIndexNumber)
get an intonation polynomial coeffs
|
int |
getNumberOfUnits()
Get the number of units in the file.
|
double |
getSkipSizeInSeconds() |
boolean[] |
getVoicings(int unitIndexNumber) |
double |
getWindowSizeInSeconds() |
void |
load(String fileName)
Load the given unit file
|
static void |
main(String[] args) |
public VocalizationIntonationReader(String fileName) throws IOException, MaryConfigurationException
fileName
- the unit file to readIOException
- if a problem occurs while readingMaryConfigurationException
- MaryConfigurationExceptionpublic void load(String fileName) throws IOException, MaryConfigurationException
fileName
- the unit file to readIOException
- if a problem occurs while readingMaryConfigurationException
- MaryConfigurationExceptionpublic int getNumberOfUnits()
public double[] getContour(int unitIndexNumber)
unitIndexNumber
- unitIndexNumberpublic boolean[] getVoicings(int unitIndexNumber)
public double getWindowSizeInSeconds()
public double getSkipSizeInSeconds()
public double[] getIntonationCoeffs(int unitIndexNumber)
unitIndexNumber
- unitIndexNumberCopyright © 2000–2016 DFKI GmbH. All rights reserved.