WO2019062112A1 - Method and device for controlling air conditioner, air conditioner, and computer readable storage medium - Google Patents

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

Info

Publication number
WO2019062112A1
WO2019062112A1 PCT/CN2018/084796 CN2018084796W WO2019062112A1 WO 2019062112 A1 WO2019062112 A1 WO 2019062112A1 CN 2018084796 W CN2018084796 W CN 2018084796W WO 2019062112 A1 WO2019062112 A1 WO 2019062112A1
Authority
WO
WIPO (PCT)
Prior art keywords
air conditioner
control
instruction
pinyin
command
Prior art date
Application number
PCT/CN2018/084796
Other languages
French (fr)
Chinese (zh)
Inventor
代彪
樊其锋
Original Assignee
广东美的制冷设备有限公司
美的集团股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东美的制冷设备有限公司, 美的集团股份有限公司 filed Critical 广东美的制冷设备有限公司
Publication of WO2019062112A1 publication Critical patent/WO2019062112A1/en

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Air Conditioning Control Device (AREA)
  • Selective Calling Equipment (AREA)

Abstract

A method for controlling an air conditioner is disclosed. The method for controlling an air conditioner comprises the following steps: receiving a control instruction of an air conditioner S10; converting the control instruction into pinyin data S20; selecting an instruction having the highest degree of similarity with the pinyin data in a preset database using a text edit distance algorithm S30; and controlling the operation of the air conditioner according to the selected instruction. A device for controlling an air conditioner, an air conditioner, and a computer readable storage medium are further disclosed. The issue in which an intelligent control level, control accuracy, and a comfort level of an air conditioner are low because a current user inputs erroneous text or voice instructions during a control process, such that the air conditioner cannot recognize the text or voice instruction, and cannot be timely controlled, is avoided. The intelligence level and accuracy of air conditioner control is thus enhanced.

Description

