summary refs log tree commit diff
path: root/Recognizer.py
diff options
context:
space:
mode:
Diffstat (limited to 'Recognizer.py')
-rwxr-xr-xRecognizer.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Recognizer.py b/Recognizer.py
index 26ccd80..7bc2023 100755
--- a/Recognizer.py
+++ b/Recognizer.py
@@ -26,7 +26,12 @@ class Recognizer(gobject.GObject):
 
 		#build the pipeline
 		cmd = audio_src+' ! audioconvert ! audioresample ! vader name=vad ! pocketsphinx name=asr ! appsink sync=false'
-		self.pipeline=gst.parse_launch( cmd )
+		try:
+			self.pipeline=gst.parse_launch( cmd )
+		except Exception, e:
+			print e.message
+			print "You may need to install gstreamer0.10-pocketsphinx"
+
 		#get the Auto Speech Recognition piece
 		asr=self.pipeline.get_by_name('asr')
 		asr.connect('result', self.result)