I was able to run an example project which uses Android speech to text using this code:
private void startVoiceRecognitionActivity()
{
Intent
Currently Android only supports RecognizerIntent
Have a look at all these questions...
Speech recognition for recorded audio files in .3gp or wav format
Speech to Text from own sound file
Saving audio input of Android Stock speech recognition engine
Voice recognition on android with recorded sound clip?