Control method, device, speaker and computer storage medium for household appliances

By establishing the corresponding relationship between the identification information, control instructions and infrared codes of home appliances, the problem of low learning efficiency in the existing technology is solved, intelligent control of old home appliances is realized, and the learning success rate and efficiency are improved.

CN111830836BActive Publication Date: 2024-10-11BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910310645.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-17
Publication Date
2024-10-11
Estimated Expiration
2039-04-17

AI Technical Summary

Technical Problem

In the process of learning third-party infrared devices in the existing technology, the learning efficiency is low and the success rate is low. This is mainly because the cloud needs to store the infrared code of the home appliance in advance. If there is no infrared code or the matching is wrong, the matching will fail.

Method used

By obtaining the audio information requested by the user to identify home appliances, determine the identification information and control instructions of the equipment, obtain the infrared code, and establish the corresponding relationship between the identification information, control instructions and infrared codes, and store them in the database to realize the identification of home appliances. intelligent control.

Benefits of technology

It improves the efficiency and success rate of the home appliance learning process, is not restricted by database integrity, supports real-time updates to different devices, and is suitable for various home appliances controlled by infrared.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111830836B_ABST
    Figure CN111830836B_ABST
Patent Text Reader

Abstract

The present invention provides a control method, device, speaker and computer storage medium for household appliances. The method comprises: obtaining first audio information requested by a user to identify a first household appliance; determining, based on the first audio information, identification information of the first household appliance and a control instruction for controlling the first household appliance requested by the user; obtaining, based on the control instruction, an infrared code corresponding to the control instruction issued by a controller corresponding to the first household appliance; establishing a correspondence between the identification information of the first household appliance, the control instruction and the infrared code, wherein the correspondence is used to control the first household appliance. The method of the present invention improves the learning efficiency of the household appliance learning process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to communication technology, and in particular to a control method, device, speaker and computer storage medium for household electrical appliances. Background Art

[0002] At present, there are many smart home devices on the market. By connecting smart home devices to speakers, users can realize voice control of these smart home devices, which facilitates users to realize intelligent control of home devices. However, there are still many people who are using old home appliances and cannot realize intelligent control.

[0003] In the prior art, there is a speaker that supports infrared code learning for old home appliances, that is, the user clarifies the type and brand of the home appliance by inputting voice into the speaker, and the speaker cloud will locate multiple sets of code libraries in descending order of matching probability according to the type and brand of the home appliance, and send a fixed operation to the speaker one by one for testing. After the user confirms that the home appliance has a corresponding response, the speaker cloud will record the code library information corresponding to the user's device. In the subsequent use process, when the user inputs a voice command through the speaker again, the cloud will take out the corresponding infrared code from the code library according to the information of the home appliance and send it to the speaker, and then the speaker will send the infrared code to the corresponding home appliance, thereby completing the intelligent control of the old home appliance. However, this solution needs to rely on the code library, that is, the cloud needs to store the infrared code corresponding to the home appliance in advance. If the cloud does not store the infrared code corresponding to a certain device, or the matched infrared code is wrong, it will cause matching failure. Therefore, in the process of learning third-party infrared devices in the prior art, there are problems of low learning efficiency and low learning success rate. Summary of the invention

[0004] The present invention provides a control method, device, speaker and computer storage medium for household electrical appliances, which are used to solve the problem of low learning efficiency in the process of learning third-party infrared devices in the prior art.

[0005] In a first aspect, the present invention provides a method for controlling a household appliance, comprising:

[0006] Acquire first audio information requested by a user to identify a first household appliance;

[0007] Determining, according to the first audio information, identification information of the first household appliance and a control instruction requested by the user for controlling the first household appliance;

[0008] According to the control instruction, obtaining an infrared code corresponding to the control instruction issued by a controller corresponding to the first household appliance;

[0009] A correspondence between the identification information of the first household appliance, the control instruction, and the infrared code is established, and the correspondence is used to control the first household appliance.

[0010] In a second aspect, the present invention provides a control device for a household appliance, comprising:

[0011] An acquisition module, used for acquiring first audio information requested by a user to identify a first household appliance;

[0012] a determination module, configured to determine, according to the first audio information, identification information of the first household appliance and a control instruction requested by the user for controlling the first household appliance;

[0013] The acquisition module is further used to acquire, according to the control instruction, an infrared code corresponding to the control instruction issued by the controller corresponding to the first household appliance;

[0014] The corresponding relationship establishing module is used to establish a corresponding relationship between the identification information of the first household appliance, the control instruction, and the infrared code, and the corresponding relationship is used to control the first household appliance.

[0015] In a third aspect, the present invention provides a sound box, comprising:

[0016] Memory;

[0017] Processor; and

[0018] Computer programs;

[0019] The computer program is stored in the memory and is configured to be executed by the processor to implement the method described in the first aspect.

[0020] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the method described in the first aspect.

[0021] In a fifth aspect, the present invention provides a computer program product, comprising: a computer program, wherein the computer program is stored in a readable storage medium, at least one processor can read the computer program from the readable storage medium, and the at least one processor can execute the computer program to implement the method described in the first aspect.

