Could anyone recommend a speech recognition library for python 3 which is completely offline and free? If so could you also add steps to installing this library. I have tried pocketsphinx but the live speech recognition is too inaccurate for what I would like.


You can try Kaldi, it is not easy to install, but it is more accurate than pocketsphinx. For local decoding you can use something like


the model is here http://kaldi-asr.org/models/m1

  • Thank you, I'll give it another go installing on Ubuntu because at this point I can't get it to work on Mac OS. If I can install Kaldi then I'll try the websocket. Thank you, if it works I will mark as answered. Aug 28 '19 at 1:02
  • I can't get it to work. I installed Kaldi from here jrmeyer.github.io/asr/2016/01/26/Installing-Kaldi.html but the websocket can't find the directory voice data and won't build. So no idea anymore. Aug 31 '19 at 1:42
  • You have to edit the actual kaldi path in Makefile Aug 31 '19 at 8:33
  • OK thank you. I got past that error and then about five others but there is another one I'm stuck on. This is what I get...D1Ev' can not be used when making a shared object; recompile with -fPIC/usr/bin/ld: final link failed: Bad valuecollect2: error: ld returned 1 exit status. I get it while running make for the web-socket. Sep 1 '19 at 1:10
  • You have to recompile Kaldi with --shared configure option Sep 1 '19 at 10:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.