Libre translate ideas

I am making a voice to voice translator app for android using appinventor and kodular … in order to record voice in my app I have to use “ The tracking and proprietary software developed by the tracking giant Google ” which is officialy supported by both kodular and appinventor in their speech recognition component. I want to replace it … if possible using a good functioning Google equivalant extension ?

“And I am going to release my app as opensource” but … the translate feature in my app is powered by Google. Is there any good,quality alternative to replace its usage in kodular and appinventor?
And can I make my app work offline, if possible?

Thanks in advance for your valuable guidance and advice

( A floss enthusiast )