[0022] The present invention provides a control method, device, speaker and computer storage medium for household appliances, which obtains the first audio information of the user requesting to identify the first household appliance; determines the identification information of the first household appliance and the control instruction for controlling the first household appliance requested by the user according to the first audio information; obtains the infrared code corresponding to the control instruction issued by the controller corresponding to the first household appliance according to the control instruction; establishes the corresponding relationship between the identification information of the first household appliance, the control instruction and the infrared code, and the corresponding relationship is used to control the first household appliance to intelligently learn the existing old household appliances. Once the corresponding relationship is established, it is stored in the database. By learning different control instructions of different household appliances, the database can be updated in real time, and the learning efficiency and learning success rate in the learning process of household appliances can be improved, which is not limited by the integrity of the database. In addition, there is no restriction on the type of household appliances. As long as it is a household appliance that can be controlled by infrared, this corresponding relationship can be obtained by learning. In the use stage, the old household appliances can be intelligently controlled by this corresponding relationship. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0024] Figure 1 A schematic diagram of an application scenario of an embodiment of the present invention;

[0025] Figure 2 is a flow chart of a control method for household electrical appliances provided by an embodiment of the present invention;

[0026] Figure 3 is a schematic diagram of a data structure provided by an embodiment of the present invention;

[0027] Figure 4 is a schematic diagram of an application scenario of another embodiment of the present invention;

[0028] Figure 5 A flowchart of a method for controlling a household appliance provided by another embodiment of the present invention;

[0029] Figure 6 A flowchart of a method for controlling a household appliance provided by another embodiment of the present invention;

[0030] Figure 7 A schematic diagram of the structure of a control device for household appliances provided by an embodiment of the present invention;

[0031] Figure 8 A schematic diagram of the structure of another speaker provided by an embodiment of the present invention.

[0032] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0033] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0034] The control method of household electrical appliances provided by the present invention can be applied to Figure 1 The application scenario diagram shown in Figure 1 is as follows. Figure 1 As shown, the application scenario can be as follows Figure 1 An indoor space is shown, such as a bedroom, a living room, an office, etc. A speaker 11, a controller 13 and a home appliance 14 are arranged in the indoor space; the controller 13 can control the home appliance 14, such as a remote control; the home appliance 14 can be a television, an air conditioner, a refrigerator, a set-top box, an electric fan, etc. This is only a schematic description and does not limit the type of home appliances. As long as the home appliances can be controlled by infrared, they are within the scope of the present invention.

[0035] The control method of household electrical appliances provided by the present invention is intended to solve the above technical problems in the prior art.

[0036] The following specific embodiments are used to describe in detail the technical solutions of the present invention and how the technical solutions of the present application solve the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0037] Figure 2 The embodiment of the present invention provides a control method for household appliances. The embodiment of the present invention solves the above technical problems of the prior art and provides a control method for household appliances. The specific steps of the method are as follows:

[0038] Step S201: obtaining first audio information requested by a user to identify a first household appliance.

[0039] The control method of the household appliance described in this embodiment can be applied to Figure 1The execution subject of the control method of the household appliance described in this embodiment may be as follows Figure 1 The speaker is shown in the figure, but this embodiment does not limit the specific product form of the speaker. In other embodiments, it can also be other voice control devices besides the speaker.

[0040] The speaker 11 can collect audio information of the user 10. For example, when the user needs to identify a TV, a single fixed request can be used. For example, the user first inputs the voice "learning device" to the speaker, and then the speaker asks the user the type of device to be learned. The user inputs the type of device to be learned to the speaker again through voice, such as "TV". Then the speaker asks the user to learn the key of the device to be learned, and the user continues to input the key of the device to be learned through voice, such as "volume up key", so as to complete the identification of the home appliance step by step according to the guided speech and establish a corresponding relationship. A single fixed request includes three stages of requests. The request speech of the first stage is used to indicate the intention of learning, the request speech of the second stage is used to indicate the type of home appliance to be learned, and the request speech of the third stage is used to indicate the function corresponding to a certain key of the home appliance to be learned. In addition, the first audio information input by the user can also be an audio message, that is, using a complete request script, such as "learn the water heater power button" to learn any button of any device; the complete request script includes: learning + home appliance type + control instructions, where the home appliance type can be a TV, set-top box, electric fan and projector, and the control instructions can be a power button, volume up, volume down, mute, channel up, channel down, confirm, exit, etc.

[0041] Step S202: Determine, according to the first audio information, identification information of the first household appliance and a control instruction requested by the user for controlling the first household appliance.

[0042] Specifically, after collecting the first audio information input by the user 10, the speaker parses the first audio information to obtain the identification information of the first home appliance and the control instruction of the user to the first home appliance. For example: the user inputs the words "learning device", "Skyworth TV", and "on / off key" in sequence through a single fixed request, and "learning device", "Skyworth TV", and "on / off key" constitute the first audio information, or inputs "learning Skyworth TV on / off key" through a complete request. Then, after receiving the first audio information, the speaker will parse out that the identification information of the home appliance is a Skyworth TV, and the control instruction is the instruction corresponding to turning on or off the TV.

