Xiaomi smartphone owners often face a situation where you need to visually control the process of replenishing the battery, but look at the screen every time inconvenient. Standard indication with an LED or a small icon in the status bar is not always informative, especially if the phone is lying down screen or in the case. That is why the function of voice notification about the start of charging or reaching a certain percentage becomes an indispensable tool for many users.
Fortunately, MIUI and the more recent HyperOS have the most extensive customization capabilities that allow for a “talking charge” scenario without super-user rights, both through the Security app and widgets, and through third-party automatizers that integrate deeply into the system. In this article, we’ll look at all the options available, from simple notifications to full voice tracking.
This feature not only adds convenience, but also helps save battery life, allowing you to disconnect your device from the network in time when you reach 100%.We will look at the methods that work on most current models, including the Redmi Note, Poco and the flagship Mi series. It is important to understand that the choice of method depends on your version of the shell and personal preferences in terms of interface.
Use of voice widgets from the theme store
The easiest and most popular way to get your phone to talk when you connect the cable is to use special widgets that are distributed through the official Themes app. Developers around the world are creating free add-ons that are automatically activated when you connect to a power source, a method that doesn't require you to install additional software or customize complex scenarios.
To start, you need to open the standard Theme app, which is preinstalled on each Xiaomi device. In the search box, type in the query "Charge" or "Charge", you will open a list of available packages, among which you need to look for those that are marked as "Widget" or have the word "Voice" in the title. Pay attention to the rating and number of downloads to choose a stable option.
Once you download the component, the system will suggest you use it. Unlike a full-fledged theme, the charging widget won't change the look of your icons or desktop, but will only add a hidden service to the system. After you use it, it's recommended that you restart the device so that the processes are initialized correctly. Now, when you connect the cable, you hear a voice message.
- 🎙️ Voice Package – Choose widgets with built-in voice files so as not to depend on the quality of speech synthesis.
- 🔋 Compatibility – Make sure the widget supports your version of Android, usually Android 10 and higher.
- 🔊 Volume – Some widgets use a media channel, so check if the volume is turned down in the sound settings.
⚠️ Warning: When installing themes or widgets from unofficial sources (through file import), always check them for viruses, although the Xiaomi store conducts basic moderation.
It's worth noting that some widgets can conflict with native themes, causing short-term interface lags when the charger is connected. If you notice this behavior, you'd better remove the component and try an alternative. Also remember that after resetting to the factory, all installed widgets will have to be downloaded again.
Set up automation through the MacroDroid application
If standard widgets seem too simple or don’t offer the right functionality, powerful automation tools will come to the rescue. MacroDroid is one of the leaders in this niche because of its user-friendly interface and wide capabilities. It allows you to create macros that respond to system events, such as power connections.
To create a talking charger, you need to download the app from Google Play and give it the necessary permissions, including access to the microphone (if you need to record your voice) and access to system settings. After installing, click Add Macros and select Power Connected in the Triggers section, which will be the starting point for your script.
Then we go to Action, and you select Speak Text, and in the box that appears, you can type in a phrase that your smartphone should say, like, "Run up, current level is starting." 45 You can also use dynamic variables such as {battery_level}, The phone should call the actual percentage.
Trigger: Power connected
Action: Declare the text "Charging has begun. Battery: {battery_level} percent"
Limitations: NoOne of the great things about MacroDroid is that you can fine-tune the conditions, so you can make a rule that the phone only speaks during the day, or only if the charge level is below 20 percent, and that will eliminate the noise at night or when the battery is almost full.
- 📱 Interface – logical chain is built visually, which is understandable even for beginners.
- 🎤 Voice engine – you can choose any voice engine installed on the system (Google, Samsung) TTS etc.).
- ⏱️ Delay – Add the action “Pause” if you want the phrase to be pronounced a couple of seconds after you connect.
⚠️ Note: For the stable operation of automation, you need to add MacroDroid to the list of energy saving exceptions ("Security» → «Battery» → «Activity control, otherwise the system may kill the process in the background.
☑️ Checking MacroDroid settings
Scripts in Annex Security (Shorts)
In the MIUI and HyperOS shells, there is an embedded automation application that used to be called Shorts, and now is often integrated directly into the Security menu or available as a separate widget. It is a native solution from Xiaomi that works more stable than third-party counterparts and does not require additional permissions, since it has deep access to the system.
To find this tool, open the Security app, scroll down to the Tools section, and find the Scenarios or Automation option. If there is no such item, you can add it through the add-ons store inside the app or download a separate one. APK-Shortcuts file from verified resources corresponding to your version MIUI.
Inside the application, create a new script. As a condition (If) select " Charging Status» → «Charging started. (Then) Select "Say text." Type the phrase you want. The peculiarity of the native tool is that it can use a speech synthesizer without delay.
You can also set up a scenario to discharge, for example, if you forget your phone is on, the "Battery is dead" scenario will allow the device to voice ask to charge it, which is especially useful for older people or children who have difficulty navigating digital indicators.
| Parameter | MacroDroid | Shorts (MIUI) | Theme widget |
|---|---|---|---|
| Difficulty setting up | Medium | Low. | Very low. |
| Battery consumption | Medium. | Minimum | Minimum |
| Flexibility of settings | Tall. | Medium | Low. |
| Network dependency | No. | No. | I need it for downloading. |
⚠️ Note: On some global firmware versions, the Shorts app may be hidden or removed, in which case use widgets or third-party software.
Where can I find hidden scripts?
Use of Google Assistant and Routines
Google’s ecosystem offers its own way of automating through the “Routines” feature in Google’s or Google Home app, ideal for those already using a voice assistant to manage their smart home, and while it’s a little narrower than a dedicated application, integration works at the system level.
Open the Google app on your smartphone, click on your profile avatar, and select Settings → Google Assistant → Rutins. Create a new routine. In the When section, select When Charging or When Connecting to a Charger. This is a trigger that will trigger the chain of action.
In Actions, select "Assistant says." Enter the greeting. You can also add "Change settings" to, for example, enable "Do Not Disturb" mode automatically when you start charging at night. This creates a complex comfort scenario.
The main advantage of this method is the use of Google cloud technologies to recognize context, but the pronunciation of the text requires an active Internet connection, since the processing of the request often takes place on the servers. If the network is not, the assistant may not work.
- 🌐 Integration – works well in conjunction with smart speakers and lamps.
- 🗣️ Voice quality – Google’s best neural network voices are used, sounding very natural.
- 📶 Addiction – requires an internet connection to activate most scenarios.
⚠️ Note: Google Assistant may not work if the phone is in full silence or if the power saving settings for the Google app are interrupted.
💡
To make the Assistant’s voice sound louder, increase the volume of the media channel before connecting the charging, as some routines use it rather than the notification channel.
Advanced customization via Tasker and ADB
For users who want to have full control of the device and are not afraid of complex settings, there is a bundle of Tasker + ADB. Tasker is a powerful automation tool for Android that allows you to do almost anything. However, on modern versions of Android, it requires advanced rights that are given through the computer.
First install Tasker from Play Market. Then connect the phone to your computer via USB-The computer must have an Android platform installed. SDK Platform-Tools. Turn on the phone "Debugging by" USB» In the Developer menu, enter a command to grant special rights through the computer's command line:
adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGSOnce you have rights in Tasker, create a new profile (Profile). Select the trigger "State" → "Power" → "Any." Create a task (Task), add the action "Alert" → "Say." In the Text field, enter your text. Tasker allows you to use variables, JavaScript scripts and even send data to the server.
This method ensures that the notification will sound even in the most sleepy modes, since Tasker has rights. WRITE_SECURE_SETTINGS It takes precedence over system energy saving constraints, and you can set up different voices for different types of charging (e.g., from the grid and from PowerBank).
- 🛠️ Power – no limits on logic and combination of conditions.
- 💻 Difficulty – requires a PC and basic command line knowledge.
- 🔒 Security – granting broad rights requires trust in an application.
⚠️ Note: When resetting your phone settings or deleting Tasker, the rights granted through ADB, They may be able to fly and the procedure will have to be repeated again.
💡
Tasker with ADB rights is the only way to guarantee 100% speaking charging even in energy-saving mode, when the system kills all background processes.
Problem Solving and Frequently Asked Questions
Despite the ease of setting up, users may encounter a number of typical problems: Most often, the phone is silent when connecting the cable. This is almost always due to the aggressive MIUI energy saving system that unloads background applications. To fix this, go to the battery settings, find the application (MacroDroid, Tasker or Google) and select No Limits mode.
Another common problem is the quiet sound of the notification. Make sure that the media or notification volume is not kept to a minimum in the Sound and Vibration settings. Some widgets use the alarm channel, so check its volume level as well. It's also worth checking if the Do Not Disturb mode is on, which can block the soundtrack.
If you use wireless charging, some older widgets may not recognize a connection event, and in such cases, the trigger settings (in MacroDroid or Tasker) need to select a specific power source or use the Power OR Wireless Power condition, which will ensure that the device responds to any type of power replenishment.