Convert voice to text without Google

Hello, I need to do voice and conversion to text in my app, I know there is an option to do through Google (this is what I do right now), but I need not to pop up a sound and conversion pane, but there will be a button when clicked it will start recording and converting until sent again On the same button / on another button. It is possible? If so, then how?