空调器控制方法、装置、空调器及计算机可读存储介质  Air conditioner control method, device, air conditioner and computer readable storage medium
技术领域 Technical field
本申请涉及数据处理技术领域,尤其涉及空调器控制方法、装置、空调器及计算机可读存储介质,本申请要求于 2017 年 09 月 30 日提交中国专利局、申请号为 201710932545.X 、发明名称为 ' 空调器控制方法、装置、空调器及计算机可读存储介质 ' 的中国专利申请的优先权,其全部内容通过引用结合在本申请中。 The present application relates to the field of data processing technologies, and in particular, to an air conditioner control method, apparatus, air conditioner, and computer readable storage medium. Submitted to the China Patent Office on September 30, 2017, the application number is 201710932545.X, and the invention name is 'air conditioner control method, device, air conditioner and computer readable storage medium' Priority of the Chinese Patent Application, the entire contents of which is incorporated herein by reference.
背景技术 Background technique
随着科学技术的不断发展,越来越多的电子设备进入人们的日常生活和工作当中,例如,空调器、电视或电脑等。空调器可通过制冷或者制热为用户提供舒适的环境,可根据用户的控制调节设定温度、风速等运行参数。然而,用户在控制过程中以文本或者语音的方式控制空调器时,用户会输入错误的文字或者语音,导致空调器无法识别,进而无法控制空调器,无法及时控制空调器,导致空调器控制智能化程度差、准确度低和舒适性差。 With the continuous development of science and technology, more and more electronic devices are entering people's daily lives and work, such as air conditioners, televisions or computers. The air conditioner can provide a comfortable environment for the user through cooling or heating, and can adjust operating parameters such as set temperature and wind speed according to the user's control. However, when the user controls the air conditioner by text or voice during the control process, the user may input the wrong text or voice, which may cause the air conditioner to be unrecognizable, and thus the air conditioner cannot be controlled, and the air conditioner cannot be controlled in time, resulting in the air conditioner control intelligence. Poor degree of accuracy, low accuracy and poor comfort.
上述内容仅用于辅助理解本申请的技术方案,并不代表承认上述内容是现有技术。 The above content is only used to assist in understanding the technical solutions of the present application, and does not constitute an admission that the above is prior art.
发明内容 Summary of the invention
本申请的主要目的在于提供一种 空调器控制方法、装置、空调器及计算机可读存储介质 ,旨在解决目前用户在控制过程中以文本或者语音的方式控制空调器时,用户会输入错误的文字或者语音,导致空调器无法识别,进而无法控制空调器,无法及时控制空调器,导致空调器控制智能化程度差、准确度低和舒适性差的问题。 The main purpose of the present application is to provide an air conditioner control method, device, air conditioner, and computer readable storage medium In order to solve the current user's control of the air conditioner by text or voice during the control process, the user will input the wrong text or voice, resulting in the air conditioner not being recognized, and thus unable to control the air conditioner, unable to control the air conditioner in time, resulting in air conditioning The device controls the problem of poor intelligence, low accuracy and poor comfort.
为实现上述目的,本申请提供的一种 空调器控制 方法,所述 空调器控制 方法包括以下步骤: To achieve the above object, the present application provides an air conditioner control method, and the air conditioner control method includes the following steps:
接收空调器的控制指令; Receiving a control command of the air conditioner;
将所述控制指令转换为拼音数据; Converting the control command into pinyin data;
运用文本编辑距离算法从预设数据库中选择与所述拼音数据相似度最高的指令; Using a text edit distance algorithm to select an instruction with the highest similarity to the pinyin data from a preset database;
根据选择的指令控制空调器的运行。 The operation of the air conditioner is controlled according to the selected command.
可选地,所述将所述控制指令转换为拼音数据的步骤包括: Optionally, the step of converting the control instruction into pinyin data comprises:
在所述控制指令为非文本类型数据时,将所述控制指令转换为文本类型数据; Converting the control instruction into text type data when the control instruction is non-text type data;
将所述文本类型数据转换为拼音数据。 Converting the text type data to pinyin data.
可选地,所述将所述控制指令转换为拼音数据的步骤之后,还包括: Optionally, after the step of converting the control instruction into pinyin data, the method further includes:
运用文本编辑距离算法将所述拼音数据与预设数据库中指令做相似度匹配; Using a text editing distance algorithm to match the pinyin data with the instructions in the preset database;
在不存在与所述拼音数据相似度大于预设阈值的指令时,判断所述控制指令为非空调器控制指令; When there is no instruction that the similarity of the pinyin data is greater than a preset threshold, determining that the control instruction is a non-air conditioner control instruction;
在存在与所述拼音数据相似度大于预设阈值的指令时,从中选择相似度最高的指令,作为控制空调器的指令。 When there is an instruction whose similarity with the pinyin data is greater than a preset threshold, the instruction with the highest similarity is selected as an instruction to control the air conditioner.
可选地,所述在不存在与所述拼音数据相似度大于预设阈值的指令时,判断所述控制指令为非空调器控制指令的步骤之后,还包括: Optionally, after the step of determining that the control instruction is a non-air conditioner control instruction, when the instruction that is similar to the pinyin data is greater than a preset threshold, the method further includes:
确定所述控制指令对应所需控制的设备; Determining, by the control instruction, a device corresponding to the required control;
通过物联网将所述控制指令发送至所确定的设备,控制所确定的设备的运行。 The control command is sent to the determined device through the Internet of Things to control the operation of the determined device.
可选地,所述确定所述控制指令对应所需控制的设备的步骤之后,还包括: Optionally, after the step of determining that the control instruction corresponds to the device to be controlled, the method further includes:
在未确定所述控制指令对应所需控制的设备后,对所述控制指令所需控制的设备做近似匹配; After determining that the control instruction corresponds to the device required for control, performing an approximate matching on the device required to be controlled by the control instruction;
找出匹配度最高的设备作为所述控制指令所需的控制设备; Finding the device with the highest matching as the control device required by the control command;
通过物联网将所述控制指令发送至所找出的设备,控制所找出的设备的运行; Sending the control command to the found device through the Internet of Things to control the operation of the found device;
或者, or,
输出所述找出的设备的信息,提示用户是否控制所述找出的设备; Outputting information of the found device, prompting the user to control the found device;
在接收到确认控制信息后,通过物联网将所述控制指令发送至所找出的设备,控制所找出的设备的运行。 After receiving the confirmation control information, the control command is sent to the found device through the Internet of Things to control the operation of the found device.
可选地,所述在未确定所述控制指令对应所需控制的设备后,对所述控制指令所需控制的设备做近似匹配的步骤之后,还包括: Optionally, after the step of performing the approximate matching on the device that needs to be controlled by the control instruction after determining that the control instruction is corresponding to the device that is required to be controlled, the method further includes:
在未匹配出所述控制指令所需的控制设备,丢弃所述控制指令。 The control command is discarded at a control device that does not match the control command.
可选地,所述方法,还包括: Optionally, the method further includes:
获取空调器控制相关的指令词,整理所有指令词的拼音和操作逻辑,构建预设数据库。 Obtain instruction words related to air conditioner control, organize pinyin and operation logic of all instruction words, and build a preset database.
为实现上述目的,本申请还提供一种 空调器控制 装置,所述 空调器控制 装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的 空调器控制 程序,所述 空调器控制 程序被所述处理器执行时实现如上所述的 空调器控制 方法。 To achieve the above object, the present application also provides an air conditioner control device, the air conditioner control The apparatus includes a memory, a processor, and an air conditioner control program stored on the memory and operable on the processor, the air conditioner control program being executed by the processor to implement air conditioner control as described above Method.
为实现上述目的,本申请还提供一种空调器,所述空调器包括如上所述的 空调器控制 装置。 In order to achieve the above object, the present application also provides an air conditioner including the air conditioner control device as described above.
为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有 空调器控制 程序,所述 空调器控制 程序被处理器执行时实现如上所述的 空调器控制 方法。 To achieve the above object, the present application further provides a computer readable storage medium having an air conditioner control stored thereon The program, when the air conditioner control program is executed by the processor, implements the air conditioner control method as described above.
本申请通过将接收到的控制指令转换为拼音数据,再通过文本编辑距离算法匹配预设数据库中与所述拼音数据相似度最高的指令词,根据指令词的操作逻辑,下发相应控制指令,控制空调器的运行。而不是仅仅根据文本或者语音来控制空调,因语音或者文本会与实际的控制指令存在差异,而通过拼音数据进行弥补,有效避免目前用户在控制过程中以文本或者语音的方式控制空调器时,用户会输入错误的文字或者语音,导致空调器无法识别,进而无法控制空调器,无法及时控制空调器,导致空调器控制智能化程度差、准确度低和舒适性差的问题。提高了空调器控制的智能化程度以及准确度。 The present application converts the received control command into pinyin data, and then matches the instruction word with the highest similarity with the pinyin data in the preset database through the text editing distance algorithm, and issues a corresponding control instruction according to the operation logic of the command word. Control the operation of the air conditioner. Rather than simply controlling the air conditioner based on text or voice, the voice or text will be different from the actual control commands, and the phonetic data will be used to make up for it, effectively avoiding the current user controlling the air conditioner by text or voice during the control process. The user will input the wrong text or voice, which will cause the air conditioner to be unrecognizable, and thus the air conditioner cannot be controlled, and the air conditioner cannot be controlled in time, resulting in poor intelligence, low accuracy and poor comfort of the air conditioner. Improve the intelligence and accuracy of air conditioner control.
附图说明 DRAWINGS
图 1 为本申请一实施例方案涉及的硬件运行环境的电子设备结构示意图 ; 1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present application;
图 2 为 本申请空调器控制方法的第一实施例的 流程示意图; 2 is a schematic flow chart of a first embodiment of a method for controlling an air conditioner of the present application;
图 3 为 本申请空调器控制方法的第二实施例的 流程示意图; 3 is a schematic flow chart of a second embodiment of a method for controlling an air conditioner of the present application;
图 4 为 本申请空调器控制方法的第三实施例的 流程示意图; 4 is a schematic flow chart of a third embodiment of a method for controlling an air conditioner of the present application;
图 5 为 本申请一实施例中文本控制空调器的 流程示意图。 FIG. 5 is a schematic flow chart of a text-controlled air conditioner in an embodiment of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。 The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings.
具体实施方式 Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。 It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
本申请实施例的主要解决方案是:接收空调器的控制指令;将所述控制指令转换为拼音数据;运用文本编辑距离算法从预设数据库中选择与所述拼音数据相似度最高的指令;根据选择的指令控制空调器的运行。 The main solution of the embodiment of the present application is: receiving a control instruction of the air conditioner; converting the control instruction into pinyin data; and using a text editing distance algorithm to select an instruction having the highest similarity with the pinyin data from a preset database; The selected command controls the operation of the air conditioner.
由于目前用户在控制过程中以文本或者语音的方式控制空调器时,用户会输入错误的文字或者语音,导致空调器无法识别,进而无法控制空调器,无法及时控制空调器,导致空调器控制智能化程度差、准确度低和舒适性差的问题。本申请提供一种解决方案,通过将接收到的控制指令转换为拼音数据,再通过文本编辑距离算法匹配预设数据库中与所述拼音数据相似度最高的指令词,根据指令词的操作逻辑,下发相应控制指令,控制空调器的运行。而不是仅仅根据文本或者语音来控制空调,因语音或者文本会与实际的控制指令存在差异,而通过拼音数据进行弥补,有效避免目前用户在控制过程中以文本或者语音的方式控制空调器时,用户会输入错误的文字或者语音,导致空调器无法识别,进而无法控制空调器,无法及时控制空调器,导致空调器控制智能化程度差、准确度低和舒适性差的问题。提高了空调器控制的智能化程度以及准确度。 Since the user currently controls the air conditioner by text or voice during the control process, the user inputs incorrect text or voice, which causes the air conditioner to be unrecognizable, and thus cannot control the air conditioner, and cannot control the air conditioner in time, resulting in the air conditioner control intelligence. Poor degree of accuracy, low accuracy and poor comfort. The present application provides a solution for converting the received control command into pinyin data, and then matching the instruction word with the highest similarity with the pinyin data in the preset database by the text editing distance algorithm, according to the operation logic of the instruction word. The corresponding control command is issued to control the operation of the air conditioner. Rather than simply controlling the air conditioner based on text or voice, the voice or text will be different from the actual control commands, and the phonetic data will be used to make up for it, effectively avoiding the current user controlling the air conditioner by text or voice during the control process. The user will input the wrong text or voice, which will cause the air conditioner to be unrecognizable, and thus the air conditioner cannot be controlled, and the air conditioner cannot be controlled in time, resulting in poor intelligence, low accuracy and poor comfort of the air conditioner. Improve the intelligence and accuracy of air conditioner control.
如图 1 所示,图 1 是本申请实施例方案涉及的硬件运行环境的电子设备结构示意图。 As shown in FIG. 1 , FIG. 1 is a schematic structural diagram of an electronic device in a hardware operating environment involved in an embodiment of the present application.
本申请实施例电子设备可以是空调器,也可以是与空调器通信连接的移动终端、 PC 等设备。 The electronic device in the embodiment of the present application may be an air conditioner, or may be a mobile terminal, a PC, or the like that is communicably connected to the air conditioner.
如图 1 所示,该电子设备可以包括: 处理器 1001 ,例如 CPU ,网络接口 1004 ,用户接口 1003 ,存储器 1005 ,通信总线 1002 。其中,通信总线 1002 用于实现这些组件之间的连接通信。用户接口 1003 可以包括显示屏( Display )、输入单元比如键盘( Keyboard ),可选用户接口 1003 还可以包括标准的有线接口、无线接口。网络接口 1004 可选的可以包括标准的有线接口、无线接口(如 WI-FI 接口)。存储器 1005 可以是高速 RAM 存储器,也可以是稳定的存储器( non-volatile memory ),例如磁盘存储器。存储器 1005 可选的还可以是独立于前述处理器 1001 的存储装置。 As shown in FIG. 1, the electronic device can include: a processor 1001, such as a CPU, a network interface 1004, a user interface. 1003, memory 1005, communication bus 1002. Among them, the communication bus 1002 is used to implement connection communication between these components. User interface 1003 can include a display screen ( Display ), input unit such as keyboard, optional user interface 1003 can also include standard wired interface, wireless interface. Network interface 1004 Optional can include standard wired interfaces, wireless interfaces (such as WI-FI interface). The memory 1005 can be a high speed RAM memory or a stable memory (non-volatile) Memory ), such as disk storage. The memory 1005 may alternatively be a storage device independent of the aforementioned processor 1001.
本领域技术人员可以理解,图 1 中示出的终端结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。 Those skilled in the art can understand that Figure 1 The terminal structure shown in the drawing does not constitute a limitation on the electronic device, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
如图 1 所示,作为一种计算机存储介质的存储器 1005 中可以包括操作系统、网络通信模块、用户接口模块以及 空调器控制应用程序。 As shown in Fig. 1, a memory 1005 as a computer storage medium It may include an operating system, a network communication module, a user interface module, and an air conditioner control application.
在图 1 所示的终端中,网络接口 1004 主要用于连接后台服务器,与后台服务器进行数据通信;用户接口 1003 主要用于连接客户端(用户端),与客户端进行数据通信;而处理器 1001 可以用于调用存储器 1005 中存储的空调器控制应用程序,并 执行以下操作: In the terminal shown in FIG. 1, the network interface 1004 is mainly used to connect to the background server, and perform data communication with the background server; the user interface 1003 is mainly used to connect a client (user end) to perform data communication with the client; and the processor 1001 can be used to call an air conditioner control application stored in the memory 1005, and Do the following:
接收空调器的控制指令; Receiving a control command of the air conditioner;
将所述控制指令转换为拼音数据; Converting the control command into pinyin data;
运用文本编辑距离算法从预设数据库中选择与所述拼音数据相似度最高的指令; Using a text edit distance algorithm to select an instruction with the highest similarity to the pinyin data from a preset database;
根据选择的指令控制空调器的运行。 The operation of the air conditioner is controlled according to the selected command.
进一步地,处理器 1001 可以用于调用存储器 1005 中存储的空调器控制应用程序,并 执行以下操作: Further, the processor 1001 can be used to call an air conditioner control application stored in the memory 1005, and Do the following:
在所述控制指令为非文本类型数据时,将所述控制指令转换为文本类型数据; Converting the control instruction into text type data when the control instruction is non-text type data;
将所述文本类型数据转换为拼音数据。 Converting the text type data to pinyin data.
进一步地,所述将所述控制指令转换为拼音数据的步骤之后,处理器 1001 可以用于调用存储器 1005 中存储的空调器控制应用程序,并 执行以下操作: Further, after the step of converting the control command into pinyin data, the processor 1001 may be configured to call the memory 1005. The stored air conditioner controls the application and does the following:
运用文本编辑距离算法将所述拼音数据与预设数据库中指令做相似度匹配; Using a text editing distance algorithm to match the pinyin data with the instructions in the preset database;
在不存在与所述拼音数据相似度大于预设阈值的指令时,判断所述控制指令为非空调器控制指令; When there is no instruction that the similarity of the pinyin data is greater than a preset threshold, determining that the control instruction is a non-air conditioner control instruction;
在存在与所述拼音数据相似度大于预设阈值的指令时,从中选择相似度最高的指令,作为控制空调器的指令。 When there is an instruction whose similarity with the pinyin data is greater than a preset threshold, the instruction with the highest similarity is selected as an instruction to control the air conditioner.
进一步地,所述在不存在与所述拼音数据相似度大于预设阈值的指令时,判断所述控制指令为非空调器控制指令的步骤之后,处理器 1001 可以用于调用存储器 1005 中存储的空调器控制应用程序,并 执行以下操作: Further, after the step of determining that the control instruction is a non-air conditioner control instruction when there is no instruction that the similarity of the pinyin data is greater than a preset threshold, the processor 1001 may be configured to call the memory 1005. The stored air conditioner controls the application and does the following:
确定所述控制指令对应所需控制的设备; Determining, by the control instruction, a device corresponding to the required control;
通过物联网将所述控制指令发送至所确定的设备,控制所确定的设备的运行。 The control command is sent to the determined device through the Internet of Things to control the operation of the determined device.
进一步地,所述确定所述控制指令对应所需控制的设备的步骤之后,处理器 1001 可以用于调用存储器 1005 中存储的空调器控制应用程序,并 执行以下操作: Further, after the step of determining that the control instruction corresponds to the device to be controlled, the processor 1001 may be configured to call the memory. The air conditioner controls the application stored in 1005 and does the following:
在未确定所述控制指令对应所需控制的设备后,对所述控制指令所需控制的设备做近似匹配; After determining that the control instruction corresponds to the device required for control, performing an approximate matching on the device required to be controlled by the control instruction;
找出匹配度最高的设备作为所述控制指令所需的控制设备; Finding the device with the highest matching as the control device required by the control command;
通过物联网将所述控制指令发送至所找出的设备,控制所找出的设备的运行; Sending the control command to the found device through the Internet of Things to control the operation of the found device;
或者, or,
输出所述找出的设备的信息,提示用户是否控制所述找出的设备; Outputting information of the found device, prompting the user to control the found device;
在接收到确认控制信息后,通过物联网将所述控制指令发送至所找出的设备,控制所找出的设备的运行。 After receiving the confirmation control information, the control command is sent to the found device through the Internet of Things to control the operation of the found device.
进一步地,所述在未确定所述控制指令对应所需控制的设备后,对所述控制指令所需控制的设备做近似匹配的步骤之后,处理器 1001 可以用于调用存储器 1005 中存储的空调器控制应用程序,并 执行以下操作: Further, after the step of determining that the control instruction corresponds to the required control device and performing an approximate matching on the device required to be controlled by the control instruction, the processor 1001 may be configured to call the memory 1005. The stored air conditioner controls the application and does the following:
在未匹配出所述控制指令所需的控制设备,丢弃所述控制指令。 The control command is discarded at a control device that does not match the control command.
进一步地,处理器 1001 可以用于调用存储器 1005 中存储的空调器控制应用程序,并 执行以下操作: Further, the processor 1001 can be used to call an air conditioner control application stored in the memory 1005, and Do the following:
获取空调器控制相关的指令词,整理所有指令词的拼音和操作逻辑,构建预设数据库。 Obtain instruction words related to air conditioner control, organize pinyin and operation logic of all instruction words, and build a preset database.
参照图 2 ,本申请的第一实施例提供一种空调器控制方法,所述空调器控制方法的执行主体可选为空调器或空调器控制装置或其他电子设备,本实施例以空调器为例来描述,所述空调器控制方法包括: Refer to Figure 2 The first embodiment of the present application provides an air conditioner control method, and an execution body of the air conditioner control method may be an air conditioner or an air conditioner control device or other electronic device. The air conditioner control method includes:
步骤 S10 ,接收空调器的控制指令; Step S10, receiving a control instruction of the air conditioner;
在本实施例中,用户在需要使用空调器时,通过遥控器或者手机、 pad 等控制终端发出控制指令,控制空调器的开启。在利用手机、 pad 等移动终端控制空调器时,用户可以通过文本或者语音的方式发出控制指令,控制空调器。空调器通过红外或者局域网或者广域网的方式接收空调器的控制指令,例如,所述控制指令可以通过物联网 APP 或者微信等发出。这里所指的控制指令,因可能出现错误并不一定就是真实用来控制空调器的控制指令,也可以是控制环境中其他家电设备的控制指令,例如,可能为冰箱或者电视的控制指令等。当然,空调器也可以接收到一段文字或者语音,从中提取出空调器的控制指令,或者在微信聊天中的聊天信息中提取空调器的控制指令。 In this embodiment, when the user needs to use the air conditioner, the user passes the remote controller or the mobile phone or pad. The control terminal issues a control command to control the opening of the air conditioner. Using a mobile phone, pad When the mobile terminal controls the air conditioner, the user can issue a control command by text or voice to control the air conditioner. The air conditioner receives the control instruction of the air conditioner through an infrared or a local area network or a wide area network, for example, the control instruction can pass through the Internet of Things APP Or WeChat, etc. issued. The control command referred to here may not be the control command for controlling the air conditioner, but may also be the control command of other household electrical appliances in the control environment, for example, may be a control instruction of a refrigerator or a television. Of course, the air conditioner can also receive a piece of text or voice, extract control instructions from the air conditioner, or extract control instructions of the air conditioner from the chat information in the WeChat chat.
步骤 S20 ,将所述控制指令转换为拼音数据; Step S20, converting the control instruction into pinyin data;
在接收到控制指令后,将接收到的控制指令转换为拼音数据,通过中文字典库等工具,把文本或者语音转化为拼音数据。 After receiving the control command, the received control command is converted into pinyin data, and the text or voice is converted into pinyin data by a tool such as a Chinese dictionary library.
可以理解的是,转换为拼音数据的时候,还可以是通过如下方式操作,在所述控制指令为非文本类型数据时,将所述控制指令转换为文本类型数据;将所述文本类型数据转换为拼音数据。先通过将其他类型的数据转换为文本类型的数据,从文本数据转换成拼音数据相对来说比较容易。例如,将方言转换为文本,再转换成拼音数据。当然,也可以直接将接收到的控制指令转换为拼音数据。 It can be understood that, when converting to pinyin data, it may also be operated by converting the control instruction into text type data when the control instruction is non-text type data; converting the text type data For pinyin data. It is relatively easy to convert text data into pinyin data by converting other types of data into text type data. For example, converting a dialect into text and then converting it into pinyin data. Of course, it is also possible to directly convert the received control commands into pinyin data.
步骤 S30 ,运用文本编辑距离算法从预设数据库中选择与所述拼音数据相似度最高的指令; Step S30, using a text editing distance algorithm to select an instruction having the highest similarity with the pinyin data from a preset database;
提前获取空调器控制相关的指令词,整理所有指令词的拼音和操作逻辑,构建预设数据库。 Get instruction words related to air conditioner control in advance, organize the pinyin and operation logic of all instruction words, and build a preset database.
在根据控制指令转换为拼音数据后,运用文本编辑距离算法,计算该拼音数据与预设指令库中所有指令词拼音的相似度 S ;选择相似度最高的指令。 After converting to pinyin data according to the control command, the text editing distance algorithm is used to calculate the similarity between the pinyin data and the pinyin of all the command words in the preset instruction library. S; select the instruction with the highest similarity.
具体的,选择最高相似度的过程还可以是:运用文本编辑距离算法将所述拼音数据与预设数据库中指令做相似度匹配;在存在与所述拼音数据相似度大于预设阈值的指令时,从中选择相似度最高的指令,作为控制空调器的指令。在匹配过程中在不存在与所述拼音数据相似度大于预设阈值的指令时,判断所述控制指令为非空调器控制指令。所述预设阈值可以根据需求设置,一般设置为 80% 或者 90% 等。 Specifically, the process of selecting the highest similarity may be: using a text editing distance algorithm to match the pinyin data with the instruction in the preset database; when there is an instruction that the similarity with the pinyin data is greater than a preset threshold From which the command with the highest similarity is selected as an instruction to control the air conditioner. In the matching process, when there is no instruction that the similarity of the pinyin data is greater than a preset threshold, the control command is determined to be a non-air conditioner control command. The preset threshold can be set according to requirements, and is generally set to 80% or 90%, etc.
而,文本编辑距离算法,基于动态规划算法、广泛运用与拼音纠错、机器翻译、命名实体抽取等领域。例如: 'zhileng' 、 'zhilen' ,距离为 1 ; 'chushi' 、 'qushi' ,距离为 2. 选取相似度最高且超过预设阈值 F 的指令,若不存在则为非空调器指令; However, the text editing distance algorithm is based on dynamic programming algorithms, extensive use and pinyin correction, machine translation, and named entity extraction. E.g: 'zhileng', 'zhilen', distance is 1; 'chushi', 'qushi', distance is 2. Select the highest similarity and exceed the preset threshold F The instruction, if not present, is a non-air conditioner command;
C=MAX ( SPi Pj ), jε{1 , 2 , 3…… , N}&&MAX ( SPi Pj ) ≥F ;C=MAX ( S Pi , Pj ), jε{1 , 2 , 3... , N}&&MAX ( S Pi , Pj ) ≥ F ;
其中, j 表示预设数据库中第 j 个指令, N 表示预设数据库规模, Pj 表示第 j 个指令的拼音, SPi Pj 表示指令 i 与指令 j 拼音的相似度, MAX ( SPi Pj )表示与指令 i 相似度最大的指令 C 。若 C 超过预设阈值 F ,则识别为空调器指令,否则,该用户指令为非空调器指令。Where j is the jth instruction in the default database, N is the default database size, Pj is the pinyin of the jth instruction, S Pi and Pj are the similarities between the instruction i and the j of the instruction j, MAX (S Pi , Pj ) indicates the instruction C with the highest similarity to the instruction i. If C exceeds the preset threshold F, it is recognized as an air conditioner command; otherwise, the user command is a non-air conditioner command.
步骤 S40 ,根据选择的指令控制空调器的运行。 Step S40, controlling the operation of the air conditioner according to the selected instruction.
在匹配出相似度最大的指令词后,根据该指令词的操作逻辑,下发相应的控制命令,控制空调器的运行。本实施例用户通过物联网 APP/ 微信;聊天互动中,可通过语音或文本方式输入相关的会占领,从而实现物联网空调器的操作控制。当然,可以理解的是,通过视频或者图像的方式,从中识别出与控制相关的内容,转换为文本后,或者直接转换为拼音数据,来控制空提器。 After matching the instruction word with the largest similarity, according to the operation logic of the instruction word, the corresponding control command is issued to control the operation of the air conditioner. In this embodiment, the user passes the Internet of Things APP/ WeChat; in the chat interaction, the relevant occupation can be input by voice or text, thereby realizing the operation control of the Internet of Things air conditioner. Of course, it can be understood that the air conditioner is controlled by recognizing the content related to the control from the video or the image, converting it to text, or directly converting it to pinyin data.
本实施例通过将接收到的控制指令转换为拼音数据,再通过文本编辑距离算法匹配预设数据库中与所述拼音数据相似度最高的指令词,根据指令词的操作逻辑,下发相应控制指令,控制空调器的运行。而不是仅仅根据文本或者语音来控制空调,因语音或者文本会与实际的控制指令存在差异,而通过拼音数据进行弥补,有效避免目前用户在控制过程中以文本或者语音的方式控制空调器时,用户会输入错误的文字或者语音,导致空调器无法识别,进而无法控制空调器,无法及时控制空调器,导致空调器控制智能化程度差、准确度低和舒适性差的问题。提高了空调器控制的智能化程度以及准确度。 In this embodiment, the received control command is converted into pinyin data, and then the text editing distance algorithm matches the instruction word with the highest similarity with the pinyin data in the preset database, and the corresponding control instruction is issued according to the operation logic of the instruction word. , control the operation of the air conditioner. Rather than simply controlling the air conditioner based on text or voice, the voice or text will be different from the actual control commands, and the phonetic data will be used to make up for it, effectively avoiding the current user controlling the air conditioner by text or voice during the control process. The user will input the wrong text or voice, which will cause the air conditioner to be unrecognizable, and thus the air conditioner cannot be controlled, and the air conditioner cannot be controlled in time, resulting in poor intelligence, low accuracy and poor comfort of the air conditioner. Improve the intelligence and accuracy of air conditioner control.
参考图 3 ,在本申请一较佳实施例中,所述在确定控制指令未非空调器的控制指令后,还包括: Referring to FIG. 3, in a preferred embodiment of the present application, after determining that the control instruction is not the control instruction of the air conditioner, the method further includes:
步骤 S50 ,确定所述控制指令对应所需控制的设备; Step S50: determining that the control instruction corresponds to a device that is required to be controlled;
步骤 S60 ,通过物联网将所述控制指令发送至所确定的设备,控制所确定的设备的运行。 Step S60: Send the control instruction to the determined device through the Internet of Things to control the operation of the determined device.
在本实施例中,在确定控制指令不是控制空调器后,从控制指令的内容或者拼音数据中识别出所述控制的设备,从内容中做出识别。例如,开启保鲜,为冰箱控制,调制 CCTV-5 ,为电视机的控制等。在我确定后,通过物联网将所述控制指令发送至所确定的设备,控制所确定的设备的运行。 In the present embodiment, after it is determined that the control command is not the control of the air conditioner, the device that recognizes the control is identified from the content of the control command or the pinyin data, and the identification is made from the content. For example, turn on freshness, control for the refrigerator, and modulate CCTV-5, for TV control, etc. After I determine, the control command is sent to the determined device through the Internet of Things to control the operation of the determined device.
通过在控制指令不为空调器的控制指令后,识别出为其他设备的控制指令,及时调整将控制指令发送至其他所需控制的设备,完成设备的控制,进一步提高控制指令识别的准确度,避免控制错误。 After the control command is not the air conditioner control command, the control command for other devices is recognized, and the control command is sent to other devices that need to be controlled in time to complete the control of the device, thereby further improving the accuracy of the control command recognition. Avoid control errors.
参考图 4 ,在本申请一较佳实施例中,所述确定所述控制指令对应所需控制的设备的步骤之后,还包括: Refer to Figure 4 In a preferred embodiment of the present application, after the step of determining that the control instruction corresponds to the device to be controlled, the method further includes:
步骤 S70 ,在未确定所述控制指令对应所需控制的设备后,对所述控制指令所需控制的设备做近似匹配; Step S70 After determining that the control instruction corresponds to the device required for control, performing an approximate matching on the device required to be controlled by the control instruction;
步骤 S80 ,找出匹配度最高的设备作为所述控制指令所需的控制设备; Step S80, finding the device with the highest matching degree as the control device required by the control instruction;
步骤 S90 ,通过物联网将所述控制指令发送至所找出的设备,控制所找出的设备的运行。 Step S90: Send the control instruction to the found device through the Internet of Things to control the operation of the found device.
在无法根据内容直接确定所需控制的设备后,对所述控制指令所需控制的设备做近似匹配。所述近似匹配,可以是根据历史聊天记录或者根据当前的环境来匹配出用户所需要控制的空调器。做近似匹配后,找出匹配度最高的对所述控制指令所需控制的设备做近似匹配,通过物联网下发控制指令至找出的匹配的设备,控制设备运行。或者,输出所述找出的设备的信息,提示用户是否控制所述找出的设备;在接收到确认控制信息后,通过物联网将所述控制指令发送至所找出的设备,控制所找出的设备的运行。在近似匹配下,可以使得用户指令发错或者发的模糊无法直接找到所需控制设备时,找到相关的信息来近似匹配做出判断,找到用户所需控制的设备,用户不用多次调解所发送的内容,就可以一次控制所需控制的设备,提高设备控制的智能化程度。在未匹配出所述控制指令所需的控制设备,丢弃所述控制指令。提示用户无法控制任何设备,重新输入控制指令,也可在提示的同时,给出每个所需控制设备指令下发的格式,用户按照提示发送控制指令,用户选择要控制的设备,然后按照提示输入控制指令,提高控制的效率。 After the device that cannot directly determine the required control is determined according to the content, the device to be controlled by the control command is approximate matched. The approximate matching may be based on historical chat records or matching the air conditioners that the user needs to control according to the current environment. After the approximate matching is performed, the device with the highest matching degree is matched to the device that needs to be controlled by the control instruction, and the control device is issued by the IoT issuing the control command to the found matching device. Or outputting the information of the found device, prompting the user to control the found device; after receiving the confirmation control information, sending the control command to the found device through the Internet of Things, and controlling the found device The operation of the device. Under the approximate matching, when the user's instruction is sent incorrectly or the fuzzy is not able to directly find the required control device, the relevant information is found to approximate the match and the judgment is made, and the device that the user needs to control is found, and the user does not need to mediate multiple times. The content can control the equipment to be controlled at one time, and improve the intelligence of the equipment control. The control command is discarded at a control device that does not match the control command. Prompt the user can not control any device, re-enter the control command, or give the format of each required control device command at the same time as the prompt, the user sends a control command according to the prompt, the user selects the device to be controlled, and then according to the prompt Input control commands to improve control efficiency.
本实施例通过近似匹配,防止控制指令发出后无法做出响应,及时调整识别策略来完成控制指令的响应操作,提高用户控制的准确性和及时性,也避免用户需要调节控制指令带来的繁琐操作。 In this embodiment, the approximation is matched to prevent the control command from being unable to respond after being issued, and the recognition strategy is adjusted in time to complete the response operation of the control command, thereby improving the accuracy and timeliness of the user control, and avoiding the cumbersomeness that the user needs to adjust the control command. operating.
为了更好的描述本申请实施例,参考图 5 ,描述的为 APP 文本控制空调器的过程。 In order to better describe the embodiments of the present application, referring to FIG. 5, the process of controlling the air conditioner by the APP text is described.
用户在 APP 界面打入一段文本,通过文本转换为拼音识别出用户控制意图,进而匹配出与预设数据库中相似度最高的指令词,指令词根据操作逻辑生成相应的控制指令,控制空调器。而不会因为错别字等造成控制不了空调器的问题,提高了空调器控制的准确度,减少繁琐操作,提高效率。 User at APP The interface enters a piece of text, and the user control intention is recognized by text conversion to pinyin, and then the instruction word with the highest similarity with the preset database is matched, and the instruction word generates a corresponding control instruction according to the operation logic to control the air conditioner. The problem of the air conditioner cannot be controlled because of typos, etc., the accuracy of the air conditioner control is improved, the cumbersome operation is reduced, and the efficiency is improved.
在一实施例中,本申请还提供一种空调器控制装置,所述空调器控制装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的空调器控制程序,所述空调器控制程序被所述处理器执行时实现如下步骤: In an embodiment, the present application further provides an air conditioner control apparatus, the air conditioner control apparatus comprising: a memory, a processor, and an air conditioner control program stored on the memory and operable on the processor When the air conditioner control program is executed by the processor, the following steps are implemented:
接收空调器的控制指令; Receiving a control command of the air conditioner;
将所述控制指令转换为拼音数据; Converting the control command into pinyin data;
运用文本编辑距离算法从预设数据库中选择与所述拼音数据相似度最高的指令; Using a text edit distance algorithm to select an instruction with the highest similarity to the pinyin data from a preset database;
根据选择的指令控制空调器的运行。 The operation of the air conditioner is controlled according to the selected command.
本申请通过将接收到的控制指令转换为拼音数据,再通过文本编辑距离算法匹配预设数据库中与所述拼音数据相似度最高的指令词,根据指令词的操作逻辑,下发相应控制指令,控制空调器的运行。而不是仅仅根据文本或者语音来控制空调,因语音或者文本会与实际的控制指令存在差异,而通过拼音数据进行弥补,有效避免目前用户在控制过程中以文本或者语音的方式控制空调器时,用户会输入错误的文字或者语音,导致空调器无法识别,进而无法控制空调器,无法及时控制空调器,导致空调器控制智能化程度差、准确度低和舒适性差的问题。提高了空调器控制的智能化程度以及准确度。 The present application converts the received control command into pinyin data, and then matches the instruction word with the highest similarity with the pinyin data in the preset database through the text editing distance algorithm, and issues a corresponding control instruction according to the operation logic of the command word. Control the operation of the air conditioner. Rather than simply controlling the air conditioner based on text or voice, the voice or text will be different from the actual control commands, and the phonetic data will be used to make up for it, effectively avoiding the current user controlling the air conditioner by text or voice during the control process. The user will input the wrong text or voice, which will cause the air conditioner to be unrecognizable, and thus the air conditioner cannot be controlled, and the air conditioner cannot be controlled in time, resulting in poor intelligence, low accuracy and poor comfort of the air conditioner. Improve the intelligence and accuracy of air conditioner control.
此外,本申请实施例还提出一种空调器,所述空调器包括如上实施例所述的空调器控制装置。 In addition, an embodiment of the present application further provides an air conditioner, which includes the air conditioner control device according to the above embodiment.
此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有空调器控制程序,所述空调器控制程序被所述处理器执行时实现如下操作: In addition, the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores an air conditioner control program, and when the air conditioner control program is executed by the processor, the following operations are implemented:
接收空调器的控制指令; Receiving a control command of the air conditioner;
将所述控制指令转换为拼音数据; Converting the control command into pinyin data;
运用文本编辑距离算法从预设数据库中选择与所述拼音数据相似度最高的指令; Using a text edit distance algorithm to select an instruction with the highest similarity to the pinyin data from a preset database;
根据选择的指令控制空调器的运行。 The operation of the air conditioner is controlled according to the selected command.
进一步地,所述空调器控制程序被所述处理器执行时实现如下操作: Further, when the air conditioner control program is executed by the processor, the following operations are implemented:
在所述控制指令为非文本类型数据时,将所述控制指令转换为文本类型数据; Converting the control instruction into text type data when the control instruction is non-text type data;
将所述文本类型数据转换为拼音数据。 Converting the text type data to pinyin data.
进一步地,所述将所述控制指令转换为拼音数据的步骤之后,所述空调器控制程序被所述处理器执行时实现如下操作: Further, after the step of converting the control command into pinyin data, when the air conditioner control program is executed by the processor, the following operations are implemented:
运用文本编辑距离算法将所述拼音数据与预设数据库中指令做相似度匹配; Using a text editing distance algorithm to match the pinyin data with the instructions in the preset database;
在不存在与所述拼音数据相似度大于预设阈值的指令时,判断所述控制指令为非空调器控制指令; When there is no instruction that the similarity of the pinyin data is greater than a preset threshold, determining that the control instruction is a non-air conditioner control instruction;
在存在与所述拼音数据相似度大于预设阈值的指令时,从中选择相似度最高的指令,作为控制空调器的指令。 When there is an instruction whose similarity with the pinyin data is greater than a preset threshold, the instruction with the highest similarity is selected as an instruction to control the air conditioner.
进一步地,所述在不存在与所述拼音数据相似度大于预设阈值的指令时,判断所述控制指令为非空调器控制指令的步骤之后,所述空调器控制程序被所述处理器执行时实现如下操作: Further, the air conditioner control program is executed by the processor after the step of determining that the control command is a non-air conditioner control command when there is no instruction that the similarity of the pinyin data is greater than a preset threshold When the following operations are implemented:
确定所述控制指令对应所需控制的设备; Determining, by the control instruction, a device corresponding to the required control;
通过物联网将所述控制指令发送至所确定的设备,控制所确定的设备的运行。 The control command is sent to the determined device through the Internet of Things to control the operation of the determined device.
进一步地,所述确定所述控制指令对应所需控制的设备的步骤之后,所述空调器控制程序被所述处理器执行时实现如下操作: Further, after the step of determining that the control instruction corresponds to the device to be controlled, the air conditioner control program is executed by the processor to:
在未确定所述控制指令对应所需控制的设备后,对所述控制指令所需控制的设备做近似匹配; After determining that the control instruction corresponds to the device required for control, performing an approximate matching on the device required to be controlled by the control instruction;
找出匹配度最高的设备作为所述控制指令所需的控制设备; Finding the device with the highest matching as the control device required by the control command;
通过物联网将所述控制指令发送至所找出的设备,控制所找出的设备的运行; Sending the control command to the found device through the Internet of Things to control the operation of the found device;
或者, or,
输出所述找出的设备的信息,提示用户是否控制所述找出的设备; Outputting information of the found device, prompting the user to control the found device;
在接收到确认控制信息后,通过物联网将所述控制指令发送至所找出的设备,控制所找出的设备的运行。 After receiving the confirmation control information, the control command is sent to the found device through the Internet of Things to control the operation of the found device.
进一步地,所述在未确定所述控制指令对应所需控制的设备后,对所述控制指令所需控制的设备做近似匹配的步骤之后,所述空调器控制程序被所述处理器执行时实现如下操作: Further, after the step of performing an approximate matching on the device required to be controlled by the control instruction after determining that the control instruction corresponds to the device required for the control, the air conditioner control program is executed by the processor Implement the following operations:
在未匹配出所述控制指令所需的控制设备,丢弃所述控制指令。 The control command is discarded at a control device that does not match the control command.
进一步地,所述空调器控制程序被所述处理器执行时实现如下操作: Further, when the air conditioner control program is executed by the processor, the following operations are implemented:
获取空调器控制相关的指令词,整理所有指令词的拼音和操作逻辑,构建预设数据库。 Obtain instruction words related to air conditioner control, organize pinyin and operation logic of all instruction words, and build a preset database.
需要说明的是,在本文中,术语 ' 包括 ' 、 ' 包含 ' 或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句 ' 包括一个 ……' 限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。 It should be noted that in this article, the term 'includes ', 'includes' Or any other variation thereof is intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a plurality of elements includes not only those elements but also other elements not explicitly listed, or An element inherent in a process, method, item, or system. By no more restrictions, by statement 'Includes a ......' Qualified element does not preclude the existence of additional identical elements in a process, method, item, or system that includes that element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。 The serial numbers of the embodiments of the present application are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质 ( 如 ROM/RAM 、磁碟、光盘 ) 中,包括若干指令用以使得一台终端设备 ( 可以是手机,计算机,服务器,空调器,或者网络设备等 ) 执行本申请各个实施例所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium as described above. (such as ROM/RAM, disk, CD), including a number of instructions to make a terminal device (can be a mobile phone, computer, server, air conditioner, or network device, etc.) The methods described in the various embodiments of the present application are performed.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。 The above is only a preferred embodiment of the present application, and is not intended to limit the scope of the patent application, and the equivalent structure or equivalent process transformations made by the specification and the drawings of the present application, or directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of this application.

