public static void load(marytts.modules.synthesis.Voice maryVoice) throws NoSuchPropertyException {
  if (mary2freettsVoices == null)   mary2freettsVoices=new HashMap<marytts.modules.synthesis.Voice,com.sun.speech.freetts.Voice>();
  if (freetts2maryVoices == null)   freetts2maryVoices=new HashMap<com.sun.speech.freetts.Voice,marytts.modules.synthesis.Voice>();
  if (mary2freettsVoices.containsKey(maryVoice))   return;
  load(maryVoice,createFreeTTSVoice(maryVoice));
}

public static void load ( marytts . modules . synthesis . Voice maryVoice ) throws NoSuchPropertyException { if ( mary2freettsVoices == null ) mary2freettsVoices = new HashMap < marytts . modules . synthesis . Voice , com . sun . speech . freetts . Voice > ( ) ; if ( freetts2maryVoices == null ) freetts2maryVoices = new HashMap < com . sun . speech . freetts . Voice , marytts . modules . synthesis . Voice > ( ) ; if ( mary2freettsVoices . containsKey ( maryVoice ) ) return ; load ( maryVoice , createFreeTTSVoice ( maryVoice ) ) ; }
add a freetts voice for a given mary voice . this is used by load ( ) , but can also be called separately . repeated registration of the same voice will be ignored , so it is safe to call this several times with the same maryvoice . this depends on the mary property " freetts . lexicon . preload " setting - - if that results to false , nothing will be loaded ; if the setting is missing , a nosuchpropertyexception will be thrown .
