See also
Overview | C++ | Python | .Net | Java | Matlab | Urbi
Python SDK | Python SDK Install Guide | Python tutorials | Python Examples | Python SDK tips and tricks
The Python API for NAO allows you to:
Using Python is one of the easiest ways to program with NAO.
Please make sure to have read the NAOqi Framework section first.
The basic approach is:
This can be seen in the following example, which is explored in detail in the tutorial: Using the API - Making NAO speak.
from naoqi import ALProxy
tts = ALProxy("ALTextToSpeech", "<IP of your robot>", 9559)
tts.say("Hello, world!")
Or in Japanese:
# -*- encoding: UTF-8 -*-
from naoqi import ALProxy
tts = ALProxy("ALTextToSpeech", "<IP of your robot>", 9559)
tts.setLanguage("Japanese")
tts.say("こんにちは")
Please read the Python SDK Install Guide section.
A progressing series of tutorials is available in the Python tutorials section.
See also the Python Examples section.