diff options
author | Clayton G. Hobbs <clay@lakeserv.net> | 2015-12-27 12:23:14 -0500 |
---|---|---|
committer | Clayton G. Hobbs <clay@lakeserv.net> | 2015-12-27 12:23:14 -0500 |
commit | 443883b6898f2a75e64d8d4797dd448ef3aeda70 (patch) | |
tree | 677ac2ed186368c1004dd23f37ef100973a1a04a /recognizer.py | |
parent | 6347c5fdbb9b963dbd6c2cb5541ef047468806b4 (diff) |
Minor formatting improvements
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 0a65b7a..06a2b87 100755 --- a/recognizer.py +++ b/recognizer.py @@ -12,7 +12,7 @@ import os.path import sys # Define some global variables -this_dir = os.path.dirname( os.path.abspath(__file__) ) +this_dir = os.path.dirname(os.path.abspath(__file__)) class Recognizer(GObject.GObject): @@ -31,7 +31,7 @@ class Recognizer(GObject.GObject): # Build the pipeline 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") |