old_contents: from java.lang import String
  from org.myrobotlab.service import Speech
  from org.myrobotlab.service import Sphinx
  from org.myrobotlab.service import Runtime
  
  # create ear and mouth
  ear = Runtime.createAndStart("ear","Sphinx")
  mouth = Runtime.createAndStart("mouth","Speech")
  
  # start listening for the words we are interested in
  ear.startListening("hello world|happy monkey")
  
  
  # set up a message route from the ear --to--> python method "heard"
  ear.addListener("recognized", python.name, "heard", String().getClass()); 
  
  # this method is invoked when something is 
  # recognized by the ear - in this case we
  # have the mouth "talk back" the word it recognized
  def heard():
        data = msg_ear_recognized.data[0]
        mouth.speak("you said " + data)
        print "heard ", data
      
  # prevent infinite loop - this will suppress the
  # recognition when speaking - default behavior
  # when attaching an ear to a mouth :)
  ear.attach("mouth")
  
  
new_contents: from java.lang import String
  from org.myrobotlab.service import Speech
  from org.myrobotlab.service import Sphinx
  from org.myrobotlab.service import Runtime
   
  # create ear and mouth
  ear = Runtime.createAndStart("ear","Sphinx")
  mouth = Runtime.createAndStart("mouth","Speech")
   
  # start listening for the words we are interested in
  ear.startListening("hello world|happy monkey|go forward|stop")
   
   
  # set up a message route from the ear --to--> python method "heard"
  ear.addListener("recognized", python.name, "heard", String().getClass()); 
   
  # this method is invoked when something is 
  # recognized by the ear - in this case we
  # have the mouth "talk back" the word it recognized
  def heard(phrase):
        mouth.speak("you said " + phrase)
        print "heard ", phrase
       
  # prevent infinite loop - this will suppress the
  # recognition when speaking - default behavior
  # when attaching an ear to a mouth :)
  ear.attach(mouth)
  
subject: Update Sphinx.py