import voce.*; void setup() { size(200,200); background(0); voce.SpeechInterface.init("/Users/rtwomey/processing/libraries/voce/library", true, true, dataPath(""), "tednelson"); System.out.println("This is a speech recognition test. "); } void draw() { stroke(255); while (voce.SpeechInterface.getRecognizerQueueSize() > 0){ String s = voce.SpeechInterface.popRecognizedString(); println("You said: " + s); if((s.indexOf("quit") >= 0) || (s.indexOf("exit") >= 0) || (s.indexOf("stop") >= 0)) exit(); voce.SpeechInterface.synthesize(s); } }