marytts.tools.voiceimport
Class HMMVoiceMakeData

java.lang.Object
  extended by marytts.tools.voiceimport.VoiceImportComponent
      extended by marytts.tools.voiceimport.HMMVoiceMakeData

public class HMMVoiceMakeData
extends VoiceImportComponent


Field Summary
 java.lang.String ADAPTSCRIPTS
           
 java.lang.String allophonesFile
           
 java.lang.String CMPMARY
           
 java.lang.String featureListFile
           
 java.lang.String GVMARY
           
 java.lang.String LABELMARY
           
 java.lang.String LF0
           
 java.lang.String LIST
           
 java.lang.String MAG
           
 java.lang.String MGC
          Tree files and TreeSet object
 java.lang.String questionsFile
           
 java.lang.String QUESTIONSMARY
           
 java.lang.String SCP
           
 java.lang.String STR
           
 java.lang.String trickyPhonesFile
           
 
Fields inherited from class marytts.tools.voiceimport.VoiceImportComponent
bnl, logger, props, props2Help
 
Constructor Summary
HMMVoiceMakeData()
           
 
Method Summary
static boolean checkTrickyPhones(java.lang.String phoneXML, java.lang.String trickyFile)
          This function checks if replacements or aliases for tricky phones are necessary (so HTK-HHEd can handle the phone names), if so it will create a trickyFile containing the replacements.
 boolean compute()
          Do the computations required by this component.
 java.util.SortedMap<java.lang.String,java.lang.String> getDefaultProps(DatabaseLayout db)
          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.
static void main(java.lang.String[] args)
           
protected  void setupHelp()
           
 
Methods inherited from class marytts.tools.voiceimport.VoiceImportComponent
getHelpText, getHelpTextForProp, getProp, initialise, initialiseComp, setProp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MGC

public final java.lang.String MGC
Tree files and TreeSet object


LF0

public final java.lang.String LF0

MAG

public final java.lang.String MAG

STR

public final java.lang.String STR

CMPMARY

public final java.lang.String CMPMARY

GVMARY

public final java.lang.String GVMARY

LABELMARY

public final java.lang.String LABELMARY

QUESTIONSMARY

public final java.lang.String QUESTIONSMARY

LIST

public final java.lang.String LIST

SCP

public final java.lang.String SCP

questionsFile

public final java.lang.String questionsFile

allophonesFile

public java.lang.String allophonesFile

featureListFile

public final java.lang.String featureListFile

trickyPhonesFile

public final java.lang.String trickyPhonesFile

ADAPTSCRIPTS

public final java.lang.String ADAPTSCRIPTS
Constructor Detail

HMMVoiceMakeData

public HMMVoiceMakeData()
Method Detail

getName

public java.lang.String getName()
Description copied from class: VoiceImportComponent
Get the name of this component

Specified by:
getName in class VoiceImportComponent
Returns:
the name

getDefaultProps

public java.util.SortedMap<java.lang.String,java.lang.String> getDefaultProps(DatabaseLayout db)
Get the map of properties2values containing the default values

Specified by:
getDefaultProps in class VoiceImportComponent
Returns:
map of props2values

setupHelp

protected void setupHelp()
Specified by:
setupHelp in class VoiceImportComponent

compute

public boolean compute()
                throws java.lang.Exception
Do the computations required by this component.

Specified by:
compute in class VoiceImportComponent
Returns:
true on success, false on failure
Throws:
java.lang.Exception

checkTrickyPhones

public static boolean checkTrickyPhones(java.lang.String phoneXML,
                                        java.lang.String trickyFile)
This function checks if replacements or aliases for tricky phones are necessary (so HTK-HHEd can handle the phone names), if so it will create a trickyFile containing the replacements. This file should be used afterwards to create the PhoneTranslator object used in makeLabels, makeQuestions and JoinModelller. Also it is necessary when loading the HTS trees to replace back the tricky phones. If a trickyFile is created when training a voice, the tricky file name will be included in the configuration file of the voice. CHECK not sure how/where to keep this file for the JoinModeller?

Parameters:
phoneXML - allophonesFile for the voice or language (full path).
trickyFile - name of the file where the tricky phone replacements are saved (full path).
Returns:
true if trickyPhones.txt file is created, false otherwise.

getProgress

public int getProgress()
Provide the progress of computation, in percent, or -1 if that feature is not implemented.

Specified by:
getProgress in class VoiceImportComponent
Returns:
-1 if not implemented, or an integer between 0 and 100.

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception