def pocketsphinx_available(): """Return ``True`` if `pocketsphinx` gstreamer plugin is available.""" try: import gst return gst.plugin_load_by_name("pocketsphinx") is not None except Exception: return False
def pocketsphinx_available(): """Return ``True`` if `pocketsphinx` gstreamer plugin is available.""" try: print "Checking for Gstreamer Pocketsphinx plugins......\n" import gst print "Found !!!" return gst.plugin_load_by_name("pocketsphinx") is not None except Exception: print "Gstreamer Pocketsphinx plugins not found !!! \n\n\n" return False