} catch (IOException ex) {
// Connection failed -- fall through.
}
// The local server couldn't be reached--try spawning one.
PhonemicDaemon daemon;
try {
daemon = TextToSpeechFactory.newPhonemicDaemon(speech);
daemon.bind();
daemon.start();
// Attempt to connect.
tts = TextToSpeechFactory.getPhonemicClient("localhost");
instance = tts;
return tts;