Friday 23 March 2012

Installing CMU Sphinx in Ubuntu 11.10

It took me 2 installation to install CMU Sphinx successfully. But finally now it is working. Actually I also don't know how to install it but the internet helped me out. So the very first thing that you should do to download latest sphinxbase and pocketsphinx from their website.
http://cmusphinx.sourceforge.net/wiki/download/

After downloading the packages Its time for you to download dependencies. Here is the list of packages that I had to install to make it working. Screenshot of my Ubuntu Software Center.


Install all the packages that I have installed today in the screenshot. After installing all the packages now you can extract sphinxbase compressed file and open the directory and open the sphinxbase directory through the terminal and run the following commands which are normally executed to build a packages manually.
./configure
sudo make
sudo make install
Now unpack the pocketsphinx file and enter extracted directory of pocketsphinx using terminal using the cd command. and the above commands again
./configure
sudo make
sudo make install

After executing these command you can also execute this command to clean up all the mess created.
sudo make clean


NOTE: While executing ./configure focus on the output, It still there is any dependencies left to be installed, the configure script will issue an error something like that this package is missing. Install that package and then try again running the ./configure command.
Best of luck
Happy Coding.!! :)

Edit: List of packages so that you can copy and paste

libdpkg-perl
fakeroot
debhelper
libalgorithm-merge-perl
libgstreamer-plugins-base0.10-dev
libalgorithm-diff-xs-perl
po-debconf
libgstreamer0.10-dev
intltool-debian
gir1.2-gst-plugins-base-0.10
build-essential
dpkg-dev
html2text
patch
libalgorithm-diff-perl
pocketsphinx-hmm-wsj1
libpocketsphinx1
libsphinxbase1
pocketsphinx-utils
pocketsphinx-lm-wsj
gstreamer0.10-pocketsphinx
gir1.2-gstreamer-0.10
libqtgstreamer-0.10-0
libglib2.0-dev
zlib1g-dev
libqtglib-2.0-0
libtool
libltdl-dev
autoconf
automake
autotools-dev
bison
m4