Installing Latest CMUSphinx in Ubuntu18.04
Help Taken from this tutorial. In addition I am adding screenshots. I am making this for my students who are beginners or Ubuntu and CMUSphinx. I will make it as simple as possible.
If you are still having difficulties feel free to comment
sudo apt-get install gcc automake autoconf libtool bison swig python-dev libpulse-devIf you already have installed some of them, you may skip them from command.
We have to install sphinxbase first
For that purpose I will create directories witk mkdir command which is used to create a directory.
Speech/CMUSphinxCMUSphinx will be parent directory which will hold sphinxbase,sphinxtrain and pocketsphinx directories.
Now we need to clone it from GitHub for that purpose we require git.
To check if you already have git or not. Type
git --versionIf it is not installed install it with
sudo apt-get install gitI already have git installed so I am cloning directly.
In other words we are downloading sphinxbase from github. If you are having problem with this step you may manually download and extracts it in your OS.
When clone completed it means we have downloaded it. we may see it in GUI view.
./autogen.sh and press enter.make and press enter.sudo make install and press enter.As shown in screenshots below
./autogen.shmakesudo make installAfter this process Sphinx Source is installed but it have some error as shown in picture below.
you may type sphinx_lm_convert and check on your own.
Open file named ld.so.conf located in root/etc full path is /etc/ld.so.conf by default it will be like below picture.
Note: You will need super user permissions to open these folder and file
add /usr/local/lib to the file and save it. As picture below.
Run the sudo ldconfig and check again with sphinx_lm_convert
If you get screen look like above picture. Problem solved...
You have installed Sphinxbase. Now next step is to install pocketsphinx. We will clone it from github as we did sphinxbase. Go into folder where you want to download it and run the command.
After completion of this step here is the screenshot below.
First change your working directory with cd pocketsphinx
./autogen.sh as shown in picture below. so type the command and press enter. make command. make and press enter. sudo make installPictures are shown below.
Pocketsphinx is installed till this step. Now lets install Sphinxtrain
First step is to clone it for github as we already cloned others.
so type the command git clone https://github.com/cmusphinx/sphinxtrain.git
and press enter.
After the completion of this step.
cd sphinxtrain./autogen.sh and press entermake and press enter.sudo make install and press enter If you followed all above instruction by now you have installed CMUSphinx for training and testing of speech data.