Disclosure of Invention
The application mainly provides an intelligent home control method and system and a computer readable storage medium, and convenience of a user can be improved.
In order to solve the technical problem, the application adopts a technical scheme that: the method for controlling the smart home comprises the following steps: a plurality of voice acquisition devices acquire voice information of a user; the voice acquisition devices analyze the voice information to obtain a control instruction and the sound source distances between the voice acquisition devices and the user, and send the control instruction and the sound source distances to the intelligent home control device; the intelligent home control equipment calculates the position of the user according to the sound source distances between the voice acquisition equipment and the user; and the intelligent home control equipment sends the control instruction to the intelligent home corresponding to the position of the user.
The step of calculating the position of the user by the intelligent home control device according to the sound source distances between the voice acquisition devices and the user comprises the following steps: the intelligent home control equipment acquires the equipment positions of the voice acquisition equipment in a home layout; and the intelligent home control equipment calculates the user position of the user in the home layout according to the equipment positions of the voice acquisition equipment and the sound source distance between the voice acquisition equipment and the user.
The step of acquiring the device positions of the voice acquisition devices in the home layout by the intelligent home control device comprises: the intelligent home control equipment acquires equipment mark points of the voice acquisition equipment in the home layout; the step of calculating, by the smart home control device, the user position of the user in the home layout according to the device positions of the voice collecting devices and the sound source distances between the voice collecting devices and the user includes: the intelligent home control equipment determines a plurality of circumferential boundaries by taking the equipment mark points of the voice acquisition equipment as the center and taking the sound source distance between the voice acquisition equipment and the user as the radius, and selects the intersection points of the circumferential boundaries as the user positions of the user in the home layout.
Wherein, the number of the voice acquisition equipment is three.
The step of acquiring the device positions of the voice acquisition devices in the home layout by the intelligent home control device comprises: the intelligent home control equipment acquires equipment coordinate values of the voice acquisition equipment in the home layout; the step of calculating, by the smart home control device, the user position of the user in the home layout according to the device positions of the voice collecting devices and the sound source distances between the voice collecting devices and the user includes: and the intelligent home control equipment calculates the user coordinates of the user in the home layout according to the equipment coordinate values of the voice acquisition equipment and the sound source distances between the voice acquisition equipment and the user.
The step of sending the control instruction to the smart home corresponding to the position of the user by the smart home control device includes: and the intelligent home control equipment sends the control instruction to the intelligent home in the room where the user position is located.
The step of sending the control instruction to the smart home in the room where the user position is located by the smart home control device includes: the intelligent home control equipment acquires a plurality of room positions in the home layout; the intelligent home control device determines the position of the room where the user position is located in the home layout so as to send the control instruction to the intelligent home in the room where the user position is located.
The step of sending the control instruction to the smart home corresponding to the position of the user by the smart home control device includes: and the intelligent household control equipment calculates the distances between the position of the user and the plurality of intelligent households in the household layout chart so as to send the control instruction to the intelligent household with the minimum distance.
In order to solve the above technical problem, another technical solution adopted by the present application is: providing an intelligent home control system, wherein the intelligent home control system comprises a plurality of voice acquisition devices and intelligent home control devices, and the voice acquisition devices are in communication connection with the intelligent home control devices; the voice acquisition devices are used for acquiring voice information of a user; the voice acquisition devices are used for analyzing the voice information to obtain a control instruction and the sound source distances between the voice acquisition devices and the user, and sending the control instruction and the sound source distances to the intelligent home control device; the intelligent home control equipment is used for calculating the position of the user according to the sound source distances between the voice acquisition equipment and the user; and the intelligent home control equipment is used for sending the control instruction to the intelligent home corresponding to the position of the user.
In order to solve the above technical problem, the present application adopts another technical solution: there is provided a computer readable storage medium having stored thereon a computer program for execution by a processor to implement a method as described above.
The beneficial effect of this application is: different from the situation of the prior art, the voice information of the user is collected through a plurality of voice collecting devices; the voice acquisition devices analyze the voice information to obtain a control instruction and the sound source distance between the voice acquisition devices and a user, and send the control instruction and the sound source distance to the intelligent home control device; the intelligent home control equipment calculates the position of the user according to the sound source distances between the voice acquisition equipment and the user; according to the method for sending the control instruction to the intelligent home corresponding to the position of the user by the intelligent home control equipment, the corresponding intelligent home is selected according to the position of the user, the step that the user further selects a plurality of identical intelligent homes is omitted, and convenience of the user is improved.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be noted that the following examples are only illustrative of the present application, and do not limit the scope of the present application. Likewise, the following examples are only some examples and not all examples of the present application, and all other examples obtained by a person of ordinary skill in the art without any inventive step are within the scope of the present application.
The terms "first", "second" and "third" in this application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any indication of the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of the feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. All directional indications (such as up, down, left, right, front, and rear … …) in the embodiments of the present application are only used to explain the relative positional relationship between the components, the movement, and the like in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indication is changed accordingly. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart of an embodiment of an intelligent home control method provided in the present application, where the control method in the present embodiment includes:
s110: a plurality of voice acquisition devices acquire voice information of a user;
specifically, when the user wants to control the smart home in the family, the control can be performed through voice, for example, the user says "turn on the air conditioner", at the moment, the voice information of the user can be collected by the voice collection devices, in a specific application scene, the voice collection devices are installed in each room in the family, and the voice collection devices in each room can collect the voice information of the user.
Optionally, the voice collecting device may be an intelligent speaker.
S120: the voice acquisition devices analyze the voice information to obtain a control instruction and the sound source distance between the voice acquisition devices and a user, and send the control instruction and the sound source distance to the intelligent home control device;
specifically, the plurality of voice collecting devices analyze the voice information to obtain a control instruction, such as a control instruction of turning on an air conditioner, and determine the sound source distance between the plurality of voice collecting devices and the user, and the determination method can calculate the distance by sound decibel, wherein the farther the distance is, the smaller the sound decibel is, and otherwise, the larger the sound decibel is, and the sound source distance can also be determined by installing a distance sensor on the voice collecting devices for detection.
Furthermore, after the voice information and the sound source distances between the voice acquisition devices and the user are obtained through analysis of the voice acquisition devices, the voice information and the sound source distances between the voice acquisition devices and the user are sent to the intelligent home control device.
S130: the intelligent home control equipment calculates the position of the user according to the sound source distances between the voice acquisition equipment and the user;
referring to fig. 2, fig. 2 is a schematic flowchart illustrating an embodiment of step S130 in fig. 1, in which step S130 may specifically include:
s1301: the intelligent home control equipment acquires equipment positions of a plurality of voice acquisition equipment in a home layout;
specifically, the device positions of a plurality of voice collecting devices may be collected in advance to construct a family layout, and the family layout may be stored.
Optionally, in an embodiment, the step S1301 specifically includes: the intelligent home control device obtains device mark points of the voice acquisition devices in the home layout, namely marks the positions of the voice acquisition devices through the device mark points in the process of constructing the home layout by acquiring the device positions of the voice acquisition devices in advance.
Optionally, in another embodiment, the step S1301 specifically includes: the intelligent home control device obtains device coordinate values of the voice acquisition devices in the home layout, namely, in the process of constructing the home layout by acquiring the device positions of the voice acquisition devices in advance, a coordinate system can be constructed firstly, the coordinate system can be a two-dimensional coordinate system or a three-dimensional coordinate system, and then the device coordinate values are given to the voice acquisition devices according to the device positions of the voice acquisition devices.
S1302: and the intelligent home control equipment calculates the user position of the user in the home layout according to the equipment positions of the voice acquisition equipment and the sound source distances between the voice acquisition equipment and the user.
Optionally, in an embodiment, the step S1302 specifically includes: the intelligent home control equipment determines a plurality of circumferential boundaries by taking equipment mark points of the plurality of voice acquisition equipment as centers and taking sound source distances between the plurality of voice acquisition equipment and the user as radii respectively, and selects intersection points of the plurality of circumferential boundaries as user positions of the user in a home layout.
Optionally, in a specific application scenario, the number of the voice collecting devices is three, and the intersection point of the plurality of circumferential boundaries is one, so that the user position of the user in the family layout can be accurately determined.
Optionally, in another embodiment, the step S1302 specifically includes: and the intelligent home control equipment calculates the user coordinates of the user in the home layout according to the equipment coordinate values of the voice acquisition equipment and the sound source distances between the voice acquisition equipment and the user.
S140: and the intelligent home control equipment sends a control instruction to the intelligent home corresponding to the position of the user.
Optionally, in an embodiment, the step S140 specifically includes: the smart home control device sends a control instruction to a smart home in a room where a user position is located, may first obtain a plurality of room positions in a home layout, that is, in a process of a pre-constructed home layout, including position layout of the plurality of rooms, then determine a room position where the user position is located in the home layout, for example, by using an intersection point of the plurality of circumferential boundaries as the user position of the user in the home layout, determine a position layout of the room where the intersection point is located in the home layout, and further send the control instruction to the smart home in the room where the user position is located, for example, if the room where the user position is located is a main bedroom, the control instruction "turns on an air conditioner", and then send the control instruction to the air conditioner in the main bedroom.
Optionally, in another embodiment, the step S140 specifically includes: the intelligent home control equipment calculates the distances between the position of the user and the plurality of intelligent homes in the home layout chart so as to send a control instruction to the intelligent home with the minimum distance.
Referring to fig. 3, fig. 3 is a schematic block diagram of an embodiment of an intelligent home control system provided in the present application, where the intelligent home control system in the present embodiment includes a plurality of voice acquisition devices 210 and an intelligent home control device 220, and the plurality of voice acquisition devices 210 are in communication connection with the intelligent home control device 220.
The plurality of voice collecting devices 210 are used for collecting voice information of the user; the voice acquisition devices 210 are configured to analyze the voice information to obtain a control instruction and a sound source distance between the voice acquisition devices and the user, and send the control instruction and the sound source distance to the smart home control device 220; the smart home control device 220 is configured to calculate a position of the user according to sound source distances between the multiple voice collecting devices 210 and the user; the smart home control device 220 is configured to send a control instruction to a smart home corresponding to the location of the user.
Referring to fig. 4, fig. 4 is a schematic block diagram of an embodiment of a computer-readable storage medium provided in the present application, in which a computer program 310 is stored, and the computer program 310 can be executed by a processor to implement the smart home control method in any of the above embodiments.
Alternatively, the readable storage medium may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or may be a terminal device such as a computer, a server, a mobile phone, or a tablet.
Different from the prior art, the method and the device have the advantages that the voice information of the user is collected through the plurality of voice collecting devices; the voice acquisition devices analyze the voice information to obtain a control instruction and the sound source distance between the voice acquisition devices and a user, and send the control instruction and the sound source distance to the intelligent home control device; the intelligent home control equipment calculates the position of the user according to the sound source distances between the voice acquisition equipment and the user; according to the method for sending the control instruction to the intelligent home corresponding to the position of the user by the intelligent home control equipment, the corresponding intelligent home is selected according to the position of the user, the step that the user further selects a plurality of identical intelligent homes is omitted, and convenience of the user is improved.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.