Type in the command to download:
sudo wget
https://sourceforge.net/projects/cmusphinx/files/sphinxbase/5prealpha/sphinxbase-5preal
pha.tar.gz/download -O sphinxbase.tar.gz
sudo wget
https://sourceforge.net/projects/cmusphinx/files/pocketsphinx/5prealpha/pocketsphinx-5p
realpha.tar.gz/download -O pocketsphinx.tar.gz
GNU Wget (or just Wget, formerly Geturl, also written as its package name, wget) is a
computer program that retrieves content from web servers. It is part of the GNU Project.
Its name derives from World Wide Web. It supports downloading via HTTP, HTTPS, and
FTP.( https://en.wikipedia.org/wiki/Wget)
NOTE: The -O in the command above is the letter O ,not0( the number ), meaning the
documents will not be written to the appropriate files, but all will be concatenated together
and written to file.
Extract the files into separate directories:
sudo tar -xzvf sphinxbase.tar.gz
sudo tar -xzvf pocketsphinx.tar.gz
Tarball( tar ) is a type of format that combines and compress multiple files.
-x: Extract a tar ball.
-z: Decompress and extract the contents of the compressed archive created by gzip
program (tar.gz extension)
-v: Verbose output or show progress while extracting files.
-f: Specify an archive or a tarball filename
Then install bison, ALSA, and swig:
sudo apt-get install bison libasound2-dev swig
sudo apt-get install python3 python3-dev python3-pip build-essential libpulse-dev
Bison is a program that converts the formal description of a computer language grammar
into a C language program that can parse the syntax and symbols of that grammar into
instructions that the computer can execute.
ALSA, also known as Advanced Linux Sound Architecture, is a software framework and
part of the Linux kernel that provides an application programming interface (API) for sound
card device drivers.
Swig, the Simplified Wrapper and Interface Generator, is an open-source software tool
used to connect computer programs or libraries written in C or C++ with other scripting
languages, in our case, Python.
More information:
https://whatis.techtarget.com/definition/Bison
https://en.wikipedia.org/wiki/Advanced_Linux_Sound_Architecture
https://en.wikipedia.org/wiki/SWIG