This guide is meant to help anyone that is trying to put Jasper on the B+ and is having trouble installing PocketSphinx. I couldn’t get the Phonetisaurus model to build and I was stuck for a few days, mainly due to the fact that these programs take a long time to build. The issue I ran into with Phonetisaurus was some invalid instruction errors. I searched the internet and was able to find this post
The problem is that Phonetisaurus, m2m-aligner and MITLM contained in the experimental repository supplied in the instructions are build for armv7. The B+ is armv6. This explains the invalid instruction errors I was getting.
If you come across this after trying other methods, you must uninstall any packages that came from Debian Experimental. If you are just starting out, you can find the Jasper instructions here.
Let’s Begin: Follow the instructions until you get to the part where you have to install Phonetisaurus, m2m-aligner and MITLM.
1 2 3
1 2 3 4 5 6 7
You can then build the Phonetisaurus model according to the official instructions:
1 2 3 4 5
This will take a couple of hours, so it’s best if you leave it and come back later.
Then rename the directory for convenience:
The PocketSphinx HMM needs to be installed explicitly:
Finally, set the locations of the HMM and the FST model in your profile.yml
1 2 3 4
You should be good to go with PocketSphinx. You can further configure Jasper following the instructions here.
When your configuration is complete, just restart your Pi with your microphone plugged in and Jasper will now work!