OK Google on Xiaomi: how to configure voice assistant in 5 minutes

Google’s OK Google voice assistant makes it much easier to interact with a smartphone: just say a command to run an app, find information or manage smart devices. However, on Xiaomi smartphones with the proprietary MIUI shell, setting up a voice assistant often raises questions — the standard instructions for “pure” Android do not work here. In this article, we will analyze all the steps from checking the compatibility of the model to solving typical problems with the microphone and language packages.

Xiaomi is also actively promoting its own voice assistant, Xiao AI, which can block Google’s OK by default. In addition, some models (especially for the Chinese market) lack Google services out of the box, which requires additional manipulation. We took all these nuances into account and prepared a universal instruction that is relevant for MIUI 14/15 and Android 12/13/14.

1. Checking the compatibility of the Xiaomi smartphone

Before you start setting up, make sure your Xiaomi supports OK Google.

  • 📱 Smartphone model: Must officially support Google services. Most global versions (Redmi Note 12 Pro+, POCO X5 Pro, Xiaomi 13T, etc.) are suitable, but devices for the Chinese market (marked CN in the title) often require manual installation of Google Mobile Services (GMS).
  • 🤖 Android Version: Not lower than Android 8.0 Oreo. On older versions (e.g., Redmi 5A with Android 7.1), the voice assistant won't work.
  • 🌐 Google Account Region: Must match the voice language. For example, if you set up Russian in the assistant, the account must be linked to Russia or a country with Russian support.
  • 🎤 Microphone: Must be in good working order, and you can check it on the standard Dictaphone app or by phone.

If your smartphone is purchased in China or has firmware without GMS, first install Google services through the Mi Flash Tool or third-party utilities like GMS Installer. Without this, OK Google will not work in principle.

📊 Xiaomi smartphone is purchased for which market?
Global (EU/RU/Global)
Chinese (CN)
Indian (IN)
The other.

2. Preparation of the smartphone: settings MIUI

The MIUI shell can block background activity from OK Google, so do the following before setting up the assistant:

  1. Open Settings → Applications → Application Management → Google.
  2. Slip on Permissions and enable access to microphone, geodata and autorun.
  3. Go back and select Battery → No restrictions (this will prevent the assistant from turning off in the background).
  4. Go to Settings → Special Features → Voice Assistant and turn off Xiao AI if it is active.

We also recommend turning off battery optimization for the Google app:

  1. Go to Settings → Battery and Performance → Battery Consumption Management applications.
  2. Find Google in the list and select No Limits.

☑️ Preparing MIUI for OK Google

Done: 0 / 4

Important: Some Xiaomi firmware has a "Background Lock" feature in its security settings. Make sure Google doesn't make the list of blocked apps.

3. Installation and configuration of the Google app

Even if your Xiaomi has a Google app pre-installed, you need to upgrade to the latest version, either through the Play Market or download the APK from the official APKMirror website (select the arm64 version for modern smartphones).

After the update, follow the steps:

  1. Open the Google app (the icon with the letter G on a colored background).
  2. Slip on the profile avatar in the upper right corner and select Settings → Voice Search.
  3. Activate the “OK Google” switch and follow the instructions for setting up your voice.
  4. In the Language section, select the language you want (e.g. Russian (Russia)) and download the language package if required.

If the “OK Google” option is inactive, check:

  • 📶 Internet connection (assistant requires stable connection for first setup)
  • 🔊 Availability of updates for Google Play Services (update to Play Market).
  • 📱 Model compatibility (on some budget Redmi, the function may be disabled at the firmware level).
What if there is no “OK Google” in the settings?
This means that your Xiaomi model doesn’t support the feature at the firmware or region level. Try changing the Google account region to a supported one (such as the US or the UK) or install custom firmware with full GMS support.

4. Teaching voice model

In order for OK Google to recognize your voice as accurately as possible, you need to go through a learning process.

  1. In the Google app, go to Settings → Voice Search → Voice model.
  2. Tap “Retrain voice model” and repeat the phrases that the system will offer (usually 3-5 times).
  3. Speak clearly, at a normal pace, without accent, and avoid noisy spaces while recording.

After training, check the assistant's work:

  • 🗣️ Say “OK, Google” from the lock screen (if the setting is enabled).
  • 🔍 Try asking a simple query, such as, "What is the weather forecast today?"
  • 📱 Make sure that the assistant responds to other users’ voices (if the Personal Performance option is enabled).

Tip: If the assistant doesn’t respond to voice from the screen off, check the settings in Settings → Display → Lock screen → Voice assistant and turn on the “OK Google” option.

5. Solving typical problems

Even after setting up OK properly, Google can be unstable, and let’s look at some of the most common errors and how to fix them:

