An interface for embodied conversational interaction.
Project description
PyLips
PyLips is a Python-based interface for developing screen-based conversational agents. It is designed to make developing socially assistive robotics easier by providing a simple, expressive, and customizable framework for developing conversational agents.
PyLips is easy to install, simple to use, and open-source. It comes ready to use with your system's speech synthesis tools, and uses other free and open-source software for turning these sounds into facial expressions.
To Install from PyPI
You can install PyLips using pip. To install PyLips, run this command in your terminal:
python3 -m pip install pylips
If you are running PyLips on a Linux Distribution, you may need to also install the following packages:
sudo apt update && sudo apt install espeak-ng ffmpeg libespeak1
PyLips Quickstart
Here is a quick example to test your installation. This code will make your computer face say "Hello, welcome to pylips!". The voice will be the default system voice, but this is something we can change later.
First, we will have to start the PyLips server. This is a simple flask sever that can serve several faces at the same time. To start the server, run the following command:
python3 -m pylips.face.start
This will start the server on port 8000. Do not worry about the warning message, the package will
still work. You can connect any web browser to the urls printed, even across computers on the local network.
For now, just open a browser and go to http://localhost:8000/face
to see the face.
Now open a new terminal tab and run the following code:
from pylips.speech import RobotFace
face = RobotFace()
# you may need to wait here for a minute or two to let allosaurus download on the first run
face.say("Hello, welcome to pylips!")
If all goes well, the face should have said the message!
History
0.0.0 (2024-03-24)
- pylips begins
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pylips-0.0.15.tar.gz
.
File metadata
- Download URL: pylips-0.0.15.tar.gz
- Upload date:
- Size: 53.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5be625e5cd1d1d2154c842a935b2a34f36c6a239a4581929f08d3ce134178ed3 |
|
MD5 | 5d9edd5fa8d20e12f85b915212ad3c94 |
|
BLAKE2b-256 | adee77335b35ab9892d829a9bbd0fe9ca79b10e086450b94b71b9ff53d547cbe |
File details
Details for the file pylips-0.0.15-py3-none-any.whl
.
File metadata
- Download URL: pylips-0.0.15-py3-none-any.whl
- Upload date:
- Size: 53.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2454b92e70e537c721450b15e91757b1d17a03c0416a08438278c3aebdf4711f |
|
MD5 | 25f4acc08f2e6c821cbebf1f54f52086 |
|
BLAKE2b-256 | 82981b84a6734a6c49ccc59d9c30799222d7767038b6b641777c4dbf5826015c |