Claims (15)

  1. 一种空调器控制方法,其中,所述空调器控制方法包括以下步骤: An air conditioner control method, wherein the air conditioner control method comprises the following steps:
    接收空调器的控制指令;Receiving a control command of the air conditioner;
    将所述控制指令转换为拼音数据;Converting the control command into pinyin data;
    运用文本编辑距离算法从预设数据库中选择与所述拼音数据相似度最高的指令;以及Using a text edit distance algorithm to select an instruction having the highest similarity to the pinyin data from a preset database;
    根据选择的指令控制空调器的运行。The operation of the air conditioner is controlled according to the selected command.
  2. 如权利要求1所述的空调器控制方法,其中,所述将所述控制指令转换为拼音数据的步骤包括:The air conditioner control method according to claim 1, wherein said converting said control command into pinyin data comprises:
    在所述控制指令为非文本类型数据时,将所述控制指令转换为文本类型数据;以及Converting the control instruction into text type data when the control instruction is non-text type data;
    将所述文本类型数据转换为拼音数据。Converting the text type data to pinyin data.
  3. 如权利要求2所述的空调器控制方法,其中,所述方法,还包括:The air conditioner control method according to claim 2, wherein the method further comprises:
    获取空调器控制相关的指令词,整理所有指令词的拼音和操作逻辑,构建预设数据库。Obtain instruction words related to air conditioner control, organize pinyin and operation logic of all instruction words, and build a preset database.
  4. 如权利要求1所述的空调器控制方法,其中,所述将所述控制指令转换为拼音数据的步骤之后,还包括:The air conditioner control method according to claim 1, wherein the step of converting the control command into pinyin data further comprises:
    运用文本编辑距离算法将所述拼音数据与预设数据库中指令做相似度匹配;Using a text editing distance algorithm to match the pinyin data with the instructions in the preset database;
    在不存在与所述拼音数据相似度大于预设阈值的指令时,判断所述控制指令为非空调器控制指令;以及When there is no instruction that the similarity of the pinyin data is greater than a preset threshold, determining that the control instruction is a non-air conditioner control instruction;
    在存在与所述拼音数据相似度大于预设阈值的指令时,从中选择相似度最高的指令,作为控制空调器的指令。When there is an instruction whose similarity with the pinyin data is greater than a preset threshold, the instruction with the highest similarity is selected as an instruction to control the air conditioner.
  5. 如权利要求4所述的空调器控制方法,其中,所述在不存在与所述拼音数据相似度大于预设阈值的指令时,判断所述控制指令为非空调器控制指令的步骤之后,还包括:The air conditioner control method according to claim 4, wherein, when there is no instruction that the similarity of the pinyin data is greater than a preset threshold, after the step of determining that the control command is a non-air conditioner control command, include:
    确定所述控制指令对应所需控制的设备;以及Determining that the control instruction corresponds to a device that requires control;
    通过物联网将所述控制指令发送至所确定的设备,控制所确定的设备的运行。The control command is sent to the determined device through the Internet of Things to control the operation of the determined device.
  6. 如权利要求5所述的空调器控制方法,其中,所述确定所述控制指令对应所需控制的设备的步骤之后,还包括:The air conditioner control method according to claim 5, wherein the step of determining that the control instruction corresponds to the device to be controlled further comprises:
    在未确定所述控制指令对应所需控制的设备后,对所述控制指令所需控制的设备做近似匹配;After determining that the control instruction corresponds to the device required for control, performing an approximate matching on the device required to be controlled by the control instruction;
    找出匹配度最高的设备作为所述控制指令所需的控制设备;以及Finding the device with the highest matching as the control device required for the control command;
    通过物联网将所述控制指令发送至所找出的设备,控制所找出的设备的运行;Sending the control command to the found device through the Internet of Things to control the operation of the found device;
    或者,or,
    输出所述找出的设备的信息,提示用户是否控制所述找出的设备;以及Outputting information of the found device, prompting the user to control the device found; and
    在接收到确认控制信息后,通过物联网将所述控制指令发送至所找出的设备,控制所找出的设备的运行。After receiving the confirmation control information, the control command is sent to the found device through the Internet of Things to control the operation of the found device.
  7. 如权利要求6所述的空调器控制方法,其中,所述在未确定所述控制指令对应所需控制的设备后,对所述控制指令所需控制的设备做近似匹配的步骤之后,还包括:The air conditioner control method according to claim 6, wherein the step of performing an approximate matching on the device required to control the control command after the step of determining that the control command corresponds to the device to be controlled is further included :
    在未匹配出所述控制指令所需的控制设备,丢弃所述控制指令。The control command is discarded at a control device that does not match the control command.
  8. 如权利要求7所述的空调器控制方法,其中,所述方法,还包括:The air conditioner control method according to claim 7, wherein the method further comprises:
    获取空调器控制相关的指令词,整理所有指令词的拼音和操作逻辑,构建预设数据库。Obtain instruction words related to air conditioner control, organize pinyin and operation logic of all instruction words, and build a preset database.
  9. 如权利要求1所述的空调器控制方法,其中,所述方法,还包括:The air conditioner control method according to claim 1, wherein the method further comprises:
    获取空调器控制相关的指令词,整理所有指令词的拼音和操作逻辑,构建预设数据库。Obtain instruction words related to air conditioner control, organize pinyin and operation logic of all instruction words, and build a preset database.
  10. 如权利要求4所述的空调器控制方法,其中,所述方法,还包括:The air conditioner control method according to claim 4, wherein the method further comprises:
    获取空调器控制相关的指令词,整理所有指令词的拼音和操作逻辑,构建预设数据库。Obtain instruction words related to air conditioner control, organize pinyin and operation logic of all instruction words, and build a preset database.
  11. 如权利要求5所述的空调器控制方法,其中,所述方法,还包括:The air conditioner control method according to claim 5, wherein the method further comprises:
    获取空调器控制相关的指令词,整理所有指令词的拼音和操作逻辑,构建预设数据库。Obtain instruction words related to air conditioner control, organize pinyin and operation logic of all instruction words, and build a preset database.
  12. 如权利要求6所述的空调器控制方法,其中,所述方法,还包括:The air conditioner control method according to claim 6, wherein the method further comprises:
    获取空调器控制相关的指令词,整理所有指令词的拼音和操作逻辑,构建预设数据库。Obtain instruction words related to air conditioner control, organize pinyin and operation logic of all instruction words, and build a preset database.
  13. 一种空调器控制装置,其中,所述空调器控制装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的空调器控制程序,所述空调器控制程序被所述处理器执行时实现如下步骤:An air conditioner control device, wherein the air conditioner control device includes: a memory, a processor, and an air conditioner control program stored on the memory and operable on the processor, the air conditioner control program being The processor implements the following steps when executed:
    接收空调器的控制指令;Receiving a control command of the air conditioner;
    将所述控制指令转换为拼音数据;Converting the control command into pinyin data;
    运用文本编辑距离算法从预设数据库中选择与所述拼音数据相似度最高的指令;以及Using a text edit distance algorithm to select an instruction having the highest similarity to the pinyin data from a preset database;
    根据选择的指令控制空调器的运行。The operation of the air conditioner is controlled according to the selected command.
  14. 一种空调器,其中,所述空调器包括空调器控制装置,所述空调器控制装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的空调器控制程序,所述空调器控制程序被所述处理器执行时实现如下步骤:An air conditioner, wherein the air conditioner includes an air conditioner control device, the air conditioner control device including: a memory, a processor, and an air conditioner control program stored on the memory and operable on the processor When the air conditioner control program is executed by the processor, the following steps are implemented:
    接收空调器的控制指令;Receiving a control command of the air conditioner;
    将所述控制指令转换为拼音数据;Converting the control command into pinyin data;
    运用文本编辑距离算法从预设数据库中选择与所述拼音数据相似度最高的指令;以及Using a text edit distance algorithm to select an instruction having the highest similarity to the pinyin data from a preset database;
    根据选择的指令控制空调器的运行。The operation of the air conditioner is controlled according to the selected command.
  15. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有空调器控制程序,所述空调器控制程序被处理器执行时实现如下步骤:A computer readable storage medium, wherein the computer readable storage medium stores an air conditioner control program, and when the air conditioner control program is executed by the processor, the following steps are implemented:
    接收空调器的控制指令;Receiving a control command of the air conditioner;
    将所述控制指令转换为拼音数据;Converting the control command into pinyin data;
    运用文本编辑距离算法从预设数据库中选择与所述拼音数据相似度最高的指令;以及Using a text edit distance algorithm to select an instruction having the highest similarity to the pinyin data from a preset database;
    根据选择的指令控制空调器的运行。 The operation of the air conditioner is controlled according to the selected command.
