If voice typing or voice input is enabled on the Xiaomi smartphone, pressing the microphone icon allows us to enter text by voice, which converts the spoken word into text as if we were using the keyboard.

Android 10 (MIUI 12.0)
Step 1:  Open the  Settings
Step 2:  Tap on  Additional settings
Step 3:  Tap on  Languages & input
Step 4:  Tap on  Manage keyboards
Step 5:  Enable or disable  Google voice typing
  1. Open the Settings
  2. Tap on Additional settings
  3. Tap on Languages & input
  4. Tap on Manage keyboards
  5. Enable or disable Google voice typing

Xiaomi Instructions