Skip to content

A Digital Life Assistant (DLA) linking several Python libraries

Notifications You must be signed in to change notification settings

kevlened/pyrson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyrson

A Digital Life Assistant (DLA) currently linking the following libraries:

pyrson may eventually include the following features:

Currently, the project is only supported on Windows due to the dragonfly dependency for speech recognition. Ideally, the libraries will be easy to change in order to accomodate for different platforms/changing technologies/user preferences.

Installation

Download and install the following dependencies:

###Windows 7 32-bit: works 64-bit: works (see notes)

####notes:

  • The libraries must be run with administrator rights unless UAC is disabled.
  • Pywin32 on 64-bit may encounter pywin32 errors on installation that can be fixed.
  • Tests were run using an Intel Core-i5 2500 @3.30 GHz with great performance

Run

Double-click pyrson.py

or

(if UAC is enabled)

  • Set C:\python27 in your PATH environment variable
  • Open cmd as administrator
  • Run python your\pyrson\directory\pyrson.py

Modify

###RiveScript

By default pyrson uses RiveScript as its speech comprehension engine. Documentation for writing your own RiveScript files can be found here. Any RiveScript files in the your\pyrson\directory\bots\RiveScript folder are loaded by pyrson.

In addition to the standard RiveScript responses, pyrson also includes functions to type text, move the mouse, or click within RiveScript. Here are examples:

//shows an alert
+ give me an alert
- <call>alert do what?</call>

//moves the mouse to 100,150
+ move the mouse
- <call>mouse 100 150</call>

//types Look at me! I'm typing.
+ can you type for me?
- <call>typekeys Look at me! I'm typing.<call>

###PyAIML (if installed)

Pyrson can also use AIML instead of RiveScript. It will load all the AIML files in your\pyrson\directory\bots\AIML. Just change the following lines in pyrson.py:

  • from bots import RiveScriptBot to from bots import PyAIML
  • bot_library = RiveScriptBot() to bot_library = PyAIML()
  • botdn = os.path.join(os.path.dirname(__file__),'bots','RiveScript') to botdn = os.path.join(os.path.dirname(__file__),'bots','AIML')

About

A Digital Life Assistant (DLA) linking several Python libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published