Control method and device, electronic device, and storage medium
By establishing a local area network in the smart home system, offline voice recognition and command transmission of smart home devices can be achieved, solving the problems of data leakage risk and high cost associated with online voice control, thereby improving security and reducing costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GREE ELECTRIC APPLIANCE INC OF ZHUHAI
- Filing Date
- 2024-09-12
- Publication Date
- 2026-06-02
Smart Images

Figure CN119210919B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home devices, and more particularly to a control method and apparatus, an electronic device and a storage medium. Background Technology
[0002] Smart home is a residential platform that uses integrated wiring technology, network communication technology, security technology, automatic control technology, audio and video technology, etc., to build an efficient management system for residential facilities and daily household affairs. Smart home can improve home security, convenience, comfort, and aesthetics, and achieve an environmentally friendly and energy-saving living environment.
[0003] Voice control of smart home devices makes operation more convenient for users. Currently, online voice control is mainly used, which requires transmitting voice to the cloud, where a cloud model performs voice recognition and then performs corresponding operations based on the recognition results.
[0004] However, current online voice control methods face two main problems: firstly, voice input needs to be sent to the cloud for voice recognition, posing a risk of data leakage; secondly, online voice recognition licensing fees are high. Therefore, current voice recognition-based smart home control methods suffer from both the risk of data leakage and high costs. Summary of the Invention
[0005] In view of the above problems, embodiments of the present invention are proposed to provide a control method, apparatus, electronic device, and storage medium that overcomes or at least partially solves the above problems.
[0006] In a first aspect, embodiments of this application disclose a control method applied to a smart home system, the smart home system comprising: a central controller and multiple smart home devices, the central controller and the multiple smart home devices forming a local area network; the method comprising:
[0007] Smart home devices receive voice commands;
[0008] When the smart home device recognizes that the voice command is a voice command specifically for the smart home device, the smart home device executes the voice command;
[0009] If the smart home device recognizes that the voice command is a voice command for another smart home device, the smart home device will report the voice command to the central controller through the local area network;
[0010] The central controller sends the voice commands to the corresponding smart home devices through the local area network;
[0011] The corresponding smart home device executes the voice command.
[0012] Optionally, the voice command includes: target space type and target device type; the method further includes:
[0013] The smart home device identifies whether the voice command is for this smart home device or for other smart home devices based on the target space type and the target device type.
[0014] Optionally, the method further includes:
[0015] Configure the space type and device type for each of the aforementioned smart home devices;
[0016] The smart home device identifies, based on the target space type and the target device type, whether the voice command is for this smart home device or for other smart home devices, including:
[0017] When the space type of the smart home device is consistent with the target space type, and the device type of the smart home device is consistent with the target device type, the smart home device will recognize the voice command as a voice command specific to the smart home device.
[0018] If the space type of the smart home device is different from the target space type, and / or the device type of the smart home device is different from the target device type, the smart home device will recognize the voice command as a voice command from another smart home device whose space type is consistent with the target space type and whose device type is consistent with the target device type.
[0019] The central controller sends the voice commands to the corresponding smart home devices via the local area network, including:
[0020] The central controller sends the voice commands to smart home devices whose space type is the target space type and whose device type is the target device type via the local area network.
[0021] Optionally, setting space type and device type for each of the smart home devices includes:
[0022] Set the name of the room where the smart home device is located as the space type of the smart home device.
[0023] Optionally, the method further includes:
[0024] The smart home device reports the execution result of the voice command to the central controller via the local area network; or,
[0025] The corresponding smart home device reports the execution result of the voice command to the central controller via the local area network;
[0026] The central controller records the execution results.
[0027] Optionally, the method further includes:
[0028] If the number of voice commands that fail to be executed on the same smart home device exceeds a preset number, the central controller will issue a warning.
[0029] Secondly, a control device is provided for use in a smart home system, the smart home system comprising: a central controller and multiple smart home devices, the central controller and the multiple smart home devices forming a local area network; the device comprises:
[0030] A voice command receiving module is used for smart home devices to receive voice commands;
[0031] The first execution module is configured to execute the voice command when the smart home device recognizes that the voice command is a voice command for the smart home device.
[0032] The reporting module is used so that when the smart home device recognizes that the voice command is a voice command for other smart home devices, the smart home device reports the voice command to the central controller through the local area network;
[0033] The distribution module is used by the central controller to distribute the voice commands to the corresponding smart home devices through the local area network.
[0034] The second execution module is used for the corresponding smart home device to execute the voice command.
[0035] Thirdly, an electronic device is provided, comprising:
[0036] A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements any of the aforementioned control methods.
[0037] Fourthly, a readable storage medium is provided, which, when instructions or transactions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform any of the aforementioned control methods.
[0038] Fifthly, a computer program product is provided, including instructions or transactions that, when executed by a processor in an electronic device, cause the electronic device to perform any of the aforementioned control methods.
[0039] In this embodiment, a central controller and multiple smart home devices form a local area network. The smart home devices directly recognize voice commands, eliminating the need to upload these commands to the cloud or connect to the external network, thus minimizing the risk of data leakage. Furthermore, since voice recognition can be implemented on the smart home devices themselves, online voice recognition is unnecessary, significantly reducing costs. The central controller acts as a relay device for voice commands, meaning that only at least one smart home device capable of recognizing voice commands is required, further reducing costs. Attached Figure Description
[0040] Figure 1 This is a schematic diagram of the structure of a smart home system provided in an embodiment of the present invention;
[0041] Figure 2 This is a flowchart of the steps of a control method provided in an embodiment of the present invention;
[0042] Figure 3 This is a flowchart of another control method provided in an embodiment of the present invention;
[0043] Figure 4 This is a flowchart of another control method provided in an embodiment of the present invention;
[0044] Figure 5 This is a schematic diagram of the structure of a control device provided in an embodiment of the present invention. Detailed Implementation
[0045] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
[0046] This application provides a control method applied to a smart home system, referring to... Figure 1This smart home system includes a central controller and multiple smart home devices, forming a local area network (LAN). The LAN can be established between the central controller and the individual smart home devices via wired or wireless connections; the specific method of network formation is not limited. For a given household, the system can have one central controller, and the number of smart home devices is not specifically limited. For example, the multiple smart home devices could represent all the smart home devices in the user's home, or they could represent only a portion of the user's smart home devices.
[0047] The smart home devices mentioned in this application can be various smart home devices in a user's home, such as smart lighting devices, smart home appliances, smart security devices, smart entertainment devices, smart health devices, smart curtains, etc. Smart lighting devices can include smart light bulbs, smart light strips, smart switches, etc. Smart security devices can include smart cameras, door locks, door and window sensors, smoke detectors, etc. Smart home appliances can include smart refrigerators, washing machines, dryers, dishwashers, air conditioners, fans, dehumidifiers, range hoods, etc. Smart entertainment devices can include smart TVs, audio systems, etc. Smart health devices can include smart scales, health monitoring devices, etc. Smart curtains can include electric curtain controllers, etc. The smart home devices mentioned here may also include smart sockets, etc., without specific limitations.
[0048] The control method of this application, when applied to the aforementioned smart home system, refers to... Figure 2 The method includes the following steps.
[0049] Step 101: Smart home devices receive voice commands.
[0050] In this smart home system, each smart home device can receive voice commands, or some of the smart home devices in the system can receive voice commands, or only one smart home device in the system can receive voice commands; there are no specific limitations. Allowing some smart home devices or only one smart home device in the system to receive voice commands can appropriately reduce costs. Smart home devices can receive voice commands through audio acquisition sensors.
[0051] It's important to note that smart home devices may generally be in a dormant state and require a wake-up call to enter the voice recognition process. Typically, a certain threshold of sound wave energy is needed to wake them up. Generally, only direct sound waves from the direction of the device will reach this threshold. Reflected, refracted, or lateral sound waves may not wake the smart home device because the received sound energy may not reach the threshold. For example, in a 3m x 3m room, with two smart home devices placed in front of each of the four walls, only the two devices directly facing the wake-up voice command may be activated. The wake-up voice command can be combined with the voice instruction or used independently; there are no specific limitations on this.
[0052] The aforementioned "direction" refers to the direction from which the sound is emitted being opposite the audio acquisition port. Smart home devices can receive voice commands through audio acquisition sensors. For example, the audio acquisition sensors of smart home devices are typically recessed into the product surface, and voice commands propagate radially from the emission location. The aforementioned "direct propagation" refers to the situation where the sound enters the acquisition sensor directly without reflection or refraction. The wake-up threshold here is set according to the voice command recognition model, acoustic structure, and application scenario of each smart home device, and may vary for different smart home devices; therefore, no specific limitation is made here.
[0053] In addition, the wake-up word for each smart home device may be different. For example, the wake-up word for each smart home device can correspond to its brand. For instance, the air conditioner is called "Gree Air Conditioner," the fan is called "Xiao Ge Xiao Ge," and the refrigerator is called "Hello Gree." Different smart home devices can be woken up based on the user's wake-up word.
[0054] Step 102: If the smart home device recognizes that the voice command is a voice command for the smart home device, the smart home device executes the voice command.
[0055] This smart home device has the ability to recognize voice commands offline, which can be achieved through a built-in voice recognition module. When the smart home device recognizes that the voice command is a voice command for this smart home device, the smart home device will directly execute the voice command.
[0056] For example, refer to Figure 1 If smart home device 1 receives a voice command and recognizes that the voice command is for smart home device 1, then smart home device 1 will directly execute the voice command here.
[0057] The execution of this voice command does not require uploading to the cloud or accessing the external network, thus minimizing the risk of data leakage. Furthermore, since voice recognition can be achieved on smart home devices without the need for online voice recognition, costs can be significantly reduced.
[0058] Step 103: If the smart home device recognizes that the voice command is a voice command for another smart home device, the smart home device reports the voice command to the central controller through the local area network.
[0059] When a smart home device recognizes that a voice command is directed to another smart home device besides itself, the device reports the command to the central controller via the local area network. Specifically, this reporting is achieved through wired or wireless communication between the central controller and the other smart home device. This step, combined with subsequent step 104, distributes the voice command. Therefore, in this smart home system, only at least one smart home device capable of recognizing voice commands is required, further reducing costs. It should be noted that in this smart home system, if only one smart home device can recognize voice commands, that device can remain in an active state, or the aforementioned wake-up calls are all directed at that specific device. Similarly, in this smart home system, if only a few smart home devices can recognize voice commands, these devices can remain in an active state, or the aforementioned wake-up calls are all directed at these specific devices.
[0060] Step 104: The central controller sends the voice command to the corresponding smart home device through the local area network.
[0061] The central controller here acts as a relay device, and it sends the voice command to the corresponding smart home device through the aforementioned local area network.
[0062] Step 105: The corresponding smart home device executes the voice command.
[0063] Upon receiving the voice command, the corresponding smart home device executes it. In this case, there is no specific limitation on whether the corresponding smart home device has offline voice recognition capabilities.
[0064] For example, refer to Figure 1Assuming smart home device 1 receives a voice command and recognizes it as a command addressed to smart home device 3, smart home device 1 reports the command to the central controller via a wired or wireless connection. The central controller then forwards the command to smart home device 3 via the same wired or wireless connection. Smart home device 3 then executes the command directly. In this scenario, smart home device 1 has already recognized the voice command; smart home device 3 does not need to recognize it again and can execute it directly. Whether smart home device 3 has offline voice recognition capabilities is not specifically limited.
[0065] Optional, refer to Figure 3 Following step 102, the control method may further include: the smart home device reporting the execution result of the voice command to the central controller via the aforementioned local area network. Figure 3 The local machine executes the voice command and sends the synchronization status to the central controller, which records the execution result. The central controller can monitor the execution status of each voice command and provide support for subsequent command execution, equipment failure, and equipment maintenance.
[0066] For example, in the aforementioned case, after smart home device 1 directly executes the voice command, smart home device 1 reports the status of smart home device 1 after executing the voice command to the central controller through the aforementioned local area network.
[0067] Optional, refer to Figure 3 Following step 105, the control method may further include: the smart home device reporting the execution result of the voice command to the central controller via the aforementioned local area network. Figure 3 The local unit executes the voice commands and sends the synchronization status to the central controller, which records the execution results. The central controller can monitor the execution status of each voice command and provide support for subsequent equipment failures and maintenance.
[0068] For example, in the aforementioned case, after smart home device 3 executes the voice command, smart home device 3 reports its status after executing the voice command to the central controller through the aforementioned local area network.
[0069] Optionally, the method may further include: if the number of voice commands that were not successfully executed by the same smart home device exceeds a preset number, the central controller issues an alert. Specifically, the central controller can statistically analyze the recorded execution results to determine the number of voice commands that were not successfully executed by the same smart home device. An unsuccessfully executed voice command refers to a voice command that did not achieve the result corresponding to the operation in the voice command. For example, if the voice command is to turn on the TV, but the TV does not turn on due to some malfunction, then this is an unsuccessfully executed voice command for the TV. If the number of unsuccessfully executed voice commands by the same smart home device exceeds the preset number, it indicates that the smart home device may indeed have malfunctioned and requires repair. Therefore, an alert is issued to remind the user. This alert may include the identification of the smart home device to facilitate quick identification of the specific smart home device. The alert can be a voice broadcast, text display, image display, or a direct warning sound, etc., without specific limitations.
[0070] It should be noted that the preset number here can be set according to the user's frequency of use of the smart home device. For example, if the user uses the smart home device frequently, the preset number can be set to a smaller number; if the user uses the smart home device infrequently, the preset number can be set to a larger number. This preset number can also be set according to other circumstances, and there are no specific limitations on it.
[0071] This application provides another control method applied to the aforementioned smart home system, which includes a central controller and multiple smart home devices. The central controller and the multiple smart home devices form a local area network, as described above. To avoid repetition, further details are omitted here. Figure 4 The method includes the following steps.
[0072] Step 201: The smart home device receives the voice command.
[0073] Step 201 can be referred to step 101. To avoid repetition, it will not be repeated here.
[0074] Step 202, the voice command includes: target space type and target device type; the smart home device identifies whether the voice command is for this smart home device or for other smart home devices based on the target space type and the target device type.
[0075] The space type here is used to distinguish different rooms in the home. For example, the space type could be: master bedroom, secondary bedroom, children's room, study, living room, kitchen, bathroom, balcony, storage room, etc. The device type can be used to distinguish the name or function of a device. For example, the device type could be: air conditioner, television, refrigerator, fan, range hood, etc. In this application, by combining the space type and device type, smart home devices can be accurately identified, avoiding accidental operation.
[0076] After a smart home device recognizes a voice command, the target space type and target device type can be extracted from the voice command. Then, by comparing it with the space type and device type of the smart home device itself, it can be accurately determined whether the voice command is for this smart home device or for other smart home devices, thus improving the accuracy of voice command recognition.
[0077] It should be noted that, in addition to the target space type and target device type, the voice command should also include operation instructions, such as specific operations like turning on, turning off, increasing the temperature, and decreasing the temperature.
[0078] Optionally, prior to step 202, the method may further include: setting a space type and device type for each of the smart home devices. Step 202 may include: when the space type of the smart home device is consistent with the target space type and the device type of the smart home device is consistent with the target device type, the smart home device recognizes the voice command as a voice command specific to itself; when the space type of the smart home device is different from the target space type and / or the device type of the smart home device is different from the target device type, the smart home device recognizes the voice command as a voice command from another smart home device whose space type is consistent with the target space type and whose device type is consistent with the target device type. 。
[0079] Specifically, a room type can be assigned to a smart home device based on the room it is located in, indicating its specific location within the home. Alternatively, the room name can be set as the space type, making this simple and easy to implement. A device type can also be assigned based on its function or name. For example, a children's room could be a room type, and an air conditioner could be a device type. During the recognition process, the target room type and target device type are simultaneously verified to ensure consistency with the smart home device's room type and device type, thus ensuring a high degree of accuracy in determining which smart home device the voice command is targeting.
[0080] During the recognition process, it is necessary to ensure that the space type of the smart home device is consistent with the target space type, and that the device type of the smart home device is consistent with the target device type. Only then can the voice command be recognized as a voice command for the smart home device. If the space type of the smart home device is inconsistent with the target space type, or if the device type of the smart home device is inconsistent with the target device type, at least one of these two conditions must be met. In such cases, the voice command is considered not to be a voice command for the smart home device.
[0081] For example, the living room air conditioner receives a voice command. It recognizes the command and determines the instruction to turn on the children's room air conditioner. In the children's room air conditioner settings, "children's room" represents the target space type, "air conditioner" represents the target device type, and "turn on" is the command. In the living room air conditioner settings, "living room" represents the space type, and "air conditioner" represents the device type. The living room air conditioner compares its own device type ("air conditioner") with the target device type ("air conditioner"). They match. However, comparing the target space type ("children's room") with its own space type ("living room") reveals a clear difference. Therefore, the voice command is not directed at the living room air conditioner but at the children's room air conditioner. The recognition result is then uploaded to the central controller via the local area network (LAN). The central controller then sends the same result down to the children's room air conditioner via the LAN, which executes the command to turn on the air conditioner.
[0082] Step 203: If the smart home device recognizes that the voice command is a voice command for the smart home device, the smart home device executes the voice command.
[0083] Step 204: If the smart home device recognizes that the voice command is a voice command for another smart home device, the smart home device reports the voice command to the central controller through the local area network.
[0084] Steps 203 and 204 here can be referred to as steps 102 and 103 above, respectively. To avoid repetition, they will not be repeated here.
[0085] Step 205: The central controller sends the voice command to the corresponding smart home device through the local area network.
[0086] Optionally, the voice command includes a target space type and a target device type. Step 205 may include: the central controller sending the voice command to smart home devices with the aforementioned target space type and the aforementioned target device type via the local area network. The central controller, the target space type, and the target device type enable accurate distribution of the voice command and avoid misoperation.
[0087] For example, in the aforementioned case, the living room air conditioner uploads the recognition result of the voice command to the central controller via the aforementioned local area network. The central controller then sends the recognition result of the voice command to the air conditioner in the children's room via the aforementioned local area network, and the air conditioner in the children's room executes the command to turn on the air conditioner.
[0088] Step 206: The corresponding smart home device executes the voice command.
[0089] Step 206 here can be referred to step 105 above. To avoid repetition, it will not be repeated here.
[0090] By incorporating the target space type and target device type into the voice commands, this application can improve the accuracy of voice command recognition and greatly reduce the risk of misoperation.
[0091] This application also provides a control system for smart home devices, applied to a smart home system. The smart home system includes a central controller and multiple smart home devices, which form a local area network. Details of this smart home system are described above; to avoid repetition, they will not be repeated here. (Refer to...) Figure 5 The control device may include:
[0092] Voice command receiving module 301 is used for smart home devices to receive voice commands;
[0093] The first execution module 302 is configured to execute the voice command when the smart home device recognizes that the voice command is a voice command for the smart home device.
[0094] The reporting module 303 is used to report the voice command to the central controller via the local area network when the smart home device recognizes that the voice command is a voice command for other smart home devices.
[0095] The distribution module 304 is used by the central controller to distribute the voice commands to the corresponding smart home devices through the local area network.
[0096] The second execution module 305 is used for the corresponding smart home device to execute the voice command.
[0097] Optionally, the voice command includes: target space type and target device type; the control device further includes: a recognition module, used by the smart home device to identify whether the voice command is a voice command for this smart home device or a voice command for other smart home devices based on the target space type and the target device type.
[0098] Optionally, the device further includes:
[0099] The settings module is used to set the space type and device type for each of the smart home devices;
[0100] The identification module includes:
[0101] The first recognition submodule is used to recognize the voice command as a voice command specific to the smart home device when the space type of the smart home device is consistent with the target space type and the device type of the smart home device is consistent with the target device type.
[0102] The second recognition submodule is used to recognize the voice command as a voice command from another smart home device whose space type is consistent with the target space type and whose device type is consistent with the target device type when the space type of the smart home device is different from the target space type and / or the device type of the smart home device is different from the target device type.
[0103] The sending module 304 includes:
[0104] The distribution submodule is used by the central controller to distribute the voice command to smart home devices whose space type is the target space type and whose device type is the target device type through the local area network.
[0105] Optionally, the setting module includes:
[0106] The settings submodule is used to set the room name where the smart home device is located as the space type of the smart home device.
[0107] Optionally, the device further includes:
[0108] The first execution result processing module is used by the smart home device to report the execution result of the voice command to the central controller via the local area network; or,
[0109] The second execution result processing module is used by the corresponding smart home device to report the execution result of the voice command to the central controller through the local area network;
[0110] The central controller records the execution results.
[0111] Optionally, the device further includes:
[0112] An alarm module is used to issue a warning when the number of voice commands that are not successfully executed by the same smart home device exceeds a preset number.
[0113] This application also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that the processor implements any of the aforementioned control methods when executing the program.
[0114] This application also provides a readable storage medium that, when instructions or transactions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform any of the aforementioned control methods.
[0115] This application also provides a computer program product including instructions or transactions that, when executed by a processor in an electronic device, cause the electronic device to perform any of the aforementioned control methods.
[0116] It should be noted that control systems, electronic devices, readable storage media, and computer program products can all refer to the description of the aforementioned control method and have the same or similar beneficial effects. To avoid repetition, they will not be described again here.
[0117] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0118] This application also provides an electrical appliance that includes any of the aforementioned control methods. The type of electrical appliance is not specifically limited; for example, it could be an air conditioner, a robotic arm, etc. This electrical appliance and the aforementioned control method have the same or similar beneficial effects as any of the aforementioned control methods, and to avoid repetition, they will not be described further here.
[0119] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0120] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A control method, characterized in that, An application is made in a smart home system, the smart home system comprising: a central controller and multiple smart home devices, the central controller and the multiple smart home devices forming a local area network; each smart home device in the smart home system has the ability to receive voice commands, or some of the smart home devices in the smart home system have the ability to receive voice commands, or only one smart home device in the smart home system has the ability to receive voice commands; the method includes: The smart home device receives the voice command and has the ability to recognize voice commands offline. The voice command includes: target space type and target device type. When the space type of the smart home device is consistent with the target space type, and the device type of the smart home device is consistent with the target device type, the smart home device will recognize the voice command as a voice command specific to the smart home device. If the space type of the smart home device is different from the target space type, and / or the device type of the smart home device is different from the target device type, the smart home device will recognize the voice command as a voice command from another smart home device whose space type is consistent with the target space type and whose device type is consistent with the target device type. When the smart home device recognizes that the voice command is a voice command specifically for the smart home device, the smart home device executes the voice command; If the smart home device recognizes that the voice command is a voice command for another smart home device, the smart home device will report the voice command to the central controller through the local area network; The central controller acts as a relay device, sending the voice commands to the corresponding smart home devices through the local area network; The corresponding smart home device executes the voice command.
2. The control method according to claim 1, characterized in that, The method further includes: Configure the space type and device type for each of the aforementioned smart home devices; The central controller sends the voice commands to the corresponding smart home devices via the local area network, including: The central controller sends the voice commands to smart home devices whose space type is the target space type and whose device type is the target device type via the local area network.
3. The control method according to claim 2, characterized in that, The step of setting space type and device type for each of the smart home devices includes: Set the name of the room where the smart home device is located as the space type of the smart home device.
4. The control method according to any one of claims 1 to 3, characterized in that, The method further includes: The smart home device reports the execution result of the voice command to the central controller via the local area network; or, The corresponding smart home device reports the execution result of the voice command to the central controller via the local area network; The central controller records the execution results.
5. The control method according to claim 4, characterized in that, The method further includes: If the number of voice commands that fail to be executed on the same smart home device exceeds a preset number, the central controller will issue a warning.
6. A control device, characterized in that, An application for a smart home system, the smart home system comprising: a central controller and multiple smart home devices, the central controller and the multiple smart home devices forming a local area network; each smart home device in the smart home system has the ability to receive voice commands, or some of the smart home devices in the smart home system have the ability to receive voice commands, or only one smart home device in the smart home system has the ability to receive voice commands; the device includes: A voice command receiving module is used for the smart home device to receive the voice command. The smart home device has the ability to recognize voice commands offline. The voice command includes: target space type and target device type. The first recognition submodule is used to recognize the voice command as a voice command specific to the smart home device when the space type of the smart home device is consistent with the target space type and the device type of the smart home device is consistent with the target device type. The second recognition submodule is used to recognize the voice command as a voice command from another smart home device whose space type is consistent with the target space type and whose device type is consistent with the target device type when the space type of the smart home device is different from the target space type and / or the device type of the smart home device is different from the target device type. The first execution module is configured to execute the voice command when the smart home device recognizes that the voice command is a voice command for the smart home device. The reporting module is used so that when the smart home device recognizes that the voice command is a voice command for other smart home devices, the smart home device reports the voice command to the central controller through the local area network; The distribution module is used by the central controller as a relay device to distribute the voice commands to the corresponding smart home devices through the local area network; The second execution module is used for the corresponding smart home device to execute the voice command.
7. An electronic device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the program, implements the control method as described in any one of claims 1 to 5.
8. A readable storage medium, characterized in that, When the instructions or transactions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the control method according to any one of claims 1 to 5.
9. A computer program product, characterized in that, Includes instructions or transactions that, when executed by a processor in an electronic device, cause the electronic device to perform the control method of any one of claims 1 to 5.