A voice reply test method and device for a smart home appliance

By using a voice response testing method for smart home appliances and employing an assertion rule base and semantic testing model, the correctness of voice responses can be automatically determined, solving the problems of low testing efficiency and high labor costs in existing technologies and achieving efficient voice interaction testing.

CN118692447BActive Publication Date: 2025-12-26QINGDAO HAIER TECH +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410746222.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2025-12-26
Estimated Expiration
2044-06-11

AI Technical Summary

Technical Problem

In the current technology, there is a lack of unified judgment standards in the voice interaction testing process of smart home appliances, resulting in low testing efficiency and high labor costs.

Method used

By acquiring voice response information from smart home appliances, matching and analysis are performed using a pre-set assertion rule library. Combining voice assertion rules and semantic testing models, the correctness of voice responses is automatically determined, providing a unified testing standard.

Benefits of technology

The automated voice interaction testing process has improved testing efficiency, reduced labor costs, and enhanced user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692447B_ABST
    Figure CN118692447B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of smart home equipment, and provides a voice reply test method and device for smart home equipment, which comprises the following steps: obtaining voice reply information generated by smart home equipment to be tested; performing matching analysis on the voice reply information according to attribute types of the voice reply information and voice assertion rules of corresponding attribute types in a preset assertion rule library to obtain a matching result; in the case that a target voice assertion rule corresponding to the voice reply information exists in the matching result, performing test analysis on the voice reply information based on the target voice assertion rule to obtain a voice reply test result; wherein the assertion rules in the assertion rule library are obtained in advance. The voice reply test method for smart home equipment provided by the application can avoid complicated test steps, effectively improves the voice reply test efficiency of the smart home equipment, reduces the labor cost, and thus improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of smart home devices, in particular to a voice response test method and device for a smart home device, and further relates to an electronic device and a non-transitory computer-readable storage medium. BACKGROUND

[0002] With the continuous progress of Internet technology, various smart home devices are increasingly widely used in people's daily life. At present, smart home devices usually realize the interaction function with users through voice. Therefore, during the production process of smart home devices, the voice interaction accuracy of smart home devices needs to be tested in batches to ensure the voice interaction performance of smart home devices after leaving the factory. In the prior art, if it is to be determined whether the voice response of a smart home device is correct, a test personnel usually needs to manually determine it, and further needs to check whether the current state of the device is consistent with the instruction issued by voice, without a unified determination standard, which is low in efficiency and high in labor cost. Therefore, how to design a more efficient voice response test scheme for a smart home device has become a technical problem to be solved in the field. SUMMARY

[0003] The present application provides a voice response test method for a smart home device to solve the defects of complicated operation and poor test efficiency in the voice response test process for a smart home device in the prior art.

[0004] The present application provides a voice response test method for a smart home device, comprising: obtaining voice response information generated by a smart home device to be tested; matching and analyzing the attribute type of the voice response information with the voice assertion rule of the corresponding attribute type in a preset assertion rule library to obtain a matching result; in the case that the matching result contains a target voice assertion rule corresponding to the voice response information, testing and analyzing the voice response information based on the target voice assertion rule to obtain a voice response test result; wherein the assertion rule in the assertion rule library is obtained in advance.

[0005] According to the voice response test method for a smart home device provided by the present application, the matching and analyzing of the attribute type of the voice response information with the voice assertion rule of the corresponding attribute type in a preset assertion rule library to obtain a matching result specifically comprises: in the case that the attribute type of the voice response information is a query device state type, matching and analyzing the query device state type with the voice assertion rule of the corresponding query device state type in the assertion rule library to obtain a first matching result; in the case that the attribute type of the voice response information is a control device type, matching and analyzing the control device type with the voice assertion rule of the corresponding control device type in the assertion rule library to obtain a second matching result.

[0006] According to the voice reply test method of the intelligent household appliance device provided by the application, the matching analysis is carried out based on the query device state type and the voice assertion rule corresponding to the query device state type in the assertion rule library, and a first matching result is obtained, specifically including: determining the first priority corresponding to the voice assertion rule corresponding to the query device state type in the assertion rule library; based on the query device state type and the first priority, the voice reply information is sequentially matched with the voice assertion rule corresponding to the query device state type in the assertion rule library, and a first matching result is obtained.

