Hi I want subcribe Event: "SpeechDetected" of ALSpeechRecognition API naoqi for Nao in python. Anyone know how to use this ?? http://doc.aldebaran.com/2-1/naoqi/audio/alspeechrecognition-api.html#SpeechDetected
Asked
Active
Viewed 479 times
1 Answers
0
To do that, you need to create a python NAOqi module, then register to the variable using subscribeToEvent (or subscribeToMicroEvent).
you can have a look there: http://doc.aldebaran.com/2-1/naoqi/core/almemory-tuto.html#almemory-tuto
Beware: due to scoping the python variable must have the same name than the module name you create, as seen in this line:
pythonModule = myModule("pythonModule")

Alexandre Mazel
- 2,462
- 20
- 26
-
Thank for your comment I will try to – KyO Hoai Bac May 25 '17 at 13:05