CN111916077A - Voice control method and device - Google Patents

Voice control method and device Download PDF

Info

Publication number
CN111916077A
CN111916077A CN202010722879.6A CN202010722879A CN111916077A CN 111916077 A CN111916077 A CN 111916077A CN 202010722879 A CN202010722879 A CN 202010722879A CN 111916077 A CN111916077 A CN 111916077A
Authority
CN
China
Prior art keywords
switch
voice control
message
gateway
intelligent equipment
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.)
Granted
Application number
CN202010722879.6A
Other languages
Chinese (zh)
Other versions
CN111916077B (en
Inventor
王艳青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Smart Home Systems Co ltd
Qingdao Hisense Electronic Industry Holdings Co Ltd
Original Assignee
Qingdao Hisense Smart Home Systems Co ltd
Qingdao Hisense Electronic Industry Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Smart Home Systems Co ltd, Qingdao Hisense Electronic Industry Holdings Co Ltd filed Critical Qingdao Hisense Smart Home Systems Co ltd
Priority to CN202010722879.6A priority Critical patent/CN111916077B/en
Publication of CN111916077A publication Critical patent/CN111916077A/en
Application granted granted Critical
Publication of CN111916077B publication Critical patent/CN111916077B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • 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/2807Exchanging configuration information on appliance services in a home automation network
    • H04L12/2814Exchanging control software or macros for controlling appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; 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

Abstract

The invention discloses a voice control method and a device, wherein a client and an intelligent device comprising an N-way switch are both in an access state, and when a gateway receives a voice control message sent by the client, a control instruction corresponding to the voice control message is sent to the intelligent device according to a processing result of the intelligent device; the processing result comprises: when decomposing N switches into N virtual devices that correspond, the corresponding relation between intelligent equipment and N virtual devices that obtains, voice control message and control command all include: control information for controlling the on/off of the ith switch; and receiving a success message reported by the gateway intelligent equipment. Therefore, when voice control is carried out, the voice control message can be converted into the corresponding control instruction through the gateway, so that the intelligent equipment can execute corresponding processing according to the control instruction without judging whether the ith switch in the intelligent equipment supports the voice control, the problem of misinformation can be avoided, and the control accuracy is improved.

Description

Voice control method and device
Technical Field
The invention relates to the technical field of smart home, in particular to a voice control method and voice control equipment.
Background
At present, intelligent devices are widely applied to daily life, and therefore, the requirements of users on the intelligent devices are higher and higher.
In the prior art, it is described that the smart device includes three paths, where a first path of the smart device may be configured as a smart switch type, a second path of the smart device may be configured as a binding switch type, and a third path of the smart device may be configured as a scene panel switch type, and the smart switch type may be controlled by voice, and the binding switch type and the scene panel switch type may not be controlled by voice. When the intelligent device is subjected to voice control, that is, a voice control instruction is sent to the intelligent device (the voice control instruction may be "turn off the binding switch of the second path of the intelligent device"), the intelligent device receives the voice control instruction and processes the voice control instruction.
However, since the second path of the intelligent device is the binding switch type, and the binding switch type cannot be controlled by voice, for the intelligent device, the voice control instruction is not actually executed, but the intelligent device still broadcasts the voice control success, so that the problems of errors in voice playing and inconsistency with the actual situation are caused, and the accuracy is reduced.
Based on this, on the basis that the intelligent device supports multiple types, and when performing voice control on the intelligent device, how to reduce false alarms is a technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The embodiment of the invention provides a voice control method and voice control equipment, which reduce false alarm when the intelligent equipment is subjected to voice control on the basis that the intelligent equipment supports multiple types.
In a first aspect, an embodiment of the present invention provides a voice control method, which is applied to a gateway, and the voice control method includes:
when a client and intelligent equipment comprising an N-way switch are both in an access state and a voice control message sent by the client is received, sending a control instruction corresponding to the voice control message to the intelligent equipment according to a processing result of the intelligent equipment; wherein the processing result comprises: when the N-way switch is decomposed into N corresponding virtual devices, the obtained correspondence between the intelligent device and the N virtual devices, the voice control message and the control instruction both include: control information for controlling the on/off of the ith switch, wherein i is a positive integer not greater than N, and N is an integer greater than 1;
in a second aspect, an embodiment of the present invention provides a voice control method, which is applied to an intelligent device, where the intelligent device includes N switches, where N is an integer greater than 1; the voice control method comprises the following steps:
after accessing a gateway, receiving a control instruction sent by the gateway; wherein the control instruction is: when the gateway determines that both a client and the intelligent equipment are in an access state and receives a voice control message sent by the client, determining an instruction corresponding to the voice control message according to a processing result of the intelligent equipment; the processing result comprises: when the N-way switch is decomposed into N corresponding virtual devices, obtaining the corresponding relation between the intelligent device and the N virtual devices; the voice control message and the control instruction each comprise: control information for controlling the on/off of the ith switch, wherein i is a positive integer not greater than N;
and controlling the on/off of the ith switch according to the control instruction, and reporting a success message to the gateway after the control is finished.
In a third aspect, an embodiment of the present invention provides a gateway, including:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory, and executing according to the obtained program:
when a client and intelligent equipment comprising an N-way switch are both in an access state and a voice control message sent by the client is received, sending a control instruction corresponding to the voice control message to the intelligent equipment according to a processing result of the intelligent equipment; wherein the processing result comprises: when the N-way switch is decomposed into N corresponding virtual devices, the obtained correspondence between the intelligent device and the N virtual devices, the voice control message and the control instruction both include: control information for controlling the on/off of the ith switch, wherein i is a positive integer not greater than N, and N is an integer greater than 1;
receiving a success message reported by the intelligent equipment; and the success message is reported after the intelligent equipment controls the ith switch to be switched on/off according to the control instruction.
In a fourth aspect, an embodiment of the present invention provides an intelligent device, where the intelligent device includes N switches, where N is an integer greater than 1; this smart machine includes:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory, and executing according to the obtained program:
after accessing a gateway, receiving a control instruction sent by the gateway; wherein the control instruction is: when the gateway determines that both a client and the intelligent equipment are in an access state and receives a voice control message sent by the client, determining an instruction corresponding to the voice control message according to a processing result of the intelligent equipment; the processing result comprises: when the N-way switch is decomposed into N corresponding virtual devices, obtaining the corresponding relation between the intelligent device and the N virtual devices; the voice control message and the control instruction each comprise: control information for controlling the on/off of the ith switch, wherein i is a positive integer not greater than N;
and controlling the on/off of the ith switch according to the control instruction, and reporting a success message to the gateway after the control is finished.
In a fifth aspect, embodiments of the present invention provide a computer-readable non-volatile storage medium storing computer-executable instructions for causing a computer to perform the above-mentioned voice control method.
The invention has the following beneficial effects:
according to the voice control method and the voice control device, the client and the intelligent device comprising the N-way switch are both in an access state, and when the gateway receives the voice control message sent by the client, the gateway sends a control instruction corresponding to the voice control message to the intelligent device according to the processing result of the intelligent device; wherein the processing result comprises: when decomposing N switches into N virtual devices that correspond, the corresponding relation between intelligent equipment and N virtual devices that obtains, voice control message and control command all include: control information for controlling the on/off of the ith switch, wherein i is a positive integer not greater than N, and N is an integer greater than 1; and receiving a success message reported by the gateway intelligent equipment. Therefore, when voice control is carried out, the voice control message can be converted into the corresponding control instruction through the gateway, so that the intelligent equipment can execute corresponding processing according to the control instruction without judging whether the ith switch in the intelligent equipment supports the voice control, the problem of misinformation can be avoided, and the control accuracy is improved.
Drawings
Fig. 1 is a flowchart of a voice control method provided in an embodiment of the present invention;
FIG. 2 is a flow chart of another speech control method provided in an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a gateway provided in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an intelligent device provided in an embodiment of the present invention;
fig. 5 is an interaction diagram of a configuration process of a switch type of a jth switch in an intelligent device according to an embodiment of the present invention;
fig. 6 is an interaction diagram of a voice control process provided in an embodiment of the present invention.
Detailed Description
The following describes in detail a specific implementation of a voice control method and apparatus according to an embodiment of the present invention with reference to the accompanying drawings. It should be noted that the described embodiments are only a part of the embodiments of the present invention, and not all 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 invention.
The voice control method provided by the embodiment of the present invention is applied to a gateway, and as shown in fig. 1, the voice control method includes:
s101, when a client and intelligent equipment comprising an N-way switch are both in an access state and receive a voice control message sent by the client, sending a control instruction corresponding to the voice control message to the intelligent equipment according to a processing result of the intelligent equipment; wherein the processing result comprises: when decomposing N switches into N virtual devices that correspond, the corresponding relation between intelligent equipment and N virtual devices that obtains, voice control message and control command all include: control information for controlling the on/off of the ith switch, wherein i is a positive integer not greater than N, and N is an integer greater than 1;
for example, N-4 and i-3 are taken as an example, the smart device may include a 4-way switch, and the voice control instruction input by the user may be: and controlling a 3 rd switch of the intelligent equipment to be off control information. Of course, i may also be 1, 2 or 4, and is not limited herein as long as the value of i is not greater than the value of N.
And the value of N can be set according to actual conditions, for example, N can also be set to 5 or 6, etc., without limitation, thereby improving the flexibility of design to meet the requirements of different scenes.
In addition, the client and the intelligent device including the N-way switch are both in an access state, which can be understood as follows: the client and the intelligent device are respectively connected to the gateway, so that interaction among the client, the gateway and the intelligent device is realized.
S102, receiving a success message reported by the intelligent equipment; and the success message is reported after the intelligent equipment controls the ith switch to be switched on/off according to the control instruction.
Therefore, when voice control is carried out, the voice control message can be converted into the corresponding control instruction through the gateway, so that the intelligent equipment can execute corresponding processing according to the control instruction without judging whether the ith switch in the intelligent equipment supports the voice control, the problem of misinformation can be avoided, and the control accuracy is improved.
Optionally, in this embodiment of the present invention, the success message includes: controlling the on/off state information of the ith switch;
further comprising:
extracting the state information of the ith switch after the ith switch is switched on/off from the success message;
and reporting the extracted state information to a cloud server.
For a specific process of extracting the state information after the ith switch is turned on/off from the success message, reference may be made to the related art, and no limitation is made herein.
And after the gateway reports the extracted state information to the cloud server, both the cloud server and the gateway can record the state information.
Therefore, the cloud server records and stores the on/off state information of each switch of the intelligent equipment, and the monitoring and the adjustment of the intelligent equipment by subsequent users are facilitated.
Optionally, in the embodiment of the present invention, decomposing the N-way switch into the corresponding N virtual devices specifically includes:
when the intelligent equipment is in an access state, determining configuration information of each path of switch;
determining virtual equipment corresponding to each path of switch according to the configuration information of each path of switch;
and registering the determined virtual equipment in the cloud server.
For example, taking N-3 as an example, the smart device may include a 3-way switch.
If the intelligent device needs to be connected with the gateway, the intelligent device firstly sends a connection request to the gateway, and after receiving the connection request sent by the intelligent device, the gateway can send a message of allowing connection to the intelligent device.
When the gateway receives the connection request sent by the intelligent device, the gateway can actually determine the configuration information of the intelligent device including the 3-way switch and the switches of the various ways because the connection request can carry the information of the intelligent device including the 3-way switch, the configuration information of the switches of the various ways, and the like, and then the gateway can determine the information of the virtual device corresponding to the switches of the various ways according to the configuration information of the switches of the various ways, namely the gateway determines the virtual device corresponding to the switches of the various ways.
And the gateway can register the determined virtual devices in the cloud server to realize the binding of the virtual devices and the cloud server, so that the information of the virtual devices can be stored and recorded in the cloud server, and the subsequent query is facilitated.
Furthermore, the gateway may generate ID information of each virtual device in order to distinguish each virtual device so as not to be confused.
Therefore, based on the method, the virtual devices corresponding to the switches can be simply and quickly determined, the follow-up cloud server can record the information of the virtual devices, the corresponding relation between the intelligent device and the virtual devices can be determined, and the follow-up voice control is facilitated.
It should be noted that, when the smart device exits from the network (i.e., the smart device exits from the gateway and is disconnected from the gateway), the smart device and the included virtual devices corresponding to the switches all need to be unbundled from the cloud server.
The reason for the network quit of the intelligent device can include:
1. the user triggers the intelligent equipment to quit the network;
optionally, an exit key or a button may be provided on the smart device, or the smart device includes a display, a virtual key corresponding to the exit function is displayed on the display, and the exit key is clicked by a user, that is, the exit function is triggered, so that the smart device exits the network.
2. Enabling the intelligent equipment to quit the network through the operation of the client by the user;
optionally, when both the smart device and the client are connected to the gateway, the gateway may send information of the smart device to the client, so that a display interface of the client may display the information of the smart device, and at this time, the user may quit the smart device through an operation on the display interface of the client.
Of course, the reason for the intelligent device to quit the network may include other reasons besides the two mentioned above, and is not limited herein, as long as the intelligent device quits the network, the intelligent device and the included virtual devices corresponding to the switches all need to be unbundled from the cloud server.
Specifically, the executor of the action that the virtual device unbinds from the cloud server may be a gateway, and the unbinding from the cloud server may be realized through the gateway.
And, the process of unbinding can be understood as: and deleting the registration information of the intelligent equipment and the virtual equipment corresponding to each path of switch in the cloud server.
Optionally, in an embodiment of the present invention, the switch types of the N-way switches are configured to be at least partially different;
then, the configuration process of the switch type of the N-way switch is specifically implemented by the following method:
when the client and the intelligent equipment are both in an access state, receiving a configuration message sent by the client; the configuration message includes: the jth switch needs to be configured, and j is a positive integer not greater than N;
if the current switch type of the jth switch is different from the switch type included in the configuration message, sending a configuration instruction corresponding to the configuration message to the intelligent equipment according to the corresponding relation;
removing the connection relation between the virtual equipment corresponding to the jth path of switch and the cloud server;
when a configuration success message reported by the intelligent equipment is received, reestablishing the connection relation between the virtual equipment corresponding to the jth path switch and the cloud server; wherein, the configuration success message is: and the intelligent equipment reports the switch type of the jth switch as the switch type in the configuration instruction.
When the fact that the current switch type of the jth switch is the same as the switch type included in the configuration message is determined, the gateway does not send a configuration instruction to the intelligent device, or the gateway can send a holding instruction to the intelligent device, wherein the holding instruction is used for indicating that the intelligent device can currently hold the current switch type of the jth switch, so that the switch type of the jth switch of the intelligent device can be configured, the configuration process can be simplified, and the configuration efficiency is improved.
Therefore, the method can realize the configuration of the switch type of the intelligent equipment so as to be convenient for the subsequent control of the configured switch type.
Optionally, in the embodiment of the present invention, when configuring the switches, in a display interface of the client, N-way switches included in the smart device and configurable switch types (for example, but not limited to, a smart switch type, a binding switch type, a scene panel switch type, and the like) may be displayed, and when a user wants to configure which way of switches (e.g., 2 nd-way switch), which way of switches (e.g., 2 nd-way switch) and switch types (e.g., smart switch types) that need to be configured may be selected, so as to generate a configuration message including the 2 nd-way switch and the smart switch types, so that the switch types of the 2 nd-way switch in the smart device are configured as the smart switch types through the gateway.
Wherein the intelligent switch type can be understood as:
the intelligent switch is provided with a chip on the basis of a common switch, and the intelligent switch can be connected with a client (such as but not limited to a mobile phone) through a wireless network, so that a user can control the intelligent switch through the mobile phone.
For example, each intelligent switch and the client in the user's home are connected to the wireless network, and when the user is in a bedroom for rest, the user finds that the intelligent switch in the living room is not turned off, and at the moment, the user can control the intelligent switch in the living room through the client so as to turn off the intelligent switch in the living room.
The binding switch type can be understood as:
for example, in a villa, a switch a for controlling the on and off of a lamp in a first floor living room is arranged on the first floor, and a switch B is arranged on the second floor, and if it is assumed that both the switch a and the switch B can control the on and off of the lamp in the first floor living room, at this time, the switch a and the switch B can be considered to be connected and bound, so the switch B can be called as a binding switch; then, if the light in the first floor living room is controlled, the light in the first floor living room can be controlled by the binding switch (i.e., switch B) or switch a.
The scene panel switch type can be understood as:
the scene panel switch may include a plurality of keys, where each key may represent a function and different keys represent different functions. That is, the scene panel switch type is to integrate a plurality of keys corresponding to functions into one hardware.
For example, the scene panel switch may include 4 keys, a first key, a second key, a third key, and a fourth key. The first key is used for controlling the kitchen lamp to be turned on, the second key is used for controlling the kitchen lamp to be turned off, the third key is used for controlling the hall lamp to be turned on, and the fourth key is used for controlling the kitchen lamp to be turned off.
Similarly, when performing voice control, N switches included in the smart device may be displayed in a display interface of the client, and when a user wants to perform voice control on which switch (e.g., the 3 rd switch), the user may select which switch (e.g., the 3 rd switch) and a result (e.g., a state in which the control is on) after the voice control is needed, so as to generate a voice control message including the 3 rd switch and the state in which the control is on, so as to control the 3 rd switch in the smart device to be in the on state through the gateway.
Based on the same inventive concept, the voice control method provided by the embodiment of the invention is applied to intelligent equipment, wherein the intelligent equipment comprises N paths of switches, and N is an integer greater than 1; as shown in fig. 2, the voice control method includes:
s201, after accessing a gateway, receiving a control instruction sent by the gateway; wherein, the control command is: when the gateway determines that the client and the intelligent equipment are both in an access state and receives a voice control message sent by the client, determining an instruction corresponding to the voice control message according to a processing result of the intelligent equipment; the processing result comprises: when the N-way switch is decomposed into N corresponding virtual devices, the corresponding relation between the intelligent device and the N virtual devices is obtained; the voice control message and the control instruction comprise: control information for controlling the on/off of the ith switch, wherein i is a positive integer not greater than N;
s202, controlling the on/off of the ith switch according to the control instruction, and reporting a success message to the gateway after the control is finished.
Therefore, when the intelligent device is subjected to voice control, the voice control message can be converted into the corresponding control instruction through the gateway, so that the intelligent device can execute corresponding processing according to the control instruction without judging whether the ith switch in the intelligent device supports voice control, the problem of misinformation can be avoided, and the control accuracy is improved.
Optionally, in an embodiment of the present invention, the switch types of the N-way switches are configured to be at least partially different;
the configuration process of the switch type of the N-path switch is realized by adopting the following specific method:
receiving a configuration instruction sent by a gateway; wherein, the configuration instruction is as follows: when the client and the intelligent device are both in an access state, receiving a configuration message sent by the client, wherein the configuration message comprises: the jth switch needs to be configured, and j is a positive integer not greater than N; if the current switch type of the jth switch is different from the switch type included in the configuration message, determining an instruction corresponding to the configuration message according to the corresponding relation;
and configuring the switch type of the jth path switch as the switch type in the configuration instruction, and reporting a configuration success message to the gateway.
Therefore, the method can realize the configuration of the switch type of the intelligent equipment so as to be convenient for the subsequent control of the configured switch type.
Based on the same inventive concept, embodiments of the present invention provide a gateway, and an implementation principle of the gateway is similar to that of the foregoing voice control method, and reference may be specifically made to the implementation manner of the foregoing voice control method, and repeated details are not repeated.
Specifically, as shown in fig. 3, the gateway provided in the embodiment of the present invention includes:
a memory 301 for storing program instructions;
a processor 302, configured to call the program instructions stored in the memory 301, and execute, according to the obtained program:
when the client and the intelligent equipment comprising the N-way switch are both in an access state and receive the voice control message sent by the client, sending a control instruction corresponding to the voice control message to the intelligent equipment according to a processing result of the intelligent equipment; wherein the processing result comprises: when decomposing N switches into N virtual devices that correspond, the corresponding relation between intelligent equipment and N virtual devices that obtains, voice control message and control command all include: control information for controlling the on/off of the ith switch, wherein i is a positive integer not greater than N, and N is an integer greater than 1;
receiving a success message reported by the intelligent equipment; and the success message is reported after the intelligent equipment controls the ith switch to be switched on/off according to the control instruction.
Optionally, in this embodiment of the present invention, the success message includes: controlling the on/off state information of the ith switch;
the processor 302 is further configured to:
extracting the state information of the ith switch after the ith switch is switched on/off from the success message;
and reporting the extracted state information to a cloud server.
Optionally, in an embodiment of the present invention, the processor 302 is specifically configured to:
when the intelligent equipment is in an access state, determining configuration information of each path of switch;
determining virtual equipment corresponding to each path of switch according to the configuration information of each path of switch;
and registering the determined virtual equipment in the cloud server.
Optionally, in an embodiment of the present invention, the switch types of the N-way switches are configured to be at least partially different;
optionally, in an embodiment of the present invention, the processor 302 is further configured to:
and configuring the switch type of each path of switch.
Optionally, in an embodiment of the present invention, the processor 302 is specifically configured to:
when the client and the intelligent equipment are both in an access state, receiving a configuration message sent by the client; the configuration message includes: the jth switch needs to be configured, and j is a positive integer not greater than N;
if the current switch type of the jth switch is different from the switch type included in the configuration message, sending a configuration instruction corresponding to the configuration message to the intelligent equipment according to the corresponding relation;
removing the connection relation between the virtual equipment corresponding to the jth path of switch and the cloud server;
when a configuration success message reported by the intelligent equipment is received, reestablishing the connection relation between the virtual equipment corresponding to the jth path switch and the cloud server; wherein, the configuration success message is: and the intelligent equipment reports the switch type of the jth switch as the switch type in the configuration instruction.
Based on the same inventive concept, embodiments of the present invention provide an intelligent device, an implementation principle of the intelligent device is similar to that of the foregoing voice control method, and reference may be made to the foregoing implementation manner of the voice control method specifically, and repeated details are not repeated.
Specifically, the intelligent device provided by the embodiment of the present invention includes N switches, where N is an integer greater than 1; as shown in fig. 4, the smart device includes:
a memory 401 for storing program instructions;
a processor 402 for calling the program instructions stored in the memory 401, and executing:
after accessing the gateway, receiving a control instruction sent by the gateway; wherein, the control command is: when the gateway determines that the client and the intelligent equipment are both in an access state and receives a voice control message sent by the client, determining an instruction corresponding to the voice control message according to a processing result of the intelligent equipment; the processing result comprises: when the N-way switch is decomposed into N corresponding virtual devices, the corresponding relation between the intelligent device and the N virtual devices is obtained; the voice control message and the control instruction comprise: control information for controlling the on/off of the ith switch, wherein i is a positive integer not greater than N;
and controlling the on/off of the ith switch according to the control instruction, and reporting a success message to the gateway after the control is finished.
Optionally, in an embodiment of the present invention, the switch types of the N-way switches are configured to be at least partially different;
optionally, in this embodiment of the present invention, the processor 402 is further configured to:
and configuring the switch type of each path of switch.
Optionally, in this embodiment of the present invention, the processor 402 is specifically configured to:
receiving a configuration instruction sent by a gateway; wherein, the configuration instruction is as follows: when the client and the intelligent device are both in an access state, receiving a configuration message sent by the client, wherein the configuration message comprises: the jth switch needs to be configured, and j is a positive integer not greater than N; if the current switch type of the jth switch is different from the switch type included in the configuration message, determining an instruction corresponding to the configuration message according to the corresponding relation;
and configuring the switch type of the jth path switch as the switch type in the configuration instruction, and reporting a configuration success message to the gateway.
The following describes a process of configuring switch types of switches of smart devices in an embodiment of the present invention with a specific embodiment.
The first embodiment is as follows: as shown in connection with fig. 5.
S501, the client and the intelligent device are respectively accessed to a gateway;
s502, the client sends a configuration message to the gateway; the configuration message comprises the switch type of the jth switch which needs to be configured;
s503, the gateway judges whether the current switch type of the jth switch is the same as the switch type included in the configuration message; if not, executing S504; if yes, executing S507;
s504, the gateway sends a configuration instruction corresponding to the configuration message to the intelligent equipment according to the corresponding relation between each virtual equipment and the intelligent equipment; and removing the connection relation between the virtual equipment corresponding to the jth switch and the cloud server;
s505, when the intelligent device receives the configuration instruction, configuring the switch type of the jth switch into the switch type in the configuration instruction, and reporting a configuration success message to the gateway;
s506, when the gateway receives the configuration success message reported by the intelligent device, reestablishing the connection relationship between the virtual device corresponding to the jth switch and the cloud server; ending the flow;
s507, the gateway sends a holding instruction corresponding to the configuration message to the intelligent equipment according to the corresponding relation between each virtual equipment and the intelligent equipment;
and S508, the intelligent equipment maintains the switch type of the jth switch.
In this regard, the configuration process is described by taking the jth way switch as an example, and in an actual situation, the configuration processes of other way switches are all configured by using the above process, which can be specifically referred to as the above process, and detailed description is not given here.
The following describes a speech control process provided by an embodiment of the present invention with a specific embodiment.
Example two: the control of the i-th switch to the on state will be described with reference to fig. 6 as an example.
S601, the client and the intelligent device are respectively accessed to a gateway;
s602, the client sends a voice control message to the gateway, wherein the voice control message comprises control information for controlling the ith switch to be in an on state;
s603, the gateway converts the voice control information into corresponding control instructions according to the corresponding relation between each virtual device and the intelligent device, and sends the control instructions to the intelligent device;
s604, after the intelligent equipment controls the ith switch to be in an on state, a success message is sent to the gateway;
s605, the gateway extracts the state information of the ith switch in the on state from the success message, and reports the extracted state information to the cloud server;
and S606, the gateway and the cloud server record and store the state information.
Based on the same inventive concept, the embodiment of the present invention provides a computer-readable non-volatile storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are used for enabling a computer to execute the above-mentioned voice control method.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A voice control method is applied to a gateway, and is characterized by comprising the following steps:
when a client and intelligent equipment comprising an N-way switch are both in an access state and a voice control message sent by the client is received, sending a control instruction corresponding to the voice control message to the intelligent equipment according to a processing result of the intelligent equipment; wherein the processing result comprises: when the N-way switch is decomposed into N corresponding virtual devices, the obtained correspondence between the intelligent device and the N virtual devices, the voice control message and the control instruction both include: control information for controlling the on/off of the ith switch, wherein i is a positive integer not greater than N, and N is an integer greater than 1;
receiving a success message reported by the intelligent equipment; and the success message is reported after the intelligent equipment controls the ith switch to be switched on/off according to the control instruction.
2. The voice control method of claim 1, wherein the success message comprises: controlling the state information of the ith switch after the ith switch is switched on/off;
further comprising:
extracting the state information of the ith switch after the ith switch is switched on/off from the success message;
and reporting the extracted state information to a cloud server.
3. The voice control method according to claim 1, wherein decomposing the N-way switch into the corresponding N virtual devices specifically includes:
when the intelligent equipment is in the access state, determining configuration information of each path of switch;
determining virtual equipment corresponding to each path of switch according to the configuration information of each path of switch;
and performing registration processing on each determined virtual device in a cloud server.
4. The voice control method of claim 1, wherein switch types of the N-way switches are configured to be at least partially different;
the configuration process of the switch type of the N-path switch is specifically realized by adopting the following mode:
when the client and the intelligent device are both in the access state, receiving a configuration message sent by the client; the configuration message includes: the jth switch needs to be configured, and j is a positive integer not greater than N;
if the current switch type of the jth switch is different from the switch type included in the configuration message, sending a configuration instruction corresponding to the configuration message to the intelligent device according to the corresponding relation;
removing the connection relation between the virtual equipment corresponding to the jth path of switch and the cloud server;
when a configuration success message reported by the intelligent equipment is received, reestablishing the connection relationship between the virtual equipment corresponding to the jth path switch and the cloud server; wherein the configuration success message is: and the intelligent equipment reports the switch type of the jth switch as the switch type in the configuration instruction.
5. A voice control method is characterized by being applied to intelligent equipment, wherein the intelligent equipment comprises N switches, and N is an integer greater than 1; the voice control method comprises the following steps:
after accessing a gateway, receiving a control instruction sent by the gateway; wherein the control instruction is: when the gateway determines that both a client and the intelligent equipment are in an access state and receives a voice control message sent by the client, determining an instruction corresponding to the voice control message according to a processing result of the intelligent equipment; the processing result comprises: when the N-way switch is decomposed into N corresponding virtual devices, obtaining the corresponding relation between the intelligent device and the N virtual devices; the voice control message and the control instruction each comprise: control information for controlling the on/off of the ith switch, wherein i is a positive integer not greater than N;
and controlling the on/off of the ith switch according to the control instruction, and reporting a success message to the gateway after the control is finished.
6. The voice control method of claim 5, wherein the switch types of the N-way switches are configured to be at least partially different;
the configuration process of the switch type of the N-path switch is specifically realized by adopting the following mode:
receiving a configuration instruction sent by the gateway; wherein the configuration instruction is: when the client and the intelligent device are both in the access state, receiving a configuration message sent by the client, wherein the configuration message comprises: the jth switch needs to be configured, and j is a positive integer not greater than N; if the current switch type of the jth switch is different from the switch type included in the configuration message, determining an instruction corresponding to the configuration message according to the corresponding relation;
and configuring the switch type of the jth path switch as the switch type in the configuration instruction, and reporting a configuration success message to the gateway.
7. A gateway, comprising:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory, and executing according to the obtained program:
when a client and intelligent equipment comprising an N-way switch are both in an access state and a voice control message sent by the client is received, sending a control instruction corresponding to the voice control message to the intelligent equipment according to a processing result of the intelligent equipment; wherein the processing result comprises: when the N-way switch is decomposed into N corresponding virtual devices, the obtained correspondence between the intelligent device and the N virtual devices, the voice control message and the control instruction both include: control information for controlling the on/off of the ith switch, wherein i is a positive integer not greater than N, and N is an integer greater than 1;
receiving a success message reported by the intelligent equipment; and the success message is reported after the intelligent equipment controls the ith switch to be switched on/off according to the control instruction.
8. The gateway of claim 7, wherein the processor is specifically configured to:
when the intelligent equipment is in the access state, determining configuration information of each path of switch;
determining virtual equipment corresponding to each path of switch according to the configuration information of each path of switch;
and performing registration processing on each determined virtual device in a cloud server.
9. The intelligent equipment is characterized by comprising N paths of switches, wherein N is an integer greater than 1; this smart machine includes:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory, and executing according to the obtained program:
after accessing a gateway, receiving a control instruction sent by the gateway; wherein the control instruction is: when the gateway determines that both a client and the intelligent equipment are in an access state and receives a voice control message sent by the client, determining an instruction corresponding to the voice control message according to a processing result of the intelligent equipment; the processing result comprises: when the N-way switch is decomposed into N corresponding virtual devices, obtaining the corresponding relation between the intelligent device and the N virtual devices; the voice control message and the control instruction each comprise: control information for controlling the on/off of the ith switch, wherein i is a positive integer not greater than N;
and controlling the on/off of the ith switch according to the control instruction, and reporting a success message to the gateway after the control is finished.
10. A computer-readable non-volatile storage medium having computer-executable instructions stored thereon for causing a computer to perform the voice-controlled method of any one of claims 1-6.
CN202010722879.6A 2020-07-24 2020-07-24 Voice control method and equipment Active CN111916077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010722879.6A CN111916077B (en) 2020-07-24 2020-07-24 Voice control method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010722879.6A CN111916077B (en) 2020-07-24 2020-07-24 Voice control method and equipment

Publications (2)

Publication Number Publication Date
CN111916077A true CN111916077A (en) 2020-11-10
CN111916077B CN111916077B (en) 2024-03-05

Family

ID=73280755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010722879.6A Active CN111916077B (en) 2020-07-24 2020-07-24 Voice control method and equipment

Country Status (1)

Country Link
CN (1) CN111916077B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558492A (en) * 2020-12-03 2021-03-26 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent multi-way switch, server and storage medium
CN113611332A (en) * 2021-10-09 2021-11-05 聊城中赛电子科技有限公司 Intelligent control switching power supply method and device based on neural network

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6266340B1 (en) * 1998-04-03 2001-07-24 Vertical Networks, Inc. Systems and methods for multiple voice data communication which includes interface cards including configurable clocks that are dynamically coupled to a TDS bus
JP2003255987A (en) * 2002-03-04 2003-09-10 Toshiba Corp Method, unit, and program for control over equipment using speech recognition
CN101123428A (en) * 2006-08-09 2008-02-13 马昊 Intelligent electronic remote control switch for voice recognition capable of dynamic setting
CN102902253A (en) * 2012-10-09 2013-01-30 鸿富锦精密工业(深圳)有限公司 Intelligent switch with voice control function and intelligent control system
CN103166814A (en) * 2011-12-16 2013-06-19 南京国之鑫科技有限公司 Smart home remote control system based on Internet of things
CN103312424A (en) * 2013-07-02 2013-09-18 山东科技大学 Control method and system for multiple switches in automatic testing system
WO2014122943A1 (en) * 2013-02-05 2014-08-14 三菱電機株式会社 Home-use power command device and home-use power control system
CN105824254A (en) * 2016-03-03 2016-08-03 谢奇 Controllable switching device virtualization technology and realization method thereof
CN106448658A (en) * 2016-11-17 2017-02-22 海信集团有限公司 Voice control method of intelligent home equipment, as well as intelligent home gateway
CN106683674A (en) * 2017-01-16 2017-05-17 西安电子科技大学 System and method for controlling intelligent home by aid of voice
CN106713113A (en) * 2015-11-17 2017-05-24 北京北信源软件股份有限公司 Intelligent household control apparatus based on instant messaging, and personalized interaction method
CN107065655A (en) * 2017-03-14 2017-08-18 深圳市亿道数码技术有限公司 A kind of intelligent multichannel on-off control system and control method based on Lora technologies
CN206638995U (en) * 2017-03-14 2017-11-14 深圳市亿道数码技术有限公司 A kind of intelligent multichannel on-off control system based on Lora technologies
CN107436556A (en) * 2016-05-25 2017-12-05 北京龙凌智能科技有限责任公司上海分公司 A kind of intelligent switch and control method
KR20180052876A (en) * 2016-11-11 2018-05-21 윤홍식 A Home Network System Using Voice Recognition And A Method thereof
CN109712625A (en) * 2019-02-18 2019-05-03 珠海格力电器股份有限公司 Smart machine control method based on gateway, control system, intelligent gateway
CN110687811A (en) * 2019-10-25 2020-01-14 青岛海信智慧家居系统股份有限公司 Method and device for scene configuration of smart home offline voice equipment
CN111028839A (en) * 2019-12-20 2020-04-17 苏州思必驰信息科技有限公司 Smart home control method and device and electronic equipment

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6266340B1 (en) * 1998-04-03 2001-07-24 Vertical Networks, Inc. Systems and methods for multiple voice data communication which includes interface cards including configurable clocks that are dynamically coupled to a TDS bus
JP2003255987A (en) * 2002-03-04 2003-09-10 Toshiba Corp Method, unit, and program for control over equipment using speech recognition
CN101123428A (en) * 2006-08-09 2008-02-13 马昊 Intelligent electronic remote control switch for voice recognition capable of dynamic setting
CN103166814A (en) * 2011-12-16 2013-06-19 南京国之鑫科技有限公司 Smart home remote control system based on Internet of things
CN102902253A (en) * 2012-10-09 2013-01-30 鸿富锦精密工业(深圳)有限公司 Intelligent switch with voice control function and intelligent control system
WO2014122943A1 (en) * 2013-02-05 2014-08-14 三菱電機株式会社 Home-use power command device and home-use power control system
CN103312424A (en) * 2013-07-02 2013-09-18 山东科技大学 Control method and system for multiple switches in automatic testing system
CN106713113A (en) * 2015-11-17 2017-05-24 北京北信源软件股份有限公司 Intelligent household control apparatus based on instant messaging, and personalized interaction method
CN105824254A (en) * 2016-03-03 2016-08-03 谢奇 Controllable switching device virtualization technology and realization method thereof
CN107436556A (en) * 2016-05-25 2017-12-05 北京龙凌智能科技有限责任公司上海分公司 A kind of intelligent switch and control method
KR20180052876A (en) * 2016-11-11 2018-05-21 윤홍식 A Home Network System Using Voice Recognition And A Method thereof
CN106448658A (en) * 2016-11-17 2017-02-22 海信集团有限公司 Voice control method of intelligent home equipment, as well as intelligent home gateway
CN106683674A (en) * 2017-01-16 2017-05-17 西安电子科技大学 System and method for controlling intelligent home by aid of voice
CN206638995U (en) * 2017-03-14 2017-11-14 深圳市亿道数码技术有限公司 A kind of intelligent multichannel on-off control system based on Lora technologies
CN107065655A (en) * 2017-03-14 2017-08-18 深圳市亿道数码技术有限公司 A kind of intelligent multichannel on-off control system and control method based on Lora technologies
CN109712625A (en) * 2019-02-18 2019-05-03 珠海格力电器股份有限公司 Smart machine control method based on gateway, control system, intelligent gateway
CN110687811A (en) * 2019-10-25 2020-01-14 青岛海信智慧家居系统股份有限公司 Method and device for scene configuration of smart home offline voice equipment
CN111028839A (en) * 2019-12-20 2020-04-17 苏州思必驰信息科技有限公司 Smart home control method and device and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558492A (en) * 2020-12-03 2021-03-26 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent multi-way switch, server and storage medium
CN113611332A (en) * 2021-10-09 2021-11-05 聊城中赛电子科技有限公司 Intelligent control switching power supply method and device based on neural network
CN113611332B (en) * 2021-10-09 2022-01-18 聊城中赛电子科技有限公司 Intelligent control switching power supply method and device based on neural network

Also Published As

Publication number Publication date
CN111916077B (en) 2024-03-05

Similar Documents

Publication Publication Date Title
CN104808501B (en) Intelligent scene delet method and device
CN103686912B (en) For changing the electronic device and method of network connection
CN107370772A (en) Account login method, device and computer-readable recording medium
CN110459221A (en) The method and apparatus of more equipment collaboration interactive voices
CN104932455A (en) Intelligent device grouping method and device of intelligent household system
CN105278986A (en) Control method and apparatus of electronic device
CN105372998A (en) A method and a device for binding of intelligent apparatuses
CN110309002A (en) Message treatment method, device, electronic equipment and storage medium
CN109658927A (en) Wake-up processing method, device and the management equipment of smart machine
CN111916077A (en) Voice control method and device
CN107346115B (en) Control method and control terminal of intelligent device and intelligent device
CN105162982A (en) Answering extension function display method and device
CN105488348A (en) Method, device and system for providing health data
CN109067626A (en) Report the method, apparatus and storage medium of information
CN106941572A (en) Incoming call reminding method and device
CN108596604A (en) Communication means, device and electronic equipment
CN107105517A (en) Method for connecting network and device
CN110910541A (en) Access control method, system, network device and computer readable storage medium
CN107463419A (en) Using method for restarting, device and computer-readable recording medium
CN106716419A (en) Method for outputting searching results, device and electronic device
CN107018182A (en) The fault-tolerance processing method and device of load balancing
CN105680914A (en) Playback device Bluetooth module control method and device, and audio and video playing system
CN106357504A (en) User list cleaning method and device thereof
CN105657199A (en) Method and device for establishing talking connection and switching equipment
KR20170014772A (en) Automatic response system

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
GR01 Patent grant
GR01 Patent grant