[0007] According to the voice reply test method of the intelligent household appliance device provided by the application, the matching analysis is carried out based on the query device state type and the voice assertion rule corresponding to the query device state type in the assertion rule library, and a first matching result is obtained, specifically including: determining the first priority corresponding to the voice assertion rule corresponding to the query device state type in the assertion rule library; based on the query device state type and the first priority, the voice reply information is sequentially matched with the voice assertion rule corresponding to the query device state type in the assertion rule library, and a first matching result is obtained.

[0008] According to the voice reply test method of the intelligent household appliance device provided by the application, the matching analysis is carried out based on the query device state type and the voice assertion rule corresponding to the query device state type in the assertion rule library, and a first matching result is obtained, specifically including: determining the first priority corresponding to the voice assertion rule corresponding to the query device state type in the assertion rule library; based on the query device state type and the first priority, the voice reply information is sequentially matched with the voice assertion rule corresponding to the query device state type in the assertion rule library, and a first matching result is obtained.

[0009] According to the voice reply test method of the intelligent household appliance device provided by the application, the matching analysis is carried out based on the query device state type and the voice assertion rule corresponding to the query device state type in the assertion rule library, and a first matching result is obtained, specifically including: determining the first priority corresponding to the voice assertion rule corresponding to the query device state type in the assertion rule library; based on the query device state type and the first priority, the voice reply information is sequentially matched with the voice assertion rule corresponding to the query device state type in the assertion rule library, and a first matching result is obtained.

[0010] The method further comprises, after obtaining the matching result, if there is no target speech assertion rule corresponding to the speech reply information in the matching result, performing semantic inference analysis on the speech reply information based on a preset semantic test model, judging whether the speech reply information of the smart home appliance meets a preset state condition, and obtaining a speech reply test result.

[0011] The application further provides a speech reply test device for a smart home appliance, comprising: a speech reply information acquisition unit, configured to acquire speech reply information generated by a smart home appliance to be tested; an assertion rule matching unit, configured to perform matching analysis on attribute types of the speech reply information and speech assertion rules of corresponding attribute types in a preset assertion rule library, and obtain a matching result; and a speech reply test unit, configured to, if there is a target speech assertion rule corresponding to the speech reply information in the matching result, perform test analysis on the speech reply information based on the target speech assertion rule, and obtain a speech reply test result; wherein the assertion rules in the assertion rule library are obtained in advance.

[0012] The application further provides a speech reply test device for a smart home appliance, wherein the assertion rule matching unit is specifically configured to, if the attribute types of the speech reply information are query device state types, perform matching analysis on the query device state types and speech assertion rules of corresponding query device state types in the assertion rule library, and obtain a first matching result; and if the attribute types of the speech reply information are control device types, perform matching analysis on the control device types and speech assertion rules of corresponding control device types in the assertion rule library, and obtain a second matching result.

[0013] The application further provides a speech reply test device for a smart home appliance, wherein the matching analysis based on the query device state types and the speech assertion rules of corresponding query device state types in the assertion rule library to obtain the first matching result specifically comprises: determining a first priority corresponding to the speech assertion rules of corresponding query device state types in the assertion rule library; and based on the query device state types and the first priority, sequentially matching and analyzing the speech reply information and the speech assertion rules of corresponding query device state types in the assertion rule library to obtain the first matching result.

[0014] According to the voice reply test device for the smart home appliance provided by the application, the matching analysis is performed based on the control device type and the voice assertion rule of the corresponding control device type in the assertion rule library, and a second matching result is obtained, specifically including: determining the second priority corresponding to the voice assertion rule of the corresponding control device type in the assertion rule library; based on the control device type and the second priority, sequentially matching and analyzing the voice reply information and the voice assertion rule of the corresponding control device type in the assertion rule library, and obtaining a second matching result.

[0015] According to the voice reply test device for the smart home appliance provided by the application, the voice reply test unit is specifically used for: judging whether the voice reply information meets the preset state condition based on the target voice assertion rule, and obtaining a corresponding assertion result; and obtaining a voice reply test result according to the assertion result.

[0016] According to the voice reply test device for the smart home appliance provided by the application, the judgment of whether the voice reply information meets the preset state condition based on the target voice assertion rule to obtain a corresponding assertion result specifically includes: in the case that the voice reply information is the voice reply information of the query device state type, judging whether the query instruction state field is contained in the voice reply information based on the target voice assertion rule, and outputting a corresponding first assertion result; in the case that the voice reply information is the voice reply information of the control device type, judging whether the control instruction state field is contained in the voice reply information based on the target voice assertion rule, and if the control instruction state field is contained, judging whether the current state of the smart home appliance is the same as the device state identified by the control instruction state field in the voice reply information by calling the state query interface of the smart home appliance, and if yes, outputting a corresponding second assertion result.

