0

I have read this post on SO and I have tried the code to launch my own speech recognition activity. It worked!. So my question is that how can I customize the action of the built in voice command button(hardware) to launch the activity which I have written instead of the built in voice search? I have thoroughly searched the net including this website. But I could not find a solution. I know that someone on SO has it!!!

Community
  • 1
  • 1
rahulserver
  • 10,411
  • 24
  • 90
  • 164

1 Answers1

1

You must use SpeechRecognizer instead of RecognizerIntent. It's a little harder to use, but you get full control.

For code see my response from here:

and my discussion of the differences between the two approaches here

Community
  • 1
  • 1
gregm
  • 12,019
  • 7
  • 56
  • 78
  • But my question is"how can I customize the action of the built in voice command button(hardware) to launch the activity which I have written instead of the built in voice search?" – rahulserver Apr 26 '12 at 11:50
  • I'm not sure. I think Google controls that button. – gregm Jul 20 '12 at 09:52