Android Question Create "OK Google" ?

Discussion in 'Android Questions' started by HimeAnator, Jan 23, 2015.

  1. HimeAnator

    HimeAnator Member Licensed User

    I'm wondering if someone could point me in the right direction on this. I'm trying to create an app that runs in the background listening for a command/phrase. Like the way "OK Google" works or like the "Hi Galaxy" feature on the Samsung devices. Is there a way that I can have a background service listen for a custom phrase like these do and then run some code once it hears the phrase?
    Last edited: Jan 23, 2015
  2. tufanv

    tufanv Expert Licensed User

    I was looking for that long time ago and i am not sure but I think it is not possible without pushing any button or stg like that.
  3. Cableguy

    Cableguy Expert Licensed User

    it is not simple to implement, but in the logical side of things, you need a service to catch the microphone input, and voice recognition to find the correct phrase...
  4. HimeAnator

    HimeAnator Member Licensed User

    Feeling pretty discouraged now lol. I'll still play around and see if I can come up with something good. If I do I will let you now.
    I appreciate the help and input guys!
  5. susu

    susu Well-Known Member Licensed User

    Does that feature provide by Google/Samsung only? I mean it's very deep intergration so our app can not access this low API. We can only make an app that can "listen" by record the sound from microphone, compare raw data with "sample voice", if it matched then do something if not then repeat every steps from beginning. Howerver, it will occur the microphone all the time and drain the battery too much.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice