public class SPTKMFCCExtractor extends VoiceImportComponent
Modifier and Type | Field and Description |
---|---|
String |
INWAVDIR |
String |
OUTMFCCDIR |
protected int |
percent |
String |
SOXCOMMAND |
String |
SPTKINST |
bnl, logger, props, props2Help
Constructor and Description |
---|
SPTKMFCCExtractor() |
Modifier and Type | Method and Description |
---|---|
boolean |
compute()
Do the computations required by this component.
|
SortedMap<String,String> |
getDefaultProps(DatabaseLayout db)
Get the map of properties2values containing the default values
|
String |
getName()
Get the name of this component
|
int |
getProgress()
Provide the progress of computation, in percent, or -1 if that feature is not implemented.
|
void |
getSptkMfcc(String inFile,
String outFile)
Calculate mfcc using SPTK, uses sox to convert wav→raw
|
protected void |
initialiseComp()
Initialise a voice import component: component specific initialisation; to be overwritten by subclasses
|
protected void |
setupHelp() |
getHelpText, getHelpTextForProp, getProp, initialise, setProp
public final String SPTKINST
public final String SOXCOMMAND
public final String INWAVDIR
public final String OUTMFCCDIR
protected int percent
protected void setupHelp()
setupHelp
in class VoiceImportComponent
public SortedMap<String,String> getDefaultProps(DatabaseLayout db)
VoiceImportComponent
getDefaultProps
in class VoiceImportComponent
db
- dbpublic final String getName()
VoiceImportComponent
getName
in class VoiceImportComponent
protected void initialiseComp()
VoiceImportComponent
initialiseComp
in class VoiceImportComponent
public boolean compute() throws Exception
VoiceImportComponent
compute
in class VoiceImportComponent
Exception
- Exceptionpublic int getProgress()
VoiceImportComponent
getProgress
in class VoiceImportComponent
public void getSptkMfcc(String inFile, String outFile) throws IOException, InterruptedException, Exception
inFile
- inFileoutFile
- outFileIOException
- IOExceptionInterruptedException
- InterruptedExceptionException
- ExceptionCopyright © 2000–2016 DFKI GmbH. All rights reserved.