// start the microphone or exit if the programm if this is not possible
Microphone microphone = (Microphone) cm.lookup("microphone");
if (!microphone.startRecording()) {
System.out.println("Cannot start microphone.");
recognizer.deallocate();
System.exit(1);
}
System.out.println("Say: (Abracadabra | Accio | Aguamenti | "
+ "Avada Kedavra | Avis | Confringo | Confundo | Crucio | Densaugeo | "