CN112331203A - Intelligent household equipment control method and device, electronic equipment and storage medium - Google Patents

Intelligent household equipment control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112331203A
CN112331203A CN202011229137.6A CN202011229137A CN112331203A CN 112331203 A CN112331203 A CN 112331203A CN 202011229137 A CN202011229137 A CN 202011229137A CN 112331203 A CN112331203 A CN 112331203A
Authority
CN
China
Prior art keywords
analysis result
target
executable
voice data
intelligent household
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011229137.6A
Other languages
Chinese (zh)
Inventor
何海亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Oribo Technology Co Ltd
Original Assignee
Shenzhen Oribo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Oribo Technology Co Ltd filed Critical Shenzhen Oribo Technology Co Ltd
Priority to CN202011229137.6A priority Critical patent/CN112331203A/en
Publication of CN112331203A publication Critical patent/CN112331203A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • G10L15/30Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • G10L15/32Multiple recognisers used in sequence or in parallel; Score combination systems therefor, e.g. voting systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/282Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • H04L12/2834Switching of information between an external network and a home network
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Multimedia (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application discloses a method and a device for controlling intelligent household equipment, electronic equipment and a storage medium, and relates to the field of intelligent household, wherein the method comprises the following steps: acquiring voice data; the voice data is analyzed to obtain a first executable analysis result, and meanwhile, the voice data is sent to a server, so that the server feeds back a second executable analysis result after receiving the voice data and generating the second executable analysis result; and when the time for obtaining the first executable analysis result is prior to the time for obtaining the second executable analysis result, taking the first executable analysis result as a target analysis result, and indicating the target intelligent household equipment to execute the target analysis result. When the time for acquiring the first executable analysis result is better than that of the second executable analysis result, the method takes the first executable result as a target analysis result, and can improve the speed of voice analysis to a certain extent.

Description

Intelligent household equipment control method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of smart home technologies, and in particular, to a method and an apparatus for controlling smart home devices, an electronic device, and a storage medium.
Background
Along with the progress of science and technology, smart home is also popularized in people's daily life, and more users can all select to use smart home to promote the quality of life of oneself. In order to realize the control of the smart home devices, a plurality of control devices can be simultaneously equipped in a user's home, and how to better manage the smart home devices through the control devices is a problem to be solved urgently.
Disclosure of Invention
In view of the above problems, the present application provides a method and an apparatus for controlling smart home devices, an electronic device, and a storage medium to solve the above problems.
In a first aspect, an embodiment of the present application provides a method for controlling smart home devices, where the method includes: acquiring voice data; the method comprises the steps that voice data are analyzed to obtain a first executable analysis result, and meanwhile the voice data are sent to a server, so that the server feeds back a second executable analysis result after receiving the voice data and generating the second executable analysis result; and when the time for obtaining the first executable analysis result is earlier than that for obtaining the second executable analysis result, taking the first executable analysis result as a target analysis result and indicating the target intelligent home equipment to execute the target analysis result.
Further, when the time for obtaining the first executable analysis result is not prior to the time for obtaining the second executable analysis result, the second executable analysis result is used as a target analysis result, and the target intelligent home equipment is instructed to execute the target analysis result.
Further, before instructing the target smart home device to execute the target analysis result, the method includes: determining whether the target analysis result meets a preset condition; and if the preset conditions are met, sending the target analysis result to the target intelligent household equipment.
Further, determining whether the target analysis result meets a preset condition includes: acquiring target intelligent household equipment corresponding to the target analysis result, and determining whether the target intelligent household equipment can be controlled; if so, determining that the target analysis result meets the preset condition.
Further, if not, the target analysis result is sent to the candidate control device, and the candidate control device is used for controlling the target intelligent household equipment to execute the operation corresponding to the target analysis result.
Further, if not, the server is instructed to send the second executable analysis result to the target intelligent home equipment so as to instruct the target intelligent home equipment to execute the operation corresponding to the second executable analysis result.
Further, after the target smart home device is instructed to execute the target analysis result, the method includes: and receiving an execution result sent by the target intelligent household equipment, and outputting response information based on the execution result.
In a second aspect, an embodiment of the present application provides an intelligent home device control apparatus, which includes: the device comprises a data acquisition module, a result acquisition module and a control module. And the data acquisition module is used for acquiring voice data. And the result acquisition module is used for sending the voice data to the server while analyzing the voice data to obtain a first executable analysis result, so that the server feeds back a second executable analysis result after receiving the voice data and generating the second executable analysis result. And the control module is used for taking the first executable analysis result as a target analysis result and indicating target intelligent household equipment to execute the target analysis result when the time for obtaining the first executable analysis result is earlier than the time for obtaining the second executable analysis result.
In a third aspect, the present application provides an electronic device, comprising: a memory; one or more processors coupled with the memory; wherein one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having program code stored therein, the program code being invoked by a processor to perform the method of the first aspect.
The embodiment of the application provides a method, a device, electronic equipment and a storage medium for controlling intelligent home equipment, wherein when voice data is obtained, the voice data can be analyzed to obtain a first executable analysis result, and meanwhile, the voice data is sent to a server, so that the server feeds back a second executable analysis result after receiving the voice data and generating the second executable analysis result, and when the time for obtaining the first executable analysis result is prior to the time for obtaining the second executable analysis result, the first executable result can be used as a target analysis result, and the target intelligent home equipment is instructed to execute the target analysis result. According to the intelligent home equipment control method, the voice data can be analyzed by using the local equipment, and the voice analysis rate can be improved to a certain extent.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a flowchart of a method for controlling an intelligent home device according to an embodiment of the present application.
Fig. 2 shows a flowchart of a method for controlling smart home devices according to another embodiment of the present application.
Fig. 3 shows a flowchart of step S240 in a smart home device control method according to another embodiment of the present application.
Fig. 4 shows a flowchart of a method for controlling a smart home device according to another embodiment of the present application.
Fig. 5 shows a flowchart of a method in step S340 of a method for controlling smart home devices according to another embodiment of the present application;
fig. 6 shows a block diagram of a smart home device control apparatus according to an embodiment of the present application;
fig. 7 shows a block diagram of a structure of an effect obtaining module in an intelligent home device control apparatus according to an embodiment of the present application;
fig. 8 shows a block diagram of a server for executing a smart home device control method according to an embodiment of the present application.
Fig. 9 shows a storage unit, according to an embodiment of the present application, for storing or carrying program codes for implementing a smart home device control method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The intelligent home is characterized in that a home is used as a platform, facilities related to home life are integrated by utilizing a comprehensive wiring technology, a network communication technology, a safety precaution technology, an automatic control technology and a multimedia information technology, an efficient management system of home facilities and family schedule affairs is constructed, home safety, convenience, comfortableness and artistry are improved, and an environment-friendly and energy-saving living environment is realized. Along with the popularization of intelligent house, more and more users begin to install a plurality of controlgear at home, these controlgear are in same network deployment, can control other intelligent house equipment simple swift more through these controlgear users, however among the prior art, when the user passes through controlgear input speech data, generally need upload the speech data to the server, utilize the server to analyze the speech data, can see out, utilize the server to carry out speech analysis can slow down the control to intelligent house equipment to a certain extent, influence user's use experience.
In order to solve the above problems, the inventors have made long-term research and propose a method and an apparatus for controlling smart home devices, an electronic device, and a storage medium in the embodiments of the present application. When the voice data is obtained, the voice data can be analyzed to obtain a first executable analysis result, meanwhile, the voice data is sent to the server, so that the server feeds back a second executable analysis result after receiving the voice data and generating the second executable analysis result, and when the time for obtaining the first executable analysis result is earlier than the time for obtaining the second executable analysis result, the first executable result can be used as a target analysis result, and the target intelligent home equipment is instructed to execute the target analysis result. According to the intelligent home equipment control method, the voice data can be analyzed by using the local equipment, and the voice analysis rate can be improved to a certain extent.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a method for controlling an intelligent home device according to an embodiment of the present application is shown, where the method can be seen from fig. 1 that the method includes steps S110 to S130.
Step S110: voice data is acquired.
The method for controlling the intelligent home equipment, provided by the embodiment of the application, can be applied to electronic equipment, the electronic equipment can be a gateway or control equipment such as an intelligent home control panel, voice data can be intelligent home equipment control voice input by a user based on the electronic equipment, and the voice data comprises keywords for controlling the intelligent home equipment. For example, "to want to turn on an air conditioner," where "turning on the air conditioner" is a keyword for controlling the air conditioner of the smart home device.
As one mode, a voice acquisition device may be disposed on the electronic device, and the voice acquisition device may acquire voice data input by a user. After the electronic equipment acquires the voice data through the voice acquisition device, whether the voice data is valid voice data or not can be judged firstly, if the voice data is valid voice data, voice data preprocessing is carried out on the valid voice data, namely, denoising, filtering and other processing are carried out on the voice data, and therefore target voice data are obtained. In addition, if the voice data is not valid voice data, the electronic device may send a prompt message, and instruct the user to input valid voice data again through the prompt message, in the process, the electronic device may record the number of times that the user inputs the voice data within a specified duration, and when the number of times is greater than the specified number of times, the electronic device may turn on the image acquisition device and instruct the user to input a specified action or gesture so as to control the smart home device. Therefore, in the embodiment of the application, an image capturing device may be configured on the electronic device, and the image capturing device may capture an image of a motion or a gesture input by a user.
In other embodiments, an input mode selection control may be configured on the electronic device, and when the user sets the input mode as voice input, the electronic device may collect voice data input by the user; when the user sets the input mode as image input, the electronic equipment can acquire image data input by the user; when the user sets the input mode to the integrated mode, the electronic device may simultaneously capture image data and voice data input by the user. According to the embodiment of the application, different input modes are introduced, and services can be provided for different user groups. For example, when the user is a person who has lost the language function, it is possible to select a voice input mode, and when the user is a person who has lost the language function, it is possible to select an image input mode, and the like.
Step S120: and sending the voice data to the server while analyzing the voice data to obtain a first executable analysis result, so that the server feeds back a second executable analysis result after receiving the voice data and generating the second executable analysis result.
In the embodiment of the application, after the electronic device acquires the voice data input by the user, the electronic device may analyze the voice data to obtain a first executable analysis result, specifically, the electronic device may first execute an Automatic Speech Recognition technology (ASR) on the voice data, that is, convert the voice data into a text, and then the electronic device may execute a Natural Speech Understanding operation (NLU) on the text acquired by the Automatic Speech Recognition to realize the analysis of the voice data, so as to obtain the first executable analysis result.
In addition, when the voice data is analyzed to obtain the first executable analysis result, the voice data can be sent to the server, so that the server generates a second executable analysis result when receiving the voice data and then feeds back the second executable analysis result. The server may also be referred to as a semantic analysis server, which may be a cloud server, a database server, a network access server, and the like, the electronic device may be connected to the semantic analysis server through a wired or wireless connection, and after the electronic device is connected to the semantic analysis server, the electronic device may download data from the semantic analysis server, or upload local data to the semantic analysis server, and the semantic analysis server is configured to perform speech recognition, natural speech understanding, and the like on speech data. Therefore, the server in the embodiment of the present application is a server with semantic parsing capability. In addition, the semantic analysis server has a larger analysis capability on the voice data than the electronic equipment.
By one approach, parsing the speech data to obtain the first executable parsing result may include: determining whether the electronic equipment successfully analyzes the voice data, specifically, the electronic equipment can firstly perform automatic voice recognition on the voice data to obtain a target text, then determining the character length corresponding to the target text, judging whether the character length is greater than a character length threshold value on the basis, and if the character length is less than the character length threshold value, determining that the electronic equipment successfully analyzes the voice data; and if the word length corresponding to the target text is greater than or equal to the word length threshold, determining that the electronic equipment can not successfully analyze the voice data.
As another approach, determining whether the electronic device successfully parsed the voice data may further include: and determining whether the voice data is standard voice data, and if the voice data is the standard voice data, determining that the electronic equipment successfully analyzes the voice data. The language corresponding to the standard voice data may be a designated language, that is, when the language corresponding to the target text corresponding to the voice data is a designated voice, it is determined that the electronic device successfully analyzes the voice data. For example, the speech data input by the user is in the Chinese language, which is the same as the designated language Chinese, and the electronic device successfully parses the speech data. And when the language corresponding to the target text is not the specified language, determining that the electronic equipment does not successfully analyze the voice data.
As another approach, determining whether the electronic device successfully parsed the voice data may further include: acquiring the matching degree between a target text corresponding to the voice data and a preset text, then determining whether the matching degree is greater than a matching threshold value, and if so, determining that the electronic equipment can successfully analyze the voice data; and if the voice data is smaller than or equal to the matching threshold, determining that the electronic equipment does not successfully analyze the voice data. For example, if the preset text is "turn on the air conditioner", the target text corresponding to the voice data is "i want to turn on the air conditioner", the matching threshold is 70%, and the matching degree obtained through calculation is 80%, it can be seen that the matching degree is greater than the matching threshold, and at this time, it can be determined that the electronic device successfully analyzes the voice data.
As another approach, determining whether the electronic device successfully parsed the voice data may further include: acquiring identity information of a user corresponding to voice data, determining whether the user belongs to a designated user according to the identity information, and if the user belongs to the designated user, determining that the electronic equipment successfully analyzes the voice data; if the user is determined not to be the designated user, it is determined that the electronic device is unable to successfully parse the voice data.
As another approach, determining whether the electronic device successfully parsed the voice data may further include: determining whether the electronic equipment can normally analyze the voice data, namely determining whether a voice data analysis module can normally work, and if the voice data analysis module cannot normally work, determining that the electronic equipment successfully analyzes the voice data; and if the voice data analysis module can work normally, determining that the electronic equipment successfully analyzes the voice data.
It should be noted that, the sequence of the various conditions for determining whether the electronic device successfully analyzes the voice data may be set according to actual conditions, that is, it may be determined whether the user is a designated user, then it is determined whether the voice data is standard voice data, and then it is determined whether the text length corresponding to the voice data is greater than a text length threshold; or determining whether the voice data is standard voice data, then determining whether the character length corresponding to the voice data is greater than a character length threshold, and then judging whether the user is a designated user, and the like. In addition, the above-mentioned various conditions can be combined at will, and the order is not limited, and can be selected according to the actual situation, which is not described in detail here.
In the embodiment of the application, after the electronic device successfully analyzes the voice data, a first executable analysis result can be obtained, and in the process, the electronic device can send the voice data to the server so that the server analyzes the voice data to generate a second executable analysis result. The electronic device may detect whether the time for obtaining the first executable analysis result is prior to obtaining the second executable analysis result, and if the time for obtaining the first executable analysis result is prior to obtaining the second executable analysis result, the electronic device takes the first executable analysis result as a target analysis result and instructs the target smart home device to execute the target analysis result, that is, the electronic device enters step S130.
Step S130: and when the time for obtaining the first executable analysis result is earlier than that for obtaining the second executable analysis result, taking the first executable analysis result as a target analysis result and indicating the target intelligent home equipment to execute the target analysis result.
In some embodiments, when the time for obtaining the first executable analysis result by the electronic device is earlier than the time for obtaining the second executable analysis result, the application may use the first executable analysis result as the target analysis result and instruct the target smart home device to execute the target analysis result. In addition, when the time for obtaining the first executable analysis result by the electronic equipment is not prior to the time for obtaining the second executable analysis result, the second executable analysis result is used as a target analysis result, and the target intelligent household equipment is instructed to execute the target analysis result. In summary, when the electronic device first obtains the first executable analysis result, the target smart home device is instructed to execute the first executable analysis result, and when the server first obtains the second executable analysis result, the target smart home device is instructed to execute the second executable analysis result.
As a mode, when the time for obtaining the first executable analysis result is earlier than the time for obtaining the second executable analysis result, the first executable analysis result is used as a target analysis result, and the target smart home device is instructed to execute the target analysis result. And after executing corresponding actions according to the first executable analysis result, the target intelligent household equipment returns an execution result, wherein the target intelligent household equipment can be intelligent equipment such as a television, an air conditioner, a refrigerator, a clothes hanger, a kettle, a washing machine and the like. And the electronic equipment can receive the action execution result transmitted by the target intelligent household equipment and output response information based on the execution result. For example, the analysis result sent by the control panel to the target smart home device is to turn on the air conditioner, after the air conditioner performs the turn-on operation, the execution result that the turn-on is successful is transmitted to the control panel, and at this time, the control panel outputs a response message that the air conditioner is turned on. Therefore, after the electronic device instructs the target smart home device to execute the target analysis result, the electronic device may receive the execution result sent by the target smart home device and output response information based on the execution result.
In the method for controlling the smart home device, when the voice data is obtained, the voice data may be analyzed to obtain a first executable analysis result, and at the same time, the voice data is sent to the server, so that the server feeds back a second executable analysis result after receiving the voice data and generating the second executable analysis result. According to the intelligent home equipment control method provided by the embodiment of the application, the voice data can be analyzed by using the local equipment, and the voice analysis rate can be improved to a certain extent.
Referring to fig. 2, a flowchart of a method for controlling a smart home device according to another embodiment of the present application is shown, where the method can be seen from fig. 2 that the method includes steps S210 to S250.
Step S210: voice data is acquired.
Step S220: and sending the voice data to the server while analyzing the voice data to obtain a first executable analysis result, so that the server feeds back a second executable analysis result after receiving the voice data and generating the second executable analysis result.
Step S230: and when the time for obtaining the first executable analysis result is prior to the time for obtaining the second executable analysis result, taking the first executable analysis result as a target analysis result.
Step S240: and determining whether the target analysis result meets a preset condition.
Referring to fig. 3, step S240 may include steps S241 to S244.
Step S241: and acquiring target intelligent household equipment corresponding to the target analysis result.
In some embodiments, a plurality of control devices may be included in a network, and the smart home devices controlled by different control devices may be different, for example, control device 1 is used to control hall lights and entrance lights, and control device 2 is used to control televisions and air conditioners. In addition, the smart home devices controlled by different control devices may be the same, such as the control device 3 controlling the bedroom light and the air conditioner, and the control device 4 controlling the air conditioner and the hallway light. Therefore, if the control devices are different, the intelligent home devices correspondingly controlled by the control devices may be the same or different, the voice data input by the user can be collected by the control devices in the same network within a preset range, and then the voice data can be analyzed, and the intelligent home devices correspondingly controlled by the voice data can be determined according to the obtained target analysis result. In addition, one control device can control a plurality of intelligent household devices, and data interaction can be carried out among the intelligent household devices.
Step S242: and determining whether the target intelligent household equipment can be controlled.
In some embodiments, after obtaining the target smart home device corresponding to the target analysis result, the electronic device may determine whether the electronic device can control the target smart home device, and if so, determine that the target analysis result meets a preset condition, that is, enter step S243. And if the electronic equipment cannot control the target intelligent household equipment, sending the target analysis result to the candidate control equipment, namely, entering the step S244.
Step S243: and determining that the target analysis result meets the preset condition.
Step S244: and sending the target analysis result to candidate control equipment, wherein the candidate control equipment is used for controlling the target intelligent household equipment to execute the operation corresponding to the target analysis result.
In some embodiments, when it is determined that the electronic device cannot control the target smart home device, the electronic device may send the target analysis result to a candidate control device, where the candidate control device is configured to control the target smart home device to perform an operation corresponding to the target analysis result. As a mode, each smart home device corresponds to a control device, and the control device can control the smart home device to be turned on or turned off and to have other functions, that is, the smart home device and the control device are pre-stored in the electronic device according to a certain corresponding relationship. When the electronic equipment determines that the electronic equipment cannot control the target intelligent home equipment, candidate control equipment corresponding to the target intelligent home equipment can be obtained, then a target analysis result is sent to the candidate control equipment, and the candidate control equipment is instructed to control the target intelligent home equipment according to the target analysis result. In other words, after the candidate control device receives the target analysis result sent by the electronic device, the candidate control device may send the result to the target smart home device and instruct the target smart home device to correspondingly execute the target analysis result.
Step S250: and sending the target analysis result to the target intelligent household equipment, and indicating the target intelligent household equipment to execute the target analysis result.
In the embodiment of the present application, the types of the control device and the electronic device may be the same, that is, when the electronic device is a gateway, the control device may be the gateway; when the electronic device is an intelligent home control panel, the control device may be an intelligent home control panel. In addition, the types of the control device and the electronic device may be different, that is, when the electronic device is a gateway, the control device may be an intelligent home control panel; when the electronic device is a smart home control panel, the control device may be a gateway. The type of the control device and the electronic device is not specifically limited, and may be set according to the actual situation of the user.
In the method for controlling the smart home device, when the voice data is obtained, the voice data may be analyzed to obtain a first executable analysis result, and at the same time, the voice data is sent to the server, so that the server feeds back a second executable analysis result after receiving the voice data and generating the second executable analysis result. According to the intelligent home equipment control method provided by the embodiment of the application, the voice data can be analyzed by using the local equipment, and the voice analysis rate can be improved to a certain extent. In addition, when the electronic device obtains the target analysis result, whether the electronic device can control the intelligent household equipment corresponding to the target analysis result can be determined, if not, the electronic device needs to be sent to the candidate control equipment, and the flexibility and accuracy of intelligent household equipment control can be improved to a certain extent.
Referring to fig. 4, a flowchart of a method for controlling a smart home device according to another embodiment of the present application is shown, where the method can be seen from fig. 4 that the method includes steps S310 to S350.
Step S310: voice data is acquired.
Step S320: and sending the voice data to the server while analyzing the voice data to obtain a first executable analysis result, so that the server feeds back a second executable analysis result after receiving the voice data and generating the second executable analysis result.
Step S330: and when the time for obtaining the first executable analysis result is prior to the time for obtaining the second executable analysis result, taking the first executable analysis result as a target analysis result.
Step S340: and determining whether the target analysis result meets a preset condition.
Referring to fig. 5, step S340 may include steps S341 to S344.
Step S341: and acquiring target intelligent household equipment corresponding to the target analysis result.
Step S342: and determining whether the target intelligent household equipment can be controlled.
In the embodiment of the application, when the electronic equipment acquires the target intelligent home equipment corresponding to the target analysis result, whether the electronic equipment can control the target intelligent home equipment corresponding to the target analysis result is determined, if the electronic equipment can control the target intelligent home equipment corresponding to the target analysis result, the target analysis result is determined to meet the preset condition, and the target analysis result is sent to the target intelligent home equipment. If the target intelligent home device cannot be controlled, determining whether the target intelligent home device is a designated device, wherein the designated device may be a WiFi device, and if the target intelligent home device is the designated device, instructing the server to send the second executable analysis result to the target intelligent home device to instruct the target intelligent home device to execute an operation corresponding to the second executable analysis result, that is, entering step S344.
In other embodiments, after the electronic device obtains the voice data, it may perform voice recognition on the voice data, and determine whether the smart home device to be controlled by the user is the designated device based on a voice recognition result, if the smart home device is the designated device, the electronic device does not perform an analysis operation, but sends the voice data to the server, instructs the server to analyze the voice data, instructs the server to send the second executable analysis result obtained by the server to the designated device, and instructs the designated device to perform an operation corresponding to the second executable analysis result through the server.
As another mode, after the electronic device sends the voice data to the server, it may be determined whether the server can successfully parse the voice data, and if the server can successfully parse the voice data, the electronic device sends the obtained second executable parsing result to the designated device; and if the server fails to analyze the voice data, sending failure prompt information to the electronic equipment. When the electronic equipment receives the prompt information of failed analysis sent by the server, the electronic equipment can prompt the user that the voice data is input incorrectly and please re-input the voice data.
Step S343: and determining that the target analysis result meets the preset condition.
Step S344: and the indicating server sends the second executable analysis result to the target intelligent household equipment so as to indicate the target intelligent household equipment to execute the operation corresponding to the second executable analysis result.
Step S350: and sending the target analysis result to the target intelligent household equipment, and indicating the target intelligent household equipment to execute the target analysis result.
As one mode, the electronic device may receive an execution result sent by the smart home device, and then output response information based on the execution result. Wherein, the response information can be at least one of sound, image or acousto-optic combination. For example, the voice data input by the user is 'turn on the air conditioner', the electronic device analyzes the voice data to obtain a voice analysis result, the electronic device can send the analysis result to the air conditioner, the air conditioner executes corresponding operation according to the analysis result and then feeds back the execution result to the electronic device, and at the moment, the electronic device can inform the user of the success of turning on the air conditioner in a voice prompt mode or can inform the user of the success of turning on the air conditioner in vibration, light flicker and the like.
In other embodiments, when the electronic device cannot obtain the first executable result, the application may send the voice data to the second control device, instruct the second control device to analyze the voice data to obtain a third executable result, and the second control device and the server are in a normal networking state. The third executable result may be obtained by the second control device analyzing the voice data, or obtained by the server according to the voice data sent by the second control device.
In the method for controlling the smart home device, when the voice data is obtained, the voice data may be analyzed to obtain a first executable analysis result, and at the same time, the voice data is sent to the server, so that the server feeds back a second executable analysis result after receiving the voice data and generating the second executable analysis result. According to the intelligent home equipment control method provided by the embodiment of the application, the voice data can be analyzed by using the local equipment, and the voice analysis rate can be improved to a certain extent. In addition, the method and the device control different intelligent household devices by judging whether the target analysis result meets the preset condition, and can improve the use experience of the user to a certain extent.
Referring to fig. 6, a block diagram of a structure of a smart home device control apparatus according to an embodiment of the present application is shown, where the apparatus 400 includes: a data acquisition module 410, a result acquisition module 420 and a judgment module 430.
And a data obtaining module 410, configured to obtain voice data.
The result obtaining module 420 is configured to send the voice data to a server while parsing the voice data to obtain a first executable parsing result, so that the server feeds back a second executable parsing result after receiving the voice data and generating the second executable parsing result.
Referring to fig. 7, the result obtaining module 420 further includes a condition determining unit 421 and a result sending unit 422.
A condition determining unit 421, configured to determine whether the target parsing result meets a preset condition.
Further, the condition determining unit 421 is further configured to obtain a target smart home device corresponding to the target analysis result, and determine whether the target smart home device can be controlled; if so, determining that the target analysis result meets a preset condition.
Further, the condition determining unit 421 is further configured to, if not, send the target analysis result to a candidate control device, where the candidate control device is configured to control the target smart home device to execute an operation corresponding to the target analysis result.
Further, the condition determining unit 421 is further configured to, if not, instruct the server to send the second executable parsing result to the target smart home device, so as to instruct the target smart home device to execute an operation corresponding to the second executable parsing result.
And a result sending unit 422, configured to send the target analysis result to the target smart home device if a preset condition is met.
And the control module 430 is configured to, when the time for obtaining the first executable analysis result is earlier than the time for obtaining the second executable analysis result, take the first executable analysis result as a target analysis result, and instruct the target smart home device to execute the target analysis result.
Further, the apparatus 400 may be further configured to, when the time for obtaining the first executable analysis result is not prior to obtaining the second executable analysis result, use the second executable analysis result as a target analysis result, and instruct the target smart home device to execute the target analysis result.
Further, the apparatus 400 may be further configured to receive an execution result sent by the target smart home device, and output response information based on the execution result.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling. In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
To sum up, the embodiment of the present application provides a method, an apparatus, an electronic device, and a storage medium for controlling an intelligent home device, where when acquiring voice data, the method may analyze the voice data to obtain a first executable analysis result, and at the same time, send the voice data to a server, so that the server feeds back a second executable analysis result after receiving the voice data and generating the second executable analysis result, and when the time of obtaining the first executable analysis result is earlier than the time of obtaining the second executable analysis result, the method may use the first executable result as a target analysis result, and instruct a target intelligent home device to execute the target analysis result. According to the intelligent home equipment control method, the voice data can be analyzed by using the local equipment, and the voice analysis rate can be improved to a certain extent.
An electronic device provided by the present application will be described with reference to fig. 8.
Referring to fig. 8, based on the foregoing smart home device control method, apparatus, electronic device and storage medium, an embodiment of the present application further provides another electronic device 700 capable of executing the foregoing smart home device control method. The electronic device 700 includes one or more processors 710 (only one shown) and a memory 720 coupled to each other. The memory 720 stores programs that can execute the contents of the foregoing embodiments, and the processor 710 can execute the programs stored in the memory 720, and the memory 720 includes the devices described in the foregoing embodiments.
Processor 710 may include one or more processing cores, among other things. The processor 710 interfaces with various components throughout the electronic device 700 using various interfaces and circuitry to perform various functions of the electronic device 700 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 720 and invoking data stored in the memory 720. Alternatively, the processor 710 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 710 may integrate one or more of a Central Processing Unit (CPU), a video Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 710, but may be implemented by a communication chip.
The Memory 720 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 720 may be used to store instructions, programs, code sets, or instruction sets. The memory 720 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, a video image playing function, etc.), instructions for implementing the various method embodiments described above, and the like. The data storage area may also store data created by the electronic device 700 during use (e.g., phone books, audio-visual data, chat log data), and the like.
It will be understood by those skilled in the art that the structure shown in fig. 8 is only an illustration, and is not intended to limit the structure of the electronic device. For example, electronic device 700 may also include more or fewer components than shown in FIG. 8, or have a different configuration than shown in FIG. 8.
Referring to fig. 9, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 800 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A smart home device control method is characterized by comprising the following steps:
acquiring voice data;
the voice data is analyzed to obtain a first executable analysis result, and meanwhile, the voice data is sent to a server, so that the server feeds back a second executable analysis result after receiving the voice data and generating the second executable analysis result;
and when the time for obtaining the first executable analysis result is prior to the time for obtaining the second executable analysis result, taking the first executable analysis result as a target analysis result, and indicating the target intelligent household equipment to execute the target analysis result.
2. The method of claim 1, further comprising:
and when the time for obtaining the first executable analysis result is not prior to the time for obtaining the second executable analysis result, taking the second executable analysis result as a target analysis result, and indicating the target intelligent household equipment to execute the target analysis result.
3. The method according to any one of claims 1 or 2, wherein before instructing the target smart home device to execute the target analysis result, the method includes:
determining whether the target analysis result meets a preset condition;
and if the preset conditions are met, sending the target analysis result to the target intelligent household equipment.
4. The method according to claim 3, wherein the determining whether the target parsing result meets a preset condition comprises:
acquiring target intelligent household equipment corresponding to the target analysis result, and determining whether the target intelligent household equipment can be controlled;
if so, determining that the target analysis result meets a preset condition.
5. The method of claim 4, further comprising:
and if not, sending the target analysis result to candidate control equipment, wherein the candidate control equipment is used for controlling the target intelligent household equipment to execute the operation corresponding to the target analysis result.
6. The method of claim 4, further comprising:
and if not, instructing the server to send the second executable analysis result to the target intelligent household equipment so as to instruct the target intelligent household equipment to execute the operation corresponding to the second executable analysis result.
7. The method according to claim 1, wherein after instructing the target smart home device to execute the target parsing result, the method comprises:
and receiving an execution result sent by the target intelligent household equipment, and outputting response information based on the execution result.
8. The intelligent household equipment control method and device are characterized by comprising the following steps:
the data acquisition module is used for acquiring voice data;
the result acquisition module is used for analyzing the voice data to obtain a first executable analysis result and sending the voice data to a server so that the server feeds back a second executable analysis result after receiving the voice data and generating the second executable analysis result;
and the control module is used for taking the first executable analysis result as a target analysis result and indicating target intelligent household equipment to execute the target analysis result when the time for obtaining the first executable analysis result is earlier than the time for obtaining the second executable analysis result.
9. An electronic device, comprising:
a memory;
one or more processors coupled with the memory;
one or more programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-7.
10. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 7.
CN202011229137.6A 2020-11-06 2020-11-06 Intelligent household equipment control method and device, electronic equipment and storage medium Pending CN112331203A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011229137.6A CN112331203A (en) 2020-11-06 2020-11-06 Intelligent household equipment control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011229137.6A CN112331203A (en) 2020-11-06 2020-11-06 Intelligent household equipment control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112331203A true CN112331203A (en) 2021-02-05