Problem.Possible causeDecision
The assistant doesn't respond to the voiceThe microphone is blocked or defectiveCheck permissions for Google in Settings → Apps. Test the microphone in another app (like WhatsApp).
The phrase “OK Google” is not recognized.Weak Internet connection or outdated voice modelUpdate the Google app and retrain the voice model. Connect to Wi-Fi.
The assistant works only with an unlocked screen.MIUI Limitations for Lock ScreenEnable the option "Voice Assistant on the Lock Screen" in the security settings.
Persistent errors "failed to connect"Problems with Google Play Services or VPNUpdate Google Play Services, turn off VPN and check the date/time on your device.

If the problem persists, try resetting the assistant settings:

  1. Open Settings → Applications → Google → Storage.
  2. Slip "Clear Cache" and "Reset Settings."
  3. Reboot your smartphone and reset OK Google from scratch.

💡

If the assistant stopped working after the MIUI update, try rolling back the version of the Google app to the previous one via APKMirror. Often new versions contain custom firmware bugs.

6. Additional settings for experienced users

For those who want to customize the work of OK Google, there are advanced options available:

  • 🔧 Change Assistant Voice: In the Google Assistant settings, you can choose male or female voice, as well as speech speed.
  • 📍 Geolocation setting: Enable Location History in your Google account to help the assistant answer questions about routes and nearby establishments more accurately.
  • 🔄 Smart Home Integration: Connect Xiaomi Mi Home devices to Google Home to control their voice (e.g., “OK Google, turn off the living room lights”).
  • 📊 Activity analysis: In the “Your Statistics” section, you can see which commands you use most and optimize them.

To automate routine tasks, use Google Assistant Routines, for example, you can set up a Good Morning command that will:

  • Turn on the alarm.
  • Run the news playback.
  • Open the calendar for the day.
  • Turn on the Yeelight smart lamp.

To create a routine:

  1. Open Google Assistant and tap on the avatar.
  2. Select the → Routines to create a routine.
  3. Set a voice command and add actions.

💡

The routines in Google Assistant only work when you have an active Internet connection, and if you have an offline smartphone, you won't execute commands.

7.OK Google Alternatives for Xiaomi

If OK Google doesn’t work on your Xiaomi model, consider alternative voice assistants:

AssistantAdvantagesDeficiencies
Xiao AI (built-in)Optimized for MIUI, works without the Internet (partially), supports Chinese and EnglishLimited functionality outside of China, no integration with Google services
Alice (Yandex)Understands Russian well, integration with Yandex.Music and MapsRequires a separate application, no control of system functions Android
Bixby (Samsung)Advanced features for Samsung devices (if available in the home)Not optimized for Xiaomi, may conflict with MIUI
Amazon AlexaIdeal for managing a smart home, many skillsWeak support for the Russian language requires a separate application

To set Alice up:

  1. Download the Yandex app from the Play Market.
  2. Register or log in to your account.
  3. Activate the voice assistant in the application settings.
  4. Allow access to the microphone and auto-start (similar to OK Google setting).

Note: For Alice to work fully on Xiaomi, you may need to disable battery optimization for the Yandex app.

FAQ: Frequent questions about OK Google on Xiaomi

❓ Why is OK Google not working after the MIUI update?
MIUI updates often reset permissions for apps. After the update: Go to Settings → Apps → Google → Permissions and turn on the microphone again. Update Google Play Services and the Google app. Retrain the voice model. If the problem persists, try rolling back the Google version to the previous one via APKMirror.
❓ Can I use it? OK Google without the Internet?
Basic commands (e.g., running apps or managing media) work offline, but most functions (web search, weather, routes) require a network connection. To improve offline work: Download the language package for offline recognition in the Google Assistant settings. Enable caching of frequently used commands.
❓ How to disable Xiao AI so it doesn't conflict with Google's OK?
Xiao AI can intercept voice commands designed for OK Google. To disable it: Go to Settings → Special features → Voice Assistant. Turn off the switch next to Xiao AI. Remove or freeze the Xiao AI app through Settings → Applications (root rights are required for complete removal). On some Xiao AI firmware, you can’t disable it by standard means, in which case installing custom firmware without Chinese services will help.
❓ Why? OK Google can't hear me from more than 1 meter away?
The sensitivity of the microphone on Xiaomi depends on the model and the surrounding noise. To improve recognition: Use headphones with a microphone (for example, Xiaomi Earbuds). Make sure that the microphone hole on the smartphone is not clogged with dust. Enable the option "High microphone sensitivity" in the special features settings (if available). On budget models (Redmi 9A, POCO M3), the microphone quality is worse - consider using an external microphone.
❓ Can you set up Google OK on Xiaomi without GMS?
Technically not. OK Google is part of the Google ecosystem and requires Google Mobile Services (GMS). If your Xiaomi doesn't have a GMS (like the Chinese version), you'll need to: Install GMS via Mi Flash Tool or third-party utilities (risk "brick" device!) or use alternative assistants like Alice or Xiao AI. Some forums offer "crunch" solutions using ADB, but they're unstable and can disrupt the system.