Speech Detection in android

Hi
I am developing an application in android and I want to implement speech detection also I read speech-detection docs for browser in which an event that gets triggered whenever the user speaks.

  1. Is there are any implementation for the same in android?
  2. Or any workaround I can use?
    One I can think of is using sendMessage event and rpc protocol on both the web as well as android respectively in which I can send signal to every users whenever users speaks.
    Any thought on above workaround will be appreciated.

Thanks.