[0043] Among them, the identification information of the first household appliance is information that can uniquely identify the first household appliance, such as device type, device model, device brand and other information. It should be noted that this is only a schematic description and does not limit the identification information of the first household appliance. Any information that can uniquely identify the first household appliance is included in the scope of the present invention.

[0044] Among them, the control instruction is an instruction that the user can use the controller 13 to control the first home appliance. Taking the first home appliance as a TV as an example, the control instruction can be an instruction to turn on the TV, turn off the TV, increase the TV volume, reduce the TV volume, switch TV channels, etc.

[0045] Step S203: acquiring, according to the control instruction, an infrared code corresponding to the control instruction issued by a controller corresponding to the first household appliance.

[0046] Specifically, after parsing the identification information and control instruction of the first home appliance, the speaker will obtain the infrared code corresponding to the control instruction from the controller corresponding to the first home appliance. For example, if the speaker parses the identification information of the first home appliance as a Skyworth TV and the control instruction is the function corresponding to the power button, the speaker will obtain the infrared code sent by the power button of the remote control of the Skyworth TV. The specific implementation method of obtaining the infrared code can be to obtain the infrared code corresponding to the control instruction sent when the user operates the controller corresponding to the first home appliance.

[0047] Step S204: establishing a correspondence between the identification information of the first household appliance, the control instruction, and the infrared code, wherein the correspondence is used to control the first household appliance.

[0048] By implementing the above steps, the speaker can establish the corresponding relationship between the identification information of the first household appliance, the control command, and the infrared code, and store the corresponding relationship in the database of the speaker. At this point, the speaker completes the learning process of the first household appliance. The established corresponding relationship stored in the database can be a data structure of: household appliance identification information + control command + infrared code. Figure 3 As shown, in the database of the speaker, a code library is established according to the user identification information and the home appliance identification information, and the code library and the infrared codes in the code library are numbered, and then the infrared codes corresponding to the control instructions of the home appliance are stored in the code library. For example, the code library corresponding to the TV is 1, then the infrared code corresponding to turning on the Skyworth TV is 11, the infrared code corresponding to turning up the volume of the Skyworth TV is 12, the infrared code corresponding to turning down the Skyworth TV speaker is 13, and the infrared code corresponding to switching the Skyworth TV channel is 14. For air conditioners, the numbering principle is similar, which will not be repeated here.

[0049] The audio information of the user requesting to identify the first home appliance in step S201 can be understood as audio information requesting to establish a corresponding relationship between the identification information of the first home appliance, the control instruction, and the infrared code on the speaker end.

[0050] The embodiment of the present invention obtains the first audio information of the user requesting to identify the first home appliance; determines the identification information of the first home appliance and the control instruction for controlling the first home appliance requested by the user according to the first audio information; obtains the infrared code corresponding to the control instruction issued by the controller corresponding to the first home appliance according to the control instruction; establishes the corresponding relationship between the identification information of the first home appliance, the control instruction, and the infrared code, and the corresponding relationship is used to control the first home appliance to intelligently learn the existing old home appliances. Once this corresponding relationship is established, it is stored in the database. By learning different control instructions of different home appliances, the database can be updated in real time, and the learning efficiency of the learning process of home appliances can be improved, which is not limited by the integrity of the database. In addition, there is no restriction on the type of home appliances. As long as it is a home appliance that can be controlled by infrared, this corresponding relationship can be obtained by learning. In the use stage, the old home appliances can be intelligently controlled through this corresponding relationship.

[0051] In addition, the method described in this embodiment can also be executed by a server. For example, the control method of the household appliance described in this embodiment can also be applied to Figure 4 The application scenario shown in Figure 4 In the application scenario shown, the server 12 is communicatively connected to the speaker 11, and the communication connection mode may be a wired connection or a wireless connection.

[0052] like Figure 4As shown, the server 12 can be a remote server outside the indoor space, a cloud server, etc. The server 12 in the embodiment of the present invention is a terminal device with the functions of data storage, data analysis and establishing data correspondence. In this embodiment, the speaker 11 collects the first audio information of the user 10 controlling the first home appliance and sends it to the server 12, wherein the first audio information is input into the speaker by the user through voice. For example, after the speaker collects the first audio information of the user requesting to identify the first home appliance, the speaker sends the first audio information to the server. After receiving the first audio information, the server identifies the first audio information, obtains the identification information of the first home appliance and the control instruction for controlling the first home appliance requested by the user, and then the server sends the control instruction to the speaker. The speaker obtains the infrared code corresponding to the control instruction issued by the controller corresponding to the first home appliance according to the control instruction, and sends the obtained infrared code to the server. The server will establish the corresponding relationship between the identification information of the first home appliance, the control instruction, and the infrared code, and the corresponding relationship is used to control the first home appliance. For example, when a user needs to learn the TV power key, the user says to the speaker: "Learn the Skyworth TV power key", then after the speaker receives the audio information of "Learn the Skyworth TV power key", it sends the audio information to the server. After the server receives the audio information of "Learn the Skyworth TV power key", it will recognize that the identification information of the first household appliance is Skyworth TV, and the control instruction is the control function corresponding to the power key. Then, the control instruction of the control function corresponding to the power key is issued to the speaker, and the speaker obtains the infrared code corresponding to the Skyworth TV power key. Then, the speaker sends the obtained infrared code corresponding to the Skyworth TV power key to the server. The server establishes the correspondence between Skyworth TV + power key + infrared code, and stores it in the database.

