|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarytts.tools.voiceimport.VoiceImportComponent
marytts.tools.voiceimport.CARTBuilder
public class CARTBuilder
| Nested Class Summary | |
|---|---|
static class |
CARTBuilder.WagonCallerThread
|
| Field Summary | |
|---|---|
java.lang.String |
ACFEATUREFILE
|
java.lang.String |
CALLWAGON
|
java.lang.String |
CARTFILE
|
java.lang.String |
ESTDIR
|
java.lang.String |
FEATURESEQFILE
|
java.lang.String |
MAXLEAFSIZE
|
java.lang.String |
MCEPTIMELINE
|
java.lang.String |
NUMPROCESSES
|
java.lang.String |
READFEATURESEQUENCE
|
java.lang.String |
TOPLEVELTREEFILE
|
java.lang.String |
UNITFILE
|
| Fields inherited from class marytts.tools.voiceimport.VoiceImportComponent |
|---|
bnl, logger, props, props2Help |
| Constructor Summary | |
|---|---|
CARTBuilder()
|
|
| Method Summary | |
|---|---|
void |
buildAndDumpDistanceTables(FeatureVector[] featureVectors,
java.lang.String filename,
FeatureDefinition featDef)
Build the distance tables for the units from which we have the feature vectors and dump them to a file with the given filename |
boolean |
compute()
Do the computations required by this component. |
void |
dumpFeatureVectors(FeatureVector[] featureVectors,
FeatureDefinition featDef,
java.lang.String filename)
Dump the given feature vectors to a file with the given filename |
java.util.SortedMap<java.lang.String,java.lang.String> |
getDefaultProps(DatabaseLayout theDb)
Get the map of properties2values containing the default values |
java.lang.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. |
CART |
importCART(java.lang.String filename,
FeatureDefinition featDef)
Read in the CARTs from festival/trees/ directory, and store them in a CARTMap |
void |
initialiseComp()
Initialise a voice import component: component specific initialisation; to be overwritten by subclasses |
static void |
main(java.lang.String[] args)
|
boolean |
replaceLeaves(CART cart,
FeatureDefinition featureDefinition)
For each leaf in the CART, run Wagon on the feature vectors in this CART, and replace leaf by resulting CART |
protected void |
setupHelp()
|
| Methods inherited from class marytts.tools.voiceimport.VoiceImportComponent |
|---|
getHelpText, getHelpTextForProp, getProp, initialise, setProp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String ACFEATUREFILE
public final java.lang.String FEATURESEQFILE
public final java.lang.String TOPLEVELTREEFILE
public final java.lang.String CARTFILE
public final java.lang.String MCEPTIMELINE
public final java.lang.String UNITFILE
public final java.lang.String READFEATURESEQUENCE
public final java.lang.String MAXLEAFSIZE
public final java.lang.String CALLWAGON
public final java.lang.String ESTDIR
public final java.lang.String NUMPROCESSES
| Constructor Detail |
|---|
public CARTBuilder()
| Method Detail |
|---|
public java.lang.String getName()
VoiceImportComponent
getName in class VoiceImportComponentpublic void initialiseComp()
VoiceImportComponent
initialiseComp in class VoiceImportComponentpublic java.util.SortedMap<java.lang.String,java.lang.String> getDefaultProps(DatabaseLayout theDb)
VoiceImportComponent
getDefaultProps in class VoiceImportComponentprotected void setupHelp()
setupHelp in class VoiceImportComponent
public boolean compute()
throws java.lang.Exception
VoiceImportComponent
compute in class VoiceImportComponentjava.lang.Exception
public CART importCART(java.lang.String filename,
FeatureDefinition featDef)
throws java.io.IOException
festvoxDirectory - the festvox directory of a voice
java.io.IOException
public boolean replaceLeaves(CART cart,
FeatureDefinition featureDefinition)
throws java.io.IOException
topLevelCART - the CARTfeatureDefinition - the definition of the features
java.io.IOException
public void dumpFeatureVectors(FeatureVector[] featureVectors,
FeatureDefinition featDef,
java.lang.String filename)
throws java.io.FileNotFoundException
featureVectors - the feature vectorsfeatDef - the feature definitionfilename - the filename
java.io.FileNotFoundException
public void buildAndDumpDistanceTables(FeatureVector[] featureVectors,
java.lang.String filename,
FeatureDefinition featDef)
throws java.io.IOException
featureVectors - the feature vectors of the unitsfilename - the filename
java.io.IOExceptionpublic int getProgress()
getProgress in class VoiceImportComponent
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||