python = Runtime.createAndStart("python","Python")
mouth = Runtime.createAndStart("Mouth","MouthControl")
arduino = mouth.getArduino()
arduino.connect('COM11')
jaw = mouth.getJaw()
jaw.detach()
jaw.attach(arduino,11)
mouth.setmouth(110,120)
mouth.autoAttach = False
speech = Runtime.createAndStart("Speech","AcapelaSpeech")
mouth.setMouth(speech)
speech.setVoice("Will")
def onEndSpeaking(text):
	mouth.setmouth(90,120)
	jaw.moveTo(95)
	sleep(.5)
	mouth.setmouth(110,120)
python.subscribe(speech.getName(),"publishEndSpeaking")
# Start of main script
speech.speakBlocking("I'm speaking a very long text to test mouth movement")
speech.speakBlocking("A new sentence to test another long sentece") 
speech.speakBlocking("And one more") 

@@ -119,20 +119,15 @@
 uth.
-getA
+a
 rduino
-()
 %0Aard
@@ -143,18 +143,17 @@
 ect('COM
-11
+3
 ')%0Ajaw =
@@ -299,15 +299,12 @@
 h%22,%22
-Acapela
+Mary
 Spee
@@ -312,53 +312,123 @@
 h%22)%0A
-mouth.setMouth(speech)%0Aspeech.setVoice(%22Will%22
+print (%22these are the voices I can have%22, speech.getVoices())%0Aspeech.setVoice('cmu-bdl-hsmm')%0Amouth.setMouth(speech
 )%0Ade

Update MouthControl.py