public abstract class AbstractTimelineMaker extends VoiceImportComponent
| Modifier and Type | Field and Description |
|---|---|
protected TimelineReader |
basenameTimeline |
protected String |
BASENAMETIMELINE |
protected String |
DATADIR |
protected String |
DATAEXT |
protected TimelineWriter |
dataTimeline |
protected String |
DATATIMELINE |
protected DatabaseLayout |
db |
protected int |
percent |
bnl, logger, props, props2Help| Constructor and Description |
|---|
AbstractTimelineMaker() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compute()
Read and concatenate a list of data files into a single timeline file.
|
SortedMap<String,String> |
getDefaultProps(DatabaseLayout theDB)
Get the map of properties2values containing the default values
|
protected abstract String |
getProcessingHeader()
generate a processing header for the
TimelineWriter |
int |
getProgress()
Provide the progress of computation, in percent, or -1 if that feature is not implemented.
|
abstract String |
getType()
get the type of this
VoiceImportComponent |
protected void |
initializeDataTimeline(marytts.tools.voiceimport.AbstractDataFile dataFile)
initialize the data timeline, using one
AbstractDataFile to provide the parameters |
protected abstract marytts.tools.voiceimport.AbstractDataFile |
loadDataFile(File file)
load an
AbstractDataFile |
protected void |
setupHelp() |
getHelpText, getHelpTextForProp, getName, getProp, initialise, initialiseComp, setPropprotected final String DATADIR
protected final String DATATIMELINE
protected final String BASENAMETIMELINE
protected final String DATAEXT
protected int percent
protected DatabaseLayout db
protected TimelineWriter dataTimeline
protected TimelineReader basenameTimeline
public abstract String getType()
VoiceImportComponentpublic SortedMap<String,String> getDefaultProps(DatabaseLayout theDB)
getDefaultProps in class VoiceImportComponenttheDB - theDBprotected void setupHelp()
setupHelp in class VoiceImportComponentpublic boolean compute()
throws IOException,
MaryConfigurationException
compute in class VoiceImportComponentIOException - IOExceptionMaryConfigurationExceptionprotected abstract marytts.tools.voiceimport.AbstractDataFile loadDataFile(File file)
AbstractDataFilefile - to loadprotected void initializeDataTimeline(marytts.tools.voiceimport.AbstractDataFile dataFile)
throws IOException
AbstractDataFile to provide the parametersdataFile - to provide parametersIOException - IOExceptionprotected abstract String getProcessingHeader() throws IOException
TimelineWriterIOException - IOExceptionpublic int getProgress()
getProgress in class VoiceImportComponentCopyright © 2000–2016 DFKI GmbH. All rights reserved.