Just finished the section explaining how to build an offline speech recognition system with PocketSphinx in American English and Brazilian Portuguese languages. I did not go into details of the C++ code I wrote over the API. The code is well commented and freely available on my GitHub.
I found a video of the system running on Ubuntu. Here it follows.