[0053] In an optional embodiment, before the step S204 of establishing the correspondence between the identification information of the first home appliance, the control instruction, and the infrared code, the method further includes: controlling the first home appliance according to the infrared code. The step of establishing the correspondence between the identification information of the first home appliance, the control instruction, and the infrared code includes: if the first home appliance is successfully controlled according to the infrared code, then establishing the correspondence between the identification information of the first home appliance, the control instruction, and the infrared code. If the speaker 11 can successfully control the first home appliance through the infrared code, it is considered that the controller 13 operated by the user is a controller corresponding to the first home appliance, or the control instruction operated by the user is a control instruction corresponding to the first home appliance. By controlling the first home appliance according to the infrared code, it is possible to test whether the infrared code corresponds to the first home appliance, or the controller 13 corresponds to the first home appliance. If the speaker 11 cannot successfully control the first home appliance through the infrared code, it is considered that the controller 13 operated by the user is not a controller corresponding to the first home appliance, or the control instruction operated by the user is not a control instruction corresponding to the first home appliance. Specifically, the speaker 11 controlling the first home appliance through the infrared code can be understood as the speaker 11 sending an infrared code to the first home appliance. If the first home appliance has a corresponding response, it is considered that the speaker 11 can successfully control the first home appliance. If the first home appliance does not have a corresponding response, it is considered that the speaker 11 cannot successfully control the first home appliance. For example: when the speaker 11 receives the infrared code corresponding to the "Learning Skyworth TV power button", it sends the infrared code to the TV. If the TV can be turned on normally, it is considered that the speaker 11 can successfully control the TV through the infrared code. If the TV cannot be turned on normally, then when the TV is in a normal state, it is considered that the speaker cannot successfully control the TV.

[0054] The method steps described in this embodiment may also be executed by the server. For example, the server controls the first household appliance according to the infrared code. Figure 4In the application scenario shown, the server sends the infrared code of the first home appliance to the speaker, and the speaker transmits the infrared code to the first home appliance to test whether the first home appliance has a corresponding response. If the server can successfully control the first home appliance through the infrared code, it is considered that the controller 13 operated by the user is the controller corresponding to the first home appliance, or the control instruction operated by the user is the control instruction corresponding to the first home appliance. By controlling the first home appliance according to the infrared code, it can be tested whether the infrared code corresponds to the first home appliance, or the controller 13 corresponds to the first home appliance. If the server cannot successfully control the first home appliance through the infrared code, it is considered that the controller 13 operated by the user is not the controller corresponding to the first home appliance, or the control instruction operated by the user is not the control instruction corresponding to the first home appliance. For example: when the server 12 receives the infrared code corresponding to "Learning Skyworth TV power button" sent by the speaker 11, it sends the infrared code to the TV through the speaker 11. If the TV can be turned on normally, it is considered that the speaker 11 can successfully control the TV through the infrared code. If the TV cannot be turned on normally, then when the TV is in normal state, it is considered that the speaker cannot successfully control the TV.

[0055] Figure 5 This is a flowchart of a control method for a home appliance provided by another embodiment of the present invention. The present invention can learn different home appliances and different functions of the same home appliance through the control method provided by the above embodiment, and continuously enrich the database. Taking the first home appliance as an example, the user uses the present invention to Figure 2 After the method steps of the embodiment complete learning of the control instruction of the first home appliance, that is, after establishing the correspondence between the identification information of the first home appliance, the control instruction, and the infrared code, the first home appliance can be directly controlled intelligently the next time the control instruction of the first home appliance is used. Specifically, the method steps for intelligently controlling the first home appliance are as follows:

[0056] Step S501: Obtain a control instruction from a user requesting to control the first household appliance.

[0057] Specifically, the control instruction requested by the user to control the first home appliance can be input to the speaker via voice. For example, if the user inputs the audio information of "turn on Skyworth TV" to the speaker 11, the speaker will collect the control instruction requested by the user to control the first home appliance as "turn on Skyworth TV".

[0058] Step S502: Determine the infrared code corresponding to the identification information of the first household appliance and the control instruction according to the identification information of the first household appliance, the control instruction and the corresponding relationship.

[0059] Specifically, after obtaining the control instruction of the user requesting to control the first household appliance, the speaker will search for the corresponding relationship between the identification information of the first household appliance and the control instruction in the corresponding relationship stored in the database, and uniquely determine an infrared code. Figure 3 As shown, the speaker determines that the identification information of the first household appliance is Skyworth TV, and the control instruction is the action of opening. It will search for the corresponding relationship in the database according to the keyword Skyworth TV, and determine that the code library corresponding to Skyworth TV is 1, and then search the infrared code corresponding to the action of opening in code library 1, which is 11.

