Installing pocketsphinx should work out of the box when calling pip install pocketsphinx but in some cases it doesn’t. If this is the case you might be missing pulseaudio dependencies on your system. Just install pulseaudio-libs and pulseaudio-libs-devel via yum and pocketsphinx should install.