[0017] According to the voice reply test device for the smart home appliance provided by the application, after the matching result is obtained, the device further includes a second voice reply test unit, which is used for: in the case that there is no target voice assertion rule corresponding to the voice reply information in the matching result, performing semantic inference analysis on the voice reply information based on a preset semantic test model, judging whether the voice reply information of the smart home appliance meets the preset state condition, and obtaining a voice reply test result.

[0018] The application further provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the voice reply test method for the smart home appliance according to any one of the above.

[0019] The application further provides a non-transitory computer-readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the voice reply test method of the smart home appliance device.

[0020] The voice reply test method of the smart home appliance device provided by the application can obtain voice reply information generated by a smart home appliance device to be tested, match and analyze the voice reply information according to the attribute type of the voice reply information and the voice assertion rule of the corresponding attribute type in a preset assertion rule library, obtain a matching result, and in the case that the matching result contains a target voice assertion rule corresponding to the voice reply information, test and analyze the voice reply information based on the target voice assertion rule to obtain a voice reply test result. The method can avoid complicated test steps, effectively improve the efficiency of voice reply test of the smart home appliance device, reduce the labor cost, and thus improve the user experience. BRIEF DESCRIPTION OF DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the application or prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.

[0022] Figure 1 Fig. 1 is a hardware environment schematic diagram of a voice reply test method of a smart home appliance device according to an embodiment of the application.

[0023] Figure 2 Fig. 2 is a flow schematic diagram of the voice reply test method of the smart home appliance device provided by the application.

[0024] Figure 3 Fig. 3 is a complete flow schematic diagram of the voice reply test method of the smart home appliance device provided by the application.

[0025] Figure 4 Fig. 4 is a structural schematic diagram of a voice reply test device of the smart home appliance device provided by the application.

[0026] Figure 5 Fig. 5 is a structural schematic diagram of an electronic device provided by the application. DETAILED DESCRIPTION

[0027] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0028] The following is combined with Figures 1-5 This invention describes a voice response testing method and apparatus for smart home appliances, and provides a detailed description of its embodiments.

[0029] According to one aspect of the embodiments of this application, a voice response testing method for smart home appliances is provided. This voice response testing method for smart home appliances is widely applicable to whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligence house ecosystems. Optionally, in this embodiment, the above-mentioned voice response testing method for smart home appliances can be applied to, for example... Figure 1 The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 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.

[0030] The aforementioned network may include, but is 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. Terminal device 102 may not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, and other smart home appliances.

[0031] The embodiments of the voice reply test method of the intelligent home appliance device according to the present application are described in detail below. As shown in Figure 2 The flowchart of the voice reply test method of the intelligent home appliance device according to the present application is shown in FIG. 1. The implementation process includes the following steps:

[0032] In step 110, the voice reply information generated by the intelligent home appliance device to be tested is acquired.

[0033] In the embodiments of the present application, a configured control instruction or a query instruction is sent to the intelligent home appliance device in advance. The control instruction is used to control or switch the running state of the intelligent home appliance device. The query instruction is used to obtain the current state of the intelligent home appliance device. Then, the voice reply information generated by the intelligent home appliance device to be tested according to the control instruction or the query instruction is acquired. The voice reply information of the control device type corresponds to the control instruction. The voice reply information of the query device state type corresponds to the query instruction.

[0034] In step 120, the attribute type of the voice reply information is matched and analyzed according to the voice assertion rule of the corresponding attribute type in the preset assertion rule library, and a matching result is obtained.

[0035] Specifically, in the case where the attribute type of the voice reply information is the query device state type, the query device state type is matched and analyzed based on the voice assertion rule of the corresponding query device state type in the assertion rule library, and a first matching result is obtained. In the case where the attribute type of the voice reply information is the control device type, the control device type is matched and analyzed based on the voice assertion rule of the corresponding control device type in the assertion rule library, and a second matching result is obtained. The matching result includes the first matching result and the second matching result.

