summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--README.md14
-rwxr-xr-xkaylee.py (renamed from blather.py)16
2 files changed, 15 insertions, 15 deletions
diff --git a/README.md b/README.md
index 1900197..0b6c2d0 100644
--- a/README.md
+++ b/README.md
@@ -20,11 +20,11 @@ but adds a lot of features that go beyond the original purpose of Blather.
 
 1. Move commands.tmp to ~/.config/kaylee/commands.conf and fill the file with
 sentences and command to run
-2. Run blather.py.  This will generate ~/.local/share/kaylee/sentences.corpus
+2. Run kaylee.py.  This will generate ~/.local/share/kaylee/sentences.corpus
 based on sentences in the 'commands' file, then use
 <http://www.speech.cs.cmu.edu/tools/lmtool.html> to create and save a new
 language model and dictionary.
-    * For GTK UI, run blather.py -i g
+    * For GTK UI, run kaylee.py -i g
     * To start a UI in 'continuous' listen mode, use the -c flag
     * To use a microphone other than the system default, use the -m flag
 3. Start talking
@@ -36,13 +36,13 @@ accordingly.
 ### Examples
 
 * To run Kaylee with the GTK UI and start in continuous listen mode:
-`./blather.py -i g -c`
+`./kaylee.py -i g -c`
 
 * To run Kaylee with no UI and using a USB microphone recognized and device 2:
-`./blather.py -m 2`
+`./kaylee.py -m 2`
 
 * To have Kaylee pass the matched sentence to the executed command:
-`./blather.py -p`
+`./kaylee.py -p`
 
 **explanation:** if the commands.conf contains:
 `good morning world: example_command.sh`
@@ -50,10 +50,10 @@ then 3 arguments, 'good', 'morning', and 'world' would get passed to
 example_command.sh as `example_command.sh good morning world`
 
 * To run a command when a valid sentence has been detected:
-	`./blather.py --valid-sentence-command=/path/to/command`
+	`./kaylee.py --valid-sentence-command=/path/to/command`
 	**note:** this can be set in the options.yml file
 * To run a command when a invalid sentence has been detected:
-	`./blather.py --invalid-sentence-command=/path/to/command`
+	`./kaylee.py --invalid-sentence-command=/path/to/command`
 	**note:** this can be set in the options.yml file
 
 ### Finding the Device Number of a USB microphone
diff --git a/blather.py b/kaylee.py
index 23802e8..7aedb22 100755
--- a/blather.py
+++ b/kaylee.py
@@ -19,7 +19,7 @@ from config import Config
 from languageupdater import LanguageUpdater
 
 
-class Blather:
+class Kaylee:
 
     def __init__(self):
         self.ui = None
@@ -90,7 +90,7 @@ class Blather:
                 # Pop off the first item
                 self.history.pop(0)
 
-            # Open and truncate the blather history file
+            # Open and truncate the history file
             hfile = open(self.config.history_file, "w")
             for line in self.history:
                 hfile.write(line + "\n")
@@ -134,7 +134,7 @@ class Blather:
         if self.ui:
             self.ui.run()
         else:
-            blather.recognizer.listen()
+            self.recognizer.listen()
 
     def quit(self):
         sys.exit()
@@ -156,7 +156,7 @@ class Blather:
 
     def load_resource(self, string):
         local_data = os.path.join(os.path.dirname(__file__), 'data')
-        paths = ["/usr/share/blather/", "/usr/local/share/blather", local_data]
+        paths = ["/usr/share/kaylee/", "/usr/local/share/kaylee", local_data]
         for path in paths:
             resource = os.path.join(path, string)
             if os.path.exists(resource):
@@ -166,16 +166,16 @@ class Blather:
 
 
 if __name__ == "__main__":
-    # Make our blather object
-    blather = Blather()
+    # Make our kaylee object
+    kaylee = Kaylee()
     # Init gobject threads
     GObject.threads_init()
     # We want a main loop
     main_loop = GObject.MainLoop()
     # Handle sigint
     signal.signal(signal.SIGINT, signal.SIG_DFL)
-    # Run the blather
-    blather.run()
+    # Run the kaylee
+    kaylee.run()
     # Start the main loop
     try:
         main_loop.run()