public class MLSAFeatureFileReader extends Object
Constructor and Description |
---|
MLSAFeatureFileReader(String fileName)
Create a feature file reader from the given MLSA feature file
|
Modifier and Type | Method and Description |
---|---|
int |
getLF0VectorSize()
get vector size of LF0 features
|
int |
getMGCVectorSize()
get vector size of MGC features
|
int |
getNumberOfUnits()
Get the number of units in the file.
|
int |
getSTRVectorSize()
get vector size of strength features
|
double[] |
getUnitLF0(int unitnumber)
get array of logf0 features
|
double[][] |
getUnitMGCs(int unitnumber)
get double array of MGC features
|
double[][] |
getUnitStrengths(int unitnumber)
get double array of strength features
|
boolean[] |
getVoicedFrames(int unitnumber)
get boolean array of voiced frame information: true, if voiced; false if unvoiced;
|
static void |
main(String[] args) |
public MLSAFeatureFileReader(String fileName) throws IOException, MaryConfigurationException
fileName
- the unit file to readIOException
- if a problem occurs while readingMaryConfigurationException
- if runtime configuration failspublic int getNumberOfUnits()
public boolean[] getVoicedFrames(int unitnumber)
unitnumber
- unit index numberIllegalArgumentException
- if given index number is not less than available unitspublic double[] getUnitLF0(int unitnumber)
unitnumber
- unit index numberIllegalArgumentException
- if given index number is not less than available unitspublic double[][] getUnitMGCs(int unitnumber)
unitnumber
- unit index numberIllegalArgumentException
- if given index number is not less than available unitspublic double[][] getUnitStrengths(int unitnumber)
unitnumber
- unit index numberIllegalArgumentException
- if given index number is not less than available unitspublic int getMGCVectorSize()
public int getLF0VectorSize()
public int getSTRVectorSize()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.