1

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.

0

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

https://github.com/alphacep/kaldi-websocket-python/blob/master/test_local.py

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. – diffLocks16 Aug 28 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. – diffLocks16 Aug 31 at 1:42
  • You have to edit the actual kaldi path in Makefile – Nikolay Shmyrev Aug 31 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. – diffLocks16 Sep 1 at 1:10
  • You have to recompile Kaldi with --shared configure option – Nikolay Shmyrev Sep 1 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.