if (setCurrentVoice((FreeTTSVoice) voices[i])) { try { super.setVoice(voice); break; } catch (PropertyVetoException pve) { continue; } }
try { if (setCurrentVoice((FreeTTSVoice) voices[i])) { try { super.setVoice(voice); break; } catch (PropertyVetoException pve) { continue; } } } catch (EngineException ee) { System.err.println("Engine Exception: " + ee.getMessage()); }
	public void setVoice(javax.speech.synthesis.Voice voice) {	    if (!curVoice.match(voice)) {		// chase through the voice list and find the first match		// and use that.  If no match, just ignore it.		FreeTTSSynthesizerModeDesc desc =		    (FreeTTSSynthesizerModeDesc) getEngineModeDesc();		javax.speech.synthesis.Voice voices[]  = desc.getVoices();		for (int i = 0; i < voices.length; i++) {		    if (voices[i].match(voice)) {			if (setCurrentVoice((FreeTTSVoice) voices[i])) {			    try {				super.setVoice(voice);				break;			    } catch (PropertyVetoException pve) {				continue;			    }			}		    }		}	    }	}