[0060] Step S503: Control the first household appliance according to the infrared code.

[0061] Specifically, after the speaker uniquely determines an infrared code, it will transmit the infrared code to the first household appliance, thereby controlling the first household appliance.

[0062] In addition, the method described in this embodiment can also be executed by a server. For example, the control method of the household appliance described in this embodiment can also be applied to Figure 4 In the application scenario shown, the server is used as the execution subject to execute steps S501-S503. For example, after the speaker collects the control instruction of the user requesting to control the first home appliance, the speaker sends the control instruction of the user requesting to control the first home appliance to the server. After receiving the control instruction of the user requesting to control the first home appliance, the server identifies the control instruction of the user requesting to control the first home appliance, and obtains the identification information of the first home appliance and the control instruction of the user requesting to control the first home appliance. For example, if the user needs to turn on the TV, the user says to the speaker: "Turn on the TV". After the speaker receives the audio information of "Turn on the TV", it will send the audio information of "Turn on the TV" to the server. The server searches for the corresponding relationship in the stored corresponding relationship according to the audio information of "Turn on the TV", and uniquely determines an infrared code, and then sends the infrared code to the speaker, and the speaker transmits the infrared code to the first home appliance to control the first home appliance.

[0063] In another embodiment of the present application, the step of obtaining the infrared code corresponding to the control instruction issued by the controller corresponding to the first household appliance according to the control instruction includes: prompting the user to operate the controller corresponding to the first household appliance according to the control instruction; and obtaining the infrared code corresponding to the control instruction issued by the controller according to the operation of the user. Specifically, the speaker prompts the user to perform corresponding operations on the controller corresponding to the first household appliance according to the control instruction determined in step S202, and obtains the infrared code corresponding to the control instruction issued by the controller according to the operation of the user. For example: after determining that the control instruction is the control function corresponding to the power button of the TV, the speaker can prompt the user to operate the remote control of the TV by playing a voice such as "Please press the power button of the TV".

[0064] In addition, the method described in this embodiment can also be executed by a server, and the server executing the method steps described in this embodiment is also applicable to the following method: Figure 4 The application scenario shown. That is, the server prompts the user to operate the controller corresponding to the first home appliance according to the control instruction; and obtains the infrared code corresponding to the control instruction issued by the controller corresponding to the first home appliance. Specifically, after the server determines the control instruction according to the first audio information, it will send information prompting the user to operate the controller corresponding to the first home appliance to the speaker according to the control instruction. After the speaker receives the information prompting the user to operate the controller corresponding to the first home appliance, it can prompt the user to control the first home appliance through the controller corresponding to the first home appliance in the form of voice playback. For example: after the server determines that the control instruction is "turn on the TV" according to the first audio information, it will send information prompting the user to operate the TV power button to the speaker. After the speaker receives the information prompting the user to operate the TV power button, it can prompt the user to operate the TV remote control in the form of voice playback such as "Please press the TV power button".

[0065] In an optional embodiment, after prompting the user to operate the controller corresponding to the first household appliance according to the control instruction, the control method may further include the following method steps: determining whether an infrared code corresponding to the control instruction issued by the controller according to the user's operation is received within a preset time; if the infrared code corresponding to the control instruction is not received within the preset time, prompting the user to operate the controller corresponding to the first household appliance again. Further, after prompting the user to operate the controller corresponding to the first household appliance again, the control method may further include the following method steps: determining whether the number of times the user is prompted to operate the controller reaches a preset number; if the number of times the user is prompted to operate the controller does not reach the preset number, prompting the user to operate the controller again.

[0066] The judgment step of the method described in this embodiment can be implemented on the speaker side. For example, if the speaker does not receive the infrared code corresponding to the TV power button within 20 seconds, the user is prompted to pick up the TV remote control and press the power button at the speaker through voice broadcast, such as "Please pick up the remote control, aim at the speaker and press the power button". Further, if the infrared code receiving module corresponding to the infrared code receiving function is set at the top of the speaker, a voice message of "Please pick up the remote control, aim at the top of the speaker and press the power button" can also be played. Furthermore, if the infrared code of the TV power button is not received after 3 prompts, the learning process is terminated. In this way, the user can be given enough time to operate the remote control. Of course, the preset time of 20 seconds and the number of prompts of 3 times are examples for ease of understanding and do not limit the present invention. Those skilled in the art can set the preset time and the number of prompts according to actual needs.

