CN115540222A - Method and device for controlling air conditioner, air conditioner and storage medium - Google Patents

Method and device for controlling air conditioner, air conditioner and storage medium Download PDF

Info

Publication number
CN115540222A
CN115540222A CN202210916078.2A CN202210916078A CN115540222A CN 115540222 A CN115540222 A CN 115540222A CN 202210916078 A CN202210916078 A CN 202210916078A CN 115540222 A CN115540222 A CN 115540222A
Authority
CN
China
Prior art keywords
voice instruction
instruction information
air conditioner
condition
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210916078.2A
Other languages
Chinese (zh)
Inventor
王祯祯
刘丙磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Air Conditioner Gen Corp Ltd
Qingdao Haier Air Conditioning Electric Co Ltd
Haier Smart Home Co Ltd
Chongqing Haier Air Conditioner Co Ltd
Original Assignee
Qingdao Haier Air Conditioner Gen Corp Ltd
Qingdao Haier Air Conditioning Electric Co Ltd
Haier Smart Home Co Ltd
Chongqing Haier Air Conditioner Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Air Conditioner Gen Corp Ltd, Qingdao Haier Air Conditioning Electric Co Ltd, Haier Smart Home Co Ltd, Chongqing Haier Air Conditioner Co Ltd filed Critical Qingdao Haier Air Conditioner Gen Corp Ltd
Priority to CN202210916078.2A priority Critical patent/CN115540222A/en
Publication of CN115540222A publication Critical patent/CN115540222A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing
    • F24F11/64Electronic processing using pre-stored data
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing
    • F24F11/65Electronic processing for selecting an operating mode

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Human Computer Interaction (AREA)
  • Air Conditioning Control Device (AREA)

Abstract

The application relates to the technical field of air conditioners, and discloses a method for controlling an air conditioner, which comprises the following steps: under the condition of receiving the voice instruction information, judging whether a user initiating the voice instruction information is a child or not; the voice instruction information comprises a to-be-run mode. Acquiring external environment information under the condition that a user initiating voice instruction information is a child; acquiring a target operation mode corresponding to external environment information; judging whether the target operation mode comprises a to-be-operated mode or not; and triggering the air conditioner to operate according to the to-be-operated mode under the condition that the target operation mode comprises the to-be-operated mode. Therefore, the air conditioner can be controlled to operate according to the to-be-operated mode under the condition that the target operation mode comprises the to-be-operated mode in the voice instruction information. Therefore, the probability of misoperation of the air conditioner according to the voice instruction of the child can be reduced, and further energy conservation and emission reduction can be realized. The application also discloses a device for controlling the air conditioner, the air conditioner and a storage medium.

Description

