diff options
author | Clayton G. Hobbs <clay@lakeserv.net> | 2015-12-27 11:56:08 -0500 |
---|---|---|
committer | Clayton G. Hobbs <clay@lakeserv.net> | 2015-12-27 11:56:08 -0500 |
commit | 5a944237bdc6bdbdb3d630be8819373c3b9508dd (patch) | |
tree | 38512eb7f4a4f4a09d2113c942c3a4d1718b05c1 /recognizer.py | |
parent | d722e33a351e65077c636f7a92011a0e82a59973 (diff) |
Beginning work moving from YAML to JSON
Mostly working for the options file now. Still some difficulty with command-line arguments, though; they're overriding the config file even when not specified. If I made them simply not get stored at all when not specified, there would be further problems when a configuration file is not present. Maybe I should make a whole new class to handle this.
Diffstat (limited to 'recognizer.py')
-rwxr-xr-x | recognizer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recognizer.py b/recognizer.py index bb35480..0a65b7a 100755 --- a/recognizer.py +++ b/recognizer.py @@ -29,9 +29,9 @@ class Recognizer(GObject.GObject): audio_src = 'autoaudiosrc' # Build the pipeline - cmd = audio_src+' ! audioconvert ! audioresample ! pocketsphinx name=asr ! appsink sync=false' + cmd = audio_src + ' ! audioconvert ! audioresample ! pocketsphinx name=asr ! appsink sync=false' try: - self.pipeline=Gst.parse_launch( cmd ) + self.pipeline = Gst.parse_launch( cmd ) except Exception as e: print(e.message) print("You may need to install gstreamer1.0-pocketsphinx") |