4

I am looking for some library that would allow me to create an offline voice recognition inside my Android app. There will be simple vocabulary consisting of up to 15 short (one word) commands for my app. Response time is crucial in my case.

Is there any viable offline option (free & paid)? I am aware of offline version of Sphinx but will it be the option with fastest response (again, I only need my app to recognize few commands not the whole speech-to-text functionality)?

syntagma
  • 23,346
  • 16
  • 78
  • 134

2 Answers2

5

I've had success using PocketSphinx for this type of application. I'd suggest building the PocketSphinx Demo app, use the online sphinx lmtool to build language model of your short list of commands and see if it meets your response time needs. If the onResults callback isn't fast enough, you can use the onPartialResults callback which returns almost immediately--that's what I do and I'm happy with the performance. The demo app has a little built-in timer in the UI, too.

If you use the online lmtool, you can just take the lm file and the dict file from what it produces, using those to replace the corresponding lm and dict files in the language model they point you to in the demo setup instructions.

It was a bit of a pain to get built, but it was my first time using the NDK, which was finicky.

0

Are you looking for keyword-spotting software? sensoryinc.com has been doing this for years, and only recently made some Android apps. Here is an example in which I'm driving and want to use a voice trigger to record an audio note. Only after I say "hello blue genie" does it start recording my audio note. http://vimeo.com/64658273 (no I don't work for Sensory but I think their tech is greatly underappreciated)

BLeB
  • 1,716
  • 17
  • 24
Ben
  • 51
  • 5
  • seems like an online solution – Vlad Aug 25 '14 at 17:54
  • 1
    No it's in airplane mode the entire time (you can see the little airplane icon in the top to the left of the green battery) – Ben Aug 26 '14 at 17:57
  • @Ben can't seem to find a way to download their SDK. Only videos are on the site! – Dheeraj Bhaskar Nov 04 '14 at 20:34
  • Right, what you saw in the video was distributed to us at a conference - it's an app not an SDK. I'm sure they have one because some years ago I used it, but it's not freely available. – Ben Nov 20 '14 at 04:36