[0067] The judgment step of the method described in this embodiment can also be implemented on the server side. For example, if the server does not receive the infrared code sent by the speaker within 20 seconds, it sends an instruction to prompt the user to operate the controller to the speaker. After the speaker receives the instruction to prompt the user to operate the controller, it can prompt the user to pick up the TV remote control and press the switch key at the speaker through voice broadcast, such as "Please pick up the remote control and press the switch key at the speaker". Further, if the infrared code receiving module corresponding to the infrared code receiving function is set at the top of the speaker, the voice message of "Please pick up the remote control and press the switch key at the top of the speaker" can also be played. Furthermore, if the infrared code sent by the speaker is not received after 3 prompts, the learning process is terminated. In this way, the user can be given enough time to operate the remote control. Of course, the preset time of 20 seconds and the number of prompts of 3 times are examples for ease of understanding and are not limited to the present invention. The preset time and the number of prompts of the present invention can be set by those skilled in the art according to actual needs.

[0068] Figure 6 This is a flow chart of a method for controlling a household appliance provided by another embodiment of the present invention. The embodiment of the present invention further includes the following steps after step S203:

[0069] Step S601, obtaining the second audio information of the previous user request to identify the second household appliance;

[0070] Step S602: determine whether the identification information of the second home appliance is the same as the identification information of the first home appliance;

[0071] Wherein, controlling the first household appliance according to the infrared code includes:

[0072] Step S603: If the identification information of the second home appliance is different from the identification information of the first home appliance, control the first home appliance according to the infrared code.

[0073] Specifically, if the identification information of the second home appliance is different from the identification information of the first home appliance, before establishing the corresponding relationship between the identification information of the first home appliance, the control instruction, and the infrared code in step S204, the speaker needs to send the infrared code obtained in step S203 to the first home appliance to test whether the first home appliance has a corresponding response action to the infrared code obtained in step S203, thereby ensuring that the infrared code obtained in step S203 is an infrared code corresponding to the first home appliance. The test step can specifically be: the speaker controls the first home appliance according to the infrared code.

[0074] Optionally, if the identification information of the second home appliance is the same as the identification information of the first home appliance, it means that the same home appliance is learned twice in succession, and before step S204, there is no need to send the infrared code obtained in step S203 to the first home appliance.

[0075] For example: if the second household appliance in the second audio information received last time is a TV, and the first household appliance in the first audio information received last time is also a TV, then the speaker does not need to test the TV. If the second household appliance in the second audio information received last time is an air conditioner, and the first household appliance in the first audio information received last time is a TV, then the speaker needs to send the infrared code obtained according to the first audio information of "learning TV power key" to the TV to test whether the TV can be turned on or off.

[0076] The embodiment of the present invention determines whether it is necessary to execute the test step of sending the infrared code acquired in step S203 to the first home appliance to control the first home appliance according to the infrared code by comparing whether the identification information of the second home appliance is the same as the identification information of the first home appliance. That is, if the user continuously operates the same first home appliance, the probability of taking the wrong remote control is low, and the server assumes that the user has not taken the wrong remote control. At this time, there is no need to test whether the infrared code sent by the user through the remote control corresponds to the first home appliance. The corresponding relationship can be directly established in the database, which can save resources and improve the learning efficiency of the home appliance learning process. If the user takes the wrong remote control, the infrared code will not correspond to the first home appliance and the control instruction, resulting in an error in the corresponding relationship established in the database.

[0077] In addition, the method steps of this embodiment can also be executed by a server. Figure 6The same applies to the method steps shown in Figure 4 The application scenario shown. That is, the server obtains the second audio information of the previous user request to identify the second home appliance, and determines whether the identification information of the second home appliance is the same as the identification information of the first home appliance. If the identification information of the second home appliance is not the same as the identification information of the first home appliance, the first home appliance is controlled according to the infrared code. Specifically, if the identification information of the second home appliance is not the same as the identification information of the first home appliance, the server sends the infrared code obtained in step S203 to the speaker. After the speaker receives the infrared code obtained in step S203, it transmits the infrared code obtained in step S203 to the first home appliance to test whether the first home appliance has a corresponding response action, thereby ensuring that the infrared code obtained in step S203 is the infrared code corresponding to the first home appliance.

[0078] Optionally, if the identification information of the second home appliance is the same as the identification information of the first home appliance, it means that the same home appliance is learned twice in succession, and before step S204, there is no need to send the infrared code obtained in step S203 to the infrared code of the first home appliance.

[0079] For example: if the second household appliance in the second audio information received last time is a TV, and the first household appliance in the first audio information received last time is also a TV, then the server does not need to send the infrared code of the TV to the speaker, and the speaker does not need to send the infrared code of the TV to the TV for testing. If the second household appliance in the second audio information received last time is an air conditioner, and the first household appliance in the first audio information received last time is a TV, then the server needs to send the infrared code obtained according to the first audio information of "learning TV power key" to the speaker. After the speaker receives the infrared code obtained according to the first audio information of "learning TV power key", it will send the infrared code obtained according to the first audio information of "learning TV power key" to the TV to test whether the TV can be turned on or off.

[0080] In an optional embodiment, after obtaining the first audio information of the user requesting to identify the first household appliance, the control method further includes: turning on the infrared code receiving function. Specifically, the infrared code receiving function is turned on by the speaker to ensure that the infrared code sent by the user operating the controller of the first household appliance can be received. For example, the speaker can prompt the user to turn on the button corresponding to the infrared code receiving function of the speaker by playing a voice message "Please turn on the infrared code receiving function", thereby ensuring that the speaker can successfully receive the infrared code.