Method and device for controlling air conditioner, air conditioner and storage medium
Technical Field
The present application relates to the field of air conditioning technologies, and for example, to a method and an apparatus for controlling an air conditioner, and a storage medium.
Background
At present, with the development of society, air conditioners become one of the most common electric appliances in daily life. The existing air conditioners are controlled and adjusted through remote controllers, and with the development of technologies, voice-controlled air conditioners are beginning to appear in the market at present, namely, a voice control function module is added on the air conditioner, and a user can control and adjust the air conditioner by sending a voice command. Compared with a control mode adopting a remote controller, the voice control mode avoids the inconvenience of searching the remote controller, and simultaneously solves the problem that the battery of the remote controller needs to be replaced because the battery is not electrified, so that the remote controller is more convenient to use.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art:
the voice air conditioner is easy to be used as a toy by children of small ages, so that the air conditioner is easy to operate mistakenly according to wrong voice instructions.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
The embodiment of the disclosure provides a method and a device for controlling an air conditioner, the air conditioner and a storage medium, so that the probability of misoperation of the air conditioner according to a voice instruction of a child can be reduced.
In some embodiments, the method for controlling an air conditioner includes: under the condition of receiving voice instruction information, judging whether a user initiating the voice instruction information is a child or not; the voice instruction information comprises a mode to be operated. And acquiring the external environment information under the condition that the user initiating the voice instruction information is a child. And acquiring a target operation mode corresponding to the external environment information. And judging whether the target operation mode comprises the to-be-operated mode or not. And triggering the air conditioner to operate according to the to-be-operated mode under the condition that the target operation mode comprises the to-be-operated mode.
In some embodiments, it is determined whether the user initiating the voice instruction information is a child by: and extracting the voiceprint features to be determined from the voice instruction information. And judging whether the voiceprint features to be determined are the same as the preset voiceprint features of the child or not. And under the condition that the voiceprint features to be determined are the same as the voiceprint features of the preset children, determining that the user who initiates the voice instruction information is the children.
In some embodiments, it is determined whether the user initiating the voice instruction information is a child by: and judging whether the sound frequency corresponding to the voice instruction information is within a preset sound threshold frequency range of the child. And under the condition that the sound frequency corresponding to the voice instruction information is within the preset sound threshold frequency range of children, determining that the user initiating the voice instruction information is the children.
In some embodiments, before obtaining the external environment information, the method further includes: and judging whether the voice instruction information meets preset conditions. And acquiring the current operation mode of the air conditioner under the condition that the voice instruction information meets the preset condition. And judging whether the current operation mode is the same as the to-be-operated mode or not. And acquiring external environment information under the condition that the current operation mode is different from the to-be-operated mode.
In some embodiments, the preset condition is that there is a semantic conflict in the voice instruction information, and whether the voice instruction information satisfies the preset condition is determined by: and inputting the voice instruction information into a preset semantic conflict detection model, and determining that the voice instruction information meets a preset condition under the condition that the output result of the semantic conflict detection model is a semantic conflict.
In some embodiments, the preset condition is that repeated words exist in the voice instruction information, and whether the voice instruction information meets the preset condition is determined by: and performing word segmentation on the voice instruction information to obtain words included in the voice instruction information. Matching words included in the voice instruction information pairwise, and determining that the voice instruction information meets preset conditions under the condition that the same words exist.
In some embodiments, the preset condition is that laughter exists in the voice instruction information, and whether the voice instruction information meets the preset condition is determined by: and dividing the voice instruction information into a plurality of voice frames. And inputting each voice frame into a preset laughter detection model, and determining whether each voice frame is a laughter frame. And under the condition that the number of the laugh frames is greater than a preset threshold value, determining that the voice instruction information meets a preset condition.
In some embodiments, the to-be-operated mode is a music sleep-assisting mode, and after triggering the air conditioner to operate according to the to-be-operated mode, the method further includes: and acquiring the current time after the air conditioner operates for the first preset time period according to the to-be-operated mode. And acquiring a volume adjusting value according to the current time. And adjusting the volume of the music played by the air conditioner according to the volume adjusting value at a second preset time interval.
In some embodiments, the apparatus for controlling an air conditioner includes a processor and a memory storing program instructions, the processor being configured to execute the above-mentioned method for controlling an air conditioner when executing the program instructions.
In some embodiments, the air conditioner includes the above-described apparatus for controlling an air conditioner.
In some embodiments, the storage medium stores program instructions that, when executed, perform the method for controlling an air conditioner as described above.
The method and the device for controlling the air conditioner, the air conditioner and the storage medium provided by the embodiment of the disclosure can realize the following technical effects: the method comprises the steps of acquiring external environment information and acquiring a target operation mode corresponding to the external environment information under the condition of receiving voice instruction information initiated by a child. And then judging whether the target operation mode comprises a to-be-operated mode, and triggering the air conditioner to operate according to the to-be-operated mode under the condition that the target operation mode comprises the to-be-operated mode. Therefore, the to-be-operated mode in the voice instruction information can be compared with the target operation mode corresponding to the current external environment information, and whether the to-be-operated mode in the voice instruction information accords with the control logic or not is determined. And controlling the air conditioner to operate according to the to-be-operated mode only when the target operation mode comprises the to-be-operated mode. That is, the air conditioner is controlled to operate according to the to-be-operated mode only when the to-be-operated mode in the voice instruction information conforms to the control logic. Therefore, the probability of misoperation of the air conditioner according to the voice instruction of the child can be reduced, and further energy conservation and emission reduction can be realized.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the accompanying drawings and not in limitation thereof, in which elements having the same reference numeral designations are shown as like elements and not in limitation thereof, and wherein:
fig. 1 is a schematic diagram of a method for controlling an air conditioner according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of another method for controlling an air conditioner according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of another method for controlling an air conditioner according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of another method for controlling an air conditioner according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of another method for controlling an air conditioner according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of an apparatus for controlling an air conditioner according to an embodiment of the present disclosure.
Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The terms "first," "second," and the like in the description and in the claims, and the above-described drawings of embodiments of the present disclosure, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged as appropriate for the embodiments of the disclosure described herein. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The term "plurality" means two or more, unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: a or B, or A and B.
The term "correspond" may refer to an association or binding relationship, and a corresponds to B refers to an association or binding relationship between a and B.
Because the voice air conditioner is easy to be used as a toy by children, the air conditioner is easy to operate mistakenly according to wrong voice instructions. According to the method and the device, the external environment information is obtained under the condition that the voice instruction information initiated by the child is received, and the target operation mode corresponding to the external environment information is obtained. And then judging whether the target operation mode comprises a to-be-operated mode in the voice instruction information, and triggering the air conditioner to operate according to the to-be-operated mode under the condition that the target operation mode comprises the to-be-operated mode. Therefore, the to-be-operated mode in the voice instruction information can be compared with the target operation mode corresponding to the current external environment information, and whether the to-be-operated mode in the voice instruction information accords with the control logic or not is determined. And controlling the air conditioner to operate according to the to-be-operated mode only when the target operation mode comprises the to-be-operated mode. That is, the air conditioner is controlled to operate according to the to-be-operated mode only when the to-be-operated mode in the voice instruction information conforms to the control logic. Therefore, the probability of misoperation of the air conditioner according to the voice instruction of the child can be reduced, and further energy conservation and emission reduction can be realized.
As shown in fig. 1, an embodiment of the present disclosure provides a method for controlling an air conditioner, including:
step S101, the air conditioner judges whether the user who initiates the voice instruction information is a child or not under the condition that the air conditioner receives the voice instruction information. The voice instruction information comprises a to-be-run mode.
And step S102, the air conditioner acquires the external environment information under the condition that the user initiating the voice instruction information is a child.
And step S103, the air conditioner acquires a target operation mode corresponding to the external environment information.
And step S104, the air conditioner judges whether the target operation mode comprises a to-be-operated mode.
And step S105, triggering the air conditioner to operate according to the to-be-operated mode under the condition that the target operation mode of the air conditioner comprises the to-be-operated mode.
By adopting the method for controlling the air conditioner, the external environment information is obtained and the target operation mode corresponding to the external environment information is obtained under the condition that the voice instruction information initiated by the child is received. And then judging whether the target operation mode comprises a to-be-operated mode in the voice instruction information, and triggering the air conditioner to operate according to the to-be-operated mode under the condition that the target operation mode comprises the to-be-operated mode. Therefore, the to-be-operated mode in the voice instruction information can be compared with the target operation mode corresponding to the current external environment information, and whether the to-be-operated mode in the voice instruction information accords with the control logic or not is determined. And controlling the air conditioner to operate according to the to-be-operated mode only when the target operation mode comprises the to-be-operated mode. That is, the air conditioner is controlled to operate according to the mode to be operated only when the mode to be operated in the voice instruction information accords with the control logic. Therefore, the probability of misoperation of the air conditioner according to the voice instruction of the child can be reduced, and further energy conservation and emission reduction can be realized.
Optionally, the external environment information comprises an outdoor ambient temperature and/or an outdoor ambient humidity.
In some embodiments, the external environment information is an outdoor environment temperature, and the obtaining of the target operation mode corresponding to the external environment information includes: and under the condition that the outdoor environment temperature is greater than the preset temperature threshold, the target operation mode corresponding to the external environment information comprises one or more of a refrigeration mode, a sleep mode and a music sleep-assisting mode. And under the condition that the outdoor environment temperature is less than or equal to the preset temperature threshold, the target operation mode corresponding to the external environment information comprises one or more of a heating mode, a sleep mode and a music sleep-assisting mode.
In some embodiments, the external environment information is outdoor environment humidity, and the obtaining of the target operation mode corresponding to the external environment information includes: under the condition that the outdoor environment humidity is larger than the preset humidity threshold value, the target operation mode corresponding to the external environment information comprises one or more of a dehumidification mode, a sleep mode and a music sleep-assisting mode. And under the condition that the outdoor environment humidity is less than or equal to the preset humidity threshold, the target operation mode corresponding to the external environment information comprises one or more of a humidifying mode, a sleeping mode and a music sleep-assisting mode.
In some embodiments, the obtaining the target operation mode corresponding to the external environment information includes: under the condition that the outdoor environment humidity is greater than the preset humidity threshold value and the outdoor environment temperature is greater than the preset temperature threshold value, the target operation mode corresponding to the external environment information comprises one or more of a dehumidification mode, a refrigeration mode, a sleep mode and a music sleep-aid mode. Under the condition that the outdoor environment humidity is greater than the preset humidity threshold value and the outdoor environment temperature is less than the preset temperature threshold value, the target operation mode corresponding to the external environment information comprises one or more of a dehumidification mode, a heating mode, a sleep mode and a music sleep-aid mode. And under the condition that the outdoor environment humidity is less than the preset humidity threshold and the outdoor environment temperature is less than the preset temperature threshold, the corresponding target operation mode comprises one or more of a humidifying mode, a heating mode, a sleeping mode and a music sleep-assisting mode. And under the condition that the outdoor environment humidity is less than the preset humidity threshold and the outdoor environment temperature is greater than the preset temperature threshold, the corresponding target operation mode comprises one or more of a humidifying mode, a refrigerating mode, a sleeping mode and a music sleep-assisting mode.
Optionally, after determining whether the user initiating the voice instruction information is a child, the method further includes: and under the condition that the user initiating the voice instruction information is not a child, triggering the air conditioner to operate according to the to-be-operated mode.
Optionally, it is determined whether the user initiating the voice instruction information is a child by: and extracting the voiceprint features to be determined from the voice instruction information. Judging whether the voiceprint features to be determined are the same as the voiceprint features of the preset children or not; and under the condition that the voiceprint features to be determined are the same as the voiceprint features of the preset children, determining that the user initiating the voice instruction information is the children. Because the age and gender difference of the people can be reflected on the whole pronunciation system, particularly the shape of the vocal tract, the vocal print characteristic parameters are changed, and the corresponding difference can be extracted from various vocal print characteristic parameters. The human vocal organs include: lung, trachea, larynx, pharynx, nose, mouth. The part of the larynx is the glottis and the passage from the glottis to the lips is the vocal tract. The shape of the vocal tract is mainly determined by the position of the lips, the jaw and the tongue. The varying shape of the vocal tract results in the emission of different sounds. Therefore, different persons, persons of different age groups and persons of different genders can be identified by the voiceprint feature. And then, whether the user sending the voice instruction information is a child or not can be determined according to the voiceprint features to be determined in the voice instruction information.
Optionally, it is determined whether the user initiating the voice instruction information is a child by: and judging whether the sound frequency corresponding to the voice instruction information is within a preset sound threshold frequency range of the children. And under the condition that the sound frequency corresponding to the voice instruction information is within the preset sound threshold frequency range of the children, determining that the user initiating the voice instruction information is the children. Since the frequency of the sound of a child is generally higher than that of an adult. Therefore, whether the user who sends the voice instruction information is a child can be determined by determining whether the voice frequency corresponding to the voice instruction information is within the preset sound threshold frequency range of the child.
Optionally, before acquiring the external environment information, the method further includes: and judging whether the voice instruction information meets preset conditions or not, and acquiring the current operation mode of the air conditioner under the condition that the voice instruction information meets the preset conditions. And judging whether the current operation mode is the same as the to-be-operated mode or not, and acquiring external environment information under the condition that the current operation mode is different from the to-be-operated mode. Because the children are used to simulate the speaking of the adults, under the condition that the voice instruction information of the children is received, whether the children are simulating the speaking of the adults can be judged by judging whether the to-be-operated mode in the voice instruction information is the same as the current operation mode of the air conditioner, so that the probability of misoperation of the air conditioner can be reduced.
As shown in fig. 2, an embodiment of the present disclosure provides a method for controlling an air conditioner, including:
step S201, the air conditioner judges whether a user initiating voice instruction information is a child or not under the condition that the air conditioner receives the voice instruction information; the voice instruction information comprises a to-be-run mode.
Step S202, the air conditioner judges whether the voice instruction information meets preset conditions or not under the condition that the user initiating the voice instruction information is a child.
And step S203, the air conditioner acquires the current operation mode of the air conditioner under the condition that the voice instruction information meets the preset condition.
In step S204, the air conditioner determines whether the current operation mode is the same as the to-be-operated mode.
In step S205, the air conditioner acquires the external environment information when the current operation mode is different from the to-be-operated mode.
In step S206, the air conditioner acquires a target operation mode corresponding to the external environment information.
In step S207, the air conditioner determines whether the target operation mode includes a to-be-operated mode.
And step S208, when the target operation mode of the air conditioner comprises a to-be-operated mode, triggering the air conditioner to operate according to the to-be-operated mode.
By adopting the method for controlling the air conditioner, the external environment information is obtained and the target operation mode corresponding to the external environment information is obtained under the condition that the voice instruction information initiated by the child is received. And then judging whether the target operation mode comprises a to-be-operated mode in the voice instruction information, and triggering the air conditioner to operate according to the to-be-operated mode under the condition that the target operation mode comprises the to-be-operated mode. Therefore, the to-be-operated mode in the voice instruction information can be compared with the target operation mode corresponding to the current external environment information, and whether the to-be-operated mode in the voice instruction information accords with the control logic or not is determined. And controlling the air conditioner to operate according to the to-be-operated mode only when the target operation mode comprises the to-be-operated mode. That is, the air conditioner is controlled to operate according to the mode to be operated only when the mode to be operated in the voice instruction information accords with the control logic. Therefore, the probability of misoperation of the air conditioner according to the voice instruction of the child can be reduced, and further energy conservation and emission reduction can be realized. Moreover, because the children are used to imitate the adult speaking, under the condition that the children voice instruction information is received, whether the children are imitating the adult speaking can be judged by judging whether the to-be-operated mode in the voice instruction information is the same as the current operation mode of the air conditioner, so that the probability of misoperation of the air conditioner can be further reduced.
Optionally, after determining whether the current operation mode is the same as the to-be-operated mode, the method further includes: and under the condition that the current operation mode is the same as the to-be-operated mode, no operation is performed.
As shown in fig. 3, an embodiment of the present disclosure provides a method for controlling an air conditioner, including:
step S301, the air conditioner judges whether a user initiating voice instruction information is a child or not under the condition that the air conditioner receives the voice instruction information; the voice instruction information comprises a to-be-run mode.
Step S302, the air conditioner judges whether the voice instruction information meets preset conditions or not under the condition that the user initiating the voice instruction information is a child.
Step S303, the air conditioner acquires the current operation mode of the air conditioner under the condition that the voice instruction information meets the preset condition.
In step S304, the air conditioner determines whether the current operation mode is the same as the to-be-operated mode.
In step S305, the air conditioner does not perform any operation when the current operation mode is the same as the standby operation mode.
By adopting the method for controlling the air conditioner, because the children are used to simulate the speaking of the adult, under the condition that the voice instruction information of the children is received, whether the children are simulating the speaking of the adult can be judged by judging whether the to-be-operated mode in the voice instruction information is the same as the current operation mode of the air conditioner, so that the probability of misoperation of the air conditioner can be further reduced.
In some embodiments, the preset conditions include one or more of the presence of a semantic conflict in the voice instruction information, the presence of repeated words in the voice instruction information, and the presence of laughter in the voice instruction information.
Optionally, the preset condition is that the voice instruction information has a semantic conflict, and whether the voice instruction information meets the preset condition is judged by the following method: and inputting the voice instruction information into a preset semantic conflict detection model, and determining that the voice instruction information meets a preset condition under the condition that the output result of the semantic conflict detection model is a semantic conflict.
In some embodiments, the voice instruction information is input into a preset semantic conflict detection model, the semantic conflict detection model is triggered to perform word segmentation processing on the voice instruction information, a subject, a predicate and an object in the voice instruction information are obtained, and then whether collocation among the subject, the predicate and the object is appropriate or not is judged. And in case of improper collocation among the subject, the predicate and the object, outputting the result: semantic conflict.
In some embodiments, the semantic conflict detection model outputs the result when detecting that the ambiguous word exists in the voice instruction information: semantic conflict.
In some embodiments, the voice instruction information is input into a preset semantic conflict detection model, the semantic conflict detection model is triggered to detect the voice instruction information, and when a plurality of subjects exist in the semantic instruction information, a result is output: semantic conflict. For example: the subjects include mom, dad, grandpa and grandpa.
In some embodiments, the voice command information is a question bar, a negative sentence, or a double negative sentence. The voice instruction information is input into a preset semantic conflict detection model, the semantic conflict detection model is triggered to detect the voice instruction information, and when the situation that the voice instruction information is unclear is detected, a result is output: semantic conflict.
Optionally, the preset condition is that repeated words exist in the voice instruction information, and whether the voice instruction information meets the preset condition is judged in the following manner: and performing word segmentation on the voice instruction information to obtain words included in the voice instruction information. Matching words included in the voice instruction information pairwise, and determining that the voice instruction information meets the preset conditions under the condition that the same words exist.
Optionally, the preset condition is that laughter exists in the voice instruction information, and whether the voice instruction information meets the preset condition is determined by: dividing the voice instruction information into a plurality of voice frames, inputting each voice frame into a preset laughter detection model, and determining whether each voice frame is a laughter frame. And under the condition that the number of the laughter frames is larger than a preset threshold value, determining that the voice instruction information meets a preset condition. Since children generally play a game that simulates the speech of an adult, laughter is often accompanied when children simulate the speech of an adult. Therefore, by detecting whether or not there is laughter in the voice instruction information, it can be determined whether or not the voice instruction information is issued during the child game.
Optionally, the to-be-operated mode is a music sleep-assisting mode, and after the air conditioner is triggered to operate according to the to-be-operated mode, the method further includes: and after the air conditioner operates for a first preset time period according to the to-be-operated mode, acquiring the current time. And acquiring a volume adjusting value according to the current time, and adjusting the volume of the music played by the air conditioner according to the volume adjusting value at intervals of a second preset time period. Wherein, the music sleep-aiding mode represents playing music to help the user to sleep. Since after the child falls asleep, if the guardian of the child is hugging the child and needs to exit the music sleep-aid mode. If the music sleep aid mode is still switched off by voice control, the child may be awakened again. The current time is acquired after the air conditioner operates for the preset time period according to the standby operation mode, the volume adjusting value is acquired according to the current time, and then the volume of the music played by the air conditioner is adjusted according to the volume adjusting value, so that the volume of the music played by the air conditioner can be automatically adjusted, and the air conditioner can be silently controlled to exit from the music sleep-aiding mode.
As shown in fig. 4, an embodiment of the present disclosure provides a method for controlling an air conditioner, including:
step S401, the air conditioner judges whether the user who initiates the voice instruction information is a child or not under the condition that the air conditioner receives the voice instruction information. The voice instruction information comprises a to-be-run mode, and the to-be-run mode is a music sleep-assisting mode.
Step S402, the air conditioner acquires the external environment information when the user initiating the voice instruction information is a child.
In step S403, the air conditioner acquires a target operation mode corresponding to the external environment information.
In step S404, the air conditioner determines whether the target operation mode includes a to-be-operated mode.
And step S405, when the target operation mode comprises a to-be-operated mode, the air conditioner is triggered to operate according to the to-be-operated mode.
Step S406, the air conditioner obtains the current time after the air conditioner operates for the first preset time period according to the to-be-operated mode.
In step S407, the air conditioner acquires a volume adjustment value according to the current time.
And step S408, the air conditioner adjusts the volume of the music played by the air conditioner according to the volume adjustment value at a second preset time interval.
By adopting the method for controlling the air conditioner, the external environment information is obtained and the target operation mode corresponding to the external environment information is obtained under the condition that the voice instruction information initiated by the child is received. And then judging whether the target operation mode comprises a to-be-operated mode in the voice instruction information, and triggering the air conditioner to operate according to the to-be-operated mode under the condition that the target operation mode comprises the to-be-operated mode. Therefore, the to-be-operated mode in the voice instruction information can be compared with the target operation mode corresponding to the current external environment information, and whether the to-be-operated mode in the voice instruction information accords with the control logic or not is determined. And controlling the air conditioner to operate according to the to-be-operated mode only when the target operation mode comprises the to-be-operated mode. That is, the air conditioner is controlled to operate according to the mode to be operated only when the mode to be operated in the voice instruction information accords with the control logic. Therefore, the probability of misoperation of the air conditioner according to the voice instruction of the child can be reduced, and further energy conservation and emission reduction can be realized. Meanwhile, after the air conditioner operates for a preset time period according to the standby operation mode, the current time is obtained, the volume adjusting value is obtained according to the current time, and then the volume of music played by the air conditioner is adjusted according to the volume adjusting value, so that the volume of the music played by the air conditioner can be automatically adjusted, and the air conditioner can be silently controlled to exit from the music sleep-aiding mode.
Optionally, obtaining the volume adjustment value according to the current time includes: and under the condition that the current time is within a first preset time range, acquiring a first adjusting value for increasing the volume of the music played by the air conditioner. Wherein: the first preset time range is 5:30 to 7 of. And in the case that the current time is within a first preset time period, the representation needs to wake up the user. Therefore, a first adjusting value for increasing the volume of the music played by the air conditioner is obtained, and the volume of the music played by the air conditioner is increased according to the first adjusting value at intervals of a second preset time period. Thereby enabling to wake up the user with music of gradually increasing volume. For example: and increasing the volume of the music played by the air conditioner according to 10 decibels every 30 minutes.
Optionally, obtaining the volume adjustment value according to the current time includes: and under the condition that the current time is within a second preset time range, acquiring a second adjusting value for reducing the volume of the music played by the air conditioner. Wherein the second predetermined time range is 11:30 to 11. In a case where the current time is within the second preset time range, it may be determined that the user is in a lunch break state or a evening rest state. Therefore, a second adjusting value for reducing the volume of the music played by the air conditioner is obtained, and the volume of the music played by the air conditioner is reduced at intervals of a second preset time period according to the second adjusting value, so that the user can go into deep sleep. For example: and reducing the volume of the music played by the air conditioner according to 10 decibels every 30 minutes.
Optionally, the volume adjustment value is a second adjustment value, and the volume of the music played by the air conditioner is adjusted according to the volume adjustment value at an interval of a second preset time period, including: and reducing the volume of the music played by the air conditioner according to a second adjusting value at intervals of a second preset time period.
Optionally, after the volume of the music played by the air conditioner is decreased by the second adjustment value at intervals of a second preset time period, the method further includes: and obtaining indoor noise at an interval of a third preset time period, reducing the volume of the music played by the air conditioner to a first preset volume under the condition that the decibel of the indoor noise is lower than a preset decibel value, and reducing the volume of the music played by the air conditioner to a second preset volume after the air conditioner plays the music of a fourth preset time period according to the first preset volume.
As shown in fig. 5, an embodiment of the present disclosure provides a method for controlling an air conditioner, including:
step S501, the air conditioner judges whether the user who initiates the voice instruction information is a child or not under the condition that the air conditioner receives the voice instruction information. The voice instruction information comprises a to-be-operated mode, and the to-be-operated mode is a music sleep-assisting mode.
Step S502, the air conditioner acquires the external environment information under the condition that the user initiating the voice instruction information is a child.
In step S503, the air conditioner acquires a target operation mode corresponding to the external environment information.
In step S504, the air conditioner determines whether the target operation mode includes a to-be-operated mode.
And step S505, the air conditioner is triggered to operate according to the to-be-operated mode under the condition that the target operation mode comprises the to-be-operated mode.
Step S506, the air conditioner obtains the current time after the air conditioner operates for the first preset time period according to the to-be-operated mode.
In step S507, the air conditioner obtains a second adjustment value for reducing the volume of music played by the air conditioner when the current time is within a second preset time range.
And step S508, the air conditioner reduces the volume of the music played by the air conditioner according to a second adjusting value at a second preset time interval.
Step S509, the air conditioner obtains indoor noise at a third preset time interval, and reduces the volume of music played by the air conditioner to the first preset volume when the decibel of the indoor noise is lower than the preset decibel value.
In step S510, after the air conditioner plays the music in the fourth preset time period according to the first preset volume, the air conditioner reduces the volume of the music played by the air conditioner to the second preset volume.
By adopting the method for controlling the air conditioner, the external environment information is obtained and the target operation mode corresponding to the external environment information is obtained under the condition that the voice instruction information initiated by the child is received. And then judging whether the target operation mode comprises a to-be-operated mode in the voice instruction information, and triggering the air conditioner to operate according to the to-be-operated mode under the condition that the target operation mode comprises the to-be-operated mode. Therefore, the to-be-operated mode in the voice instruction information can be compared with the target operation mode corresponding to the current external environment information, and whether the to-be-operated mode in the voice instruction information accords with the control logic or not is determined. And controlling the air conditioner to operate according to the to-be-operated mode only when the target operation mode comprises the to-be-operated mode. That is, the air conditioner is controlled to operate according to the to-be-operated mode only when the to-be-operated mode in the voice instruction information conforms to the control logic. Therefore, the probability of misoperation of the air conditioner according to the voice instruction of the child can be reduced, and further energy conservation and emission reduction can be realized. Meanwhile, after the air conditioner operates for a preset time period according to the standby operation mode, the current time is obtained, the volume adjusting value is obtained according to the current time, and then the volume of the music played by the air conditioner is adjusted according to the volume adjusting value, so that the volume of the music played by the air conditioner can be automatically adjusted, and the air conditioner can be silently controlled to exit from the music sleep-aiding mode.
In some embodiments, the third predetermined time period is 10 minutes, the predetermined decibel value is 40, the first predetermined volume is 20 decibels, and the second predetermined volume is 0.
Optionally, obtaining the volume adjustment value according to the current time includes: and under the condition that the current time is not within the first preset time range or the second preset time range, the acquired volume adjusting value is 0.
As shown in fig. 6, an embodiment of the present disclosure provides an apparatus for controlling an air conditioner, which includes a processor (processor) 600 and a memory (memory) 601. Optionally, the apparatus may also include a Communication Interface 602 and a bus 603. The processor 600, the communication interface 602, and the memory 601 may communicate with each other via a bus 603. The communication interface 602 may be used for information transfer. The processor 600 may call logic instructions in the memory 601 to perform the method for controlling the air conditioner of the above-described embodiment.
By adopting the device for controlling the air conditioner, the external environment information is acquired under the condition of receiving the voice instruction information initiated by the child, and the target operation mode corresponding to the external environment information is acquired. And then judging whether the target operation mode comprises a to-be-operated mode in the voice instruction information, and triggering the air conditioner to operate according to the to-be-operated mode under the condition that the target operation mode comprises the to-be-operated mode. Therefore, the to-be-operated mode in the voice instruction information can be compared with the target operation mode corresponding to the current external environment information, and whether the to-be-operated mode in the voice instruction information accords with the control logic or not is determined. And controlling the air conditioner to operate according to the to-be-operated mode only when the target operation mode comprises the to-be-operated mode. That is, the air conditioner is controlled to operate according to the to-be-operated mode only when the to-be-operated mode in the voice instruction information conforms to the control logic. Therefore, the probability of misoperation of the air conditioner according to the voice instruction of the child can be reduced, and further energy conservation and emission reduction can be realized.
In addition, the logic instructions in the memory 601 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 601 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 600 executes functional applications and data processing, i.e., implements the method for controlling the air conditioner in the above-described embodiments, by executing program instructions/modules stored in the memory 601.
The memory 601 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. In addition, the memory 601 may include a high speed random access memory, and may also include a non-volatile memory.
The embodiment of the disclosure provides an air conditioner, which comprises the device for controlling the air conditioner.
By adopting the air conditioner provided by the embodiment of the disclosure, the external environment information is obtained under the condition of receiving the voice instruction information initiated by the child, and the target operation mode corresponding to the external environment information is obtained. And then judging whether the target operation mode comprises a to-be-operated mode in the voice instruction information, and triggering the air conditioner to operate according to the to-be-operated mode under the condition that the target operation mode comprises the to-be-operated mode. Therefore, the to-be-operated mode in the voice instruction information can be compared with the target operation mode corresponding to the current external environment information, and whether the to-be-operated mode in the voice instruction information accords with the control logic or not is determined. And controlling the air conditioner to operate according to the to-be-operated mode only when the target operation mode comprises the to-be-operated mode. That is, the air conditioner is controlled to operate according to the to-be-operated mode only when the to-be-operated mode in the voice instruction information conforms to the control logic. Therefore, the probability of misoperation of the air conditioner according to the voice instruction of the child can be reduced.
The disclosed embodiments provide a storage medium storing program instructions that, when executed, perform the above-described method for controlling an air conditioner.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the above-described method for controlling an air conditioner.
The computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable 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 of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: 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 other various media capable of storing program codes, and may also be a transient storage medium.
The above description and the drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising a …" does not exclude the presence of additional like elements in a process, method, or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosure, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. 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 units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (11)

