Speech to text using the keyboard

I want speech to text working on my keyboard but when I press the mic in default keyboard it does nothing, I’ve been unable to find it or make it work in default keyboard as well as AnySoftKeyboard because both don’t have speech to text working. Using AnySoftKeyboard & pressing the mic gives me popup & when I click on install it gives me option of opening either F-Droid or Aurora.When I choose F-Droid it says app not found while choosing Aurora gives me no results but in the search bar it has “pname:com.google.android.voicesearch”. If anyone has anyway to get speech to text please tell me.