[0081] In addition, the method steps described in this embodiment can also be executed by the server. When the server executes the method steps of enabling the infrared code receiving function described in this embodiment, the same is applicable to the following example. Figure 4 The application scenario shown. That is, the server sends a command to turn on the infrared code receiving function to the speaker. After the speaker receives the command to turn on the infrared code receiving function, it can prompt the user to turn on the button corresponding to the infrared code receiving function of the speaker by playing a voice message "Please turn on the infrared code receiving function", thereby ensuring that the speaker can successfully receive the infrared code.

[0082] Figure 7 The structure diagram of the control device of the household appliance provided by the embodiment of the present invention is as follows. The control device of the household appliance provided by the embodiment of the present invention can execute the processing flow provided by the control method of the household appliance. Figure 7 As shown, the control device includes: an acquisition module 70, used to acquire first audio information requested by a user to identify a first household appliance; a determination module 71, used to determine, based on the first audio information, identification information of the first household appliance and a control instruction for controlling the first household appliance requested to be identified by the user; the acquisition module 70 is also used to acquire, based on the control instruction, an infrared code corresponding to the control instruction issued by a controller corresponding to the first household appliance; a correspondence establishment module 72, used to establish a correspondence between the identification information of the first household appliance, the control instruction, and the infrared code, wherein the correspondence is used to control the first household appliance.

[0083] Optionally, the control device also includes: a control module 73, used to control the first household appliance according to the infrared code; the correspondence establishment module 72, specifically used to establish a correspondence between the identification information of the first household appliance, the control instruction, and the infrared code if the first household appliance is successfully controlled according to the infrared code.

[0084] Optionally, the acquisition module 70 is also used to obtain a control instruction requested by a user to control the first household appliance; the determination module 71 is also used to determine the identification information of the first household appliance and the infrared code corresponding to the control instruction based on the identification information of the first household appliance, the control instruction and the corresponding relationship; the device also includes: a control module 73, used to control the first household appliance according to the infrared code.

[0085] Optionally, the device also includes: a prompt module 74, used to prompt the user to operate the controller corresponding to the first household appliance according to the control instruction; the acquisition module 70, specifically used to obtain the infrared code corresponding to the control instruction issued by the controller according to the user's operation.

[0086] Optionally, the device also includes: a judgment module 75, used to determine whether the infrared code corresponding to the control instruction issued by the controller according to the user's operation is received within a preset time; the prompt module 74, specifically used to prompt the user again to operate the controller corresponding to the first household appliance if the infrared code corresponding to the control instruction is not received within the preset time.

[0087] Optionally, the judgment module 75 is further used to judge whether the number of times the user is prompted to operate the controller reaches a preset number; the prompt module 74 is further used to prompt the user to operate the controller again if the number of times the user is prompted to operate the controller does not reach the preset number.

[0088] Optionally, the device further includes: an infrared code activation module 76, which is used to activate the infrared code receiving function.

[0089] Optionally, the device also includes: a judgment module 75; the acquisition module 70 is also used to obtain the second audio information of the previous user request to identify the second home appliance; the judgment module 75 is used to determine whether the identification information of the second home appliance is the same as the identification information of the first home appliance; the control module 73 is specifically used to control the first home appliance according to the infrared code if the identification information of the second home appliance is different from the identification information of the first home appliance.

[0090] Figure 7 The control device of the illustrated embodiment may be as follows Figure 1 The speaker 11 shown may also be Figure 4 The server 12 shown, the speaker 11 and the server 12 can be used to perform the above Figure 1-6 The technical solution of the method embodiment has similar implementation principles and technical effects, which will not be repeated here.

[0091] Figure 8 The structure diagram of a speaker provided by an embodiment of the present invention is shown in FIG. The speaker provided by an embodiment of the present invention can perform the following operations: Figure 1-Figure 6 The control method embodiment of the household appliance provides a processing flow, such as Figure 8 As shown, the speaker includes a memory 81, a processor 82, a computer program and a communication interface 83; wherein the computer program is stored in the memory 81 and is configured to be executed by the processor 82 as shown above. Figure 1-Figure 6 The control method of the household appliance of the embodiment. Figure 8 The speaker of the embodiment shown can be used to perform the above-mentioned Figure 1-Figure 6 The technical solution of the method embodiment has similar implementation principles and technical effects, which will not be repeated here.

[0092] In addition, this embodiment also provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the above-mentioned Figure 1-Figure 8 The control method of the household appliance described in the embodiment.

[0093] This embodiment also provides a computer program product, including: a computer program, the computer program is stored in a readable storage medium, at least one processor can read the computer program from the readable storage medium, and the at least one processor executes the computer program to implement the above-mentioned Figure 1-Figure 8 The control method of the household appliance described in the embodiment.

[0094] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0095] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0096] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0097] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0098] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0099] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

