Giter VIP home page Giter VIP logo

lucy's Introduction

Lucy Conversation

Chat with Lucy!

This recipe is based on IBM TJBot and uses the Watson Assistant and other Watson services to turn Lucy into a chatting robot.

Some possible things to tell her:

  • "Lucy how are you?" - To get to know about her feelings.
  • "Hello Lucy" - Lucy will say hello and waves her arm.
  • "Lucy turn the light to red" - Switch the LED to the given color.
  • "Lucy start disco party" - Rotate through all LED colors.
  • "What time is it, Lucy?" - Lucy tells you the time.
  • "Lucy what is this?" - Lucy takes a photo and tries to guess what she sees.
  • "Lucy go to bed" - Ends the conversation

Hardware

This recipe requires a TJBot with a microphone, a speaker, a LED, a servo arm and a camera.

Build and Run

Bootstrap

First, make sure you have configured your Raspberry Pi for TJBot by following the bootstrap instructions.

Using Audio and the LED together

To use the LED and Audio in paralled I use an external USB sound card.

To get this up and running Audio must be blacklisted, but not all modules!

After bootstrap script has been run enter

$ sudo vi /etc/modprobe.d/tjbot-blacklist-snd.conf

and delete the last line:

$ blacklist snd

Save the changes and restart the system.

Dependencies and configuration

Next, go to the lucy folder and install the dependencies.

$ cd lucy
$ npm install

Import the workspace-lucy.json file into the Watson Assistant service and note the workspace ID.

Create instances of all the required Watson services and note the authentication credentials.

Make a copy the default configuration file and update it with the Watson service credentials and the conversation workspace ID.

$ cp config.default.js config.js
$ nano config.js
<enter your service credentials and the conversation workspace ID in the specified places>

Run!

sudo node lucy.js

Note the sudo command. Root user access is required to run TJBot recipes.

Watson Services

License

This project is licensed under Apache 2.0. Full license text is available in LICENSE.

lucy's People

Contributors

marzls avatar

Watchers

 avatar

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.