Thank you very much.
Then, I guess that I will try it with the python wrapper of Pocketsphinx first, to understand which functions are useful because it is not very clear in its codebase as you also said.
I understood how to return the data through OpenEars thanks to your very well commented code, I do not think that it will be problem. Just need to solve C implementation details.
Have a nice day. Sincerely,