[0036] The attribute type of the voice reply information is the query device state type, which means that the attribute type of the voice reply information fed back by the device when the user's voice query information is to query the current device state, for example, if the voice query information issued by the user to the air conditioner device is "what is the current cooling temperature", the attribute type of the voice reply information should be the numerical type (such as the specific temperature value 30°). The numerical type is a query device state type. The attribute type of the voice reply information is the control device type, which means that the attribute type of the voice reply information fed back by the device when the user's voice control information is to control the current device state, for example, if the voice control information issued by the user to the air conditioner device is "set the air conditioner to 25°", the attribute type of the voice reply information should be the field type (such as good or completed). The field type is a control device type.

[0037] It should be noted that the present application includes but is not limited to the control device type and the query device state type, and can also be other attribute types of voice reply information, which is not limited here.

[0038] The first matching result is obtained by matching and analyzing the voice reply information and the voice assertion rule corresponding to the query device state type in the assertion rule library based on the query device state type and the voice assertion rule corresponding to the query device state type in the assertion rule library.

[0039] It should be noted that the assertion rule library can include a plurality of voice assertion rules associated with the query device state type, wherein the first priority is a rule priority queue corresponding to the plurality of voice assertion rules, for example, the plurality of voice assertion rules include a first voice assertion rule, a second voice assertion rule and a third voice assertion rule, the first priority corresponding to the three voice assertion rules includes a rule priority of the first voice assertion rule being 1, a rule priority of the second voice assertion rule being 2 and a rule priority of the third voice assertion rule being 3, wherein 1 is the highest rule priority and 3 is the lowest rule priority. When performing matching analysis, the voice reply information can be sequentially matched and analyzed with the first voice assertion rule, the second voice assertion rule and the third voice assertion rule corresponding to the query device state type in the assertion rule library according to the order of the first priority.

[0040] The second matching result is obtained by sequentially matching and analyzing the voice reply information and the voice assertion rule corresponding to the control device type in the assertion rule library based on the control device type and the second priority corresponding to the voice assertion rule corresponding to the control device type in the assertion rule library.

[0041] The assertion rule library can further include a plurality of voice assertion rules associated with the control device type, wherein the second priority is a rule priority queue corresponding to the plurality of voice assertion rules respectively, for example, the plurality of voice assertion rules include a fourth voice assertion rule, a fifth voice assertion rule, and a sixth voice assertion rule, and the second priorities corresponding to the three voice assertion rules include a rule priority of the fourth voice assertion rule being 1, a rule priority of the fifth voice assertion rule being 2, and a rule priority of the sixth voice assertion rule being 3, wherein 1 is the highest rule priority and 3 is the lowest rule priority. When performing the matching analysis, the voice reply information can be sequentially matched with the fourth voice assertion rule, the fifth voice assertion rule, and the sixth voice assertion rule of the corresponding control device type in the assertion rule library according to the order of the second priority.

[0042] In a case where the matching result includes a target voice assertion rule corresponding to the voice reply information, the voice reply information is tested based on the target voice assertion rule to obtain a voice reply test result. The assertion rules in the assertion rule library are obtained in advance.

[0043] In a case where the matching result includes a target voice assertion rule corresponding to the voice reply information, whether the voice reply information meets a preset state condition is judged based on the target voice assertion rule to obtain a corresponding assertion result, and a voice reply test result is obtained according to the assertion result. For voice reply information of a query device state type, the preset state condition can be whether the voice reply information includes a corresponding query instruction state field. For voice reply information of a control device type, the preset state condition can be whether the voice reply information includes a corresponding control instruction state field.

[0044] Specifically, the judgment of whether the voice reply information meets the preset state condition based on the target voice assertion rule to obtain the corresponding assertion result includes: in a case where the voice reply information is voice reply information of a query device state type, whether the voice reply information includes a query instruction state field is judged based on the target voice assertion rule to output a corresponding first assertion result. In a case where the voice reply information is voice reply information of a control device type, whether the voice reply information includes a control instruction state field is judged based on the target voice assertion rule, and if the control instruction state field is included, whether a current state of the smart home appliance device is the same as a device state identified by the control instruction state field in the voice reply information is judged by calling a state query interface of the smart home appliance device, and if yes, a corresponding second assertion result is output.

