I want to get the value of "value"? How should I use the event in Python?
a = self.memoryProxy.subscribeToEvent("ALTextToSpeech/Status", "value",str)
print "value"
self.tts.setParameter("pitchShift", 1.1)
self.tts.post.say(str)
Depending on your naoqi version, you might use one of the following patterns.
The old way goes like this (see Naoqi doc):
Careful, there are a few hidden tricks in there, that for instance force you to put the event management code in your main file.
In newer versions, you can use this more functional-friendly pattern: