Speech to Text in Android

How would one implement speech to text in Android? Is there any module that handles that functionality?

One would do that by writing some Foreign code to make a wrapper for the native feature. Something along the lines of how Remi made it work for iOS.