[0045] Among them, for the voice reply information of the query device state type, the first assertion result can be that the voice reply information contains a corresponding query instruction state field or that the voice reply information does not contain a corresponding query instruction state field. For the voice reply information of the control device type, the second assertion result can be that the voice reply information contains a corresponding control instruction state field or that the voice reply information does not contain a corresponding control instruction state field. The voice reply test result can be voice reply correct or voice reply error, such as if the voice reply information contains a corresponding query instruction state field, it indicates that the voice reply is correct; if the voice reply information does not contain a corresponding query instruction state field, it indicates that the voice reply is incorrect. Or, if the voice reply information contains a corresponding control instruction state field, it indicates that the voice reply is correct; the voice reply information does not contain a corresponding control instruction state field, which indicates that the voice reply is incorrect.

[0046] In addition, in order to further improve the effect and robustness of the voice reply test, after obtaining the matching result, if the matching result does not contain a target voice assertion rule corresponding to the voice reply information, a semantic inference analysis can be performed on the voice reply information based on a preset semantic test model, whether the voice reply information of the intelligent household appliance device conforms to a preset state condition is judged, and a voice reply test result is obtained. It should be noted that the semantic test model is a deep learning network model obtained by continuously iterating training based on a large amount of sample voice reply information and voice reply test result labels corresponding to the sample voice reply information.

[0047] The voice reply information interacting with the intelligent household appliance device in the application is divided into two types, one is the voice reply information of the query device state type, and the other is the voice reply information of the control device type. For different types of voice reply information, corresponding assertion rules are needed. Therefore, in the specific implementation process, if it is necessary to judge whether the content of the voice reply information is correct, the assertion rule needs to be configured in advance.

[0048] Correspondingly, the assertion rule page is divided into two types, one indicating whether the device control is successful, for example: the reply contains the word field "good", "operation successful" and the like, indicating that the intelligent household appliance device operation is successful; the other indicates whether the voice reply information is appropriate, for example: the reply content is "not supported in the current state", without indicating the specific reason for not supporting, the reply is inappropriate (i.e. not in accordance with the preset state condition), the reply content is "not supported in the sleep mode", indicating the specific reason, which can be considered as appropriate reply (i.e. in accordance with the preset state condition).

[0049] For voice reply information inquiring the type of device state, it is only necessary to judge whether the content of the voice reply information replied by the smart home appliance device is correct. For voice reply information controlling the type of device, it is not only necessary to judge whether the voice reply information replied by the smart home appliance device is correct, but also necessary to judge whether the current state of the smart home appliance device is consistent with the control instruction issued by the voice reply information.

[0050] For the judgment of voice reply information, the present application adopts a combined judgment mode of assertion rules and semantic test models (i.e. AI large models trained in advance), provides a set of assertion rule library, and the assertion rule is composed of attributes such as premise condition of assertion, assertion relationship, assertion value, rule priority, whether the assertion result can be determined as the final result, whether the test is passed when the assertion is passed, etc. The premise condition contains the assertion relationship and the assertion value, and the premise condition is optional. The assertion relationship has include, not include, regular matching, etc. The rule priority can be 1-3, wherein 1 is the highest rule priority, 3 is the lowest rule priority, and so on.

[0051] Specifically, the content of the voice reply information replied by the received smart home appliance device can be matched in the assertion rule library according to the priority of the assertion rule (i.e. voice assertion rule) from high to low, and after matching to an assertion rule (i.e. voice assertion rule), the matching process is exited, and the target voice assertion rule is judged. If no voice assertion rule is matched, the semantic analysis is performed by calling the semantic test model interface, and the judgment result of the semantic test model is taken as the voice reply test result.

[0052] For example: a voice assertion rule containing all attributes can be as follows:

[0053]

[0054] Among them, the complete meaning of the voice assertion rule is: including the state word and not including the current word is considered to pass the test, and the assertion result can be taken as the final test result, i.e. the voice reply test result, and the priority of the voice assertion rule is 1.

[0055] For the judgment of the operation of the device, the application obtains the current state of the device by calling the interface for querying the current state of the device, and compares it with the control instruction issued by the voice. If the current state is consistent with the control instruction, it is considered that the control is successful, otherwise it is considered that the control fails. The application can configure voice assertion rule information that meets the requirements and does not meet the requirements of the voice reply in the automation program respectively by configuring the voice assertion rule. The automation program is used for judgment. When the voice reply information of the intelligent household appliance device hits the voice assertion rule, whether the voice reply information is correct is judged according to the result of the voice assertion rule. When the voice reply information of the intelligent household appliance device does not hit any voice assertion rule, the preset model is used for semantic inference to judge whether the voice reply information of the intelligent household appliance device is correct, and the current state of the intelligent household appliance device is judged by calling the state query interface of the intelligent household appliance device whether it is consistent with the instruction issued by the voice reply information.

