Just so you know, there are more privacy respecting gboard alternatives that work completely offline to remove Google completely from the equation.
You would need a keyboard and a voice input app to work alongside it, which can be activated by hitting the microphone button on the keyboard.
For keyboard, check out Heliboard or Florisboard.
For voice input, check out Transcribro (on Accrescent)
I personally use FUTO Keyboard and FUTO Voice, which work beautifully as they use local (offline) data models for autocorrect and voice input. FUTO Keyboard also comes with voice input in the app if you only want 1 app.