Method and apparatus for controlling air conditioner, Air conditioner and storage medium
By acquiring external environmental information through voice-activated air conditioning and comparing it with the target operating mode, the problem of children's accidental operation is solved, and the energy-saving and emission-reduction effects of the air conditioner are achieved.
Patent Information
- Application Number
- CN202210916078.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-01
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2042-08-01
AI Technical Summary
Voice-activated air conditioners can easily be mistaken for toys by children, leading to incorrect operations based on incorrect voice commands.
When receiving voice command information initiated by a child, the external environment information is obtained, and the target operating mode corresponding to the external environment information is obtained, and it is determined whether the target operating mode includes the stand-by mode in the voice command information. Only when the target operating mode includes the stand-by mode, the air conditioner is triggered to operate in the stand-by mode.
The chance of the air conditioner being misoperated according to children's voice commands is reduced, thus achieving energy conservation and emission reduction.
Smart Images

Figure CN115540222B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of air conditioners, for example to a method and device for controlling an air conditioner, an air conditioner and a storage medium. BACKGROUND
[0002] At present, with the development of society, air conditioners have become one of the most common electrical appliances in daily life. Most existing air conditioners are controlled and adjusted by remote controllers. With the development of technology, voice-controlled air conditioners have also appeared on the market, that is, a voice control function module is added to the air conditioner, and a user can control and adjust the air conditioner by issuing a voice instruction. Compared with the control mode using a remote controller, the voice control mode avoids the inconvenience of finding a remote controller, and also solves the trouble of replacing a battery of a remote controller due to a lack of power, and is more convenient to use.
[0003] 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:
[0004] The above voice-controlled air conditioner is easy to be taken as a toy by children of a smaller age, thereby easily leading to a misoperation of the air conditioner according to an incorrect voice instruction. SUMMARY
[0005] The following presents a simplified summary of some aspects of the disclosed embodiments in order to provide a basic understanding of such embodiments. This summary is not an extensive overview of the embodiments described in detail in the following detailed description, and is not intended to identify key / critical elements of the embodiments or to delineate the scope of the embodiments. Its sole purpose is to present some aspects of the disclosed embodiments in a simplified form as a prelude to the more detailed description that is presented later.
[0006] The embodiments of the present disclosure provide a method and device for controlling an air conditioner, an air conditioner and a storage medium, so as to reduce the probability of a misoperation of the air conditioner according to a voice instruction of a child.
[0007] In some embodiments, the method for controlling an air conditioner comprises: in the case of receiving voice instruction information, determining whether a user initiating the voice instruction information is a child; the voice instruction information contains a to-be-run mode. In the case of the user initiating the voice instruction information being a child, obtaining external environment information. Obtaining a target run mode corresponding to the external environment information. Determining whether the target run mode includes the to-be-run mode. In the case of the target run mode including the to-be-run mode, triggering the air conditioner to run according to the to-be-run mode.
[0008] In some embodiments, whether the user initiating the voice instruction information is a child is determined by: extracting a to-be-determined voiceprint feature from the voice instruction information. Determining whether the to-be-determined voiceprint feature is the same as a preset voiceprint feature of a child. In the case of the to-be-determined voiceprint feature being the same as the preset voiceprint feature of the child, determining that the user initiating the voice instruction information is a child.
[0009] In some embodiments, whether the user initiating the voice instruction information is a child is determined by determining whether a voice frequency corresponding to the voice instruction information is within a preset voice threshold frequency range of a child. In a case where the voice frequency corresponding to the voice instruction information is within the preset voice threshold frequency range of a child, it is determined that the user initiating the voice instruction information is a child.
[0010] In some embodiments, before obtaining the external environment information, the method further includes: determining whether the voice instruction information satisfies a preset condition. In a case where the voice instruction information satisfies the preset condition, obtaining a current operation mode of the air conditioner. Determining whether the current operation mode is the same as the to-be-operated mode. In a case where the current operation mode is different from the to-be-operated mode, obtaining the external environment information.
[0011] In some embodiments, the preset condition is that the voice instruction information has semantic conflict. Whether the voice instruction information satisfies the preset condition is determined by inputting the voice instruction information into a preset semantic conflict detection model. In a case where an output result of the semantic conflict detection model is semantic conflict, it is determined that the voice instruction information satisfies the preset condition.
[0012] In some embodiments, the preset condition is that there is a repeated word in the voice instruction information. Whether the voice instruction information satisfies the preset condition is determined by performing word segmentation on the voice instruction information to obtain words included in the voice instruction information. The words included in the voice instruction information are matched two by two. In a case where there is a same word, it is determined that the voice instruction information satisfies the preset condition.
[0013] In some embodiments, the preset condition is that there is laughter in the voice instruction information. Whether the voice instruction information satisfies the preset condition is determined by dividing the voice instruction information into a plurality of voice frames. Each of the voice frames is input into a preset laughter detection model to determine whether each of the voice frames is a laughter frame. In a case where a number of the laughter frames is greater than a preset threshold, it is determined that the voice instruction information satisfies the preset condition.
[0014] In some embodiments, the to-be-operated mode is a music sleep-aiding mode. After triggering the air conditioner to operate in the to-be-operated mode, the method further includes: obtaining a current time after the air conditioner operates in the to-be-operated mode for a first preset time period. Obtaining a volume adjustment value according to the current time. Adjusting a volume of the air conditioner playing music at the volume adjustment value at intervals of a second preset time period.
[0015] In some embodiments, the device for controlling an air conditioner comprises a processor and a memory storing program instructions, the processor is configured to execute the method for controlling an air conditioner described above when running the program instructions.
[0016] In some embodiments, the air conditioner comprises the device for controlling an air conditioner described above.
[0017] In some embodiments, the storage medium stores program instructions, the program instructions execute the method for controlling an air conditioner described above when running.
[0018] The method, device, air conditioner and storage medium for controlling an air conditioner provided by the embodiments of the present disclosure can achieve the following technical effects: by receiving the voice instruction information initiated by the child, obtaining the external environment information, and obtaining the target running mode corresponding to the external environment information. Then determine whether the target running mode includes the to-be-run mode, and in the case that the target running mode includes the to-be-run mode, trigger the air conditioner to run according to the to-be-run mode. In this way, the to-be-run mode in the voice instruction information can be compared with the target running mode corresponding to the current external environment information, that is, it is determined whether the to-be-run mode in the voice instruction information conforms to the control logic. And in the case that the target running mode includes the to-be-run mode, the air conditioner is controlled to run according to the to-be-run mode. That is, in the case that the to-be-run mode in the voice instruction information conforms to the control logic, the air conditioner is controlled to run according to the to-be-run mode. Thus, the probability of misoperation of the air conditioner according to the voice instruction of the child can be reduced, and energy saving and emission reduction can be achieved.
[0019] The foregoing general description and the following description are only exemplary and explanatory, and are not intended to limit the present application. BRIEF DESCRIPTION OF DRAWINGS
[0020] One or more embodiments are exemplified by the corresponding drawings, which do not constitute a limitation on the embodiments, elements with the same reference numerals in the drawings are shown as similar elements, the drawings do not constitute a proportional limit, and wherein:
[0021] Figure 1 is a schematic diagram of a method for controlling an air conditioner provided by an embodiment of the present disclosure;
[0022] Figure 2 is a schematic diagram of another method for controlling an air conditioner provided by an embodiment of the present disclosure;
[0023] Figure 3 is a schematic diagram of another method for controlling an air conditioner provided by an embodiment of the present disclosure;
[0024] Figure 4is a schematic diagram of another method for controlling an air conditioner provided by an embodiment of the present disclosure.
[0025] Figure 5 is a schematic diagram of another method for controlling an air conditioner provided by an embodiment of the present disclosure.
[0026] Figure 6 is a schematic diagram of a device for controlling an air conditioner provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] In order to enable a more detailed understanding of the features and technical content of the embodiments of the present disclosure, the implementation of the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings, which are only used for reference and do not limit the embodiments of the present disclosure. In the following technical description, in order to facilitate explanation, a plurality of details are provided to provide a full understanding of the disclosed embodiments. However, one or more embodiments can still be implemented without these details. In other cases, well-known structures and devices can be simplified to facilitate the drawings.
[0028] The terms "first", "second", and the like in the specification and claims of the embodiments of the present disclosure and the above-described drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure described herein can be implemented. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion.
[0029] Unless otherwise specified, the term "a plurality of" means two or more.
[0030] In the embodiments of the present disclosure, the character " / " represents an "or" relationship between the objects before and after it. For example, A / B represents: A or B.
[0031] The term "and / or" is a description of the association between objects, which means that there can be three relationships. For example, A and / or B means: A or B, or, A and B, the three relationships.
[0032] The term "corresponding" can refer to an association or binding relationship, A corresponding to B means that there is an association or binding relationship between A and B.
[0033] Since the voice air conditioner is easy to be taken as a toy by children, it is easy to cause the air conditioner to operate according to the wrong voice instruction. The application obtains the external environment information and the target running mode corresponding to the external environment information in the case that the voice instruction information initiated by the child is received. Then it is judged whether the target running mode includes the running mode to be run in the voice instruction information, and in the case that the target running mode includes the running mode to be run, the air conditioner is triggered to run according to the running mode to be run. In this way, the running mode to be run in the voice instruction information is compared with the target running mode corresponding to the current external environment information, that is, it is determined whether the running mode to be run in the voice instruction information conforms to the control logic. And in the case that the target running mode includes the running mode to be run, the air conditioner is controlled to run according to the running mode to be run. That is, in the case that the running mode to be run in the voice instruction information conforms to the control logic, the air conditioner is controlled to run according to the running mode to be run. Thus, the probability of the air conditioner operating according to the voice instruction of the child can be reduced, and energy saving and emission reduction can be realized.
[0034] In combination Figure 1 The embodiment of the present disclosure provides a method for controlling an air conditioner, comprising:
[0035] Step S101, the air conditioner judges whether the user initiating the voice instruction information is a child in the case that the voice instruction information is received. The voice instruction information contains a running mode to be run.
[0036] Step S102, the air conditioner obtains external environment information in the case that the user initiating the voice instruction information is a child.
[0037] Step S103, the air conditioner obtains a target running mode corresponding to the external environment information.
[0038] Step S104, the air conditioner judges whether the target running mode includes the running mode to be run.
[0039] Step S105, the air conditioner triggers the air conditioner to run according to the running mode to be run in the case that the target running mode includes the running mode to be run.
[0040] The method for controlling the air conditioner provided in the embodiments of the present disclosure can compare the to-be-run mode in the voice instruction information with the target running mode corresponding to the current external environment information, that is, determine whether the to-be-run mode in the voice instruction information conforms to the control logic, and only control the air conditioner to run according to the to-be-run mode when the target running mode includes the to-be-run mode. That is, only when the to-be-run mode in the voice instruction information conforms to the control logic, the air conditioner is controlled to run according to the to-be-run mode. Thus, the probability of misoperation of the air conditioner according to the voice instruction of the child can be reduced, and energy saving and emission reduction can be achieved.
[0041] Optionally, the external environment information includes an outdoor environment temperature and / or an outdoor environment humidity.
[0042] In some embodiments, the external environment information is an outdoor environment temperature, and the target running mode corresponding to the external environment information is obtained by: when the outdoor environment temperature is greater than a preset temperature threshold, the target running mode corresponding to the external environment information includes one or more of a cooling mode, a sleep mode and a music sleep-aiding mode; and when the outdoor environment temperature is less than or equal to the preset temperature threshold, the target running mode corresponding to the external environment information includes one or more of a heating mode, a sleep mode and a music sleep-aiding mode.
[0043] In some embodiments, the external environment information is an outdoor environment humidity, and the target running mode corresponding to the external environment information is obtained by: when the outdoor environment humidity is greater than a preset humidity threshold, the target running mode corresponding to the external environment information includes one or more of a dehumidification mode, a sleep mode and a music sleep-aiding mode; and when the outdoor environment humidity is less than or equal to the preset humidity threshold, the target running mode corresponding to the external environment information includes one or more of a humidification mode, a sleep mode and a music sleep-aiding mode.
[0044] In some embodiments, the external environment information includes an outdoor environment temperature and an outdoor environment humidity, and the target operation mode corresponding to the external environment information is obtained by: in a case where the outdoor environment humidity is greater than a preset humidity threshold and the outdoor environment temperature is greater than a preset temperature threshold, the target operation mode corresponding to the external environment information includes one or more of a dehumidification mode, a cooling mode, a sleep mode, and a music sleep-aiding mode. In a case where the outdoor environment humidity is greater than the preset humidity threshold and the outdoor environment temperature is less than the preset temperature threshold, the target operation mode corresponding to the external environment information includes one or more of the dehumidification mode, a heating mode, the sleep mode, and the music sleep-aiding mode. In a case where the outdoor environment humidity is less than the preset humidity threshold and the outdoor environment temperature is less than the preset temperature threshold, the target operation mode corresponding to the external environment information includes one or more of a humidification mode, the heating mode, the sleep mode, and the music sleep-aiding mode. In a case where the outdoor environment humidity is less than the preset humidity threshold and the outdoor environment temperature is greater than the preset temperature threshold, the target operation mode corresponding to the external environment information includes one or more of the humidification mode, the cooling mode, the sleep mode, and the music sleep-aiding mode.
[0045] Optionally, after determining whether the user initiating the voice instruction information is a child, the method further includes: in a case where the user initiating the voice instruction information is not a child, triggering the air conditioner to operate in the standby operation mode.
[0046] Optionally, whether the user initiating the voice instruction information is a child is determined by: extracting a to-be-determined voiceprint feature from the voice instruction information; determining whether the to-be-determined voiceprint feature is the same as a preset voiceprint feature of a child; and in a case where the to-be-determined voiceprint feature is the same as the preset voiceprint feature of the child, determining that the user initiating the voice instruction information is a child. Since the age and gender differences of a person are reflected in the entire pronunciation system, especially in the shape of the vocal tract, which in turn causes changes in voiceprint feature parameters, the corresponding differences can be extracted from various voiceprint feature parameters. The human vocal organs include the lungs, trachea, larynx, pharynx, nose, and mouth. The part of the larynx is the glottis, and the channel from the glottis to the lips is the vocal tract. The shape of the vocal tract is mainly determined by the positions of the lips, teeth, and tongue. The constantly changing shape of the vocal tract causes different sounds to be emitted. Therefore, different people, people of different ages, and people of different genders can be identified by voiceprint features. Thus, whether the user initiating the voice instruction information is a child can be determined according to the to-be-determined voiceprint feature in the voice instruction information.
[0047] Optionally, whether the user initiating the voice instruction information is a child is determined by determining whether a sound frequency corresponding to the voice instruction information is within a preset sound threshold frequency range of a child. In a case where the sound frequency corresponding to the voice instruction information is within the preset sound threshold frequency range of the child, it is determined that the user initiating the voice instruction information is a child. Since the frequency of the voice of a child is generally higher than that of an adult, by determining whether the sound frequency corresponding to the voice instruction information is within the preset sound threshold frequency range of the child, whether the user issuing the voice instruction information is a child can be determined.
[0048] Optionally, before the external environment information is acquired, the method further includes: determining whether the voice instruction information satisfies a preset condition; and in a case where the voice instruction information satisfies the preset condition, acquiring a current operation mode of the air conditioner. It is determined whether the current operation mode is the same as the to-be-operated mode, and in a case where the current operation mode is different from the to-be-operated mode, the external environment information is acquired. Since children are used to imitating the speech of adults, in a case where the voice instruction information of the child is received, by determining whether the to-be-operated mode in the voice instruction information is the same as the current operation mode of the air conditioner, it can be determined whether the child is imitating the speech of an adult, so that the probability of air conditioner misoperation can be reduced.
[0049] In combination with Figure 2 The method for controlling the air conditioner provided by the embodiment of the present disclosure includes:
[0050] In a case where the voice instruction information is received, the air conditioner determines whether the user initiating the voice instruction information is a child, and the voice instruction information includes a to-be-operated mode.
[0051] In a case where the user initiating the voice instruction information is a child, the air conditioner determines whether the voice instruction information satisfies a preset condition.
[0052] In a case where the voice instruction information satisfies the preset condition, the air conditioner acquires a current operation mode of the air conditioner.
[0053] The air conditioner determines whether the current operation mode is the same as the to-be-operated mode.
[0054] In a case where the current operation mode is different from the to-be-operated mode, the air conditioner acquires external environment information.
[0055] The air conditioner acquires a target operation mode corresponding to the external environment information.
[0056] The air conditioner determines whether the target operation mode includes the to-be-operated mode.
[0057] Step S208, in the case that the target operation mode includes the standby operation mode, the air conditioner is triggered to operate in the standby operation mode.
[0058] By using the method for controlling the air conditioner provided in the embodiments of the present disclosure, in the case that the voice instruction information initiated by the child is received, the external environment information is acquired, and the target operation mode corresponding to the external environment information is acquired. Then it is judged whether the target operation mode includes the standby operation mode in the voice instruction information, and in the case that the target operation mode includes the standby operation mode, the air conditioner is triggered to operate in the standby operation mode. In this way, the standby operation mode in the voice instruction information can be compared with the target operation mode corresponding to the current external environment information, that is, it is determined whether the standby operation mode in the voice instruction information conforms to the control logic. And in the case that the target operation mode includes the standby operation mode, the air conditioner is controlled to operate in the standby operation mode. That is, in the case that the standby operation mode in the voice instruction information conforms to the control logic, the air conditioner is controlled to operate in the standby operation mode. Therefore, the probability of the air conditioner being misoperated according to the voice instruction of the child can be reduced, and energy saving and emission reduction can be realized. Moreover, since children are used to imitating adults to speak, in the case that the voice instruction information of the child is received, whether the standby operation mode in the voice instruction information is the same as the current operation mode of the air conditioner can be judged, so that whether the child is imitating the adults to speak can be judged, and thus the probability of the air conditioner being misoperated can be further reduced.
[0059] Optionally, after it is judged whether the current operation mode is the same as the standby operation mode, the method further includes: in the case that the current operation mode is the same as the standby operation mode, no operation is performed.
[0060] In combination with Figure 3 the drawings, the embodiments of the present disclosure provide a method for controlling an air conditioner, which includes:
[0061] Step S301, in the case that the voice instruction information is received, the air conditioner judges whether the user initiating the voice instruction information is a child; the voice instruction information includes a standby operation mode.
[0062] Step S302, in the case that the user initiating the voice instruction information is a child, the air conditioner judges whether the voice instruction information meets a preset condition.
[0063] Step S303, in the case that the voice instruction information meets the preset condition, the air conditioner acquires a current operation mode of the air conditioner.
[0064] Step S304, the air conditioner judges whether the current operation mode is the same as the standby operation mode.
[0065] Step S305, in the case that the current operation mode is the same as the standby operation mode, the air conditioner does not perform any operation.
[0066] The method for controlling the air conditioner provided in the embodiment of the present disclosure can further reduce the probability of air conditioner misoperation, because children are used to imitating adults' speech, and thus, when receiving the child voice instruction information, whether the child is imitating adults' speech can be determined by judging whether the to-be-run mode in the voice instruction information is the same as the current running mode of the air conditioner.
[0067] In some embodiments, the preset condition includes one or more of a semantic conflict existing in the voice instruction information, repeated words existing in the voice instruction information, and laughter existing in the voice instruction information.
[0068] 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 determined by inputting the voice instruction information into a preset semantic conflict detection model, and determining that the voice instruction information meets the preset condition when an output result of the semantic conflict detection model is a semantic conflict.
[0069] In some embodiments, the voice instruction information is input into a preset semantic conflict detection model, triggering the semantic conflict detection model to perform word segmentation processing on the voice instruction information to obtain a subject, a predicate and an object in the voice instruction information, and then judging whether the collocation between the subject, the predicate and the object is appropriate. In the case where the collocation between the subject, the predicate and the object is inappropriate, the output result is a semantic conflict.
[0070] In some embodiments, the semantic conflict detection model outputs a result of a semantic conflict when detecting that there is an ambiguous word in the voice instruction information.
[0071] In some embodiments, the voice instruction information is input into a preset semantic conflict detection model, triggering the semantic conflict detection model to detect the voice instruction information, and outputting a result of a semantic conflict when detecting that there are multiple subjects in the semantic instruction information. For example, the subjects include mother, father, grandfather and grandmother.
[0072] In some embodiments, the voice instruction information is a rhetorical question, a negative sentence or a double negative sentence. The voice instruction information is input into a preset semantic conflict detection model, triggering the semantic conflict detection model to detect the voice instruction information, and outputting a result of a semantic conflict when detecting that the voice instruction information is not clear in meaning.
[0073] Optionally, the preset condition is that there are repeated words in the voice instruction information, and whether the voice instruction information meets the preset condition is determined by performing word segmentation on the voice instruction information to obtain words included in the voice instruction information, and matching the words included in the voice instruction information two by two, and determining that the voice instruction information meets the preset condition when there are the same words.
[0074] Optionally, the preset condition is that the voice instruction information contains laughter, 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. In a case where the number of laughter frames is greater than a preset threshold, it is determined that the voice instruction information meets the preset condition. Since children usually regard the process of imitating adult speech as a game, laughter usually accompanies when children imitate adult speech. Therefore, by detecting whether there is laughter in the voice instruction information, it can be determined whether the voice instruction information is issued in the process of children playing.
[0075] Optionally, the standby mode is a music sleep aid mode, and after triggering the air conditioner to run in the standby mode, the method further comprises: obtaining a current time after the air conditioner runs in the standby mode for a first preset time period. A volume adjustment value is obtained according to the current time, and the volume of the music played by the air conditioner is adjusted according to the volume adjustment value at intervals of a second preset time period. The music sleep aid mode represents playing music to help the user fall asleep. Since after the child falls asleep, if the guardian of the child is holding the child and needs to exit the music sleep aid mode, if the music sleep aid mode is still closed by voice control, the child may be woken up again. By obtaining the current time after the air conditioner runs in the standby mode for a preset time period, obtaining the volume adjustment value according to the current time, and adjusting the volume of the music played by the air conditioner according to the volume adjustment value, the volume of the music played by the air conditioner can be automatically adjusted, and the air conditioner can be controlled to exit the music sleep aid mode quietly.
[0076] In combination Figure 4 The embodiment of the present disclosure provides a method for controlling an air conditioner, comprising:
[0077] In step S401, the air conditioner determines whether the user who initiates the voice instruction information is a child when the air conditioner receives the voice instruction information. The voice instruction information contains a standby mode, and the standby mode is a music sleep aid mode.
[0078] In step S402, the air conditioner obtains external environment information when the user who initiates the voice instruction information is a child.
[0079] In step S403, the air conditioner obtains a target running mode corresponding to the external environment information.
[0080] In step S404, the air conditioner determines whether the target running mode includes the standby mode.
[0081] In step S405, the air conditioner triggers the air conditioner to run in the standby mode when the target running mode includes the standby mode.
[0082] In step S406, the air conditioner acquires the current time after the air conditioner operates in the standby operation mode for the first preset time period.
[0083] In step S407, the air conditioner acquires the volume adjustment value according to the current time.
[0084] In step S408, the air conditioner adjusts the volume of the music played by the air conditioner according to the volume adjustment value at intervals of the second preset time period.
[0085] The method for controlling the air conditioner provided by the embodiments of the present disclosure can compare the standby operation mode in the voice instruction information with the target operation mode corresponding to the current external environment information, that is, determine whether the standby operation mode in the voice instruction information conforms to the control logic, and only control the air conditioner to operate in the standby operation mode when the target operation mode includes the standby operation mode. That is, only control the air conditioner to operate in the standby operation mode when the standby operation mode in the voice instruction information conforms to the control logic. Thus, the probability of the air conditioner operating incorrectly according to the voice instruction of the child can be reduced, and energy saving and emission reduction can be achieved. Meanwhile, the current time is acquired after the air conditioner operates in the standby operation mode for a preset time period, the volume adjustment value is acquired according to the current time, and the volume of the music played by the air conditioner is adjusted according to the volume adjustment value. Thus, the volume of the music played by the air conditioner can be automatically adjusted, and the air conditioner can be controlled to exit the music sleep-aiding mode quietly.
[0086] Optionally, acquiring the volume adjustment value according to the current time comprises: acquiring a first adjustment value for increasing the volume of the music played by the air conditioner when the current time is within a first preset time range. The first preset time range is 5:30 to 7:30. When the current time is within the first preset time period, it is indicated that the user needs to be woken up. Therefore, the first adjustment value for increasing the volume of the music played by the air conditioner is acquired, and the volume of the music played by the air conditioner is increased according to the first adjustment value at intervals of a second preset time period. Thus, the user can be woken up by gradually increasing the volume of the music. For example, the volume of the music played by the air conditioner is increased by 10 decibels every 30 minutes.
[0087] Optionally, the volume adjustment value is obtained according to the current time, including: in a case where the current time is within a second preset time range, obtaining a second adjustment value for reducing the volume of the music played by the air conditioner. The second preset time range is 11:30-13:30 or 21:30-11:30. In a case where the current time is within the second preset time range, it can be determined that the user is in a lunch break state or an evening rest state. Therefore, the second adjustment 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 according to the second adjustment value at intervals of a second preset time period, so that the user can enter a deep sleep. For example, the volume of the music played by the air conditioner is reduced by 10 decibels every 30 minutes.
[0088] Optionally, the volume adjustment value is the second adjustment value, and the volume of the music played by the air conditioner is adjusted according to the volume adjustment value at intervals of a second preset time period, including: reducing the volume of the music played by the air conditioner according to the second adjustment value at intervals of a second preset time period.
[0089] Optionally, after the volume of the music played by the air conditioner is reduced according to the second adjustment value at intervals of a second preset time period, the method further includes: obtaining indoor noise at intervals of a third preset time period, in a case where the decibels of the indoor noise are lower than a preset decibel value, reducing the volume of the music played by the air conditioner to a first preset volume, and after the air conditioner plays music at the first preset volume for a fourth preset time period, reducing the volume of the music played by the air conditioner to a second preset volume.
[0090] In combination Figure 5 The embodiments of the present disclosure provide a method for controlling an air conditioner, including:
[0091] In a case where the air conditioner receives voice instruction information, the air conditioner determines whether a user who initiates the voice instruction information is a child, in step S501. The voice instruction information contains a to-be-run mode, and the to-be-run mode is a music sleep-aiding mode.
[0092] In a case where the user who initiates the voice instruction information is a child, the air conditioner obtains external environment information, in step S502.
[0093] The air conditioner obtains a target run mode corresponding to the external environment information, in step S503.
[0094] The air conditioner determines whether the target run mode includes the to-be-run mode, in step S504.
[0095] In a case where the target run mode includes the to-be-run mode, the air conditioner triggers the air conditioner to run according to the to-be-run mode, in step S505.
[0096] The air conditioner obtains a current time after the air conditioner runs according to the to-be-run mode for a first preset time period, in step S506.
[0097] In step S507, the air conditioner acquires a second adjustment value for reducing the volume of the music played by the air conditioner in a case where the current time is within a second preset time range.
[0098] In step S508, the air conditioner reduces the volume of the music played by the air conditioner by the second adjustment value at intervals of a second preset time period.
[0099] In step S509, the air conditioner acquires indoor noise at intervals of a third preset time period, and reduces the volume of the music played by the air conditioner to a first preset volume in a case where the decibel of the indoor noise is lower than a preset decibel value.
[0100] In step S510, the air conditioner reduces the volume of the music played by the air conditioner to a second preset volume after the air conditioner plays the music for a fourth preset time period at the first preset volume.
[0101] By using the method for controlling the air conditioner provided in the embodiments of the present disclosure, in a case where the voice instruction information initiated by the child is received, the external environment information is acquired, and the target running mode corresponding to the external environment information is acquired. Then it is determined whether the target running mode includes the to-be-run mode in the voice instruction information, and in a case where the target running mode includes the to-be-run mode, the air conditioner is triggered to run according to the to-be-run mode. In this way, the to-be-run mode in the voice instruction information can be compared with the target running mode corresponding to the current external environment information, that is, it is determined whether the to-be-run mode in the voice instruction information conforms to the control logic. And in a case where the target running mode includes the to-be-run mode, the air conditioner is controlled to run according to the to-be-run mode. That is, in a case where the to-be-run mode in the voice instruction information conforms to the control logic, the air conditioner is controlled to run according to the to-be-run mode. Thus, the probability of the air conditioner being misoperated according to the voice instruction of the child can be reduced, and energy saving and emission reduction can be realized. Meanwhile, after the air conditioner runs according to the to-be-run mode for a preset time period, the current time is acquired, the volume adjustment 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 adjustment value. Thus, the volume of the music played by the air conditioner can be automatically adjusted, and the air conditioner can be controlled to exit the music sleep-aiding mode quietly.
[0102] In some embodiments, the third preset time period is 10 minutes, the preset decibel value is 40, the first preset volume is 20 decibels, and the second preset volume is 0.
[0103] Optionally, acquiring the volume adjustment value according to the current time comprises: in a case where the current time is neither within the first preset time range nor within the second preset time range, the acquired volume adjustment value is 0.
[0104] In combination Figure 6As shown, the apparatus for controlling an air conditioner provided by the embodiments of the present disclosure includes a processor 600 and a memory 601. Optionally, the apparatus can further include a communication interface 602 and a bus 603. The processor 600, the communication interface 602, and the memory 601 can complete communication with each other through the bus 603. The communication interface 602 can be used for information transmission. The processor 600 can invoke the logic instructions in the memory 601 to execute the method for controlling an air conditioner of the above-mentioned embodiments.
[0105] By using the apparatus for controlling an air conditioner provided by the embodiments of the present disclosure, the external environment information is acquired when the voice instruction information initiated by the child is received, and the target running mode corresponding to the external environment information is acquired. Then it is judged whether the target running mode includes the to-be-run mode in the voice instruction information, and in the case that the target running mode includes the to-be-run mode, the air conditioner is triggered to run according to the to-be-run mode. In this way, the to-be-run mode in the voice instruction information can be compared with the target running mode corresponding to the current external environment information, that is, it is determined whether the to-be-run mode in the voice instruction information conforms to the control logic. And in the case that the target running mode includes the to-be-run mode, the air conditioner is controlled to run according to the to-be-run mode. That is, in the case that the to-be-run mode in the voice instruction information conforms to the control logic, the air conditioner is controlled to run according to the to-be-run mode. Thus, the probability of the air conditioner being misoperated according to the voice instruction of the child can be reduced, and energy saving and emission reduction can be realized.
[0106] In addition, the logic instructions in the memory 601 described above can be implemented in the form of a software functional unit and sold or used as an independent product, which can be stored in a computer readable storage medium.
[0107] The memory 601 as a computer readable storage medium can be used to store software programs, computer executable programs, such as program instructions / modules corresponding to the method in the embodiments of the present disclosure. The processor 600 executes the program instructions / modules stored in the memory 601, thereby performing function applications and data processing, that is, implementing the method for controlling an air conditioner in the above-mentioned embodiments.
[0108] The memory 601 can include a program storage area and a data storage area, wherein the program storage area can store an operating system and application programs required by at least one function; the data storage area can store data created according to the use of the terminal device, etc. In addition, the memory 601 can include a high-speed random access memory, and can also include a non-volatile memory.
[0109] The embodiments of the present disclosure provide an air conditioner comprising the above-mentioned apparatus for controlling an air conditioner.
[0110] By using the air conditioner provided in the embodiments of the present disclosure, when the voice instruction information initiated by the child is received, the external environment information is acquired, and the target operation mode corresponding to the external environment information is acquired. Then, it is determined whether the target operation mode includes the to-be-run mode in the voice instruction information, and in the case that the target operation mode includes the to-be-run mode, the air conditioner is triggered to run according to the to-be-run mode. In this way, the to-be-run mode in the voice instruction information can be compared with the target operation mode corresponding to the current external environment information, that is, it is determined whether the to-be-run mode in the voice instruction information conforms to the control logic. And in the case that the target operation mode includes the to-be-run mode, the air conditioner is controlled to run according to the to-be-run mode. That is, in the case that the to-be-run mode in the voice instruction information conforms to the control logic, the air conditioner is controlled to run according to the to-be-run mode. Thus, the probability of the air conditioner being misoperated according to the voice instruction of the child can be reduced.
[0111] The embodiments of the present disclosure provide a storage medium, which stores program instructions. When the program instructions are executed, the above-mentioned method for controlling an air conditioner is executed.
[0112] The embodiments of the present disclosure provide a computer program product, which includes a computer program stored on a computer readable storage medium. The computer program includes program instructions, which, when executed by a computer, cause the computer to execute the above-mentioned method for controlling an air conditioner.
[0113] The above-mentioned computer readable storage medium can be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
[0114] The technical solutions of the embodiments of the present disclosure can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes one or more instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present disclosure. The aforementioned storage medium can be a non-transitory storage medium, including a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes, or can be a transitory storage medium.
[0115] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible variations. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to also include plural forms. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variations "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, an element defined by the sentence "comprising a..." does not exclude the presence of other identical elements in the process, method or device that includes the element. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments can be referenced to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can be found in the description of the method part.
[0116] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. The technicians will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0117] In the embodiments disclosed herein, the disclosed methods, products (including but not limited to apparatuses, devices, etc.), can be implemented in other manners. For example, the described apparatus embodiments can be implemented only in a form of a logical function, and can be implemented by using a manner such as software (for example, application program) or the like. In some embodiments, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed coupling or direct coupling or indirect coupling between different units, or the coupling or direct coupling or indirect coupling between the displayed or discussed communication connections can be in a form of electrical, mechanical or other forms.
[0118] The flowcharts and block diagrams in the drawings show the possible implementation architectures, functions and operations of the system, method and computer program product according to the embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams can represent a module, a program segment or a part of code containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions noted in the blocks can occur in an order different from that noted in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes they can be executed in reverse order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the drawings, the operations or steps corresponding to different blocks can also occur in an order different from that disclosed in the descriptions, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and sometimes they can be executed in reverse order, depending on the functions involved. Each block in the block diagrams and / or flowcharts, and the combination of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for controlling an air conditioner, characterized by, The method comprises the following steps: In the case of receiving voice instruction information, it is determined whether the user initiating the voice instruction information is a child; The voice instruction information contains a to-be-run mode; In the case that the user initiating the voice instruction information is a child, external environment information is obtained; A target running mode corresponding to the external environment information is obtained; It is determined whether the target running mode includes the to-be-run mode; In the case that the target running mode includes the same to-be-run mode, the air conditioner is triggered to run according to the to-be-run mode; Before obtaining the external environment information, it further comprises determining whether the voice instruction information meets a preset condition; wherein the preset condition includes one or more of semantic conflict existing in the voice instruction information, repeated words existing in the voice instruction information, and laughter existing in the voice instruction information; in the case that the voice instruction information meets the preset condition, the current running mode of the air conditioner is obtained; it is determined whether the current running mode is the same as the to-be-run mode; in the case that the current running mode is different from the to-be-run mode, the external environment information is obtained.
2. The method of claim 1, wherein, The user initiating the voice instruction information is determined to be a child in the following way: Extract the to-be-determined voiceprint feature from the voice instruction information; It is determined whether the to-be-determined voiceprint feature is the same as the voiceprint feature of a preset child; In the case that the to-be-determined voiceprint feature is the same as the voiceprint feature of a preset child, it is determined that the user initiating the voice instruction information is a child.
3. The method of claim 1, wherein, The user initiating the voice instruction information is determined to be a child in the following way: It is determined whether the voice frequency corresponding to the voice instruction information is within a preset voice threshold frequency range of a child; In the case that the voice frequency corresponding to the voice instruction information is within the preset voice threshold frequency range of a child, it is determined that the user initiating the voice instruction information is a child.
4. The method of claim 1, wherein, The external environment information includes outdoor environment temperature and / or outdoor environment humidity.
5. The method of claim 4, wherein, The preset condition is that the voice instruction information has semantic conflict, and it is determined whether the voice instruction information meets the preset condition in the following way: The voice instruction information is input into a preset semantic conflict detection model, and in the case that the output result of the semantic conflict detection model is semantic conflict, it is determined that the voice instruction information meets the preset condition.
6. The method of claim 4, wherein, The preset condition is that there are repeated words in the voice instruction information, and it is determined whether the voice instruction information meets the preset condition in the following way: The voice instruction information is segmented to obtain the words included in the voice instruction information; The words included in the voice instruction information are matched two by two, and in the case that there are the same words, it is determined that the voice instruction information meets the preset condition.
7. The method of claim 4, wherein, The preset condition is that there is laughter in the voice instruction information, and it is determined whether the voice instruction information meets the preset condition in the following way: The voice instruction information is divided into multiple voice frames; Each voice frame is input into a preset laughter detection model to determine whether each voice frame is a laughter frame; In the case that the number of laughter frames is greater than a preset threshold, it is determined that the voice instruction information meets the preset condition.
8. The method of claim 1, wherein, The standby mode is a music sleep-aiding mode, and after triggering the air conditioner to run according to the standby mode, the method further comprises: acquiring a current time after the air conditioner runs according to the standby mode for a first preset time period; acquiring a volume adjustment value according to the current time; adjusting the volume of the music played by the air conditioner according to the volume adjustment value at intervals of a second preset time period.
9. An apparatus for controlling an air conditioner, comprising a processor and a memory having stored program instructions, characterized in that, The processor is configured to execute the method for controlling the air conditioner according to any one of claims 1 to 8 when the program instructions are run.
10. An air conditioner characterized by comprising: The device for controlling the air conditioner according to claim 9 is included.
11. A storage medium storing program instructions, characterized in that, The program instructions execute the method for controlling the air conditioner according to any one of claims 1 to 8 when run.
Citation Information
Patent Citations
Air conditioning systems and their control methods
CN102261718A
Voice control method and device, storage medium and air conditioner
CN111312232A
Voice control method and device
CN113028597A