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, setProppublic final String SPTKINST
public final String SOXCOMMAND
public final String INWAVDIR
public final String OUTMFCCDIR
protected int percent
protected void setupHelp()
setupHelp in class VoiceImportComponentpublic SortedMap<String,String> getDefaultProps(DatabaseLayout db)
VoiceImportComponentgetDefaultProps in class VoiceImportComponentdb - dbpublic final String getName()
VoiceImportComponentgetName in class VoiceImportComponentprotected void initialiseComp()
VoiceImportComponentinitialiseComp in class VoiceImportComponentpublic boolean compute()
throws Exception
VoiceImportComponentcompute in class VoiceImportComponentException - Exceptionpublic int getProgress()
VoiceImportComponentgetProgress in class VoiceImportComponentpublic void getSptkMfcc(String inFile, String outFile) throws IOException, InterruptedException, Exception
inFile - inFileoutFile - outFileIOException - IOExceptionInterruptedException - InterruptedExceptionException - ExceptionCopyright © 2000–2016 DFKI GmbH. All rights reserved.