[0056] The application scheme uses a unified judgment standard, uses an automation program for unified judgment, eliminates the step of manual judgment, improves the test efficiency and reduces the labor cost. By configuring the voice assertion rule of the voice reply information, using the automation program for voice reply judgment, calling the device state query interface to judge whether the current state of the device is consistent with the instruction issued by the voice, the problem of unreasonable test result caused by manual subjective judgment is avoided.

[0057] The voice reply test method of the intelligent household appliance device provided by the application obtains the voice reply information generated by the intelligent household appliance device to be tested; the attribute type of the voice reply information is matched and analyzed according to the corresponding attribute type of the voice assertion rule in the preset assertion rule library, and a matching result is obtained. In the case that there is a target voice assertion rule corresponding to the voice reply information in the matching result, the voice reply information is tested and analyzed based on the target voice assertion rule, and a voice reply test result is obtained. It can avoid tedious test steps, effectively improve the efficiency of voice reply test of intelligent household appliance device, reduce labor cost, and improve user experience.

[0058] The voice reply test device of the intelligent household appliance device provided by the application is described below. The voice reply test device of the intelligent household appliance device described below can be correspondingly referred to the voice reply test method of the intelligent household appliance device described above. Figure 4 As shown in the figure, it is a structure schematic diagram of the voice reply test device of the intelligent household appliance device provided by the application. The voice reply test device of the intelligent household appliance device described in the application specifically includes the following parts:

[0059] The voice reply information acquisition unit 401 is used for acquiring the voice reply information generated by the intelligent household appliance device to be tested.

[0060] The assertion rule matching unit 402 is configured to perform matching analysis on the attribute type of the voice reply information and the voice assertion rule of the corresponding attribute type in the preset assertion rule library to obtain a matching result.

[0061] The voice reply test unit 403 is configured to perform test analysis on the voice reply information based on the target voice assertion rule in the case where the target voice assertion rule corresponding to the voice reply information exists in the matching result to obtain a voice reply test result. The assertion rules in the assertion rule library are obtained in advance.

[0062] According to the voice reply test device of the smart home appliance provided by the application, in the case where the attribute type of the voice reply information is the query device state type, the matching analysis is performed based on the query device state type and the voice assertion rule of the corresponding query device state type in the assertion rule library to obtain a first matching result; and in the case where the attribute type of the voice reply information is the control device type, the matching analysis is performed based on the control device type and the voice assertion rule of the corresponding control device type in the assertion rule library to obtain a second matching result.

[0063] According to the voice reply test device of the smart home appliance provided by the application, the matching analysis based on the query device state type and the voice assertion rule of the corresponding query device state type in the assertion rule library to obtain a first matching result specifically includes: determining a first priority corresponding to the voice assertion rule of the corresponding query device state type in the assertion rule library; and performing sequential matching analysis on the voice reply information and the voice assertion rule of the corresponding query device state type in the assertion rule library based on the query device state type and the first priority to obtain a first matching result.

[0064] According to the voice reply test device of the smart home appliance provided by the application, the matching analysis based on the control device type and the voice assertion rule of the corresponding control device type in the assertion rule library to obtain a second matching result specifically includes: determining a second priority corresponding to the voice assertion rule of the corresponding control device type in the assertion rule library; and performing sequential matching analysis on the voice reply information and the voice assertion rule of the corresponding control device type in the assertion rule library based on the control device type and the second priority to obtain a second matching result.

[0065] The speech reply test device of the intelligent household appliance provided by the application comprises a speech reply test unit, which is specifically used for judging whether the speech reply information meets preset state conditions based on the target speech assertion rule, obtaining a corresponding assertion result, and obtaining a speech reply test result according to the assertion result.

[0066] The speech reply test device of the intelligent household appliance provided by the application comprises a speech reply test unit, which is specifically used for judging whether the speech reply information meets preset state conditions based on the target speech assertion rule, obtaining a corresponding assertion result, and obtaining a speech reply test result according to the assertion result.

