1

Hello all I am working with ok google voice search.

What i want to do is when user say some keyword like "Hello".

enter image description here

To the home screen ok google. then ,I want the ok google callback in my application.

For example: If I say "Hello" to the ok google voice search as shown below.Then I want the "Hello" word to print in my application textView.

Please help if possible,any answer should be appreciated. Thank you

Rishabh Mahatha
  • 1,251
  • 9
  • 19
  • do you want to integrate your application with ok google? – Shobhit Feb 25 '17 at 07:12
  • Yes i want.but i want response in my app from the google voice search from ok google shown in fig. – Rishabh Mahatha Feb 25 '17 at 07:14
  • Check this http://stackoverflow.com/questions/30689606/android-app-integrated-with-ok-google and http://stackoverflow.com/questions/30140594/how-to-connect-ok-google-voice-queries-to-my-app – Farmer Feb 25 '17 at 07:48

1 Answers1

0

I think the solution for your problem is here: https://android-developers.googleblog.com/2014/10/the-fastest-route-between-voice-search.html You can access the query by getting the String extra with the key SearchManager.QUERY

Shobhit
  • 1,096
  • 11
  • 30