Stylex
Stylex

Reputation: 49

How to start speechRecognize automatically when hearing a voice

I want to build an android application that can start speechRecognize automatically when my phone "hearing" a sound. just like google launcher in android 4.4 that the google search can be open when you say "OK, google" to screen without clicking any button. Is there a way to set a "voice listener" just like onClickListener when a voice come and some Method will run.Or some other solution?Thanks a lot .

Upvotes: 0

Views: 179

Answers (1)

Nikolay Shmyrev
Nikolay Shmyrev

Reputation: 25220

Continuous listening for a keyphrase is supported by CMUSphinx, you can select any keyphrase. Download the demo here

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

Upvotes: 1

Related Questions