1. A method for controlling an air conditioner, comprising:
under the condition of receiving voice instruction information, judging whether a user initiating the voice instruction information is a child or not; the voice instruction information comprises a to-be-run mode;
acquiring external environment information under the condition that a user initiating the voice instruction information is a child;
acquiring a target operation mode corresponding to the external environment information;
judging whether the target operation mode comprises the to-be-operated mode or not;
and under the condition that the target operation mode comprises the same to-be-operated mode, triggering the air conditioner to operate according to the to-be-operated mode.
2. The method of claim 1, wherein determining whether the user initiating the voice instruction information is a child is performed by:
extracting voiceprint features to be determined from the voice instruction information;
judging whether the voiceprint features to be determined are the same as the preset voiceprint features of the child or not;
and under the condition that the voiceprint features to be determined are the same as the voiceprint features of the preset children, determining that the user initiating the voice instruction information is the children.
3. The method of claim 1, wherein determining whether the user initiating the voice instruction message is a child is performed by:
judging whether the sound frequency corresponding to the voice instruction information is within a preset sound threshold frequency range of the child;
and under the condition that the sound frequency corresponding to the voice instruction information is within the preset sound threshold frequency range of the children, determining that the user initiating the voice instruction information is the children.
4. The method of claim 1, wherein before obtaining the external environment information, further comprising:
judging whether the voice instruction information meets preset conditions or not;
acquiring the current operation mode of the air conditioner under the condition that the voice instruction information meets preset conditions;
judging whether the current operation mode is the same as the to-be-operated mode or not;
and acquiring external environment information under the condition that the current operation mode is different from the to-be-operated mode.
5. The method according to claim 4, wherein the preset condition is that the voice instruction information has semantic conflict, and whether the voice instruction information meets the preset condition is judged by the following method:
and inputting the voice instruction information into a preset semantic conflict detection model, and determining that the voice instruction information meets a preset condition under the condition that the output result of the semantic conflict detection model is a semantic conflict.
6. The method according to claim 4, wherein the preset condition is that repeated words exist in the voice instruction information, and whether the voice instruction information meets the preset condition is judged by the following method:
segmenting the voice instruction information to obtain words included in the voice instruction information;
matching words included in the voice instruction information pairwise, and determining that the voice instruction information meets preset conditions under the condition that the same words exist.
7. The method of claim 4, wherein the preset condition is that laughter exists in the voice instruction information, and whether the voice instruction information meets the preset condition is determined by:
dividing the voice instruction information into a plurality of voice frames;
inputting each voice frame into a preset laughter detection model, and determining whether each voice frame is a laughter frame;
and under the condition that the number of the laugh frames is greater than a preset threshold value, determining that the voice instruction information meets a preset condition.
8. The method of claim 1, wherein the standby mode is a music sleep-aid mode, and after triggering the air conditioner to operate according to the standby mode, the method further comprises:
acquiring the current time after the air conditioner operates for a first preset time period according to the to-be-operated mode;
acquiring a volume adjusting value according to the current time;
and adjusting the volume of the music played by the air conditioner according to the volume adjusting value at a second preset time interval.
9. An apparatus for controlling an air conditioner comprising a processor and a memory storing program instructions, characterized in that the processor is configured to perform the method for controlling an air conditioner according to any one of claims 1 to 8 when executing the program instructions.
10. An air conditioner characterized by comprising the apparatus for controlling an air conditioner according to claim 9.
11. A storage medium storing program instructions, characterized in that the program instructions, when executed, perform a method for controlling an air conditioner according to any one of claims 1 to 8.
CN202210916078.2A 2022-08-01 2022-08-01 Method and device for controlling air conditioner, air conditioner and storage medium Pending CN115540222A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210916078.2A CN115540222A (en) 2022-08-01 2022-08-01 Method and device for controlling air conditioner, air conditioner and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210916078.2A CN115540222A (en) 2022-08-01 2022-08-01 Method and device for controlling air conditioner, air conditioner and storage medium

