title: Installing PocketSphinx with GStreamer and Python in a virtualenv
body: <p>Ok, so far I ran the following commands using <a href="http://brew.sh/" rel="nofollow">brew</a> to install the following packages in a newly created virtual environment (in order):</p>
  
  <pre><code>brew install python
  brew install --HEAD watsonbox/cmu-sphinx/cmu-sphinxbase
  brew install --HEAD watsonbox/cmu-sphinx/cmu-pocketsphinx
  brew install gst-python
  brew install gtk+
  </code></pre>
  
  <p>Including all dependencies (as brew automatically does this).</p>
  
  <p>And with this, I can successfully run the pocketsphinx install check:</p>
  
  <pre><code>pocketsphinx_continuous -inmic yes
  </code></pre>
  
  <p>However, I cannot seem to run the code at the end of <a href="http://cmusphinx.sourceforge.net/wiki/gstreamer" rel="nofollow">this</a> tutorial. Is this because I omitted a package to install, or is it that it isn't this easy to install pocketsphinx with gstreamer?</p>
  
  <p>There are two problems that arise.
  One is with creating the pipeline:</p>
  
  <pre><code>self.pipeline = gst.parse_launch('autoaudiosrc ! audioconvert ! audioresample ! pocketsphinx ! fakesink')
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>GLib.Error: gst_parse_error: no element "autoaudiosrc" (1)
  </code></pre>
  
  <p>When I look it up, I find another problem with using the following command to confirm my integration of gstreamer with pocketsphinx:</p>
  
  <pre><code>gst-inspect-1.0 pocketsphinx
  </code></pre>
  
  <p>Terminal returns the following:</p>
  
  <pre><code>No such element or plugin 'pocketsphinx'
  </code></pre>
  
  <p>More researching, I find that I needed to export the GST_PLUGIN_PATH in the .bash_profile, once done so, the error remains. </p>
  
  <p>My final conclusion is that the file <code>pocketsphinx.so</code> is missing from my <code>/usr/local/lib/gstreamer-1.0</code> path. Any ideas of where I went wrong in the installation process, or if I completely installed it the wrong way in the first place?</p>
  
  <p>I am currently using OSX v10.11.3 and Python 2.7.11.</p>