[0067] The speech reply test device of the intelligent household appliance provided by the application comprises a speech reply test unit, which is specifically used for judging whether the speech reply information meets preset state conditions based on the target speech assertion rule, obtaining a corresponding assertion result, and obtaining a speech reply test result according to the assertion result.

[0068] The speech reply test device of the intelligent household appliance provided by the application comprises a speech reply test unit, which is specifically used for judging whether the speech reply information meets preset state conditions based on the target speech assertion rule, obtaining a corresponding assertion result, and obtaining a speech reply test result according to the assertion result.

[0069] Figure 5 An example of an entity structure diagram of an electronic device is shown in FIG. 1. Figure 5As shown, the electronic device (i.e., electronic equipment) can include a processor 501, a communications interface 504, a memory 502, and a communications bus 503, wherein the processor 501, the communications interface 504, and the memory 502 complete mutual communication through the communications bus 503. The processor 501 can invoke a logical instruction in the memory 502 to execute a voice reply test method of the smart home appliance, the method including: obtaining voice reply information generated by a smart home appliance to be tested; performing matching analysis according to an attribute type of the voice reply information and a voice assertion rule of a corresponding attribute type in a preset assertion rule library, to obtain a matching result; in a case where the matching result includes a target voice assertion rule corresponding to the voice reply information, performing test analysis on the voice reply information based on the target voice assertion rule, to obtain a voice reply test result; wherein the assertion rules in the assertion rule library are obtained in advance.

[0070] In addition, the logical instruction in the memory 502 described above can be implemented in the form of a software functional unit and sold or used as an independent product, and can be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0071] In another aspect, the present application also provides a computer program product, which comprises a computer program, the computer program being stored in a computer readable storage medium, and the computer program being executed by a processor, so that the computer can execute the voice reply test method of the intelligent household appliance provided by the above method, and the method comprises the following steps: obtaining voice reply information generated by an intelligent household appliance to be tested; performing matching analysis on the attribute type of the voice reply information and the voice assertion rule of the corresponding attribute type in a preset assertion rule library, to obtain a matching result; in the case that the matching result contains a target voice assertion rule corresponding to the voice reply information, performing test analysis on the voice reply information based on the target voice assertion rule, to obtain a voice reply test result; wherein the assertion rules in the assertion rule library are obtained in advance.

[0072] In another aspect, the present application also provides a computer readable storage medium, which comprises a stored program, wherein the program is executed to perform the voice reply test method of the intelligent household appliance provided by the above method, and the method comprises the following steps: obtaining voice reply information generated by an intelligent household appliance to be tested; performing matching analysis on the attribute type of the voice reply information and the voice assertion rule of the corresponding attribute type in a preset assertion rule library, to obtain a matching result; in the case that the matching result contains a target voice assertion rule corresponding to the voice reply information, performing test analysis on the voice reply information based on the target voice assertion rule, to obtain a voice reply test result; wherein the assertion rules in the assertion rule library are obtained in advance.

[0073] The device embodiments described above are merely illustrative, wherein the units illustrated as separate components can or can not be physically separated, and the components illustrated as units can or can not be physical units, i.e., they can be located in one place, or distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment scheme according to actual needs. Those skilled in the art can understand and implement it without creative labor.

