To use voice typing in Google Docs, turn on voice typing, click the microphone icon, then start speaking.
You can use speech-to-text on Microsoft Word through the "Dictate" feature, which lets you write using your own voice.