When a user enables voice typing or captions, the web browser manages the speech-to-text service. The browser processes the speech and sends the text data to Google Docs or Google Slides.