Yes it is possible, I have done it, based on Googles "speech" example inside "android-docs-samples-master" (google and download those samples).
Things you need to know:
- You will need to setup a free Google Cloud account, and activate
billing. BILLING? WTF DO I NEED TO PAY? Hold on!!! keep reading my
answer!!
- The first 60min of speech recognition time of EVERY month are
FREE.
- Setting up billing and obtaining the PREF_ACCESS_TOKEN_VALUE
value you need to add to your SpeechRecognizer class requires
patience, remember. You also need to obtain an authentication json
from google and add it to the "res -> raw" folder of you project.
- The speech demo is not well suited for fast consecutive ASR
requests, as shutting down the speech recognition service takes 2-6
seconds (I am working on this).
UPDATE: If you got this working, you might have noticed that the 3rd or 4th time you do ASR, it fails. This is because the sample code is not designed to close and open the entire ASR recognizer properly. I got it working, if you need help on a specific error let me know.
This is a summarized guide, if you need more details on a particular step let me know.