Disclosure of Invention
The invention provides an air conditioner control method and an air conditioner, which are used for solving the defect that in the prior art, a voice instruction is easy to conflict with an actual situation to cause poor user experience, and improving the user experience.
The invention provides an air conditioner control method, which comprises the following steps:
acquiring a voice instruction sent by a user;
acquiring environmental information;
judging whether the voice instruction is reasonable or not according to the environment information;
and when the voice command is reasonable, controlling the air conditioner to operate according to the voice command, and when the voice command is unreasonable, controlling the air conditioner to operate for t according to the voice command and then recovering the prior operation state.
According to the air conditioner control method provided by the invention, the step of acquiring the voice instruction sent by the user comprises the following steps:
acquiring voice information sent by a user;
and analyzing the voice instruction according to the voice information.
According to the air conditioner control method provided by the invention, the environment information comprises humidity, temperature, oxygen concentration and air quality, and the step of acquiring the environment information comprises the following steps:
acquiring indoor temperature;
acquiring indoor humidity;
acquiring indoor oxygen concentration;
and acquiring indoor air quality and outdoor air quality.
According to the air conditioner control method provided by the invention, the step of judging whether the voice command is reasonable according to the environment information comprises the following steps:
and judging whether the voice command is reasonable or not according to the indoor temperature, the indoor humidity, the indoor oxygen concentration, the indoor air quality and the outdoor air quality.
According to the air conditioner control method provided by the invention, the step of judging whether the voice command is reasonable according to the indoor humidity comprises the following steps:
when the indoor humidity is not higher than the minimum threshold value of the set humidity, judging that the voice instruction is unreasonable when the voice instruction is dehumidification, and judging that the voice instruction is reasonable when the voice instruction is humidification;
when the indoor humidity is not lower than the set humidity maximum threshold value, the voice command is judged to be reasonable when dehumidification is carried out, and the voice command is judged to be unreasonable when humidification is carried out.
The air conditioner control method provided by the invention further comprises the following steps:
and controlling the air outlet smell according to the voice instruction.
The present invention also provides an air conditioner, comprising:
the voice module is used for acquiring a voice instruction sent by a user;
the environment information receiving module is used for acquiring environment information;
the signal processing module is used for judging whether the voice instruction is reasonable or not according to the environment information;
and the control module is used for controlling the air conditioner to operate according to the voice instruction when the voice instruction is reasonable, and recovering the prior operation state after controlling the air conditioner operation time t according to the voice instruction when the voice instruction is unreasonable.
According to the air conditioner provided by the invention, the voice module comprises a voice receiving unit and a voice processing unit;
the voice receiving unit is used for acquiring voice information sent by a user;
the voice processing unit is used for analyzing and obtaining a voice instruction according to the voice information.
According to the air conditioner provided by the invention, the environment information receiving module comprises a humidity information receiving module, a temperature information receiving module, an oxygen concentration information receiving module, an indoor air quality information receiving module and an outdoor air quality information receiving module;
the humidity information receiving module is used for acquiring indoor temperature;
the temperature information receiving module is used for acquiring indoor humidity;
the oxygen concentration information receiving module acquires indoor oxygen concentration;
the indoor air quality information receiving module is used for acquiring indoor air quality, and the outdoor air quality information receiving module is used for acquiring outdoor air quality.
The air conditioner provided by the invention further comprises an aromatherapy module, and the aromatherapy module is used for controlling the air outlet smell according to the voice instruction.
According to the air conditioner control method and the air conditioner, whether the voice instruction sent by the user is reasonable is judged through the acquired environment information, if the voice instruction is reasonable, the voice instruction can be continuously operated according to the voice instruction, and if the voice instruction is unreasonable, the prior operation state is restored, so that the condition that the environment becomes uncomfortable when the air conditioner is controlled by the voice instruction which is wrongly spoken randomly is avoided. Compared with the control method of the air conditioner in the prior art, which is easy to cause conflict between the voice command and the actual situation, the air conditioner control method provided by the invention avoids the conflict between the voice command and the actual situation and improves the user experience.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
The air conditioner control method and the air conditioner of the present invention will be described below with reference to fig. 1 and 2.
Referring to fig. 1, the air conditioner control method includes:
s10, acquiring a voice instruction sent by a user; in this embodiment, when the voice command is a specific numerical value, the voice command is controlled only for the specific numerical value, for example, when the air humidity is 60%, the voice command is controlled for humidifying to 50% humidity, and at this time, the voice command is controlled only for converting the humidity to 50% humidity.
S20, acquiring environmental information; the environment information is various environment parameters such as temperature, humidity, etc. indoors or outdoors, and each environment parameter has a set threshold value, which is the most comfortable parameter, and it can be referred to the following description.
S30, judging whether the voice command is reasonable according to the environment information; that is, whether the voice command is reasonable or not is determined according to the threshold value of each environmental parameter, and when the voice command controls the air conditioner to be away from the threshold value range for control, the voice command determines that the voice command is not reasonable, and when the voice command controls the air conditioner to be towards the threshold value range or to be controlled in the threshold value range, the voice command determines that the voice command is reasonable.
S40, when the voice command is reasonable, controlling the air conditioner to operate according to the voice command, and when the voice command is unreasonable, controlling the air conditioner to operate for time t according to the voice command and then restoring the prior operation state; therefore, according to whether the voice command is reasonable or not, the air conditioner is correspondingly controlled to operate so as to avoid conflict with actual conditions caused by the voice command, in use, in order to respond to the voice command at the highest speed, the air conditioner can immediately control to operate according to the voice command, then whether the operation is reasonable or not is judged according to the environment information, when the operation is unreasonable, the prior operation state can be recovered after time t, when the operation is reasonable, the operation can be continued according to the voice command, in a preferred embodiment, the time t is 2min, of course, other times can be set as required, and details are not repeated.
In the embodiment, whether the voice instruction sent by the user is reasonable or not is judged through the acquired environment information, if and only if the voice instruction is reasonable, the voice instruction can be continuously operated, and when the voice instruction is unreasonable, the prior operation state is recovered, so that the situation that the environment becomes uncomfortable when the air conditioner is controlled by the voice instruction which is wrongly spoken at will is avoided. Compared with the control method of the air conditioner in the prior art, which is easy to cause conflict between the voice command and the actual situation, the air conditioner control method provided by the invention avoids the conflict between the voice command and the actual situation and improves the user experience.
Referring to fig. 1, the step of receiving the aforementioned air conditioner control method to obtain the voice command sent by the user includes:
acquiring voice information sent by a user; the voice information is the original voice spoken by the user.
And analyzing the voice information to obtain a voice instruction.
Therefore, the voice instruction in the voice information is extracted according to the voice information sent by the user, and the control of the air conditioner can be realized after the instruction is simplified.
In this embodiment, the voice information sent by the user may be sent by any user, and certainly, in another embodiment, in acquiring the voice information sent by the user, the voice information needs to be recognized, and when the voice information is sent by the setting user, a voice instruction is obtained through analysis to control the air conditioner, so that a situation that a child sends the voice instruction at will can be avoided, and further a voice instruction issuing error can be avoided in advance.
Referring to fig. 1, in an embodiment of the present invention, the environment information includes humidity, temperature, oxygen concentration and air quality, and the step of acquiring the environment information includes:
acquiring indoor temperature; the indoor temperature can be detected by a temperature sensor arranged in the room.
Acquiring indoor humidity; the indoor humidity can be detected by a humidity sensor arranged in the room.
Acquiring indoor oxygen concentration; the indoor oxygen concentration can be detected by an oxygen concentration sensor arranged in the room.
Acquiring indoor air quality and outdoor air quality; in this embodiment, the air quality refers to the dust concentration of air, and is detected by a PM2.5 sensor provided indoors and a PM2.5 sensor provided outdoors.
In addition, in other embodiments, the environmental information may further include a carbon dioxide concentration, an air pressure, and the like, which is not described in detail in this embodiment.
The step of carrying the environmental information elements and judging whether the voice command is reasonable according to the environmental information comprises the following steps:
and judging whether the voice instruction is reasonable or not according to the indoor temperature, the indoor humidity, the indoor oxygen concentration, the indoor air quality and the outdoor air quality.
When the voice instruction sends out a corresponding instruction, the voice instruction is judged according to the environment information corresponding to the voice instruction so as to ensure that the voice instruction reasonably performs air conditioner control.
Specifically, the step of judging whether the voice command is reasonable according to the indoor humidity includes:
when the indoor humidity is not higher than the minimum threshold value of the set humidity, judging that the voice instruction is unreasonable when the voice instruction is dehumidification, and judging that the voice instruction is reasonable when the voice instruction is humidification;
when the indoor humidity is not lower than the set humidity maximum threshold value, the voice command is judged to be reasonable when dehumidification is carried out, and the voice command is judged to be unreasonable when humidification is carried out.
In an embodiment, the threshold of the humidity is 40% to 50%, and when the humidity is within the range, the humidity environment is the most comfortable humidity environment, and the situations where the voice instruction is unreasonable are all situations where the humidity is controlled to operate away from the humidity threshold, so that the user experience is obviously poor, and naturally, the setting of the threshold of the humidity can be changed correspondingly as needed, which is not described in detail.
In addition, when the humidity is controlled through the voice instruction, on the basis that judgment is not reasonable, when the voice instruction is humidification, the maximum humidity of humidification does not exceed a set humidity maximum threshold, when the voice instruction is dehumidification, the minimum humidity of dehumidification does not exceed a set humidity minimum threshold, and when the voice instruction is specific humidity, the humidity is controlled to reach the specific humidity, so that the air conditioner always ensures that the humidity is in the most comfortable humidity environment in the control process.
In addition, the step of judging whether the voice command is reasonable according to the indoor temperature comprises the following steps:
when the indoor temperature is not higher than the minimum threshold value of the set temperature, judging that the voice command is unreasonable when the voice command is temperature reduction, and judging that the voice command is reasonable when the voice command is temperature rise;
when the indoor temperature is not lower than the set temperature maximum threshold value, the voice command is judged to be reasonable when the voice command is temperature reduction, and the voice command is judged to be unreasonable when the voice command is temperature increase.
In this embodiment, the threshold of the temperature is 18-26 ℃, and certainly, in other embodiments, the range of the threshold of the humidity is determined according to seasons, which is not described in detail. The method for controlling the temperature through the voice command is the same as the method for controlling the humidity through the voice command, and the detailed description is omitted here.
In addition, the step of judging whether the voice command is reasonable according to the indoor oxygen concentration comprises the following steps:
when the indoor oxygen concentration is not higher than the minimum threshold value of the set oxygen concentration and the voice instruction is to improve the oxygen concentration, judging that the voice instruction is reasonable;
and when the indoor oxygen concentration is not lower than the set maximum oxygen concentration threshold, judging that the voice instruction is unreasonable when the voice instruction is used for improving the oxygen concentration.
In an embodiment, the threshold of the oxygen concentration is 19.5 to 21%, and in other embodiments, the threshold of the oxygen concentration may be determined according to requirements and is not described herein. The method for controlling the oxygen concentration through the voice command is the same as the method for controlling the humidity through the voice command, and the detailed description is omitted here.
Furthermore, the step of judging whether the voice command is reasonable according to the indoor air quality and the outdoor air quality comprises the following steps:
when the indoor air quality is not lower than the outdoor air quality and the voice command is the fresh air function, judging that the voice command is unreasonable;
when the indoor air quality is lower than the outdoor air quality, the voice command is judged to be reasonable when the fresh air function is started.
That is, what open through voice command this moment is the new trend function, and when the outside air quality was lower, it was the fresh trend function that need not open for avoiding the outside relatively poor air admission indoor, consequently, this moment, the instruction of opening the new trend function then is unreasonable, and when the outside air quality was higher, then can control the air conditioner according to the instruction of opening the new trend function. And after the fresh air function is started, when the indoor air quality is not lower than the outdoor air quality, the fresh air function is closed.
In addition, when the voice command is judged unreasonably, the air conditioner can also send out a voice prompt through the voice module to inform a user of the conflict of command input and please re-input the command.
In addition, in an embodiment of the present invention, when the air conditioner is controlled by the voice instruction, there is also a case that it is not necessary to determine whether it is reasonable through the environmental information, that is, in this case, the control may be performed directly by the voice instruction, such as controlling the air outlet smell as described below, controlling the air outlet direction by the voice instruction, or controlling the air speed by the voice instruction.
The air conditioner control method further comprises the following steps:
and controlling the air outlet smell according to the voice command.
The air outlet smell is the smell of air blown out by the air conditioner, such as lavender fragrance, jasmine fragrance, lily of the valley flower fragrance and the like, and the required smell is correspondingly controlled and blown out according to the voice instruction sent by the user, so that the use requirement of the user is met, and the user experience is improved.
Referring to fig. 2, the present invention further provides an air conditioner, including:
the voice module 10, the voice module 10 is used for obtaining a voice instruction sent by a user;
the environment information receiving module 20, the environment information receiving module 20 is configured to obtain environment information;
the signal processing module 30, the signal processing module 30 is configured to determine whether the voice instruction is reasonable according to the environment information;
and the control module 40 is used for controlling the air conditioner to operate according to the voice command when the voice command is reasonable, and restoring the prior operation state after controlling the operation time t of the air conditioner according to the voice command when the voice command is unreasonable.
This air conditioner can refer to the control method of above-mentioned air conditioner, and it is no longer repeated here, judges whether the voice command that the user sent is reasonable through the environmental information who obtains, and if and only when reasonable just can be according to voice command continuous operation, when voice command is unreasonable, then resumes earlier running state, when having avoided saying wrong voice command at will to air conditioner control for the environment becomes uncomfortable, has improved user experience.
In addition, the voice module 10 includes a voice receiving unit and a voice processing unit;
the voice receiving unit is used for acquiring voice information sent by a user;
the voice processing unit is used for analyzing and obtaining a voice instruction according to the voice information.
The functions of the voice module 10 can refer to the foregoing embodiments, and are not described in detail.
Furthermore, the environment information receiving module 20 includes a humidity information receiving module 21, a temperature information receiving module, an oxygen concentration information receiving module 23, an indoor air quality information receiving module 24, and an outdoor air quality information receiving module 25;
the humidity information receiving module 21 is configured to obtain an indoor temperature;
the temperature information receiving module is used for acquiring indoor humidity;
the oxygen concentration information receiving module 23 obtains the indoor oxygen concentration;
the indoor air quality information receiving module 24 is configured to obtain indoor air quality, and the outdoor air quality information receiving module 25 is configured to obtain outdoor air quality.
The functions of the environment information module can refer to the foregoing embodiments, and are not described in detail.
Referring to fig. 2, the air conditioner of the present invention is a fresh air conditioner, in which the modules are disposed, and the air conditioner further includes a corresponding detection sensor and a voice receiving device for detecting information, and in addition, the air conditioner further includes a heat exchanger for controlling temperature, a humidity module for controlling humidity, an oxygen generator for controlling oxygen concentration, and a lower air outlet structure for controlling opening or closing of a fresh air function.
In addition, the air conditioner further comprises an aromatherapy module 50, wherein the aromatherapy module 50 is used for controlling the air outlet smell according to the voice instruction.
In this embodiment, send different air-out smells for control champignon module 50, champignon module 50 includes a plurality of chambeies, every holds the intracavity and all fills different solid-state champignon, every holds all to be equipped with the open-close structure on the chamber, the steerable air output that holds the chamber of this open-close structure, and thus, according to the opening and closing degree of the open-close structure of every appearance chamber of voice command control, can be the mixed smell that obtains of different solid-state champignon according to actual conditions, also can be for only opening the smell that single solid-state champignon obtained, and then the smell that the control blew out, in order to obtain lavender fragrance, smell such as jasmine flower fragrance, reach user's demand. The aromatherapy module 50 is disposed at an air outlet or an air outlet channel of the air conditioner so as to blow out the odor through the air to obtain different air outlet odors.
Fig. 3 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 3: a processor (processor)610, a communication Interface (Communications Interface)620, a memory (memory)630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 communicate with each other via the communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform an air conditioning control method comprising: acquiring a voice instruction sent by a user; acquiring environmental information; judging whether the voice instruction is reasonable or not according to the environment information; and when the voice command is reasonable, controlling the air conditioner to operate according to the voice command, and when the voice command is unreasonable, controlling the air conditioner to operate for t according to the voice command and then recovering the prior operation state.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, which when executed by a computer, enable the computer to perform the air conditioning control method provided by the above methods, the method including: acquiring a voice instruction sent by a user; acquiring environmental information; judging whether the voice instruction is reasonable or not according to the environment information; and when the voice command is reasonable, controlling the air conditioner to operate according to the voice command, and when the voice command is unreasonable, controlling the air conditioner to operate for t according to the voice command and then recovering the prior operation state.
In still another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program, which when executed by a processor, is implemented to perform the air conditioning control method provided above, the method including: acquiring a voice instruction sent by a user; acquiring environmental information; judging whether the voice instruction is reasonable or not according to the environment information; and when the voice command is reasonable, controlling the air conditioner to operate according to the voice command, and when the voice command is unreasonable, controlling the air conditioner to operate for t according to the voice command and then recovering the prior operation state.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.