Publications (1)

Publication Number Publication Date
CN115540222A true CN115540222A (en) 2022-12-30

Family

ID=84723772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210916078.2A Pending CN115540222A (en) 2022-08-01 2022-08-01 Method and device for controlling air conditioner, air conditioner and storage medium

Country Status (1)

Country Link
CN (1) CN115540222A (en)

Similar Documents

Publication Publication Date Title
CN108320733B (en) Voice data processing method and device, storage medium and electronic equipment
CN107767861B (en) Voice awakening method and system and intelligent terminal
CN111667818B (en) Method and device for training wake-up model
CN108538293B (en) Voice awakening method and device and intelligent device
US20030220796A1 (en) Dialogue control system, dialogue control method and robotic device
KR20200012928A (en) Customizable wake-up voice commands
CN109584860B (en) Voice wake-up word definition method and system
CN106228988A (en) A kind of habits information matching process based on voiceprint and device
CN112051743A (en) Device control method, conflict processing method, corresponding devices and electronic device
CN112066528A (en) Air conditioner control method and device, storage medium and air conditioner
ATE158889T1 (en) SYSTEM FOR PROCESSING CONTINUOUS SPEECH
CN109147782A (en) Control method, device and the air-conditioning of air-conditioning
KR102628211B1 (en) Electronic apparatus and thereof control method
CN109240786B (en) Theme changing method and electronic equipment
CN106155621B (en) Keyword voice awakening system and method capable of identifying sound source position and mobile terminal
CN110473536B (en) Awakening method and device and intelligent device
JP6915637B2 (en) Information processing equipment, information processing methods, and programs
CN111161728A (en) Awakening method, device, equipment and medium for intelligent equipment
CN113375316A (en) Control method and device for air conditioner and air conditioner
CN105700359A (en) Method and system for controlling smart home through speech recognition
CN114999472A (en) Air conditioner control method and device and air conditioner
US10965625B2 (en) Audio processing for voice simulated noise effects
CN115540222A (en) Method and device for controlling air conditioner, air conditioner and storage medium
CN113375305A (en) Control method and device of air conditioner, electronic equipment and storage medium
WO2023185007A1 (en) Sleep scene setting method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination