synchronized Voice getFreeTTSVoice() { if (freettsVoice == null) { try { Class clazz = Class.forName(freettsVoiceClassName); freettsVoice = (Voice) clazz.newInstance();  freettsVoice.setPitch(defaultPitch); freettsVoice.setPitchRange(defaultPitchRange); freettsVoice.setRate(defaultSpeakingRate); freettsVoice.setVolume(defaultVolume); if (dbName != null) { freettsVoice.getFeatures().setString( Voice.DATABASE_NAME, dbName); }  } catch (ClassNotFoundException cnfe) { } catch (IllegalAccessException iae) { } catch (InstantiationException ie) { } } return freettsVoice;
synchronized com.sun.speech.freetts.Voice getFreeTTSVoice() { return freettsVoice;
    synchronized Voice getFreeTTSVoice() {	if (freettsVoice == null) {	    try { 		Class clazz = Class.forName(freettsVoiceClassName);		freettsVoice = (Voice) clazz.newInstance();		freettsVoice.setPitch(defaultPitch);		freettsVoice.setPitchRange(defaultPitchRange);		freettsVoice.setRate(defaultSpeakingRate);		freettsVoice.setVolume(defaultVolume);		if (dbName != null) {		    freettsVoice.getFeatures().setString(			    Voice.DATABASE_NAME, dbName);		}	    } catch (ClassNotFoundException cnfe) {	    } catch (IllegalAccessException iae) {	    } catch (InstantiationException ie) {	    }	}	return freettsVoice;    }