Skip to main content

An interface for embodied conversational interaction.

Project description

PyLips

Downloads PyPI version License: MIT

The PyLips Logo

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.

The PyLips Faces

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!

If you use PyLips in an academic publication, please use this

@inproceedings{dennler2024pylips,
  title={PyLips: an Open-Source Python Package to Expand Participation in Embodied Interaction},
  author={Dennler, Nathaniel Steele and Torrence, Evan and Yoo, Uksang and Nikolaidis, Stefanos and Mataric, Maja},
  booktitle={Adjunct Proceedings of the 37th Annual ACM Symposium on User Interface Software and Technology},
  pages={1--4},
  year={2024}
}

History

0.0.17

  • adds support for moving keypoints directly via RobotFace.set_component_offsets().
  • adds optional parameter to turn off default viseme animation if desired in RobotFace.say(), RobotFace.say_file(), and RobotFace.stream_file_to_browser().

0.0.16

  • adds support for playing audio through browser instead of through pygame.

0.0.0 (2024-03-24)

  • pylips begins

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

pylips-0.0.17.tar.gz (63.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylips-0.0.17-py3-none-any.whl (62.1 kB view details)

Uploaded Python 3

File details

Details for the file pylips-0.0.17.tar.gz.

File metadata

  • Download URL: pylips-0.0.17.tar.gz
  • Upload date:
  • Size: 63.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for pylips-0.0.17.tar.gz
Algorithm Hash digest
SHA256 8dac9a2043f2a32e06f934ce6681b44cb8d3bb4d376c9110cdc78b4e84b2647d
MD5 496bdef8f3213a70e4d5ab69bb720ef4
BLAKE2b-256 081099d4e2c5b8c61a68a8e3995572a7bbdc2c8aab17f72c12b7cc50d04f8416

See more details on using hashes here.

File details

Details for the file pylips-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: pylips-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 62.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for pylips-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 0288538d5c7557b368bcd4cec9e0f5f712afcfed17938df254ff76b2c3190745
MD5 6e3b8f5bfa7062412cbcb047a225dc6e
BLAKE2b-256 4318eff6f178fe15f1db9b7f4ed6328dc776244ee14aef6b09055764e5e4db32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page