Ok Google response in my application?

150 Views Asked by At

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

1

There are 1 best solutions below

0
On

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