Code Monkey home page Code Monkey logo

pylips's Introduction

PyLips

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!

pylips's People

Contributors

ndennler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pylips's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.