Search code examples
androidspeech-recognitionvoice-recognitionspeech-to-textspeech

Small-size speech recognition on Android to look for keywords


I'm developing a voice command app and need to use speech to text in Android. I want my app to work offline. Its yet possible only in jellybean version and it requires huge sized database to download and keep in the device. But i don't require whole database, i just want few keywords for the conversions.

Is it possible to record a .wav files on our own and set its reference to a particular word and when a voice input is given we could match the two voice tracks and recognize the corresponding word accordingly. So basically i want to make my own speech to text dictionary database? If yes then how can i achieve it?


Solution

  • You can try Pocketsphinx on Android:

    http://cmusphinx.sourceforge.net/wiki/tutorialandroid

    It allows you to look for keywords. Database size is about 5mb now, but if you limit keywords it can be reduced to about 500kb. You can learn more about CMUSphinx from website

    http://cmusphinx.sourceforge.net/wiki/tutorial