Giter VIP home page Giter VIP logo

airis's Introduction

AIris

(Basic) Mac Version. (Pocketsphinx)

  • I wrote this program for testing PocketSphinx and see the differencies with Apple Speech Recognition.

  • An Artificial Intelligence Bot written in Python and Rivescript

  • It has a command line mode and a speech mode

  • For installation see 'requirements.txt' or read below

Installation:

  • Rivescript: pip install rivescript
  • SpeechRecognition: Requirements: brew install portaudio , brew link portaudio , pip install pyaudio . then pip install SpeechRecognition
  • Monotonic for python2: pip install monotonic
  • Pocketsphinx: Requirements: brew install swig git . then pip install pocketsphinx
  • (if you get the error 'OSError dlopen(libasound.so)' type the command 'csrutil disable' in recovery mode. this has worked for me.

Usage:

  • Type 'python main0.7.py' in Terminal
  • The program asks for your Username (this name will be used to store your variables, ie. name, age, etc.).
  • Then choose between command line mode or speech mode.
  • Now the bot is ready to accept your input. Your chat history and your variables will be saved in a JSON file, so that once you log back (using the same Username) they will be restored and the bot will know it's you.

Bot's knowledge

Inside the 'brain' folder you can customize the bot's knowledge and actions that correspond to your input.

  • Most of the files in this folder are 'default', i just copied and pasted them, i only edited the 'begin' file so that it introduces to a new user asking for his name. I created the files 'system_functions.rive' and 'topics.rive'

  • The basics system actions are controlling the input and output volume, empty trash, enable/disable wifi, list the wifi connection available.

  • Please go to 'https://www.rivescript.com/docs/tutorial' for more info about Rivescript

airis's People

Contributors

br4in avatar

Watchers

James Cloos avatar  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.