Wake up your Android phone with certain words like Hi Galaxy or Ok Google

I would like to wake up an Android phone by saying, for example, “Hello George”, but did not find any useful answers. First of all, should the Android application listen as a service in the background for this feature or not? I would appreciate if anyone knows how to implement this problem or have any hint.

Best regards thank you

+8
android speech-recognition wakeup
source share
2 answers

Hi I am an Open Mic + developer at http://OpenMic.RSenApps.com that does something very similar to what you want. The truth is that it is much more complicated than it seems, and I'm just starting to implement systems that are really effective. Therefore, I think the main thing is how far do you want to go? You can implement Google speech recognition, but in the end, it is terribly buggy and really does not work in the long run, or you can implement your own speech recognition, which I do ...

+7
source share

CMUSphinx recently implemented continuous listening on the Android platform. You can find the demo on the wiki page.

You can configure one or more keywords to listen to, the default keyword is "oh mighty computer". You can also set the detection threshold. Currently supported languages ​​are the United States and some others (French, Spanish, Russian, etc.). You can prepare your own model for your language.

Listening is simple, you create a recognizer and just add a keyword search:

recognizer = defaultSetup() .setAcousticModel(new File(modelsDir, "hmm/en-us-semi")) .setDictionary(new File(modelsDir, "lm/cmu07a.dic")) .setKeywordThreshold(1e-5f) .getRecognizer(); recognizer.addListener(this); recognizer.addKeywordSearch(KWS_SEARCH_NAME, KEYPHRASE); switchSearch(KWS_SEARCH_NAME); 

and identify the listener:

 @Override public void onPartialResult(Hypothesis hypothesis) { String text = hypothesis.getHypstr(); if (text.equals(KEYPHRASE)) // do something } 
+3
source share

All Articles