PCT/CN2018/084796 2017-09-30 2018-04-27 Method and device for controlling air conditioner, air conditioner, and computer readable storage medium WO2019062112A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710932545.X 2017-09-30
CN201710932545.XA CN107577188A (en) 2017-09-30 2017-09-30 Air-conditioner control method, device, air conditioner and computer-readable recording medium

Publications (1)

Publication Number Publication Date
WO2019062112A1 true WO2019062112A1 (en) 2019-04-04

Family

ID=61040411

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/084796 WO2019062112A1 (en) 2017-09-30 2018-04-27 Method and device for controlling air conditioner, air conditioner, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN107577188A (en)
WO (1) WO2019062112A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112634900A (en) * 2021-03-10 2021-04-09 北京世纪好未来教育科技有限公司 Method and apparatus for detecting phonetics

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040303A (en) * 2018-09-07 2018-12-18 山东交通学院 One kind being based on Internet of Things Network Communication and control device, system and method
CN109741741A (en) * 2018-12-29 2019-05-10 深圳Tcl新技术有限公司 Control method, intelligent terminal and the computer readable storage medium of intelligent terminal
CN110310634A (en) * 2019-06-19 2019-10-08 广州小鹏汽车科技有限公司 Vehicle-mounted voice method for pushing, terminal, server and supplying system
CN111329677A (en) * 2020-03-23 2020-06-26 夏艳霞 Wheelchair control method based on voice recognition

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383134A (en) * 2013-08-06 2013-11-06 四川长虹电器股份有限公司 Intelligent air-conditioning system and air-conditioning control method
CN105202706A (en) * 2015-10-19 2015-12-30 广东美的制冷设备有限公司 Air conditioner control device, system and method
CN105629747A (en) * 2015-09-18 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Voice control method and device of smart home system
CN105976818A (en) * 2016-04-26 2016-09-28 Tcl集团股份有限公司 Instruction identification processing method and apparatus thereof
CN106057199A (en) * 2016-05-31 2016-10-26 广东美的制冷设备有限公司 Control method, control device and terminal
US20170092272A1 (en) * 2015-09-10 2017-03-30 Crestron Electronics, Inc. System and method for determining recipient of spoken command in a control system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383134A (en) * 2013-08-06 2013-11-06 四川长虹电器股份有限公司 Intelligent air-conditioning system and air-conditioning control method
US20170092272A1 (en) * 2015-09-10 2017-03-30 Crestron Electronics, Inc. System and method for determining recipient of spoken command in a control system
CN105629747A (en) * 2015-09-18 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Voice control method and device of smart home system
CN105202706A (en) * 2015-10-19 2015-12-30 广东美的制冷设备有限公司 Air conditioner control device, system and method
CN105976818A (en) * 2016-04-26 2016-09-28 Tcl集团股份有限公司 Instruction identification processing method and apparatus thereof
CN106057199A (en) * 2016-05-31 2016-10-26 广东美的制冷设备有限公司 Control method, control device and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112634900A (en) * 2021-03-10 2021-04-09 北京世纪好未来教育科技有限公司 Method and apparatus for detecting phonetics

