You are having trouble installing pocketsphinx
To provide easy access to pocketsphinx, just install pocketsphinx from the repository, moreover, recently pocketsphinx has been placed in the Ubuntu repository .
If you compile pocketsphinx from sources, the installation process for pocketsphinx is not a problem if you understand the complexity of audio subsystems in Linux. The sound subsystem, unfortunately, is complicated, but as soon as you receive it, everything will be easier. Historically, the audio subsystem is quite fragmented. It includes the following main framework:
Old Unix-like DSP mechanism - everything is handled by the kernel driver. Applications interact with the / dev / dsp device to produce and record sound. ALSA is a new audio subsystem, partly in the kernel, but also has a libasound library for users. ALSA also provides DSP compatibility level through the snd_pcm_oss driver, which creates a / dev / dsp device and emulates audio Pulseaudio - an even newer system that runs on top of the ALSA libasound library but provides an audio server to centralize all processing. To communicate with the library, it also provides the libpulse library, which should be used by applications for recording sound Jack - another sound server also running on top of ALSA, provides the libjack library. Like Pulseaudio, there are other not very popular frameworks, but sphinxbase does not support them. For example, ESD (the old GNOME sound server), ARTS (the old KDE sound server), Portaudio (the portable library used on Windows, Linux, and Mac). The recommended audio structure on Ubuntu is pulseaudio.
Sphinxbase and pocketsphinx support all frameworks and automatically select the one you need at compile time. The highest priority is in the pulseaudio structure. Before installing sphinxbase, you need to decide which structure to use. After that, you need to configure the development part of the appropriate structure.
For example, it is recommended that you install the libpulse-dev package to provide access to pulseaudio , after which sphinxbase will automatically work with Pulseaudio. When you work with pulseaudio, you do not need other frameworks. On the embedded device, try setting up alsa.
In the future, you can quickly get an answer to this and other questions by reading the Pocketsphinx FAQ