Method and device for controlling air conditioner, air conditioner and storage medium
By voice control of the air conditioner, the problem of inconvenience of drivers using remote control to control the air conditioner during high-speed driving is solved, and the function of controlling the air conditioner without distraction is realized, improving driving safety and convenience.
Patent Information
- Application Number
- CN202311079012.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-25
- Publication Date
- 2025-02-25
AI Technical Summary
During high-speed driving, it is inconvenient to use a remote control to control the installed air conditioners in the vehicle, which are easy to be distracted, which affects driving safety.
By controlling the air conditioner through voice, obtain voice data in the target vehicle, analyze voice commands and control the operation of the air conditioner to avoid the use of the remote control.
It enables drivers to control the air conditioner without distraction during driving, improving driving safety and convenience of use.
Smart Images

Figure CN119502625A_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 Art
[0002] When users drive RVs or trucks, which are suitable for long-distance travel or long-distance transportation of goods, the ambient temperature of the location of such vehicles will change greatly due to the long driving time and long driving distance. Therefore, users generally use the vehicle air conditioner in the vehicle to adjust the temperature inside the vehicle. However, the compressor of the vehicle air conditioner needs to be driven by the vehicle engine, and the engine is always in working state, which consumes a lot of gasoline and is very expensive. At present, the relevant technology is to install an air conditioner in the vehicle and use the installed air conditioner to adjust the temperature inside the vehicle. The compressor of the air conditioner is driven by an electric motor, which can reduce the consumption of gasoline.
[0003] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0004] In the related art, users usually use a remote controller to control the air conditioner installed in the vehicle. However, when the driver is driving at high speed, it is easy to be distracted when using the remote controller to control the air conditioner, which is inconvenient for the driver to use. As a result, it is inconvenient for the driver to use the air conditioner installed in the vehicle.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0007] 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 facilitate a driver to use the air conditioner installed in a vehicle.
[0008] In some embodiments, the air conditioner is installed in a target vehicle; the method for controlling the air conditioner includes: acquiring first voice data in the target vehicle; parsing the first voice data to obtain a first parsing result; and controlling the operation of the air conditioner according to the first parsing result.
[0009] In some embodiments, obtaining the first voice data in the target vehicle includes: obtaining the current time and a target validity period; wherein the target validity period represents the period during which the air conditioner can be used; and obtaining the first voice data in the target vehicle when the current time is within the target validity period.
[0010] In some embodiments, obtaining the target validity period includes: obtaining identity information of the user; and obtaining the target validity period based on the identity information of the user.
[0011] In some embodiments, the method of obtaining first voice data in a target vehicle when the current moment is within the target validity period includes: obtaining second voice data when the current moment is within the target validity period; parsing the second voice data to obtain a second parsing result; and obtaining the first voice data in the target vehicle when the second parsing result is that a preset wake-up word exists.
[0012] In some embodiments, controlling the operation of the air conditioner according to the first analysis result includes: when the first analysis result indicates that there is a preset command word, controlling the operation of the air conditioner according to the preset command word.
[0013] In some embodiments, after obtaining the target validity period, it also includes: obtaining the current position and destination of the target vehicle; predicting the target time of the target vehicle; wherein the target time is the time when the target vehicle travels from the current position of the air conditioner to the destination; and according to the target time and the target validity period, controlling the air conditioner to issue a first prompt message.
[0014] In some embodiments, controlling the air conditioner to issue a first prompt message according to the target time and the target validity period includes: controlling the air conditioner to issue a first prompt message when the target time is later than the end time of the target validity period.
[0015] In some embodiments, a device for controlling an air conditioner includes a processor and a memory storing program instructions, and the processor is configured to execute the method for controlling an air conditioner as described above when running the program instructions.
[0016] In some embodiments, the air conditioner includes: an air conditioner body installed in a target vehicle; and the device for controlling the air conditioner as described above is installed in the air conditioner body.
[0017] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, the method for controlling the air conditioner as described above is executed.
[0018] The method and device for controlling an air conditioner, the air conditioner, and the storage medium provided in the embodiments of the present disclosure can achieve the following technical effects:
[0019] By acquiring the first voice data in the target vehicle, parsing the first voice data to obtain the parsing result, and controlling the operation of the air conditioner according to the parsing result, the driver can control the operation of the air conditioner by voice when driving the target vehicle, which can avoid the driver being distracted when driving the vehicle and facilitate the driver to use the air conditioner installed in the vehicle.
[0020] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0022] Figure 1 is a flow chart of a method for controlling an air conditioner provided by an embodiment of the present disclosure;
[0023] Figure 2 is another flow chart of a method for controlling an air conditioner provided by an embodiment of the present disclosure;
[0024] Figure 3 is another flow chart of a method for controlling an air conditioner provided by an embodiment of the present disclosure;
[0025] Figure 4 is another flow chart of a method for controlling an air conditioner provided by an embodiment of the present disclosure;
[0026] Figure 5 is a schematic diagram of a device structure for controlling an air conditioner provided by an embodiment of the present disclosure;
[0027] Figure 6 It is a structural schematic diagram of an air conditioner provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0029] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0030] Unless otherwise stated, the term "plurality" means two or more.
[0031] 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 indicates: A or B.
[0032] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0033] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0034] The method for controlling an air conditioner provided in the embodiment of the present disclosure is applied to an air conditioner. The air conditioner establishes a communication connection with a cloud server and a preset user terminal. The air conditioner is installed in a target vehicle and is used to adjust the air environment in the vehicle. Among them, the target vehicle is a vehicle suitable for long-distance travel or long-distance transportation of goods, such as a truck or an RV. When the driver is driving the target vehicle, it is not convenient to use a remote control to control the air conditioner installed in the vehicle. Therefore, in this embodiment, the driver controls the air conditioner by voice, which can facilitate the driver to use the air conditioner installed in the vehicle. The preset user terminal includes a mobile phone, a smart bracelet or a tablet. In some embodiments, the air conditioner is a wall-mounted air conditioner.
[0035] Combination Figure 1 As shown, the embodiment of the present disclosure provides a method for controlling an air conditioner, which is installed in a target vehicle. The method for controlling the air conditioner includes:
[0036] Step S101: The air conditioner obtains first voice data in a target vehicle.
[0037] Step S102: the air conditioner analyzes the first voice data to obtain a first analysis result.
[0038] Step S103: the air conditioner operates according to the first analysis result.
[0039] The method for controlling an air conditioner provided by the embodiment of the present disclosure is adopted to obtain the first voice data in the target vehicle, parse the first voice data, and obtain the parsing result. The operation of the air conditioner is controlled according to the parsing result. In this way, the driver can control the operation of the air conditioner by voice when driving the target vehicle. This can avoid the driver being distracted when driving the vehicle, and facilitate the driver to use the air conditioner installed in the vehicle.
[0040] Furthermore, the air conditioner is provided with a voice collection module. The air conditioner acquires the first voice data in the target vehicle, including: the air conditioner acquires the first voice data in the target vehicle through the voice collection module.
[0041] Optionally, the air conditioner obtains the current time and the target validity period, including: the air conditioner obtains the current time and the target validity period. The target validity period represents the period during which the air conditioner can be used. When the current time is within the target validity period, the air conditioner obtains the first voice data in the target vehicle.
[0042] Drivers usually use air conditioners to adjust the air environment in the car in summer and winter. Therefore, the air conditioners installed in the vehicle are idle for a long time every year. Since air conditioners are not cheap, if the driver directly purchases an air conditioner and installs it in the vehicle, not only is the purchase cost of the air conditioner high, but the air conditioner is also idle for a long time, which is not cost-effective for the driver. Therefore, drivers usually use leased air conditioners, which is more cost-effective. Drivers can reduce the cost of purchasing air conditioners and save expenses by installing leased air conditioners in vehicles. It can also increase the liquidity of air conditioners. However, leased air conditioners are set with a target validity period. The target validity period is used to characterize the period during which the air conditioner can be used. In other words, the target validity period is the period during which the air conditioner can be used by the driver after the air conditioner is leased by the driver.
[0043] In this way, by obtaining the current time and the target validity period, and only obtaining the first voice data when the current time is within the target validity period, the driver can use the air conditioner only within the target validity period of the air conditioner, which facilitates the air conditioner supplier to manage the leased air conditioners.
[0044] Combination Figure 2 As shown, the embodiment of the present disclosure provides a method for controlling an air conditioner, which is installed in a target vehicle. The method for controlling the air conditioner includes:
[0045] Step S201, the air conditioner obtains the current time and the target validity period; wherein the target validity period represents the period during which the air conditioner can be used.
[0046] Step S202: When the air conditioner is within the target validity period at the current moment, the air conditioner obtains the first voice data in the target vehicle.
[0047] Step S203: the air conditioner analyzes the first voice data to obtain a first analysis result.
[0048] Step S204: the air conditioner operates according to the first analysis result.
[0049] Further, the air conditioner obtains the current time and the target validity period, including: the air conditioner obtains the current time and the target validity period every first preset time. In this way, obtaining the current time and the target validity period every first preset time can not only save power, but also timely know whether the current time is within the target validity period. In some embodiments, the first preset time is 12 hours, 24 hours, or 36 hours.
[0050] Furthermore, the air conditioner obtains the target validity period, including: the air conditioner obtains the identity information of the user. The air conditioner obtains the target validity period according to the identity information of the user. In this way, the target validity period is obtained through the identity information of the user, so that the target validity period is linked to the identity information of the user. Therefore, the target validity period of the air conditioner is targeted, and each user has a corresponding target validity period.
[0051] Combination Figure 3 As shown, the embodiment of the present disclosure provides a method for controlling an air conditioner, which is installed in a target vehicle. The method for controlling the air conditioner includes:
[0052] Step S301, the air conditioner obtains the current time and the user's identity information.
[0053] Step S302: the air conditioner obtains the target validity period according to the user's identity information.
[0054] Step S303: When the air conditioner is within the target validity period at the current moment, the air conditioner obtains the first voice data in the target vehicle.
[0055] Step S304: the air conditioner analyzes the first voice data to obtain a first analysis result.
[0056] Step S305: the air conditioner operates according to the first analysis result.
[0057] In some embodiments, the air conditioner obtains the user's identity information by receiving the user's identity information sent by a preset user terminal.
[0058] Optionally, the air conditioner obtains the target validity period according to the user's identity information, including: the air conditioner sends the user's identity information to the cloud server, and sends a deadline determination request to the cloud server. The cloud server is triggered to perform a search operation in a preset first data table using the user's identity information, and when alternative identity information identical to the user's identity information is found, the alternative validity period corresponding to the alternative identity information is determined as the target validity period, and the target validity period is fed back to the air conditioner. The corresponding relationship between the alternative identity information and the alternative validity period is stored in the preset first data table. The cloud server is a server of the air conditioner supplier.
[0059] In this way, when the first data table stores the same candidate identity information as the user's identity information, it means that the user has the authority to rent the air conditioner, that is, the user can rent the air conditioner. After the user rents the air conditioner, the air conditioner retrieves the candidate validity period corresponding to the user's identity information from the cloud server to determine the target validity period, so as to determine the period during which the air conditioner can be used by the user.
[0060] In some embodiments, the alternative identity information includes an account ID (IDentity, identity identification number). When the alternative identity information is an account ID of 123456, the corresponding alternative validity period is from 10:00 on July 25, 2023 to 10:00 on September 30, 2023. When the alternative identity information is an account ID of 123457, the corresponding alternative validity period is from 10:00 on October 1, 2023 to 10:00 on November 1, 2023.
[0061] Optionally, before obtaining the target validity period, the method further includes: the air conditioner receives a time limit setting instruction sent by the user, the time limit setting instruction includes an alternative validity period and alternative identity information. The alternative validity period and the alternative identity information are sent to the cloud server, triggering the cloud server to store the alternative validity period and the alternative identity information, as well as the corresponding relationship between the alternative validity period and the alternative identity information in the first data table. The alternative validity period is the period during which the air conditioner can be used by the user corresponding to the alternative identity information.
[0062] Optionally, the air conditioner obtains the target validity period according to the identity information of the user, including: the air conditioner sends the identity information of the user to the cloud server, and sends a deadline determination request to the cloud server. The cloud server is triggered to perform a search operation in a preset first data table using the identity information of the user, and when no alternative identity information identical to the identity information of the user is found, a message that the identity information is none is fed back to the air conditioner. When the air conditioner receives the message fed back by the cloud server, it sends a second prompt message to the user to prompt the user to set the identity information. The air conditioner receives the identity information setting instruction sent by the user, and the identity information setting instruction includes alternative identity information and alternative validity period. The alternative identity information and the alternative validity period are sent to the cloud server, and the cloud server is triggered to store the alternative identity information and the alternative validity period, as well as the corresponding relationship between the two, in the first data table. The cloud server is triggered to determine the alternative validity period corresponding to the alternative identity information as the target validity period, and the target validity period is fed back to the air conditioner. The corresponding relationship between the alternative identity information and the alternative validity period is stored in the preset first data table.
[0063] In this way, when the preset first data table does not store the same alternative identity information as the user's identity information, it means that the user does not have the authority to rent an air conditioner. At this time, by prompting the user to set the identity information, the alternative identity information, the alternative validity period, and the corresponding relationship between the two are stored in the preset first data table. This allows the user to have the authority to rent an air conditioner, and the time during which the rented air conditioner can be used by the user. By retrieving the alternative validity period from the cloud server, the period during which the air conditioner can be used by the user can be quickly determined.
[0064] Optionally, the air conditioner obtains the target validity period according to the identity information of the user, including: the air conditioner performs a search operation in a preset second data table using the identity information of the user, and when alternative identity information identical to the identity information of the user is found, determines the alternative validity period corresponding to the alternative identity information as the target validity period. The preset second data table stores the correspondence between the alternative identity information and the alternative validity period.
[0065] In this way, when the second data table stores the same candidate identity information as the user's identity information, it means that the user has the authority to rent the air conditioner, that is, the user can rent the air conditioner. After the user rents the air conditioner, the air conditioner retrieves the candidate validity period corresponding to the user's identity information from the second data table to determine the target validity period, so as to determine the period during which the air conditioner can be used by the user corresponding to the candidate identity information.
[0066] Optionally, before obtaining the target validity period, the method further includes: the air conditioner receives a time limit setting instruction sent by the user, the time limit setting instruction includes an alternative validity period and alternative identity information. The alternative validity period and the alternative identity information, as well as the correspondence between the alternative validity period and the alternative identity information, are stored in a second data table. The alternative validity period is the period during which the air conditioner can be used by the user corresponding to the alternative identity information.
[0067] Optionally, the air conditioner obtains the target validity period based on the identity information of the user, including: the air conditioner uses the identity information of the user to perform a search operation in a preset first data table, and when no alternative identity information identical to the identity information of the user is found, sends a second prompt information to the user to prompt the user to set the identity information. The air conditioner receives an identity information setting instruction sent by the user, the identity information setting instruction includes alternative identity information and alternative validity period. The alternative identity information and the alternative validity period, as well as the corresponding relationship between the two, are stored in the second data table. The alternative validity period corresponding to the alternative identity information is determined as the target validity period. The corresponding relationship between the alternative identity information and the alternative validity period is stored in the preset second data table.
[0068] In this way, when the preset second data table does not store the same alternative identity information as the user's identity information, it means that the user does not have the authority to rent an air conditioner. At this time, by prompting the user to set the identity information, the alternative identity information, the alternative validity period, and the corresponding relationship between the two are stored in the preset second data table. This allows the user to have the authority to rent an air conditioner, and the time during which the rented air conditioner can be used by the user. By retrieving the alternative validity period from the second data table, the period during which the air conditioner can be used by the user can be quickly determined.
[0069] In some embodiments, the second prompt message is used to prompt the user that the identity information setting needs to be completed. The identity information setting includes the alternative identity information set by the user and the corresponding alternative validity period. For example, the air conditioner is provided with a playback module. The content of the second prompt message is "Please ask the user to set the alternative identity information and the corresponding alternative validity period." In some embodiments, the air conditioner sends the second prompt message through the playback module. In other embodiments, the air conditioner sends the second prompt message to the preset user terminal, triggering the display of the text content corresponding to the second prompt message "Please ask the user to set the alternative identity information and the corresponding alternative validity period" on the preset user terminal.
[0070] Further, the air conditioner is provided with a voice acquisition module for collecting the first voice data and the second voice data. When the air conditioner is within the target validity period at the current moment, the first voice data in the target vehicle is obtained, including: when the air conditioner is within the target validity period at the current moment, the second voice data is obtained through the voice acquisition module of the air conditioner. The second voice data is parsed to obtain a second parsing result. When the second parsing result is that there is a preset wake-up word, the first voice data in the target vehicle is obtained through the air conditioner acquisition module. In this way, when the current moment is within the target validity period, it means that the air conditioner can continue to be used. Therefore, when the second parsing result is that there is a preset wake-up word, it means that the user wants to control the air conditioner through voice data. At this time, the user can control the operation of the air conditioner through the first voice data so that the driver can use the air conditioner installed in the vehicle. In addition, when the second parsing result has a preset wake-up word, the first voice data is obtained, which can also avoid the air conditioner from responding to any voice data in the target vehicle. Thereby improving the accuracy of the air conditioner responding to the first voice data. In some embodiments, the preset wake-up words include: Xiaoyou Xiaoyou, Hi Xiaoyou, etc.
[0071] Further, the air conditioner analyzes the second voice data to obtain a second analysis result, including: the air conditioner performs text recognition on the second voice data to obtain text information corresponding to the second voice data. A preset wake-up word is searched in the text information, and when at least one preset wake-up word is found, it is determined that the second analysis result is that a preset wake-up word exists.
[0072] Furthermore, when the second analysis result is that there is a preset wake-up word, the first voice data in the target vehicle is obtained, including: when the second analysis result is that there is a preset wake-up word, voice data of a second preset duration in the target vehicle is obtained. The acquired voice data of the second preset duration is determined as the first voice data. The driver's attention is on driving the vehicle safely. Therefore, when the driver uses voice data to control the operation of the air conditioner, the command instructions issued are usually relatively concise. In this way, by determining the voice data of the second preset duration in the target vehicle as the first voice data, it is possible to avoid determining the driver's chattering as command instructions. Thereby, the accuracy of the air conditioner's response to the first voice data can be improved. In some embodiments, the second preset duration is 15S, 20S or 25S, etc.
[0073] Furthermore, the playback module of the air conditioner is also used to play a third prompt message. The third prompt message is used to prompt the air conditioner that the first voice data will be collected. When the second analysis result is that there is a preset wake-up word, the air conditioner obtains the first voice data in the target vehicle, including: when the second analysis result is that there is a preset wake-up word, the air conditioner sends a third prompt message and obtains the first voice data in the target vehicle. In this way, the air conditioner sends a third prompt message to prompt the user, so that the user can know in time that the air conditioner is about to collect the first voice data. It is convenient for the user to issue commands to control the operation of the air conditioner through the first voice data to control the operation of the air conditioner. Thereby facilitating the driver to use the air conditioner installed in the vehicle. In some embodiments, the content of the third prompt message is "beep".
[0074] Further, the air conditioner analyzes the first voice data to obtain a first analysis result, including: the air conditioner performs text recognition on the first voice data to obtain text information corresponding to the first voice data. The preset command word is searched in the text information, and when at least one preset command word is found, it is determined that the first analysis result is that the preset command word exists.
[0075] Furthermore, the air conditioner operates according to the first analysis result, including: the air conditioner operates according to the preset command word when the first analysis result is that there is a preset command word. The preset command word is a command to control the operation of the air conditioner. In this way, when the first analysis result is that there is a preset command word, it means that the user has issued a command to control the operation of the air conditioner through the first voice data. At this time, the air conditioner is controlled to operate according to the preset command word issued by the user, and the air environment in the vehicle is adjusted so that the air environment in the vehicle can meet the needs of the user.
[0076] In some embodiments, when the preset command word is 26°C cooling, the air conditioner is controlled to operate in cooling mode and the operating temperature is 26°C. When the preset command word is dehumidification, the air conditioner is controlled to operate in dehumidification mode. When the preset command word is 26°C heating, the air conditioner is controlled to operate in heating mode and the operating temperature is 26°C.
[0077] Specifically, the air conditioner determines the command instruction according to the preset command word in the first analysis result, and then sends the command instruction to the electric control board of the air conditioner through the serial port or other interface. After receiving the command instruction, the electric control board analyzes and executes the analyzed command instruction.
[0078] Furthermore, the playing module of the air conditioner is also used to play the first prompt information. After the air conditioner obtains the target validity period, it also includes: the air conditioner obtains the current position and destination of the target vehicle. The target time of the target vehicle is predicted; wherein the target time is the time when the target vehicle travels from the current position to the destination. The air conditioner issues the first prompt information according to the target time and the expiration time. In some embodiments, the first prompt information is used to prompt the target vehicle that the air conditioner installed in the target vehicle will stop running before arriving at the destination.
[0079] Since the user installs the leased air conditioner in the target vehicle, and the target vehicle is a vehicle suitable for long-distance travel or long-distance transportation, the lease period of the air conditioner is generally longer. Therefore, it is easy for the user to ignore the expiration time of the air conditioner. Since the leased air conditioner will stop running after the expiration time. Therefore, it is very likely that the air conditioner installed in the target vehicle will stop running before the target vehicle reaches the destination and is in a high-speed driving state. It is not convenient for the user to set a new target validity period during high-speed driving. In this way, by prompting the user, the user can promptly know that the leased air conditioner will stop running during the process of driving from the current location to the destination. This allows the user to set a new target validity period in advance.
[0080] In some embodiments, the destination is a location agreed upon by the user and the merchant to return the air conditioner, for example, a location where the air conditioner is rented.
[0081] Combination Figure 4 As shown, the embodiment of the present disclosure provides a method for controlling an air conditioner, which is installed in a target vehicle. The method for controlling the air conditioner includes:
[0082] Step S401, the air conditioner obtains the current time and the user's identity information.
[0083] Step S402: the air conditioner obtains the target validity period according to the user's identity information.
[0084] Step S403: the air conditioner obtains the current position and destination of the target vehicle.
[0085] Step S404, the air conditioner predicts a target time for the target vehicle.
[0086] Step S405: the air conditioner sends a first prompt message according to the target time and the target validity period.
[0087] Step S406: When the air conditioner is within the target validity period at the current moment, the air conditioner obtains the first voice data in the target vehicle.
[0088] Step S407: the air conditioner analyzes the first voice data to obtain a first analysis result.
[0089] Step S408: the air conditioner operates according to the first analysis result.
[0090] Optionally, the air conditioner controls the air conditioner to issue a first prompt message according to the target time and the target validity period, including: when the target time is later than the end time of the target validity period, the air conditioner controls the air conditioner to issue the first prompt message. In this way, when the target time is later than the end time of the target validity period, it means that the air conditioner cannot be used before the target vehicle arrives at the destination. At this time, by controlling the air conditioner to issue the first prompt message, the user is prompted in advance, so that the user can set a new target validity period in advance.
[0091] Further, the air conditioner obtains the current position of the target vehicle, including: the air conditioner obtains the current position of the target vehicle every third preset time. Since the speed and driving route of the target vehicle may change during driving, thus affecting the target time. Therefore, by obtaining the current position of the target vehicle every third preset time, a more accurate target time can be obtained and electric energy can be saved.
[0092] Furthermore, after the air conditioner controls the operation of the air conditioner according to the first analysis result, the method further includes: triggering the air conditioner to send a fourth prompt message. The fourth prompt message is used to prompt the air conditioner to operate according to the preset command word in the first voice data. In this way, the user is prompted by the fourth prompt message to provide feedback to the user that the air conditioner has operated according to the preset command word in the first voice data.
[0093] Combination Figure 5 As shown, an embodiment of the present disclosure provides a device 100 for controlling an air conditioner, including a processor 101 and a memory 102. Optionally, the device may also include a communication interface 103 and a bus 104. The processor 101, the communication interface 103, and the memory 102 may communicate with each other through the bus 104. The communication interface 103 may be used for information transmission. The processor 101 may call the logic instructions in the memory 102 to execute the method for controlling the air conditioner of the above embodiment.
[0094] In addition, the logic instructions in the memory 102 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0095] The memory 102 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 101 executes the function application and data processing by running the program instructions / modules stored in the memory 102, that is, the method for controlling the air conditioner in the above embodiment is implemented.
[0096] The memory 102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 102 may include a high-speed random access memory 102 and may also include a non-volatile memory 102.
[0097] Combination Figure 6 As shown, an embodiment of the present disclosure provides an air conditioner 200, including: an air conditioner body, which is installed in a target vehicle; and the above-mentioned device 100 for controlling the air conditioner. The device 100 for controlling the air conditioner is installed in the air conditioner body. The installation relationship described here is not limited to placement inside the product, but also includes installation connections with other components of the product, including but not limited to physical connections, electrical connections or signal transmission connections, etc. Those skilled in the art can understand that the device 100 for controlling the air conditioner can be adapted to a feasible air conditioner body, thereby realizing other feasible embodiments.
[0098] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for controlling an air conditioner.
[0099] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0100] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may 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 embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0101] 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 changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the 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 the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "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 thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer 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 refer to the description of the method part.
[0102] 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 for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0103] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0104] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, 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 they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for controlling an air conditioner, characterized in that: The air conditioner is installed in a target vehicle; the method comprises: Acquiring first voice data in a target vehicle; Parsing the first voice data to obtain a first parsing result; The operation of the air conditioner is controlled according to the first analysis result.
2. The method according to claim 1, characterized in that: The step of obtaining the first voice data in the target vehicle includes: Acquire the current time and the target validity period; wherein the target validity period represents the period during which the air conditioner can be used; When the current time is within the target validity period, first voice data in the target vehicle is acquired.
3. The method according to claim 2, characterized in that The acquisition target validity period includes: Obtain the user's identity information; Get the target validity period based on the user's identity information.
4. The method according to claim 2, characterized in that: The step of acquiring the first voice data in the target vehicle when the current moment is within the target validity period includes: When the current moment is within the target validity period, acquiring second voice data; Parsing the second voice data to obtain a second parsing result; When the second analysis result is that there is a preset wake-up word, the first voice data in the target vehicle is obtained.
5. The method according to any one of claims 1 to 4, characterized in that: The step of controlling the operation of the air conditioner according to the first analysis result includes: When the first analysis result indicates that there is a preset command word, the air conditioner is controlled to operate according to the preset command word.
6. The method according to claim 3, characterized in that After the acquisition target validity period, it also includes: Get the current location and destination of the target vehicle; Predicting the target time of the target vehicle; wherein the target time is the time when the target vehicle travels from the current position to the destination; According to the target time and the target validity period, the air conditioner is controlled to send out a first prompt message.
7. The method according to claim 6, characterized in that The step of controlling the air conditioner to issue the first prompt information according to the target time and the target validity period includes: When the target time is later than the end time of the target validity period, the air conditioner is controlled to issue the first prompt information.
8. A device for controlling an air conditioner, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for controlling an air conditioner according to any one of claims 1 to 7 when running the program instructions.
9. An air conditioner, characterized in that: include: The air conditioner body is installed in the target vehicle; The device for controlling an air conditioner according to claim 8 is installed in the air conditioner body.
10. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for controlling an air conditioner according to any one of claims 1 to 7 is executed.