Also Published As

Publication number Publication date
CN107577188A (en) 2018-01-12

Similar Documents

Publication Publication Date Title
WO2019062112A1 (en) Method and device for controlling air conditioner, air conditioner, and computer readable storage medium
WO2020060325A1 (en) Electronic device, system, and method for using voice recognition service
WO2017143692A1 (en) Smart television and voice control method therefor
WO2018006489A1 (en) Terminal voice interaction method and device
WO2019062113A1 (en) Control method and device for home appliance, home appliance, and readable storage medium
WO2019051902A1 (en) Terminal control method, air conditioner and computer-readable storage medium
WO2017156893A1 (en) Voice control method and smart television
WO2017148112A1 (en) Fingerprint entry method, and terminal
WO2019051905A1 (en) Air conditioner control method, air conditioner, and computer readable storage medium
WO2019041851A1 (en) Home appliance after-sales consulting method, electronic device and computer-readable storage medium
WO2019085543A1 (en) Television system and television control method
WO2016058258A1 (en) Terminal remote control method and system
WO2016127458A1 (en) Improved word similarity calculation method and device based on semantic dictionary
WO2014048231A1 (en) Word processing method and apparatus for touchscreen intelligent device
WO2019051909A1 (en) Air conditioner running parameter adjusting method, air conditioner, and computer readable storage medium
WO2018126888A1 (en) Method and apparatus for configuring a shortcut for a television function
WO2017036208A1 (en) Method and system for extracting information in display interface
WO2018188342A1 (en) Method, apparatus and device for generating script file, and computer-readable storage medium
WO2019051903A1 (en) Terminal control method and apparatus, and computer-readable storage medium
WO2019091128A1 (en) Signal preview method for new access source and television set
WO2017113587A1 (en) Method and apparatus for creating wep password
WO2019051901A1 (en) Terminal control method and device, and computer readable storage medium
WO2017080195A1 (en) Audio recognition method and device
WO2018023931A1 (en) Method and system for quickly entering password of television
WO2019051900A1 (en) Smart home device control method and apparatus, and readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18862571

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08/09/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18862571

Country of ref document: EP

Kind code of ref document: A1