Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Voice Recognition without Internet in Android

I have been looking for several voice recognition libraries that supports android but none of them functions without server call or without using internet. My requirement is to detect some particular keywords and perform some actions accordingly without internet i.e. the keyword analysis should be done locally. So is there any voice recognition library that is capable of doing so. CMU Sphinx is the only toolkit that people say can achieve this but it still needs an algorithm to spot a keyword in a speech.

like image 880
Ritesh Kumar Dubey Avatar asked Jun 12 '12 06:06

Ritesh Kumar Dubey


People also ask

Can speech recognition be used offline?

Android does have offline speech recognition capabilities.

Can I use voice assistant without Internet?

Saying "Ok, Google" while offline still launches the Google Assistant, but, you may encounter some issues. Voice recognition may be less accurate while offline, and the Google Assistant may be unable to access the services you're asking for. To fix the second problem, you need to download any relevant data in advance.

Can I use Google voice typing offline?

Speaking Email uses the Google TTS engine feature known as "Google Voice Typing" for dictation and commands. It works using the offline engine, so you need to download the offline voice (even if you are always online - as we have found the offline engine to be more accurate).


1 Answers

You can use Pocketsphinx either with a statistical model which you can train on a corpus that reflects the language that the users are likely speak with your app, or you can define a JSGF grammar which explicitly defines the language as a set of context-free rules. In both cases you need to have the acoustic model and the mapping of phonetic symbols to orthographic words. The CMU Sphinx project provides these resources for English and a few other languages.

Once the speech is recognized it becomes a simple string to which you can apply any "spot the keyword" algorithm you wish to apply.

An example of a Pocketsphinx-based Android app that uses JSGF-based speech recognition is Inimesed.

like image 110
Kaarel Avatar answered Oct 02 '22 23:10

Kaarel