Family

ID=74317180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011229137.6A Pending CN112331203A (en) 2020-11-06 2020-11-06 Intelligent household equipment control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112331203A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115662430A (en) * 2022-10-28 2023-01-31 阿波罗智联(北京)科技有限公司 Input data analysis method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105978775A (en) * 2016-07-29 2016-09-28 镇江惠通电子有限公司 Speech control system and speech control method
CN106448658A (en) * 2016-11-17 2017-02-22 海信集团有限公司 Voice control method of intelligent home equipment, as well as intelligent home gateway
CN107612796A (en) * 2017-09-30 2018-01-19 深圳市艾特智能科技有限公司 Apparatus control method, intelligent domestic system, storage medium and computer equipment
WO2019205134A1 (en) * 2018-04-28 2019-10-31 深圳魔耳智能声学科技有限公司 Smart home voice control method, apparatus, device and system
CN111091819A (en) * 2018-10-08 2020-05-01 蔚来汽车有限公司 Voice recognition device and method, voice interaction system and method
WO2020103397A1 (en) * 2018-11-20 2020-05-28 深圳创维-Rgb电子有限公司 Smart home system, control method, device, and medium
CN111817936A (en) * 2020-08-12 2020-10-23 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent household equipment, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105978775A (en) * 2016-07-29 2016-09-28 镇江惠通电子有限公司 Speech control system and speech control method
CN106448658A (en) * 2016-11-17 2017-02-22 海信集团有限公司 Voice control method of intelligent home equipment, as well as intelligent home gateway
CN107612796A (en) * 2017-09-30 2018-01-19 深圳市艾特智能科技有限公司 Apparatus control method, intelligent domestic system, storage medium and computer equipment
WO2019205134A1 (en) * 2018-04-28 2019-10-31 深圳魔耳智能声学科技有限公司 Smart home voice control method, apparatus, device and system
CN111091819A (en) * 2018-10-08 2020-05-01 蔚来汽车有限公司 Voice recognition device and method, voice interaction system and method
WO2020103397A1 (en) * 2018-11-20 2020-05-28 深圳创维-Rgb电子有限公司 Smart home system, control method, device, and medium
CN111817936A (en) * 2020-08-12 2020-10-23 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent household equipment, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115662430A (en) * 2022-10-28 2023-01-31 阿波罗智联(北京)科技有限公司 Input data analysis method and device, electronic equipment and storage medium
CN115662430B (en) * 2022-10-28 2024-03-29 阿波罗智联(北京)科技有限公司 Input data analysis method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112331213A (en) Intelligent household equipment control method and device, electronic equipment and storage medium
CN107909998B (en) Voice instruction processing method and device, computer equipment and storage medium
CN112201246B (en) Intelligent control method and device based on voice, electronic equipment and storage medium
CN109429522A (en) Voice interactive method, apparatus and system
CN109473104B (en) Voice recognition network delay optimization method and device
CN109377995B (en) Method and device for controlling equipment
CN111638651A (en) Intelligent household control panel, setting method thereof, server and storage medium
CN111063353B (en) Client processing method allowing user-defined voice interactive content and user terminal
CN110992937B (en) Language off-line identification method, terminal and readable storage medium
CN108932947B (en) Voice control method and household appliance
CN106407393A (en) An information processing method and device for intelligent apparatuses
CN112908321A (en) Device control method, device, storage medium, and electronic apparatus
CN112331203A (en) Intelligent household equipment control method and device, electronic equipment and storage medium
CN114257824A (en) Live broadcast display method and device, storage medium and computer equipment
CN111210824A (en) Voice information processing method and device, electronic equipment and storage medium
CN113205809A (en) Voice wake-up method and device
CN112420043A (en) Intelligent awakening method and device based on voice, electronic equipment and storage medium
CN109658924B (en) Session message processing method and device and intelligent equipment
CN112328308A (en) Method and device for recognizing text
CN112019410B (en) Data importing method and device of intelligent household equipment, server and storage medium
CN115687645A (en) Information interaction method, device and system, electronic equipment and storage medium
CN113117340A (en) Game running method and device, storage medium and electronic equipment
CN112836127A (en) Method and device for recommending social users, storage medium and electronic equipment
CN108648751B (en) Method and device for calling family information offline
CN110543556A (en) Dialogue configuration method, storage medium and electronic equipment

Legal Events

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