diff options
author | Clayton G. Hobbs <clay@lakeserv.net> | 2016-02-12 19:27:32 -0500 |
---|---|---|
committer | Clayton G. Hobbs <clay@lakeserv.net> | 2016-02-12 19:27:32 -0500 |
commit | bc07966df1831a73df715bec4ef7014631c9dadb (patch) | |
tree | 6862e58851579f6b92740c01ace47e8b01e56540 /recognizer.py | |
parent | 9b9cc013ab324b98fcb3ec883c97d57df232a808 (diff) |
Only write the strings file if necessary
Now we check a hash of the voice commands before writing the strings file to reduce how much we write to the hard disk. In implementing this, I realized that some code was being duplicated in an easily fixable way, so I created a Hasher object that keeps track of the hash.json file. Resolves #6
Diffstat (limited to 'recognizer.py')
-rw-r--r-- | recognizer.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/recognizer.py b/recognizer.py index 2ab1945..b54c055 100644 --- a/recognizer.py +++ b/recognizer.py @@ -15,7 +15,8 @@ Gst.init(None) class Recognizer(GObject.GObject): __gsignals__ = { - 'finished' : (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, (GObject.TYPE_STRING,)) + 'finished' : (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, + (GObject.TYPE_STRING,)) } def __init__(self, config): |