Methods, devices, storage media and electronic devices for controlling smart home appliance terminals
Patent Information
- Application Number
- CN202311533118.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-11-16
AI Technical Summary
[0005]本申请提供一种控制智能家电终端的方法、装置、存储介质及电子装置,用以解决现有技术中语音控制智能家电终端的成功率较低的缺陷,提高语音控制智能家电终端的成功率
Smart Images

Figure CN117746853B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart home / intelligent home technology, and in particular to a method, apparatus, storage medium and electronic device for controlling smart home appliance terminals. Background Technology
[0002] With the development of technology, users can control smart home appliances via voice commands, eliminating the need for remote controls and greatly simplifying their lives.
[0003] Currently, after a user speaks, the voice recognition device can recognize the user's voice, convert the user's speech into control commands, and control the corresponding home appliance terminal to execute the control commands.
[0004] However, a single voice command from a user may contain multiple control commands, and these commands may conflict with each other, causing the smart home appliance terminal to fail to execute them, thus reducing the success rate of voice control of the smart home appliance terminal. Summary of the Invention
[0005] This application provides a method, apparatus, storage medium, and electronic device for controlling smart home appliance terminals, in order to address the shortcomings of the low success rate of voice-controlled smart home appliance terminals in the prior art and improve the success rate of voice-controlled smart home appliance terminals.
[0006] This application provides a method for controlling a smart home appliance terminal, the method comprising:
[0007] Acquire voice control commands and recognize the voice control commands to obtain voice control information, wherein the voice control information includes the correspondence between control attributes and control parameters;
[0008] Obtain the priority of each of the aforementioned control attributes;
[0009] When there is a priority order from high to low, the control attribute with the highest priority is determined as the target control attribute, and the control parameter corresponding to the control attribute with the highest priority is determined as the target control parameter.
[0010] Obtain the target verification model corresponding to the target control attribute, and verify the target control attribute and the target control parameter based on the target verification model to obtain the verification result;
[0011] If the verification result indicates that the verification is passed, the target control attribute and target control parameter are determined in descending order of priority. The steps of obtaining the target verification model corresponding to the target control attribute and verifying the target control attribute and the target control parameter based on the target verification model are executed to obtain the verification result. The steps continue until the verification result corresponding to each control attribute indicates that the verification is passed, and then the control command of the smart home appliance terminal is generated.
[0012] According to the method for controlling a smart home appliance terminal provided in this application, after the step of verifying the target control attribute and the target control parameter based on the target verification model and obtaining the verification result, the method further includes:
[0013] If the verification result indicates that the verification fails, the verification result also includes error information to be used. Based on the error information to be used, the solution information to be used is determined from the preset error information and solution information so that the user can be informed of the error information to be used and the solution information to be used.
[0014] According to the method for controlling a smart home appliance terminal provided in this application, the step of obtaining the target verification model corresponding to the target control attribute includes:
[0015] When the target control attribute has the highest priority, an initial verification model is obtained based on the current state of the smart home appliance terminal, and the initial verification model is used as the target verification model.
[0016] If the priority of the target control attribute is not the highest, the target verification model corresponding to the target control attribute is obtained based on the control attribute corresponding to the previous priority of the target control attribute, the control parameter corresponding to the previous priority of the target control attribute, and the target verification model corresponding to the previous priority of the target control attribute.
[0017] According to the method for controlling a smart home appliance terminal provided in this application, the step of obtaining an initial verification model based on the current state of the smart home appliance terminal includes:
[0018] Based on the smart home appliance terminal identifier, the initial model to be used is determined from the pre-set correspondence between identifiers and initial models;
[0019] Based on the initial model to be used and the current state, obtain the initial verification model.
[0020] According to a method for controlling a smart home appliance terminal provided in this application, after the step of obtaining the priority of each of the control attributes, the method further includes:
[0021] In the absence of a priority order from high to low, each of the aforementioned control attributes is determined as a target control attribute, and each of the aforementioned control parameters is determined as a target control parameter accordingly.
[0022] According to the method for controlling a smart home appliance terminal provided in this application, the voice control information includes the identifier of the smart home appliance terminal;
[0023] The step of obtaining the priority of each of the control attributes includes:
[0024] From the pre-set matching relationship between identifiers and corresponding relationships, obtain the correspondence to be used that matches the identifier of the smart home appliance terminal, wherein the correspondence to be used is the correspondence between attributes and priorities;
[0025] The priority of each control attribute is determined from the correspondence between attributes and priorities.
[0026] According to a method for controlling a smart home appliance terminal provided in this application, the target verification model includes verification attributes and parameter ranges corresponding to the verification attributes;
[0027] The step of verifying the target control attributes and the target control parameters based on the target verification model to obtain the verification result includes:
[0028] Determine the verification attribute to be used corresponding to the target control attribute, and take the parameter range corresponding to the verification attribute to be used as the parameter range to be used;
[0029] If the target control parameter falls within the range of parameters to be used, a verification result is generated indicating that the target control attribute and the target control parameter have passed the verification.
[0030] This application also provides a device for controlling smart home appliance terminals, the device comprising:
[0031] An information acquisition module is used to acquire voice control commands and recognize the voice control commands to obtain voice control information, wherein the voice control information includes the correspondence between control attributes and control parameters;
[0032] The priority acquisition module is used to acquire the priority of each of the control attributes;
[0033] The control information determination module, when there is a priority order from high to low, determines the control attribute with the highest priority as the target control attribute, and determines the control parameter corresponding to the control attribute with the highest priority as the target control parameter;
[0034] The verification result determination module obtains the target verification model corresponding to the target control attribute, and verifies the target control attribute and the target control parameter based on the target verification model to obtain the verification result;
[0035] The control instruction generation module is used to determine the target control attribute and target control parameter in descending order of priority, according to the verification result indicating that the verification has passed, and to call the verification result determination module to obtain the target verification model corresponding to the target control attribute, and to verify the target control attribute and target control parameter based on the target verification model to obtain the verification result, until the verification result corresponding to each control attribute indicates that the verification has passed, and then generate the control instruction of the smart home appliance terminal.
[0036] The method, apparatus, storage medium, and electronic device for controlling smart home appliance terminals provided in this application acquire voice control commands and recognize them to obtain voice control information. The voice control information includes the correspondence between control attributes and control parameters. The priority of each control attribute is acquired. If there is a descending order of priority, the control attribute with the highest priority is determined as the target control attribute, and the control parameter corresponding to the highest priority control attribute is determined as the target control parameter. A target verification model corresponding to the target control attribute is acquired, and the target control attribute and target control parameter are verified based on the target verification model to obtain a verification result. If the verification result indicates that the verification is passed, the target control attribute and target control parameter are determined according to the descending order of priority. The steps of acquiring the target verification model corresponding to the target control attribute and verifying the target control attribute and target control parameter based on the target verification model to obtain a verification result are executed until the verification results for each control attribute indicate that the verification is passed, at which point a control command for the smart home appliance terminal is generated.
[0037] In this way, even when the control attributes in the voice control information have a priority order from high to low, each control attribute and its corresponding control parameter are checked sequentially in descending order to obtain the corresponding check results. If all check results pass, control commands for the smart home appliance terminal can be generated. Compared with existing technologies, this method can arrange control attributes according to priority, thereby avoiding control failures caused by conflicting control commands and improving the success rate of controlling smart home appliance terminals. Attached Figure Description
[0038] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0039] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 This is a schematic diagram of the hardware environment for a method of controlling a smart home appliance terminal according to an embodiment of this application.
[0041] Figure 2 This is one of the flowcharts illustrating the method for controlling a smart home appliance terminal provided in this application;
[0042] Figure 3 This is the second flowchart illustrating the method for controlling smart home appliance terminals provided in this application;
[0043] Figure 4 This is the third flowchart illustrating the method for controlling smart home appliance terminals provided in this application;
[0044] Figure 5 This is a schematic diagram of the device for controlling smart home appliance terminals provided in this application;
[0045] Figure 6 This is a schematic diagram of the electronic device provided in this application. Detailed Implementation
[0046] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0047] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0048] According to one aspect of the embodiments of this application, a method for controlling a smart home appliance terminal is provided. This method for controlling a smart home appliance terminal is widely applicable to whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and smart house ecosystems. Optionally, in this embodiment, the above-described method for controlling a smart home appliance terminal can be applied to, for example... Figure 1 The hardware environment shown consists of a smart home appliance terminal 102 and a server 104. Figure 1 As shown, server 104 is connected to smart home appliance terminal 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.
[0049] The aforementioned networks may include, but are not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The smart home appliance terminal 102 may not be limited to smart air conditioners, smart range hoods, smart refrigerators, smart ovens, smart stoves, smart washing machines, smart water heaters, smart washing equipment, smart dishwashers, smart projectors, smart TVs, smart clothes racks, smart curtains, smart audio-visual equipment, smart sockets, smart speakers, smart speakers, smart fresh air systems, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaners, smart window cleaning robots, smart mopping robots, smart air purifiers, smart steam ovens, smart microwave ovens, smart water heaters, smart air purifiers, smart water dispensers, smart door locks, etc.
[0050] To improve the success rate of controlling smart home appliance terminals, embodiments of this application provide a method, apparatus, computer-readable storage medium, electronic device, and computer program product for controlling smart home appliance terminals. The following describes these methods in conjunction with... Figure 2 This application provides a method for controlling a smart home appliance terminal.
[0051] like Figure 2 As shown in the figure, this application provides a method for controlling a smart home appliance terminal, the method including:
[0052] S201, acquire voice control commands, and recognize the voice control commands to obtain voice control information.
[0053] To improve the success rate of controlling smart home appliances, the smart appliance terminal / server can acquire voice control commands and perform voice recognition to obtain voice control information. This voice control information includes the correspondence between control attributes and control parameters.
[0054] Control attributes can be the attributes corresponding to various functions of a smart home appliance terminal. Control parameters are the adjustment parameters corresponding to those functions. For example, if the smart home appliance terminal is an air conditioner, control attributes could include on / off status, operating mode, temperature, fan speed, humidity, etc. The control parameter corresponding to the operating mode could be cooling. The control parameter corresponding to the temperature could be 26℃. No specific limitations are made here.
[0055] S202, Obtain the priority of each of the control attributes.
[0056] In order to execute step S202 above, the smart home appliance terminal / server can store pre-set mapping relationships to be used. In this case, there can be multiple servers, and different types of smart home appliance terminals can correspond to different servers. The mapping relationship to be used is a mapping relationship between attributes and priorities.
[0057] If a mapping relationship exists between attributes and priorities, the priority of each control attribute can be determined from this mapping. Since there is a mapping relationship between control attributes and control parameters, once the priority of a control attribute is determined, the corresponding control parameter also has a priority.
[0058] S203, when there is a priority order from high to low, the control attribute with the highest priority is determined as the target control attribute, and the control parameter corresponding to the control attribute with the highest priority is determined as the target control parameter.
[0059] After determining the priority of each control attribute, if there is a descending order of priority, the control attribute with the highest priority can be identified as the target control attribute, and the control parameter corresponding to the control attribute with the highest priority can be identified as the target control parameter.
[0060] S204, obtain the target verification model corresponding to the target control attribute, and verify the target control attribute and the target control parameter based on the target verification model to obtain the verification result.
[0061] Once the target control attributes and target control parameters are determined, a target verification model corresponding to the target control attributes can be obtained. The target control attributes and target control parameters are then verified based on this verification model to obtain the verification results. The target verification model can be an initial verification model, or it can be a verification model determined based on the initial verification model, the target control attributes, and the target control parameters.
[0062] S205, if the verification result indicates that the verification is passed, the target control attribute and target control parameter are determined in order of priority from high to low, and the steps of obtaining the target verification model corresponding to the target control attribute and verifying the target control attribute and the target control parameter based on the target verification model are executed to obtain the verification result. This process continues until the verification result corresponding to each control attribute indicates that the verification is passed, and then a smart home appliance terminal control instruction is generated.
[0063] The steps described above for determining the target control attributes and target control parameters in descending order of priority include:
[0064] The control attributes that have obtained verification results are considered verified control attributes, the control parameters that have obtained verification results are considered verified control parameters, the control attributes that have not been verified (no verification results obtained) are considered unverified control attributes, and the control parameters that have not been verified (no verification results obtained) are considered unverified control parameters.
[0065] For unverified control attributes and unverified control parameters, the unverified control attribute with the highest priority is taken as the target control attribute, and correspondingly, the unverified control parameter with the highest priority is taken as the target control parameter.
[0066] If all verification results indicate that the verification has passed, in the process of obtaining each verification result, it is equivalent to taking each control attribute as the target control attribute and each control parameter as the target control parameter in descending order of priority.
[0067] If the verification result corresponding to the highest priority control attribute passes, the second highest priority control attribute can be determined as the target control attribute, and the control parameter of the second highest priority control attribute can be determined as the target control parameter. Then, the steps of obtaining the target verification model corresponding to the target control attribute, and verifying the target control attribute and the target control parameter based on the target verification model, are executed to obtain the verification result.
[0068] If the verification result corresponding to the control attribute with the second highest priority passes, the control attribute with the third highest priority can be determined as the target control attribute, and the control parameter of the control attribute with the third highest priority can be determined as the target control parameter. Then, the steps of obtaining the target verification model corresponding to the target control attribute, and verifying the target control attribute and the target control parameter based on the target verification model, are executed to obtain the verification result.
[0069] This process continues until the verification result for the lowest priority control attribute is obtained. If the verification results for all control attributes indicate that the verification has passed, control commands for the smart home appliance terminal can be generated.
[0070] For each control attribute, the following steps are performed: obtaining the target verification model corresponding to the target control attribute, and verifying the target control attribute and the target control parameters based on the target verification model to obtain the verification result. The target verification model is different for each control attribute; therefore, the target verification model is dynamically changing.
[0071] When the executing entity is a smart home appliance terminal, control commands can be executed. When the executing entity is a server, control commands can be sent to the corresponding smart home appliance terminal, which can then execute the control commands.
[0072] As can be seen, in this embodiment, when the control attributes in the voice control information have a priority order from high to low, each control attribute and its corresponding control parameter are checked in descending order to obtain the corresponding check result. If all check results pass, control commands for the smart home appliance terminal can be generated. Compared with the prior art, the control attributes can be arranged according to priority, thereby avoiding control failures caused by conflicting control commands and improving the success rate of controlling the smart home appliance terminal.
[0073] The method for controlling smart home appliance terminals provided in this application can realize the orderly verification of voice control commands in descending order of priority, thus avoiding control failures caused by the uncertainty of the order of control commands.
[0074] Furthermore, for each target control attribute, there is a corresponding target verification model. This means that the target verification model can be adjusted in real time according to different target control attributes, and the control attributes can be verified one by one, which can avoid control failure caused by multiple control attributes.
[0075] As one embodiment of this application, after the above steps of verifying the target control attributes and the target control parameters based on the target verification model to obtain the verification result, the method further includes:
[0076] If the verification result indicates that the verification fails, the target control attribute and target control parameter may be uncertain. The verification result also includes error information to be used. Based on the error information to be used, the solution information to be used is determined from the pre-set error information and solution information so that the user can be informed of the error information to be used and the solution information to be used.
[0077] In one implementation, when the executing entity is a smart home appliance terminal, the smart home appliance terminal can determine the corresponding solution information to be used from the pre-set error information and solution information, and then broadcast or display the error information to be used and the corresponding solution information to be used, so that the user can know the error information to be used and the solution information to be used.
[0078] In another implementation, when the executing entity is a server, the server can determine the corresponding solution information from pre-set error information and solution information. The server can then send the error information and its corresponding solution information to a smart home appliance terminal or mobile terminal so that the user is aware of both. The mobile terminal can be a mobile phone, computer, tablet, etc.
[0079] In this way, control commands to the smart home appliance terminal will not be issued if the verification fails, thus ensuring the stability and security of the smart home appliance terminal.
[0080] As can be seen, in this embodiment, users can be informed of the error information and the solution information when the verification results are different. This can avoid the situation where the user issues incorrect voice control commands and allow the user to make corresponding improvements, thereby facilitating the issuance of correct voice control commands in the future.
[0081] As one embodiment of this application, the step of obtaining the target verification model corresponding to the target control attribute described above may include:
[0082] If the target control attribute has the highest priority, an initial verification model is obtained based on the current state of the smart home appliance terminal, and the initial verification model is used as the target verification model.
[0083] If the priority of the target control attribute is not the highest, the target verification model corresponding to the target control attribute is obtained based on the control attribute corresponding to the previous priority of the target control attribute, the control parameter corresponding to the previous priority of the target control attribute, and the target verification model corresponding to the previous priority of the target control attribute.
[0084] To facilitate understanding of the method for controlling a smart home appliance terminal provided in the embodiments of this application, the digital model will be introduced first below.
[0085] A digital model is a model obtained by digitally modeling physical devices in the real world. It better describes the state and behavior of devices in the digital world. In the smart home IoT (Internet of Things) system, the digital model is generated in real time based on the device's state in the real world and the device's execution logic defined by the device developer. The digital model provides all the device's attributes, including the readable and writable value range of each attribute. Through the digital model, we can more easily control and manage devices, achieving intelligent device management and control.
[0086] When the target control attribute has the highest priority, an initial verification model can be calculated based on the current state of the smart home appliance terminal and the corresponding configuration file. This is equivalent to obtaining the initial verification model, which can then be used as the target verification model, that is, the target verification model corresponding to the target control attribute with the highest priority.
[0087] In one implementation, the step of obtaining the initial verification model based on the current state of the smart home appliance terminal may include:
[0088] Based on the smart home appliance terminal identifier, the initial model to be used (equivalent to the configuration file corresponding to the smart home appliance terminal) is determined from the pre-set correspondence between the identifier and the initial model.
[0089] Based on the initial model to be used and the current state, an initial verification model is obtained. In one embodiment, the parameters corresponding to the initial model to be used can be adjusted to the parameters corresponding to the current state, thereby obtaining the initial verification model.
[0090] If the target control attribute does not have the highest priority, the target verification model corresponding to the target control attribute is obtained based on the control attribute corresponding to the previous priority of the target control attribute, the control parameter corresponding to the previous priority of the target control attribute, and the target verification model corresponding to the previous priority of the target control attribute.
[0091] In other words, when the target control attribute has the second highest priority, the target verification model corresponding to the target control attribute with the second highest priority can be obtained based on the highest priority control attribute, the highest priority control parameter, and the initial verification model (the highest priority target verification model).
[0092] In one implementation, the highest priority control attribute and the highest priority control parameter can be input into the initial verification model to calculate the target verification model corresponding to the target control attribute with the second highest priority.
[0093] When the target control attribute has the third highest priority, the target verification model corresponding to the target control attribute with the third highest priority can be obtained based on the control attribute with the second highest priority, the control parameter with the second highest priority, and the target verification model with the second highest priority.
[0094] Similarly, as long as the verification result indicates that the verification is passed, the target control attribute and target control parameter can be determined, and the target verification model corresponding to the target control attribute can be obtained based on the control attribute corresponding to the previous priority of the target control attribute, the corresponding control parameter, and the corresponding target verification model.
[0095] As can be seen, in this embodiment, the corresponding target verification model can be obtained according to different control attributes and control parameters. This means that the target verification model is dynamically changing and can take into account multiple control attributes and multiple control parameters, thereby improving the success rate of controlling smart home appliance terminals.
[0096] As one embodiment of this application, after the step of obtaining the priority of each of the control attributes described above, the method may further include:
[0097] In the absence of a priority order from high to low, each of the aforementioned control attributes is determined as a target control attribute, and each of the aforementioned control parameters is determined as a target control parameter accordingly.
[0098] When there is no order of priority from high to low, that is, when all control attributes have the same priority, all control attributes can be determined as target control attributes, and correspondingly, all control parameters can be determined as target control parameters.
[0099] After obtaining the target control attributes and target control parameters, an initial verification model (target verification model) can be calculated based on the current state of the smart home appliance terminal and the corresponding configuration file of the smart home appliance terminal. The initial verification model is then used to verify the target control attributes and target control parameters to obtain the verification results.
[0100] If the verification result indicates that the verification is successful, control commands for the smart home appliance terminal can be generated. The verification result also includes error information to be used. If the verification result indicates that the verification is unsuccessful, the corresponding solution information to be used is determined from the pre-set error information and solution information, so that the user is aware of the error information and solution information to be used.
[0101] As can be seen, in this embodiment, when there is no order of priority from high to low, only an initial verification model can be calculated, and all control attributes and control parameters included in the voice control command can be verified. In this way, control commands for smart home appliance terminals can be generated more quickly.
[0102] In one embodiment of this application, the voice control information includes the identifier of the smart home appliance terminal. When the executing entity is the smart home appliance terminal, after acquiring the control attribute, the smart home appliance terminal can compare the control attribute with pre-stored functional information. If the control attribute belongs to functional information, the control attribute, control parameters, and the identifier of the smart home appliance terminal are used as the voice control information. If the control attribute does not belong to functional information, the control attribute and control parameters can be deleted.
[0103] When the execution entity is a server, the server can receive voice control commands sent by various smart home appliance terminals. These voice control commands carry the identifiers of the smart home appliance terminals. After obtaining the control attributes, the server can determine the function to be used based on the identifiers of the smart home appliance terminals, from a pre-stored correspondence between identifiers and function information.
[0104] If the control attribute belongs to the function information to be used, it can be determined that the voice control information belongs to the smart home appliance terminal. Therefore, the step of obtaining the priority of each control attribute can be performed. If the control attribute does not belong to the function information to be used, it can be determined that the voice control information does not belong to the smart home appliance terminal. Therefore, the voice control information can be deleted.
[0105] The steps for obtaining the priority of each of the aforementioned control attributes include:
[0106] Obtain the matching relationship between the identifier and the corresponding relationship of the smart home appliance terminal from the pre-set identifier and corresponding relationship.
[0107] Different smart home appliance terminals have different functions, and therefore, the correspondences between their attributes and priorities are also different. Therefore, after obtaining the identifier of a smart home appliance terminal, a matching relationship can be obtained from a pre-set identifier-correspondence pair, where the matching relationship is a correspondence between attributes and priorities.
[0108] For example, for an air conditioner of model A, attributes could include on / off status, operating mode, temperature, fan speed, and humidity. The priority order could be: on / off status > operating mode > temperature > fan speed > humidity. Of course, the priority of each attribute could be represented by identifiers: on / off status (priority 1) > operating mode (priority 2) > temperature (priority 3) > fan speed (priority 4) > humidity (priority 5). These are all reasonable and will not be specifically limited here.
[0109] The priority of each control attribute is determined from the correspondence between attributes and priorities.
[0110] After obtaining the correspondence between attributes and priorities, the priority of each control attribute can be determined from the correspondence between attributes and priorities. In this way, the priority of each control attribute can be determined more accurately, so as to improve the success rate of controlling smart home appliance terminals.
[0111] In one implementation, if a control attribute cannot be assigned a corresponding priority from the attribute-priority correspondence, the priority of that control attribute can be set to the lowest priority.
[0112] As one implementation method of this application, the correspondence between attributes and priorities can be pre-stored. When the executing entity is a smart home appliance terminal, the priority of each control attribute can be determined from the pre-stored correspondence between attributes and priorities.
[0113] When the executing entity is a server, the server can be a server corresponding to a specific type of smart home appliance terminal. In this case, the server can receive voice control commands from the corresponding smart home appliance terminal. After obtaining the voice control information, the priority of each control attribute can be determined from the pre-stored correspondence between attributes and priorities.
[0114] As can be seen, in this embodiment, the matching relationship between the identifiers of the smart home appliance terminals can be determined first, thereby more accurately determining the priority of each control attribute, which can improve the success rate of controlling the smart home appliance terminals. Furthermore, the correspondence between attributes and priorities allows for the sorting of each control attribute, facilitating subsequent verification of control attributes and parameters and ensuring the order and correctness of the verification.
[0115] As one embodiment of this application, the target verification model includes verification attributes and parameter ranges corresponding to the verification attributes.
[0116] The step of verifying the target control attributes and the target control parameters based on the target verification model to obtain the verification result includes:
[0117] Determine the verification attribute to be used corresponding to the target control attribute, and take the parameter range corresponding to the verification attribute to be used as the parameter range to be used.
[0118] If there is no verification attribute to be used, it means that the control attribute is not writable. Therefore, a verification result can be generated to indicate that the target control attribute and target control parameter verification failed. The specific information of the target control attribute verification failure is used as the error information, which is part of the verification result.
[0119] If the target control parameter falls within the range of parameters to be used, a verification result is generated indicating that the target control attribute and the target control parameter have passed the verification.
[0120] If the target control parameter does not belong to the range of parameters to be used, a verification result representing the failure of the target control attribute and the target control parameter verification is generated, and the specific information of the failure of the target control parameter verification is used as error information, where the error information is part of the verification result.
[0121] Mutual exclusion verification is the process of verifying the target control attributes and target control parameters based on the digital model (target verification model), including determining whether the target control attributes are writable and whether the target control parameters belong to the range of parameters to be used.
[0122] As can be seen, in this embodiment, the verification result can be accurately determined through the target verification model. This is equivalent to achieving multi-intent mutual exclusion verification.
[0123] As one implementation method of this application, the correspondence between attributes and priorities for each smart home appliance terminal can be pre-set. Since the functions of different models of smart home appliance terminals within the same category are basically the same, by maintaining the correspondence between attributes and priorities for one model within a category (type), other models of smart home appliance terminals within the same category can also use the same correspondence between attributes and priorities. In this way, only a relatively small number of correspondences between attributes and priorities for smart home appliance terminals need to be maintained to execute the method of controlling smart home appliance terminals, effectively improving the efficiency and accuracy of verifying control attributes and control parameters. For example, for devices of models AB9622000 and AB9237001 under category A018, the same correspondence between attributes and priorities can be set.
[0124] To facilitate understanding of the method for controlling a smart home appliance terminal provided in this application embodiment, the following examples illustrate the prior art and the method for controlling a smart home appliance terminal provided in this application embodiment, combined with specific scenarios.
[0125] According to the existing technology, the user can issue voice control commands 1 including "dehumidify" and "turn on". The voice recognition device can recognize the voice control commands 1 to obtain intention commands 1, wherein the intention commands 1 include adjusting the air conditioner's operating mode to dehumidify and controlling the air conditioner to turn on.
[0126] It is evident that the user's voice control command 1 is out of order. The existing technology cannot determine the order of voice control command 1. During the execution process, if the air conditioner is in the off state, the off state and the air conditioner's operating mode being adjusted to dehumidification conflict with each other. Therefore, the air conditioner cannot execute voice control command 1.
[0127] As can be seen from the above, in the existing technology, the lack of order among the various control attributes in the voice control commands issued by the user leads to a decrease in the success rate of voice control of smart home appliances.
[0128] In the method for controlling a smart home appliance terminal provided in this application embodiment, after the user issues a voice control command 1 including "dehumidify" and "turn on", the voice control command 1 can be recognized to obtain voice control information. The voice control information includes the correspondence between mode (control attribute) and dehumidification (control parameter), as well as the correspondence between power on / off state (control attribute) and power on (control parameter).
[0129] From the mapping between attributes and priorities, determine the priority of mode and power-on / off state, where the priority of power-on / off state is higher than that of mode. Power-on / off state can be used as the target control attribute, and power-on can be used as the target control parameter.
[0130] Based on the current state of the smart home appliance terminal and the corresponding configuration file, an initial verification model is calculated. The power-on / off state and power-on are verified based on the initial verification model to obtain verification result 1. If verification result 1 indicates that the verification is successful, the mode can be used as the target control attribute and dehumidification can be used as the target control parameter.
[0131] The power-on / off status and power-on input are fed into the initial verification model to calculate the target control model corresponding to the mode. Then, based on the target control model, the mode (target control attributes) and dehumidification (target control parameters) can be verified, resulting in verification result 2. If verification result 2 indicates that the verification is successful, a control command for the smart home appliance terminal can be generated. This control command controls the smart home appliance terminal to power on and activate the dehumidification mode.
[0132] If the verification model does not change, some control attributes and control parameters will not be executed, meaning that user-issued control commands will be intercepted. However, in this application, changes in control attributes and control parameters will cause changes in the target verification model, meaning that the target verification model is dynamically changing, which can yield more accurate verification results.
[0133] As can be seen, in this embodiment, compared with the prior art, the control attributes can be arranged according to priority, thereby avoiding control failures caused by conflicting control commands and improving the success rate and efficiency of controlling smart home appliance terminals. It also enables orderly verification of voice control commands in descending order of priority, avoiding control failures caused by uncertain order of control commands.
[0134] The following is combined Figures 3-4 This application provides a method for controlling a smart home appliance terminal.
[0135] like Figure 3 As shown, for each target control attribute, corresponding target control parameter, and corresponding target verification model, the following steps can be performed:
[0136] S301, Obtain the target verification model corresponding to the target control attribute.
[0137] The target verification model includes verification attributes and the parameter ranges corresponding to the verification attributes.
[0138] S302, determine the verification attribute to be used corresponding to the target control attribute, and take the parameter range corresponding to the verification attribute to be used as the parameter range to be used.
[0139] S303, determine whether the target control parameter belongs to the range of parameters to be used.
[0140] If the target control parameter falls within the range of parameters to be used, proceed to step S304. If the target control parameter does not fall within the range of parameters to be used, proceed to step S305.
[0141] S304, Generate verification results indicating that the target control attributes and target control parameters have passed verification.
[0142] S305, End.
[0143] like Figure 4 As shown in the figure, a method for controlling a smart home appliance terminal provided in this application includes the following steps:
[0144] S401, acquire voice control commands, and recognize the voice control commands to obtain voice control information.
[0145] The voice control information includes the correspondence between control attributes and control parameters, as well as the identification of smart home appliance terminals.
[0146] S402: Obtain the matching relationship between the identifier and the corresponding relationship of the smart home appliance terminal from the pre-set identifier and corresponding relationship, and determine the priority of each control attribute from the attribute and priority corresponding relationship.
[0147] Among them, the correspondence to be used is the correspondence between attributes and priorities.
[0148] S403, when there is no order of priority from high to low, each control attribute is determined as a target control attribute, and each control parameter is determined as a target control parameter. Based on the current state of the smart home appliance terminal, an initial verification model is obtained, and the target control attributes and target control parameters are verified based on the initial verification model to obtain the verification result.
[0149] If the verification result passes, proceed to step S404. If the verification result fails, proceed to step S405.
[0150] S404 generates control commands for smart home appliance terminals.
[0151] S405, End.
[0152] S406, when there is a priority order from high to low, the control attribute with the highest priority is determined as the target control attribute, and the control parameter corresponding to the control attribute with the highest priority is determined as the target control parameter.
[0153] S407, Obtain the target verification model corresponding to the target control attribute.
[0154] If the target control attribute has the highest priority, an initial verification model is obtained based on the current state of the smart home appliance terminal, and this initial verification model is used as the target verification model. If the target control attribute does not have the highest priority, the target verification model corresponding to the target control attribute is obtained based on the control attribute with the next higher priority, the corresponding control parameters, and the corresponding target verification model.
[0155] S408 verifies the target control attributes and target control parameters based on the target verification model, and obtains the verification results.
[0156] If the verification result passes, proceed to step S409. If the verification result fails, proceed to step S405.
[0157] S409, determine whether there are control attributes and control parameters that have not been verified.
[0158] If there are control attributes and control parameters that have not been verified, proceed to step S410. If there are no control attributes and control parameters that have not been verified, proceed to step S404.
[0159] S410, determine the target control attributes and target control parameters in order of priority from high to low, and execute step S407.
[0160] The apparatus for controlling a smart home appliance terminal provided in this application will be described below. The apparatus for controlling a smart home appliance terminal described below and the method for controlling a smart home appliance terminal described above can be referred to in correspondence.
[0161] like Figure 5 As shown in the figure, this application embodiment provides a device for controlling a smart home appliance terminal, the device comprising:
[0162] The information acquisition module 510 is used to acquire voice control commands and recognize the voice control commands to obtain voice control information, wherein the voice control information includes the correspondence between control attributes and control parameters;
[0163] Priority acquisition module 520 is used to acquire the priority of each of the control attributes;
[0164] The control information determination module 530, when there is a priority order from high to low, determines the control attribute with the highest priority as the target control attribute, and determines the control parameter corresponding to the control attribute with the highest priority as the target control parameter;
[0165] The verification result determination module 540 obtains the target verification model corresponding to the target control attribute, and verifies the target control attribute and the target control parameter based on the target verification model to obtain the verification result;
[0166] The control instruction generation module 550 is used to determine the target control attribute and target control parameter in descending order of priority when the verification result indicates that the verification has passed, call the verification result determination module 540 to obtain the target verification model corresponding to the target control attribute, and verify the target control attribute and target control parameter based on the target verification model to obtain the verification result, until the verification result corresponding to each control attribute indicates that the verification has passed, and generate the control instruction of the smart home appliance terminal.
[0167] As one embodiment of this application, the above-described apparatus may further include:
[0168] The resolution information determination module is used to determine the resolution information to be used after verifying the target control attributes and the target control parameters based on the target verification model and obtaining the verification result. If the verification result indicates that the verification failed, the verification result also includes error information to be used. Based on the error information to be used, the module determines the resolution information to be used from the preset error information and resolution information so that the user can be informed of the error information to be used and the resolution information to be used.
[0169] As one embodiment of this application, the verification result determination module 540 may include:
[0170] The first model acquisition unit is used to acquire an initial verification model based on the current state of the smart home appliance terminal when the target control attribute has the highest priority, and to use the initial verification model as the target verification model.
[0171] The second model acquisition unit is used to acquire the target verification model corresponding to the target control attribute based on the control attribute corresponding to the previous priority of the target control attribute, the control parameter corresponding to the previous priority of the target control attribute, and the target verification model corresponding to the previous priority of the target control attribute when the priority of the target control attribute is not the highest.
[0172] As one implementation of this application, the first model acquisition unit is specifically used to determine the initial model to be used from the pre-set correspondence between the identifier and the initial model based on the smart home appliance terminal identifier.
[0173] Based on the initial model to be used and the current state, obtain the initial verification model.
[0174] As one embodiment of this application, the above-described apparatus may further include:
[0175] The parameter determination module is used to determine each of the control attributes as a target control attribute and, in the absence of a descending order of priority, to determine each of the control attributes as a target control attribute and, correspondingly, to determine each of the control parameters as a target control parameter after obtaining the priority of each of the control attributes.
[0176] As one embodiment of this application, the voice control information includes the identifier of the smart home appliance terminal.
[0177] The aforementioned priority acquisition module 520 includes:
[0178] The relationship acquisition unit is used to acquire, from the pre-set matching relationship of identifiers and corresponding relationships, a correspondence to be used that matches the identifier of the smart home appliance terminal, wherein the correspondence to be used is a correspondence between attributes and priorities;
[0179] The priority determination unit is used to determine the priority of each control attribute from the correspondence between attributes and priorities.
[0180] As one embodiment of this application, the target verification model includes verification attributes and parameter ranges corresponding to the verification attributes.
[0181] The above-mentioned verification result determination module 540 also includes:
[0182] The interval determination unit is used to determine the verification attribute to be used corresponding to the target control attribute, and to take the parameter interval corresponding to the verification attribute to be used as the parameter interval to be used.
[0183] The result determination unit is used to generate a verification result indicating that the target control attribute and the target control parameter have passed verification when the target control parameter belongs to the range of parameters to be used.
[0184] Figure 6 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 6 As shown, the electronic device may include a processor 610, a communications interface 620, a memory 630, and a communication bus 640. The processor 610, communications interface 620, and memory 630 communicate with each other via the communication bus 640. The processor 610 can call logic instructions from the memory 630 to execute a method for controlling a smart home appliance terminal. This method includes: acquiring voice control commands, recognizing the voice control commands to obtain voice control information, wherein the voice control information includes the correspondence between control attributes and control parameters; acquiring the priority of each control attribute; and, if there is a descending order of priority, determining the control attribute with the highest priority as the target control attribute, and determining the control parameter corresponding to the highest priority control attribute as the target control parameter. Obtain the target verification model corresponding to the target control attribute, and verify the target control attribute and target control parameters based on the target verification model to obtain the verification result. If the verification result indicates that the verification is passed, determine the target control attribute and target control parameters in order of priority from high to low, and execute the steps of obtaining the target verification model corresponding to the target control attribute and verifying the target control attribute and target control parameters based on the target verification model to obtain the verification result. Continue until the verification result corresponding to each control attribute indicates that the verification is passed, and then generate the control command for the smart home appliance terminal.
[0185] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0186] On the other hand, this application also provides a computer program product, which includes a computer program that can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the methods for controlling smart home appliance terminals provided by the above methods. This method includes: acquiring voice control commands and recognizing the voice control commands to obtain voice control information, wherein the voice control information includes a correspondence between control attributes and control parameters; acquiring the priority of each control attribute; determining the control attribute with the highest priority as the target control attribute and the control parameter corresponding to the highest priority control attribute as the target control parameter; acquiring a target verification model corresponding to the target control attribute and verifying the target control attribute and target control parameter based on the target verification model to obtain a verification result; if the verification result indicates that the verification is passed, determining the target control attribute and target control parameter according to the order of priority from high to low; executing the steps of acquiring the target verification model corresponding to the target control attribute and verifying the target control attribute and target control parameter based on the target verification model to obtain a verification result; and generating control commands for the smart home appliance terminal until the verification results for each control attribute all indicate that the verification is passed.
[0187] Furthermore, this application also provides a computer-readable storage medium, comprising a stored program, wherein the program, when executed, performs the method for controlling a smart home appliance terminal provided by the aforementioned methods. This method includes: acquiring a voice control command and recognizing the voice control command to obtain voice control information, wherein the voice control information includes a correspondence between control attributes and control parameters; acquiring the priority of each control attribute; determining the control attribute with the highest priority as the target control attribute and the control parameter corresponding to the highest priority control attribute as the target control parameter when there is a descending order of priority; acquiring a target verification model corresponding to the target control attribute and verifying the target control attribute and target control parameter based on the target verification model to obtain a verification result; if the verification result indicates that the verification is passed, determining the target control attribute and target control parameter according to the descending order of priority; executing the steps of acquiring the target verification model corresponding to the target control attribute and verifying the target control attribute and target control parameter based on the target verification model to obtain a verification result; and generating a control command for the smart home appliance terminal when the verification results for each control attribute indicate that the verification is passed.
[0188] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0189] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0190] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A method for controlling a smart home appliance terminal, characterized in that, The method includes: Acquire voice control commands and recognize the voice control commands to obtain voice control information, wherein the voice control information includes the correspondence between control attributes and control parameters; Obtain the priority of each of the aforementioned control attributes; When there is a priority order from high to low, the control attribute with the highest priority is determined as the target control attribute, and the control parameter corresponding to the control attribute with the highest priority is determined as the target control parameter. Obtain the target verification model corresponding to the target control attribute, and verify the target control attribute and the target control parameter based on the target verification model to obtain the verification result; If the verification result indicates that the verification is passed, the target control attribute and target control parameter are determined in order of priority from high to low. The steps of obtaining the target verification model corresponding to the target control attribute and verifying the target control attribute and the target control parameter based on the target verification model are executed to obtain the verification result. The steps continue until the verification result corresponding to each control attribute indicates that the verification is passed, and then the control command of the smart home appliance terminal is generated. The step of obtaining the target verification model corresponding to the target control attribute includes: When the target control attribute has the highest priority, an initial verification model is obtained based on the current state of the smart home appliance terminal, and the initial verification model is used as the target verification model. If the priority of the target control attribute is not the highest, the target verification model corresponding to the target control attribute is obtained based on the control attribute corresponding to the previous priority of the target control attribute, the control parameter corresponding to the previous priority of the target control attribute, and the target verification model corresponding to the previous priority of the target control attribute. The voice control information includes the identifier of the smart home appliance terminal; The step of obtaining the priority of each of the control attributes includes: From the pre-set matching relationship between identifiers and corresponding relationships, obtain the correspondence to be used that matches the identifier of the smart home appliance terminal, wherein the correspondence to be used is the correspondence between attributes and priorities; The priority of each control attribute is determined from the correspondence between attributes and priorities.
2. The method for controlling a smart home appliance terminal according to claim 1, characterized in that, After the step of verifying the target control attributes and the target control parameters based on the target verification model to obtain the verification result, the method further includes: If the verification result indicates that the verification fails, the verification result also includes error information to be used. Based on the error information to be used, the solution information to be used is determined from the preset error information and solution information so that the user can be informed of the error information to be used and the solution information to be used.
3. The method for controlling a smart home appliance terminal according to claim 1, characterized in that, The step of obtaining the initial verification model based on the current state of the smart home appliance terminal includes: Based on the smart home appliance terminal identifier, the initial model to be used is determined from the pre-set correspondence between identifiers and initial models; Based on the initial model to be used and the current state, obtain the initial verification model.
4. The method for controlling a smart home appliance terminal according to any one of claims 1-3, characterized in that, After the step of obtaining the priority of each of the control attributes, the method further includes: In the absence of a priority order from high to low, each of the aforementioned control attributes is determined as a target control attribute, and each of the aforementioned control parameters is determined as a target control parameter accordingly.
5. The method for controlling a smart home appliance terminal according to any one of claims 1-3, characterized in that, The target verification model includes verification attributes and parameter ranges corresponding to the verification attributes; The step of verifying the target control attributes and the target control parameters based on the target verification model to obtain the verification result includes: Determine the verification attribute to be used corresponding to the target control attribute, and take the parameter range corresponding to the verification attribute to be used as the parameter range to be used; If the target control parameter falls within the range of parameters to be used, a verification result is generated indicating that the target control attribute and the target control parameter have passed the verification.
6. A device for controlling smart home appliance terminals, characterized in that, The device includes: An information acquisition module is used to acquire voice control commands and recognize the voice control commands to obtain voice control information, wherein the voice control information includes the correspondence between control attributes and control parameters; The priority acquisition module is used to acquire the priority of each of the control attributes; The control information determination module, when there is a priority order from high to low, determines the control attribute with the highest priority as the target control attribute, and determines the control parameter corresponding to the control attribute with the highest priority as the target control parameter; The verification result determination module obtains the target verification model corresponding to the target control attribute, and verifies the target control attribute and the target control parameter based on the target verification model to obtain the verification result; The control instruction generation module is used to determine the target control attribute and target control parameter in descending order of priority when the verification result indicates that the verification has passed; call the verification result determination module to execute the acquisition of the target verification model corresponding to the target control attribute; and verify the target control attribute and target control parameter based on the target verification model to obtain the verification result; until the verification result corresponding to each control attribute indicates that the verification has passed, generate the control instruction of the smart home appliance terminal. The verification result determination module includes: The first model acquisition unit is used to acquire an initial verification model based on the current state of the smart home appliance terminal when the target control attribute has the highest priority, and to use the initial verification model as the target verification model. The second model acquisition unit is used to acquire the target verification model corresponding to the target control attribute based on the control attribute corresponding to the previous priority of the target control attribute, the control parameter corresponding to the previous priority of the target control attribute, and the target verification model corresponding to the previous priority of the target control attribute when the priority of the target control attribute is not the highest. The priority acquisition module includes: The relationship acquisition unit is used to acquire, from the pre-set matching relationship of identifiers and corresponding relationships, a correspondence to be used that matches the identifier of the smart home appliance terminal, wherein the correspondence to be used is a correspondence between attributes and priorities; The priority determination unit is used to determine the priority of each control attribute from the correspondence between attributes and priorities.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method of any one of claims 1 to 5.
8. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 5 through the computer program.
Citation Information
Patent Citations
Equipment voice control method and device
CN105444332A
Control method and control device
CN106559473A
