
And the for final finishing touch, we want to give the robot some serious personality. For this purpose, we have developed a graphical 3D robot face display showing a single red eye streaming in a river of binary data. Currently, the robot eye tracks the position of the mouse, which can be set to follow real time face tracking in another computer vision processing application. Note that the robot face is really just for looks and does not affect operation of other high level and low level processes controlling the robot. However, one very nice feature of the graphical face display is that it has a real time text-to-speech feature, which can be used in tandem with other applications to make the robot verbally express its thoughts to nearby humans within auditory range. With the graphical face display running, you can use the MMM_Speaker class in Python 2.7 to make the robot talk:
from MMM import MMM
from MMM_Speaker import Speaker
speaker = Speaker() # opens a new OSC connection
speaker.speak("Hello World!") # makes the robot talk