[0074] Those skilled in the art can clearly understand the implementation of the various embodiments by means of software and necessary general hardware platforms through the description of the above embodiments, and of course, the embodiments can also be implemented by hardware. Based on such understanding, the above technical solutions, essentially or in other words, the part of the prior art that makes a contribution, can be embodied in the form of a software product. The computer software product can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, and the like, and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0075] Finally, it should be noted that: the above examples are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing examples, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing examples, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A voice response test method of a smart home appliance device, characterized by, The method comprises the following steps: obtaining voice reply information generated by a smart home appliance device to be tested; matching and analyzing the attribute type of the voice reply information with a voice assertion rule of a corresponding attribute type in a preset assertion rule library to obtain a matching result; in a case where a target voice assertion rule corresponding to the voice reply information exists in the matching result, performing test analysis on the voice reply information based on the target voice assertion rule to obtain a voice reply test result; the test analysis on the voice reply information based on the target voice assertion rule to obtain the voice reply test result specifically comprises: judging whether the voice reply information meets a preset state condition based on the target voice assertion rule to obtain a corresponding assertion result; obtaining the voice reply test result according to the assertion result; the judgment on whether the voice reply information meets the preset state condition based on the target voice assertion rule to obtain the corresponding assertion result specifically comprises: in a case where the voice reply information is voice reply information of a query device state type, judging whether a query instruction state field is contained in the voice reply information based on the target voice assertion rule to output a corresponding first assertion result; in a case where the voice reply information is voice reply information of a control device type, judging whether a control instruction state field is contained in the voice reply information based on the target voice assertion rule, and if the control instruction state field is contained, judging whether a current state of the smart home appliance device is the same as a device state identified by the control instruction state field in the voice reply information by calling a state query interface of the smart home appliance device, and if yes, outputting a corresponding second assertion result; wherein the assertion rules in the assertion rule library are obtained in advance. 2.The voice response test method of a smart home appliance according to claim 1, wherein, the matching and analyzing of the attribute type of the voice reply information with the voice assertion rule of the corresponding attribute type in the preset assertion rule library to obtain the matching result specifically comprises: in a case where the attribute type of the voice reply information is a query device state type, performing matching and analyzing based on the query device state type and the voice assertion rule of the corresponding query device state type in the assertion rule library to obtain a first matching result; in a case where the attribute type of the voice reply information is a control device type, performing matching and analyzing based on the control device type and the voice assertion rule of the corresponding control device type in the assertion rule library to obtain a second matching result. 3.The voice response test method of a smart home appliance according to claim 2, characterized in that, the matching and analyzing based on the query device state type and the voice assertion rule of the corresponding query device state type in the assertion rule library to obtain the first matching result specifically comprises: determining a first priority corresponding to the voice assertion rule of the corresponding query device state type in the assertion rule library; and performing sequential matching and analyzing of the voice reply information and the voice assertion rule of the corresponding query device state type in the assertion rule library based on the query device state type and the first priority to obtain the first matching result. 4.The voice response test method of a smart home appliance according to claim 2, wherein, The matching analysis based on the control device type and the voice assertion rule of the corresponding control device type in the assertion rule library obtains a second matching result, specifically including: determining a second priority corresponding to the voice assertion rule of the corresponding control device type in the assertion rule library; based on the control device type and the second priority, sequentially matching the voice reply information with the voice assertion rule of the corresponding control device type in the assertion rule library to obtain a second matching result. 5.The voice response test method of a smart home appliance according to claim 1, wherein, After obtaining the matching result, further including: In the case where there is no target voice assertion rule corresponding to the voice reply information in the matching result, performing semantic inference analysis on the voice reply information based on a preset semantic test model, judging whether the voice reply information of the smart home appliance device conforms to a preset state condition, and obtaining a voice reply test result. 6.A voice response test apparatus of a smart home appliance device, characterized by, Including: a voice reply information acquisition unit configured to acquire voice reply information generated by a smart home appliance device to be tested; an assertion rule matching unit configured to perform matching analysis on the attribute type of the voice reply information and a voice assertion rule of a corresponding attribute type in a preset assertion rule library to obtain a matching result; a voice reply test unit configured to, in the case where there is a target voice assertion rule corresponding to the voice reply information in the matching result, perform test analysis on the voice reply information based on the target voice assertion rule to obtain a voice reply test result; The test analysis on the voice reply information based on the target voice assertion rule to obtain a voice reply test result specifically includes: judging whether the voice reply information conforms to a preset state condition based on the target voice assertion rule to obtain a corresponding assertion result; obtaining a voice reply test result according to the assertion result; the judgment on whether the voice reply information conforms to a preset state condition based on the target voice assertion rule to obtain a corresponding assertion result specifically includes: in the case where the voice reply information is voice reply information of a query device state type, judging whether a query instruction state field is contained in the voice reply information based on the target voice assertion rule to output a corresponding first assertion result; in the case where the voice reply information is voice reply information of a control device type, judging whether a control instruction state field is contained in the voice reply information based on the target voice assertion rule, and if the control instruction state field is contained, judging whether the current state of the smart home appliance device is the same as the device state identified by the control instruction state field in the voice reply information by calling a state query interface of the smart home appliance device, and if yes, outputting a corresponding second assertion result. The assertion rules in the assertion rule library are obtained in advance. 7.An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, The processor executes the program to implement the steps of the voice reply test method of the smart home appliance device according to any one of claims 1 to 5.

8. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the voice reply test method of the smart home appliance device according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Intelligent voice housekeeper robot system

    CN106325095A

  • Voice control response test method, test machine and storage medium

    CN111341296A