I will probably set this up for my adserver project.
This article is good but it doesn’t mention downloading, building and installing pocketsphinx, only sphinxbase.
I got it working after following the additional instructions here:
How to get into the swiping game with the beta version of Motion Layout — A guide on implementing a swipeable stack of cards
— Read on badootech.badoo.com/swipe-right-on-motion-layout-641c1452d6a5