To use voice typing in Google Docs, turn on voice typing, click the microphone icon, then start speaking.
It's easy to enable voice typing on your Gboard app so that the virtual keyboard can type for you automatically.