Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter; nor is it intended to be used as an aid in determining or limiting the scope of the claimed subject matter.
According to the universal intelligent device voice control method and system based on the home gateway device, the intelligent devices of various heterogeneous manufacturers are controlled through universal voice commands in a home wifi access environment by designing an application layer interface protocol in the gateway device. No matter how the inside of each intelligent device is controlled, as long as the interface and the protocol defined in the invention are supported, perfect unified control can be realized, no additional function development and configuration are needed, and free expansion of the device is really realized.
In addition, traditional smart machine carries out control management through the management and control platform of each producer, and data have very big risk in transmission and storage, probably by malicious operation or steal. The invention carries out intensive management and control on the local gateway, and the data and the instruction effectively control the security risk of the data in the storage and control processes in an encryption transmission mode, thereby having great advantages in security.
The invention discloses a gateway-based general intelligent device voice control method, which comprises the steps of networking/networking of intelligent devices, voice acquisition and analysis and instruction control.
The networking/networking of the intelligent equipment comprises the following steps:
the new intelligent device is connected to the gateway through WiFi;
initializing new intelligent equipment, including setting equipment ID and cluster ID of the equipment cluster;
starting triggering network access operation: if the cluster ID consistent with the new intelligent equipment exists in the network environment where the gateway is located, the equipment ID of the new intelligent equipment is stored in an equipment cluster management list corresponding to the cluster ID; and
and if no cluster ID consistent with the new intelligent equipment exists in the network environment where the gateway is located, establishing a new equipment cluster, and storing the equipment ID of the new intelligent equipment into the new equipment cluster management list.
The voice acquisition analysis and instruction control method comprises the following steps:
receiving a voice command from a user;
performing voice recognition, converting the received voice command into a text, and converting the text into an equipment instruction of corresponding equipment;
sending the equipment instruction to each intelligent equipment in the network environment where the gateway is located;
each intelligent device analyzes the device instruction respectively, and if the analyzed device instruction belongs to the processable device, the feedback is sent;
judging whether only one or two or more intelligent devices send feedback;
if two or more devices send feedback, the feedback is sent to the user, the selection from the user is received, and the intelligent device selected by the user is controlled;
if only one intelligent device sends feedback, the intelligent device is directly controlled by the execution, or the feedback is sent back to the user, and the intelligent device is controlled by the execution after the user confirms the feedback.
The general intelligent device voice control system based on the gateway comprises a network access management subsystem and a voice command processing subsystem, wherein:
the network access management subsystem comprises: the intelligent device registration module is used for initializing new intelligent devices when the new intelligent devices are added into the network environment where the gateway is located, and setting the device IDs of the new intelligent devices and the cluster IDs of the device clusters to which the new intelligent devices belong; the intelligent device network access management module is used for registering new intelligent devices, and comprises the steps of judging whether a cluster with the same cluster ID as the cluster ID exists in a network environment or not, if so, storing the device ID of the new intelligent device into an existing device cluster management list corresponding to the cluster ID, and if not, establishing a new device cluster and storing the device ID into the new device cluster management list; the voice analysis service registration module is used for registering the voice analysis service of the new intelligent equipment;
the voice command processing subsystem includes: the voice command acquisition and transmission equipment is used for acquiring an audio signal of a user voice command; the voice command receiving module is used for receiving a user voice command through a standard http protocol; the instruction conversion module is used for analyzing the voice command into a corresponding equipment instruction by calling an application layer interface protocol; the equipment instruction interaction module is used for sending the analyzed equipment instructions to each intelligent equipment and receiving feedback from each equipment only; and a voice command controller for providing feedback to the user of each smart device and receiving a selection and/or confirmation of a smart device by the user.
These and other features and advantages will become apparent upon reading the following detailed description and upon reference to the accompanying drawings. It is to be understood that both the foregoing general description and the following detailed description are explanatory only and are not restrictive of aspects as claimed.
Detailed Description
The present invention will now be described more fully hereinafter with reference to the accompanying drawings, in which specific embodiments of the invention are shown. Various advantages and benefits of the present invention will become apparent to those of ordinary skill in the art upon reading the following detailed description of the specific embodiments. It should be understood, however, that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. The following embodiments are provided so that the invention may be more fully understood. Unless otherwise defined, technical or scientific terms used herein shall have the ordinary meaning as understood by those of skill in the art to which this application belongs.
The invention discloses a universal intelligent device voice control method based on home gateway equipment. The first is the network access/networking of the intelligent equipment, and the second is the voice acquisition analysis and instruction control.
FIG. 1 shows (a-1), (a-2), (a-3) and (b-1), (b-2) schematic diagrams of smart device networking/organizing according to an embodiment of the present invention; fig. 2 is a flowchart of network entry/networking of the smart device according to the embodiment shown in fig. 1. The first part of the method of the present invention, i.e. the specific steps of network entry/networking of the smart device, is discussed below with reference to fig. 1 and 2:
as shown in (a-1) of fig. 1, the current network environment includes a gateway and 1 to n other intelligent devices that have already been networked, where the existingintelligent device 1 and the existingintelligent device 2 are of the same type and belong to the same device cluster, and the existing intelligent device n-1 and the existing intelligent device n are of the same type and belong to another device cluster (the cluster of the same type of devices is shown in a dashed box in fig. 1).
The same type of intelligent equipment is classified into the same equipment cluster, and the purpose is to adapt to the same type of semantics. For example, for the environment lamp in a living room and the kitchen lighting lamp, the requirement of brightness adjustment is met, and the voice control of 'light turning on a little' can be uniformly recognized. Similarly, a cluster of televisions, speakers, etc. may recognize a voice control that is "louder". Therefore, the consistency of user experience can be achieved. One voice command for the same cluster may translate to the same device instruction.
When a new network is connected to a smart device (hereinafter referred to as a "smart device")New") to join the network environment, it is first connected to the gateway through wifi at step S210, and then the smart device registration module registers the smart device at the gateway at step S220NewConfiguring, i.e. initializing, it, including setting up the smart deviceNewAnd the cluster ID of the device cluster to which it belongs. Wherein the device ID is a smart deviceNewThe cluster ID is used for marking the intelligent equipmentNewThe cluster of devices to which it belongs.
If, for example, a smart deviceNewThe same type as the intelligent devices n-1 and n, corresponding to the case of (a-2) in FIG. 1, the intelligent device will be usedNewIs set to be consistent with the cluster IDs of the existing smart devices n-1 and n.
If smart deviceNewDifferent from the types of the existingintelligent devices 1 to n, the intelligent device is the intelligent device corresponding to the situation (a-3) in fig. 1NewA new device cluster ID is additionally set.
If no other intelligent devices have been deployed in the current network environment, as is the case in (b-1) of FIG. 1, then it is the intelligent deviceNewA new device cluster ID is set.
The intelligent equipmentNewAfter the initialization configuration, the intelligent device starts to trigger network access operationNewSending the device ID and the cluster ID to the device network access management module, and determining whether a cluster of the same type of device as the cluster ID exists in the current network environment in step S230:
if the device cluster exists in the current network environment, the device networking management module finds the received intelligent device after checkingNewIf the cluster ID of (2) is consistent with the existing cluster ID, the process proceeds to S240, and the smart device is connected to the serverNewThe device ID is stored in a device cluster management list corresponding to the cluster ID, and device registration and service registration are completed until the intelligent deviceNewCompleting the network access, as shown in FIG. 1 (a-2);
if there is no other intelligent device deployed in the current network as in the case shown in fig. 1(b-2), or there is no cluster of similar devices although there are other intelligent devices deployed as in the case shown in fig. 1(a-3), the step proceeds to S250, that is, the device network entry management module finds out that there is no intelligent device with any existing cluster ID sum after checkingNewIf the cluster IDs are consistent, a new device is newly builtClustering (shown in fig. 1(a-3) with long line segments and dashed boxes), and associating smart devicesNewThe device ID of (2) is stored in the new device cluster management list, and device registration and service registration are completed. If in future with this smart machineNewNew additions of the same type of smart device may be attributed to the cluster.
To this end, a smart deviceNewThe network access is completed. Here, the service registration includes registration of a voice resolution service. Namely, each intelligent device registers the voice analysis service of the intelligent device when accessing the network, and the calling of the voice analysis service is realized in a callback mode when the intelligent device is used later.
The second part of the method of the present invention, the specific steps of speech acquisition and parsing and intelligent device command control, is discussed below in conjunction with fig. 3:
in step S310, a voice command from a user is received. The step can be realized by using a Bluetooth headset with a microphone, and the voice command sent by the user through the Bluetooth headset is received, so that the audio signal acquisition and transmission of the voice command are completed.
In step S320, the received voice command audio signal is processed, including:
the first step is to perform speech recognition to convert the speech input into text, which is standardized;
and in the second step, semantic analysis and understanding are carried out on the text, and then the text is converted into a corresponding device instruction, so that the semantic understanding of different devices is different, and AI training is specially carried out. For example, the speech "lisiang" may be recognized by the smart speaker as a contact name and called out and may also be recognized by the tv set-top box as a hot movie for playing, so that the semantic analysis and understanding requires AI training for different types of devices,
the voice command is analyzed by calling the upper layer voice command to identify and issue an application layer interface protocol, the analyzed semantics are changed into a control instruction of the equipment, the instruction is sent to each intelligent equipment in the network environment,
in step S330, each smart device separately parses the instruction, and if it is recognized that this is an instruction that it can handle, the smart device sends a feedback.
In step S340, it is determined whether only one or two or more smart devices have sent feedback.
If only one smart device sends feedback, the feedback is sent back to the user in step S350, and the user confirms that the smart device is operated in step S370.
If only two or more smart devices are sending feedback, e.g., a voice control such as "light up", there may be multiple light responses for the user to choose which one is desired to adjust. The feedback of the status of each smart device is sent back to the user in step S360, which may be done by audio output. The user may further select by voice, and the user selected smart device is manipulated in step S370 after confirming the user selection through voice recognition.
In another embodiment, if only one smart device sends feedback, the process can directly proceed to step S370 without the user of S350 confirming the process again.
FIG. 4 is a schematic block diagram of a generic smart device voice manipulation system based on a gateway device in accordance with various embodiments of the present invention.
The universal intelligent device voice control system comprises a network access management subsystem 410 and a voice command processing subsystem 420.
The network access management subsystem 410 is configured to perform network access/networking of the smart device, and further includes a dev _ sign _ service smart device registration module 411, a dev _ net _ service smart device network access management module 412, and a voice _ analysis _ service voice parsing service registration module 413. These modules may be integrated in or communicatively connected with a gateway, which is shown in fig. 4 as being integrated in the gateway. Wherein:
smart device registration Module 411 for registering "Smart devicesNewCarry out the intelligent equipment when joining the networkNewInitialization work of, setting up the smart deviceNewAnd the cluster ID of the device cluster to which it belongs.
Intelligent device networkingManagement module 412 receives smart devicesNewThe device ID and the cluster ID of the intelligent device are used for judging whether a cluster of the same type of devices with the same cluster ID exists in the current network environment or not, and if the cluster of the same type of devices with the same cluster ID exists, the intelligent device is used for judging whether the cluster of the same type of devices with the same cluster ID exists in the current network environment or notNewIf not, a new device cluster is established and the device ID is stored in the management list of the new device cluster. Complete the intelligent deviceNewThe device registration of (1).
Each intelligent device must register its own voice parsing service through the voice parsing service registration module 413 when accessing the network, so as to realize the calling of the voice parsing service in a callback manner when being used later. Complete the intelligent deviceNewThe service registration of (2).
The voice command processing subsystem 420 includes a voice command collecting and transmitting device 421, a voice _ cmd _ collect _ service voice command receiving module 422, a cmd _ transform _ service command converting module 423, a dev _ cmd _ manager _ service device command interacting module 424, and a voice command controller 425. Wherein:
the voice command collecting and transmitting device 421 may be a bluetooth headset with a microphone, or a microphone disposed at various places in the network environment, and may be in wired or wireless communication with the gateway for collecting the audio signal of the user voice command.
The voice command receiving module 422 receives the user voice command collected from the voice command collection transmission device 421 through the standard http protocol.
The command conversion module 423 processes (speech recognition) the user speech command received by the speech command reception module 422, and parses the speech command into a device command by invoking an upper layer speech command recognition issuing application layer interface protocol.
The device command interaction module 424 performs command interaction with the smart devices via the application layer interface protocol, sends the parsed device commands to each smart device, and transmits feedback (enabling execution of the commands) from each smart device to the voice command controller 425.
The voice command controller 425 is used to provide the above-mentioned feedback of each smart device to the user and receive the user's selection and confirmation of a smart device.
The voice command receiving module 422, the instruction translating module 423, and the device instruction interacting module 424 may be integrated in or communicatively coupled with a gateway, which is shown integrated in fig. 4.
The network access/networking mode of the intelligent equipment is completed through a terminal equipment registration module and an equipment networking management module in the local gateway. Remote management through the cloud is not required.
The invention places the management of the intelligent equipment in the application layer of the gateway, has strong universality, can realize the compatible management of various intelligent equipment and the unified management of the intelligent equipment of different manufacturers.
The user uses pronunciation in unison can simply realize the operation to each smart machine, need not to use the remote controller, also need not to use user's cell-phone APP. Better user experience can be obtained.
The data and the instruction effectively control the security risk of the data in the storage and control processes in an encryption transmission mode, and the security is high.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present disclosure, and the present disclosure should be construed as being covered by the claims and the specification.