[0100] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0101] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for controlling a household appliance, characterized in that: include: Acquire first audio information requested by a user to identify a first household appliance; determining, according to the first audio information, identification information of the first household appliance and a control instruction requested by the user for controlling the first household appliance, wherein the first audio information includes the control instruction; According to the control instruction, obtaining an infrared code corresponding to the control instruction issued by a controller corresponding to the first household appliance; Acquire the second audio information of the last time the user requested to identify the second household appliance; Determining whether the identification information of the second home appliance is the same as the identification information of the first home appliance; If the identification information of the second household appliance is different from the identification information of the first household appliance, controlling the first household appliance according to the infrared code; After the infrared code successfully controls the first household appliance, a correspondence between the identification information of the first household appliance, the control instruction, and the infrared code is established, and the correspondence is used to control the first household appliance; If the identification information of the second home appliance is the same as the identification information of the first home appliance, directly establishing a correspondence between the identification information of the first home appliance, the control instruction, and the infrared code; The method further comprises: Obtaining a control instruction requested by a user to control the first household appliance; Determine, according to the identification information of the first household appliance, the control instruction and the corresponding relationship, the infrared code corresponding to the identification information of the first household appliance and the control instruction; The first household appliance is controlled according to the infrared code.

2. The method according to claim 1, characterized in that The step of obtaining, according to the control instruction, an infrared code corresponding to the control instruction issued by a controller corresponding to the first household appliance includes: According to the control instruction, prompting the user to operate a controller corresponding to the first household appliance; Acquire the infrared code corresponding to the control instruction issued by the controller according to the operation of the user.

3. The method according to claim 2, characterized in that After prompting the user to operate a controller corresponding to the first household appliance according to the control instruction, the method further includes: Determining whether an infrared code corresponding to the control instruction issued by the controller according to the operation of the user is received within a preset time; If the infrared code corresponding to the control instruction is not received within the preset time, the user is prompted again to operate the controller corresponding to the first household appliance.

4. The method according to claim 3, characterized in that After prompting the user again to operate the controller corresponding to the first household appliance, the method further includes: Determining whether the number of times the user is prompted to operate the controller reaches a preset number; If the number of times the user is prompted to operate the controller does not reach a preset number, the user is prompted to operate the controller again.

5. The method according to any one of claims 1 to 4, characterized in that: After obtaining the first audio information of the user requesting to identify the first household appliance, the method further includes: Enable the infrared code receiving function.

6. A control device for household electrical appliances, characterized in that: include: An acquisition module, used for acquiring first audio information requested by a user to identify a first household appliance; a determination module, configured to determine, according to the first audio information, identification information of the first household appliance and a control instruction requested by the user for controlling the first household appliance, wherein the first audio information includes the control instruction; The acquisition module is further used to acquire, according to the control instruction, an infrared code corresponding to the control instruction issued by a controller corresponding to the first household appliance; and to acquire second audio information of a previous user request to identify a second household appliance; a determination module, configured to determine whether the identification information of the second household appliance is the same as the identification information of the first household appliance; a control module, configured to control the first household appliance according to the infrared code if the identification information of the second household appliance is different from the identification information of the first household appliance; a correspondence establishing module, configured to establish a correspondence between the identification information of the first home appliance, the control instruction, and the infrared code if the first home appliance is successfully controlled according to the infrared code, wherein the correspondence is used to control the first home appliance; If the identification information of the second home appliance is the same as the identification information of the first home appliance, directly establishing a correspondence between the identification information of the first home appliance, the control instruction, and the infrared code; The acquisition module is further used to acquire a control instruction requested by a user to control the first household appliance; The determining module is further used to determine the infrared code corresponding to the identification information of the first household appliance and the control instruction according to the identification information of the first household appliance, the control instruction and the corresponding relationship; The control module is further used to control the first household appliance according to the infrared code.

7. The device according to claim 6, characterized in that The device also includes: a prompting module, configured to prompt the user to operate a controller corresponding to the first household appliance according to the control instruction; The acquisition module is specifically used to acquire the infrared code corresponding to the control instruction issued by the controller according to the operation of the user.

8. The device according to claim 7, characterized in that The device also includes: A judgment module, used to judge whether an infrared code corresponding to the control instruction issued by the controller according to the operation of the user is received within a preset time; The prompt module is specifically used to prompt the user to operate the controller corresponding to the first household appliance again if the infrared code corresponding to the control instruction is not received within the preset time.

9. The device according to claim 8, characterized in that The judging module is further used to judge whether the number of times the user is prompted to operate the controller reaches a preset number; The prompting module is further used to prompt the user to operate the controller again if the number of times the user is prompted to operate the controller does not reach a preset number of times.

10. The device according to any one of claims 6 to 9, characterized in that: The device also includes: Infrared code opening module, used to open the infrared code receiving function.

11. A sound box, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 5.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 5 when executed by a processor.

13. A computer program product, characterized in that include: A computer program, wherein when the computer program is executed by a processor, the computer program is used to implement the method according to any one of claims 1 to 5.