Furhat Remote API
Project description
furhat
This is the Python Furhat Remote API, used to control the Furhat robot from Python. Find out more at https://docs.furhat.io/remote-api.
Note that the Furhat Remote API Skill needs to be running on the robot for it to work.
This API is generated by the Swagger Codegen. On top of this, some syntactic sugar has been added to make it more intuitive to use in Python.
Requirements.
Python 2.7 and 3.4+
Installation
You can install the package using pip:
pip install furhat-remote-api
(you may need to run pip
with root permission: sudo pip install furhat-remote-api
)
Getting Started
from furhat_remote_api import FurhatRemoteAPI
# Create an instance of the FurhatRemoteAPI class, providing the address of the robot or the SDK running the virtual robot
furhat = FurhatRemoteAPI("localhost")
# Set voice to Matthew (English)
furhat.set_voice(name='Matthew')
# Get the list of users
users = furhat.get_users()
if len(users) > 0:
# Attend the nearest user
furhat.attend(user="CLOSEST")
furhat.say(text="Oh, hello there", blocking=True)
furhat.say(text="Let me show you my cool LED lights", blocking=True)
# Set the LED lights
furhat.set_led(red=255, green=0, blue=0)
furhat.say(text="And a nice gesture", blocking=True)
# Perform a named gesture
furhat.gesture(name="ExpressDisgust", blocking=True)
furhat.say(text="Please say something", blocking=True)
# Listen for speech
answer = furhat.listen()
if answer.message != "":
furhat.say(text="I think you said, " + answer.message, blocking=True)
else:
furhat.say(text="I don't think you said anything", blocking=True)
For a complete documentation of the API, see https://docs.furhat.io/remote-api
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
furhat-remote-api-0.3.4.tar.gz
(18.9 kB
view hashes)
Built Distribution
Close
Hashes for furhat_remote_api-0.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce74fb8056627ee01831408029e28e02e5378f505335df28e56c4f6b01d5d400 |
|
MD5 | 13f34d4c0c40d0e3cf457f5eec9e2f34 |
|
BLAKE2b-256 | 709f3ef4a138d0753966284cb42df0a5adbadcdc69c36ed3522e22fe652a8909 |