Search code examples
androidvoice-recognitionspeech-to-textofflineapps

Android: Speech to Text and Speech Recognition Offline


I am stuck in one of my offline Android Application, where in I need Offline Speech Recognition and Speech to Text API.

Kindly share your views and input if anyone has worked on Offline Speech to Text and Speech Recognition.


Solution

  • You could include your own engine, like the CMU Sphinx Engine. This has also the advantage of working without a data connection.

    See this post on how to install it on Android - however you have to change the Android.mk : Reverse the order of LOCAL_STATIC_LIBRARIES so the line looks like this:

    LOCAL_STATIC_LIBRARIES := pocketsphinx sphinxlm sphinxfeat sphinxfe sphinxutil
    

    Otherwise the NDK will fail to build the package.