Equipment control methods, devices, storage media and electronic equipment
By determining the control subject's permissions in the voice control system and utilizing voiceprint recognition and permission management, the security risks of any subject being able to control the device in existing technologies are resolved, thus achieving device security and privacy protection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2026-03-10
AI Technical Summary
In existing voice control technologies, any control entity can control the target device via voice, which poses a significant security risk.
By receiving voice commands, it determines whether the controlling entity issuing the command has the necessary permissions. It then compares the voiceprint information with a preset voiceprint database to obtain the corresponding device control permissions and executes the voice commands when the entity has the necessary permissions.
It enables secure control of the target device, avoids voice control by unspecified individuals, and protects user privacy and device security.
Smart Images

Figure CN114387964B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of voice control technology, and in particular to a device control method, apparatus, storage medium, and electronic device. Background Technology
[0002] In existing voice control technology, as long as the system receives a voice command, it will control the corresponding device based on the command. This method allows any control entity to control the target device through voice, which obviously poses a significant security risk. Summary of the Invention
[0003] To address the problems in the prior art, this application proposes a device control method, apparatus, storage medium, and electronic device that enables more secure control of the target device.
[0004] To achieve the above objectives, the technical solution of the present invention is implemented as follows:
[0005] In a first aspect, embodiments of the present invention provide a device control method, the method comprising:
[0006] Receive voice commands;
[0007] Based on the voice command, the target device to be controlled is obtained;
[0008] Based on the voice command, determine whether the control entity that issued the voice command has the authority to control the target device;
[0009] When the control entity has the authority to control the target device, it controls the target device to perform the action corresponding to the voice command based on the voice command.
[0010] Preferably, determining whether the controlling entity issuing the voice command has the authority to control the target device based on the voice command includes:
[0011] Based on the voice command, obtain the voiceprint information of the control subject that issued the voice command;
[0012] Based on the voiceprint information of the control entity, it is determined whether the control entity has the authority to control the target device.
[0013] Preferably, determining whether the control subject has the authority to control the target device based on the voiceprint information of the control subject includes:
[0014] The voiceprint information of the control subject is compared one by one with the voiceprint information in the preset voiceprint library;
[0015] When the voiceprint information of the control subject matches a voiceprint in the preset voiceprint library, the preset permission table is read; wherein, the preset permission table stores the device control permissions corresponding to each voiceprint in the preset voiceprint library.
[0016] The device control permissions corresponding to the voiceprint information of the control subject are obtained by querying the preset permission table, so as to determine whether the control subject has the permission to control the target device.
[0017] Furthermore, the preset permission table also stores temporary device control permissions. The step of determining whether the control entity has permission to control the target device based on the voiceprint information of the control entity further includes:
[0018] When the voiceprint information of the control subject does not match any of the voiceprint information in the preset voiceprint library, the temporary device control permission is read from the preset permission table.
[0019] Based on the temporary device control permissions, it is determined whether the controlling entity has the authority to control the target device.
[0020] Furthermore, the method also includes:
[0021] When the control entity has the authority to control the target device, it is determined whether the voice command has a first preset feature;
[0022] When the voice command has the first preset feature, it is determined whether there is a binding relationship between the control subject and the target device;
[0023] When the controlling entity has the authority to control the target device, controlling the target device to perform an action corresponding to the voice command based on the voice command includes:
[0024] When there is a binding relationship between the control entity and the target device, the target device is controlled to perform the action corresponding to the voice command based on the voice command.
[0025] Preferably, when the controlling entity has the authority to control the target device, determining whether the voice command has a first preset feature includes:
[0026] When the control entity has the authority to control the target device, keywords are identified from the voice command;
[0027] Determine whether the keyword exists in the first preset thesaurus;
[0028] When the keyword exists in the first preset word library, it is determined that the voice command has the first preset feature.
[0029] Furthermore, the method also includes:
[0030] When the control entity has the authority to control the target device, it is determined whether the voice command has a second preset feature;
[0031] When the voice command has the second preset feature, determine whether there is pre-set execution information that is bound to the control subject;
[0032] When there is pre-set execution information that is bound to the control entity, the execution information is obtained;
[0033] When the controlling entity has the authority to control the target device, controlling the target device to perform an action corresponding to the voice command based on the voice command includes:
[0034] Based on the execution information and the voice command, the target device is controlled to perform actions corresponding to the execution information and the voice command.
[0035] Furthermore, the method also includes:
[0036] When the control entity does not have the authority to control the target device, a voice alarm will be issued.
[0037] Secondly, embodiments of the present invention provide a device control apparatus, the apparatus comprising:
[0038] The receiving unit is used to receive voice commands;
[0039] The target device acquisition unit is used to acquire the target device to be controlled based on the voice command.
[0040] The first judgment unit is used to determine, based on the voice command, whether the control entity that issued the voice command has the authority to control the target device;
[0041] The control unit is used to control the target device to perform an action corresponding to the voice command based on the voice command when the control subject has the authority to control the target device.
[0042] Thirdly, embodiments of the present invention provide a storage medium storing program code, which, when executed by a processor, implements the device control method as described in any of the above embodiments.
[0043] Fourthly, embodiments of the present invention provide an electronic device, the electronic device including a memory and a processor, the memory storing program code executable on the processor, the program code being executed by the processor to implement the device control method as described in any of the above embodiments.
[0044] This invention provides a device control method, apparatus, storage medium, and electronic device. Based on a received voice command, it obtains a target device to be controlled and determines whether the controlling entity issuing the voice command has the authority to control the target device. When the controlling entity has the authority, it controls the target device to perform the action corresponding to the voice command. Therefore, this invention determines whether the controlling entity issuing the voice command has the corresponding control authority before controlling the target device based on the voice command. Only when the entity has the corresponding control authority can subsequent control actions be executed. This ensures that the target device can only be controlled by a specific controlling entity, avoiding the security risks caused by any controlling entity being able to control the target device via voice. Therefore, the technical solution provided by this invention makes the control of the target device more secure. Attached Figure Description
[0045] The scope of this invention can be better understood by reading the following detailed description of exemplary embodiments in conjunction with the accompanying drawings. The accompanying drawings are:
[0046] Figure 1 The method flow of this invention embodiment Figure 1 ;
[0047] Figure 2 The method flow of this invention embodiment Figure 2 ;
[0048] Figure 3 The device structure of this invention is shown in the embodiment. Figure 1 ;
[0049] Figure 4 The device structure of this invention is shown in the embodiment. Figure 2 . Detailed Implementation
[0050] To make the objectives, technical solutions, and advantages of the present invention clearer, the implementation method of the present invention will be described in detail below with reference to the accompanying drawings and embodiments, so that the process of how the present invention uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.
[0051] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.
[0052] Example 1
[0053] According to embodiments of the present invention, a device control method is provided, such as... Figure 1 As shown, the method described in this embodiment includes:
[0054] Step S101: Receive voice command;
[0055] In this embodiment, the voice command can be issued by the user or by an electronic device preset by the user. The electronic device can be any electronic device with voice playback function.
[0056] Step S102: Based on the voice command, obtain the target device to be controlled;
[0057] In this embodiment, the content of the voice command includes: the target device to be controlled, and control content regarding what operation to perform on the target device. Therefore, based on the received voice command, information about the target device to be controlled can be extracted from the voice command.
[0058] For example, if a voice command is "Turn on the TV", then based on this voice command, the target device to be controlled is: the TV; the specific control content to be executed is: control the TV to turn on.
[0059] Step S103: Based on the voice command, determine whether the control entity that issued the voice command has the authority to control the target device;
[0060] In this embodiment, determining whether the controlling entity that issued the voice command has the authority to control the target device based on the voice command includes: obtaining the voiceprint information of the controlling entity that issued the voice command based on the voice command; and determining whether the controlling entity has the authority to control the target device based on the voiceprint information of the controlling entity.
[0061] The control entity is the user mentioned in step S101 or an electronic device pre-set by the user.
[0062] To accurately and effectively determine the control authority of the controlling entity, in this embodiment, determining whether the controlling entity has the authority to control the target device based on the controlling entity's voiceprint information includes: comparing the controlling entity's voiceprint information one by one with voiceprint information in a preset voiceprint library; when the controlling entity's voiceprint information matches a voiceprint in the preset voiceprint library, reading a preset authority table; wherein, the preset authority table stores the device control authority corresponding to each voiceprint in the preset voiceprint library; querying the preset authority table to obtain the device control authority corresponding to the controlling entity's voiceprint information, so as to determine whether the controlling entity has the authority to control the target device.
[0063] To more comprehensively determine the control permissions of the controlling entity and thus improve the user experience, the preset permission table further stores temporary device control permissions. Therefore, the step of determining whether the controlling entity has the permission to control the target device based on its voiceprint information further includes: when the voiceprint information of the controlling entity does not match any voiceprint information in the preset voiceprint library, reading the temporary device control permissions from the preset permission table; and determining whether the controlling entity has the permission to control the target device based on the temporary device control permissions.
[0064] Specifically, taking the user as the controlling entity as an example, the system extracts the user's voiceprint information from the received voice command. Then, it compares the voiceprint information with the voiceprint information in the preset voiceprint database. If there is a match, it means that the user is a registered user of the system, has pre-recorded voiceprint information, and has been assigned corresponding device control permissions. In this case, the system can determine whether the user has the permission to control the target device by checking the device control permissions corresponding to the user's voiceprint information. If there is no match, it means that the user is an unregistered user and has not pre-recorded voiceprint information. In this case, the system can determine whether the user has the permission to control the target device by checking the temporary device control permissions pre-assigned to unregistered users. Alternatively, the system can directly determine that the unregistered user has no control permissions and directly refuse the user's voice control of any device.
[0065] There can be multiple users, including at least one user with administrator privileges. This administrator user can modify the device control permissions of other users and can set their own device control permissions to the maximum, meaning the administrator can control all devices within the system via voice. Temporary device control permissions pre-assigned to unregistered users can also be obtained based on the administrator user's settings.
[0066] In this embodiment, the target device can be a smart home appliance, smart home device, or other similar device.
[0067] For example, considering a family unit, let's say the mother is the administrator user, referred to as User A; the father is a regular user, referred to as User B; and the child is a regular user, referred to as User C. When controlling various smart home appliances via voice system, the voices of User A, User B, and User C must first be recorded into the voice system so that it can obtain and store the voiceprint information corresponding to each user. At this point, User A, User B, and User C are all called registered users. Since User A is the administrator user, they can control all smart home appliances via voice. User A can also set the device control permissions for User B and User C. Suppose User B is set to also be able to control all smart home appliances via voice, while User C is set to be unable to control appliances with dangerous properties such as microwave ovens, ovens, gas stoves, and kettles. Then, when User C issues a voice control command for the microwave oven, the system first identifies the voice command as coming from User C through their voiceprint information, and then determines that they do not have the corresponding control permissions for the microwave oven. At this point, the voice system issues a voice alarm: "Sorry, you do not have the corresponding control permissions," to ensure the safe use of home appliances.
[0068] In addition, administrators can set lower device control permissions for unregistered users to further ensure the security of home appliances. For example, user A can pre-set the device control permissions (i.e., appliances that can be controlled by voice) for unregistered users to be appliances that do not involve the privacy of family members, such as air conditioners and chandeliers. Alternatively, unregistered users can be set to have no control permissions at all. When guests come to the house, since they have not pre-recorded their voices to the voice system, they can be considered unregistered users. When a guest tries to turn on the TV using a voice command, the voice system identifies the guest as an unregistered user through their voiceprint information, then searches for the pre-set device control permissions for unregistered users. Finding that the guest does not have the corresponding control permissions, the voice system issues a voice alarm: "Sorry, you do not have the corresponding control permissions," thus refusing the guest's request to turn on the TV.
[0069] Step S104: When the control entity has the authority to control the target device, it controls the target device to perform the action corresponding to the voice command based on the voice command.
[0070] As described in step S103, when the controlling entity that issues the voice command has the authority to control the target device, the voice system will control the target device to perform the action corresponding to the voice command based on the voice command.
[0071] For example, when user A issues the voice command "turn on the TV", the voice system recognizes that user A is an administrator user who has the authority to control all appliances in the home through his voiceprint information. At this time, the voice system will control the TV to perform the turn-on action and respond normally to user A's voice command.
[0072] To further ensure the safety of equipment control, such as Figure 2 As shown, the method described in this embodiment further includes: when the control subject has the authority to control the target device, determining whether the voice command has a first preset feature; when the voice command has the first preset feature, determining whether there is a binding relationship between the control subject and the target device; then, when the control subject has the authority to control the target device, controlling the target device to perform an action corresponding to the voice command based on the voice command includes: when the control subject and the target device have a binding relationship, controlling the target device to perform an action corresponding to the voice command based on the voice command.
[0073] The first preset feature may be a feature involving the privacy of the controlling entity, or other features that require binding between the controlling entity and the target device before execution can continue.
[0074] Specifically, when the voice system determines that the controlling entity has the authority to control the target device, it further needs to determine whether the received voice command has a first preset feature. For example, this can be done by extracting keywords. The voice system identifies keywords from the received voice command and then determines whether the identified keywords exist in the system's first preset vocabulary. If the identified keywords exist in the system's first preset vocabulary, it is determined that the received voice command has the first preset feature. The first preset vocabulary can be a vocabulary pre-set at the factory or a user-defined vocabulary, and the user can add, delete, and modify this vocabulary. Afterward, the voice system continues to determine whether there is a binding relationship between the controlling entity and the target device. Only when this binding relationship exists can the voice system control the target device to perform the action corresponding to the voice command. This binding relationship is also preset by the user.
[0075] For example, when user A issues a voice command, "Project my phone onto the TV," the voice system first uses voiceprint information to determine that the command is from user A, who has control over the phone and TV. At this point, the voice system recognizes the keyword "project phone" in the command, thus identifying it as a voice command involving user A's privacy. The voice system then needs to determine if there are any phones and TVs in the system that are linked to user A. If so, the voice command is executed, projecting the phone onto the TV. If not, a voice alarm is issued, indicating that user A does not have permission to execute the action. Alternatively, user A is prompted to set up and link their phone and specify which TV to project onto, i.e., to establish a binding relationship between user A, the phone, and the TV.
[0076] As the examples above demonstrate, when all family members have linked their mobile phones, each family member can only project their own phone, and cannot project other people's phones. For instance, if user A issues a voice command, "Project my phone onto the TV," the voice system will only project the phone linked to user A onto the TV, and will not project user B's phone. Even if user A issues a voice command, "Project user B's phone onto the TV," the voice system will either only project user A's phone or directly inform user A that they do not have the corresponding operating permission. This greatly protects user privacy and improves the user experience.
[0077] It should be noted that when setting up the above binding relationship, users can bind multiple target devices simultaneously. For example, if user A has two mobile phones, they can bind both phones at the same time. When the voice system executes the projection command, it will ask user A which phone to project onto. Furthermore, when binding each phone, the system will send a reminder SMS to that phone, asking for its consent. When user A wants to bind user B's phone, the system will automatically send a message to user B, asking if user B agrees to user A binding their phone. If user B agrees, user A can also project onto user B's phone.
[0078] It should also be noted that users can issue multiple voice commands at once. The system executes each received voice command separately, which may result in some commands being executed successfully while others fail. For example, if a user issues the voice command "Turn on the TV and project my phone onto the TV," the system first determines that the user has permission to control both the phone and the TV. "Turn on the TV" is a normal voice command, and the voice system directly controls the TV to turn on. However, "Project my phone onto the TV" involves user privacy, so the system needs to further determine whether there is a binding relationship, as described above. If there is no binding relationship, the projection operation will fail.
[0079] To further ensure the safety of equipment control and improve the user experience, such as Figure 2 As shown, the method described in this embodiment further includes: when the control subject has the authority to control the target device, determining whether the voice command has a second preset feature; when the voice command has the second preset feature, determining whether there is pre-set execution information that is bound to the control subject; when there is pre-set execution information that is bound to the control subject, acquiring the execution information; then, when the control subject has the authority to control the target device, controlling the target device to perform an action corresponding to the voice command based on the voice command includes: controlling the target device to perform an action corresponding to the execution information and the voice command based on the execution information and the voice command.
[0080] The second preset feature can be a feature involving personalized customization of the control subject, or other features that require obtaining pre-set execution information before execution can continue.
[0081] Specifically, when the voice system determines that the controlling entity has the authority to control the target device, it further needs to determine whether the received voice command has a second preset feature. For example, this can be done by extracting keywords. The voice system identifies keywords from the received voice command and then determines whether the identified keywords exist in the system's second preset vocabulary. If the identified keywords exist in the system's second preset vocabulary, it is determined that the received voice command has the second preset feature. The second preset vocabulary can be a vocabulary pre-set at the factory or a user-defined vocabulary, and the user can add, delete, and modify this vocabulary. Afterward, the voice system further needs to determine whether there is pre-set execution information bound to the controlling entity. If so, it acquires this execution information and, based on this execution information and the received voice command, controls the target device to perform the action corresponding to the execution information and the voice command.
[0082] For example, when user A issues the voice command, "Play my favorite music," the voice system first identifies the command as coming from user A through voiceprint information, confirming that user A has control over the music player. The voice system then recognizes the keyword "my favorite music" in the command, determining that it's a personalized voice command related to user A. The system retrieves a pre-set playlist of "my favorite music" that is linked to user A and plays the content from that playlist. If user A hasn't pre-set such a playlist, or if a pre-set playlist exists but isn't linked to user A, the voice system issues an alarm, prompting user A to set a playlist linked to them, or simply plays music randomly.
[0083] In order to effectively remind users and further improve the user experience, the method described in this embodiment also includes: issuing a voice alarm when the control subject does not have the authority to control the target device.
[0084] For example, when user C issues the voice command "turn on the microwave oven" as described in step S103, the voice system identifies user C's identity based on his voiceprint information and learns that user C does not have the authority to control the microwave oven. At this time, the voice system issues a voice alarm saying "Sorry, you do not have the corresponding control authority".
[0085] This invention provides a device control method that, based on a received voice command, obtains a target device to be controlled and determines whether the controlling entity issuing the voice command has the authority to control the target device. If the controlling entity has the authority, it controls the target device to perform the action corresponding to the voice command. Therefore, this invention determines whether the controlling entity issuing the voice command has the corresponding control authority before controlling the target device based on the voice command. Only when the entity has the corresponding control authority can subsequent control actions be executed. This ensures that the target device can only be controlled by a specific controlling entity, avoiding the security risks caused by any controlling entity being able to control the target device via voice. Therefore, the technical solution provided by this invention makes the control of the target device more secure.
[0086] Example 2
[0087] Corresponding to the above method embodiments, the present invention also provides a device control apparatus, such as... Figure 3 As shown, the device includes:
[0088] The receiving unit 201 is used to receive voice commands;
[0089] The target device acquisition unit 202 is used to acquire the target device to be controlled based on the voice command;
[0090] The first judgment unit 203 is used to determine, based on the voice command, whether the control subject that issued the voice command has the authority to control the target device.
[0091] The control unit 204 is used to control the target device to perform an action corresponding to the voice command based on the voice command when the control subject has the authority to control the target device.
[0092] In this embodiment, the first determination unit 203 includes:
[0093] The voiceprint information acquisition unit is used to acquire the voiceprint information of the control subject that issued the voice command based on the voice command.
[0094] The judgment subunit is used to determine whether the control subject has the authority to control the target device based on the voiceprint information of the control subject.
[0095] In this embodiment, the determining subunit determines whether the control subject has the authority to control the target device in the following way:
[0096] The voiceprint information of the control subject is compared one by one with the voiceprint information in the preset voiceprint library;
[0097] When the voiceprint information of the control subject matches a voiceprint in the preset voiceprint library, the preset permission table is read; wherein, the preset permission table stores the device control permissions corresponding to each voiceprint in the preset voiceprint library.
[0098] The device control permissions corresponding to the voiceprint information of the control subject are obtained by querying the preset permission table, so as to determine whether the control subject has the permission to control the target device.
[0099] In this embodiment, the preset permission table also stores temporary device control permissions, and the judgment subunit further uses the following method to determine whether the control subject has the permission to control the target device:
[0100] When the voiceprint information of the control subject does not match any of the voiceprint information in the preset voiceprint library, the temporary device control permission is read from the preset permission table.
[0101] Based on the temporary device control permissions, it is determined whether the controlling entity has the authority to control the target device.
[0102] Furthermore, such as Figure 4As shown, the apparatus described in this embodiment further includes:
[0103] The second judgment unit 205 is used to determine whether the voice command has a first preset feature when the control subject has the authority to control the target device.
[0104] The third judgment unit 206 is used to determine whether there is a binding relationship between the control subject and the target device when the voice command has the first preset feature; then,
[0105] The control unit 204 is also used to control the target device to perform an action corresponding to the voice command based on the voice command when there is a binding relationship between the control subject and the target device.
[0106] In this embodiment, the second judgment unit 205 determines whether the voice command has a first preset feature in the following way:
[0107] When the control entity has the authority to control the target device, keywords are identified from the voice command;
[0108] Determine whether the keyword exists in the first preset thesaurus;
[0109] When the keyword exists in the first preset word library, it is determined that the voice command has the first preset feature.
[0110] Furthermore, such as Figure 4 As shown, the apparatus described in this embodiment further includes:
[0111] The fourth judgment unit 207 is used to determine whether the voice command has a second preset feature when the control subject has the authority to control the target device;
[0112] The fifth judgment unit 208 is used to determine whether there is pre-set execution information that is bound to the control subject when the voice command has the second preset feature;
[0113] The execution information acquisition unit 209 is used to acquire the execution information when there is pre-set execution information that is bound to the control subject; then,
[0114] The control unit 204 is further configured to control the target device to perform actions corresponding to the execution information and the voice command based on the execution information and the voice command.
[0115] Furthermore, such as Figure 4 As shown, the apparatus described in this embodiment further includes:
[0116] The alarm unit 210 is used to issue a voice alarm when the control subject does not have the authority to control the target device.
[0117] For details regarding the working principle, workflow, and specific implementation methods of the aforementioned device, please refer to the specific implementation methods of the device control method provided by this invention. The same technical content will not be described in detail here.
[0118] This invention provides a device control apparatus that, based on a received voice command, obtains a target device to be controlled and determines whether the controlling entity issuing the voice command has the authority to control the target device. If the controlling entity has the authority, it controls the target device to perform the action corresponding to the voice command. Therefore, this invention determines whether the controlling entity issuing the voice command has the corresponding control authority before controlling the target device based on the voice command. Only when the entity has the corresponding control authority can subsequent control actions be executed. This ensures that the target device can only be controlled by a specific controlling entity, avoiding the security risks caused by any controlling entity being able to control the target device via voice. Therefore, the technical solution provided by this invention makes the control of the target device more secure.
[0119] Example 3
[0120] According to an embodiment of the present invention, a storage medium is also provided, wherein program code is stored on the storage medium, and when the program code is executed by a processor, the device control method as described in any of the above embodiments is implemented.
[0121] Example 4
[0122] According to an embodiment of the present invention, an electronic device is also provided, the electronic device including a memory and a processor, wherein the memory stores program code that can run on the processor, and when the program code is executed by the processor, it implements the device control method as described in any of the above embodiments.
[0123] This invention provides a device control method, apparatus, storage medium, and electronic device. Based on a received voice command, it obtains a target device to be controlled and determines whether the controlling entity issuing the voice command has the authority to control the target device. When the controlling entity has the authority, it controls the target device to perform the action corresponding to the voice command. Therefore, this invention determines whether the controlling entity issuing the voice command has the corresponding control authority before controlling the target device based on the voice command. Only when the entity has the corresponding control authority can subsequent control actions be executed. This ensures that the target device can only be controlled by a specific controlling entity, avoiding the security risks caused by any controlling entity being able to control the target device via voice. Therefore, the technical solution provided by this invention makes the control of the target device more secure.
[0124] The present invention has the following beneficial effects:
[0125] 1. By setting access control levels, you can control the operating permissions of different people when using the system;
[0126] 2. Based on voiceprint recognition, the system differentiates between different users of the voice system, thus enabling customized effects to be achieved for different users.
[0127] 3. Commands involving user privacy can only be executed by the user, which greatly protects user privacy.
[0128] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0129] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention, depending on actual needs.
[0130] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0131] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0132] While the embodiments disclosed in this invention are as described above, the content is merely for the purpose of facilitating understanding of the invention and is not intended to limit the invention. Any person skilled in the art to which this invention pertains may make any modifications and changes in form and detail of the implementation without departing from the spirit and scope disclosed herein; however, the scope of protection of this invention shall still be determined by the scope defined in the appended claims.
Claims
1. A device control method characterized by, The method comprises: receiving a voice instruction; obtaining a target device to be controlled based on the voice instruction; determining whether a control subject issuing the voice instruction has the right to control the target device based on the voice instruction; controlling the target device to perform an action corresponding to the voice instruction based on the voice instruction when the control subject has the right to control the target device; wherein the determining whether the control subject issuing the voice instruction has the right to control the target device based on the voice instruction comprises: obtaining voiceprint information of the control subject issuing the voice instruction based on the voice instruction; determining whether the control subject has the right to control the target device based on the voiceprint information of the control subject; the determining whether the control subject has the right to control the target device based on the voiceprint information of the control subject comprises: one-to-one comparison of the voiceprint information of the control subject with voiceprint information in a preset voiceprint library; when the voiceprint information of the control subject matches a piece of voiceprint information in the preset voiceprint library, reading a preset permission table; wherein the preset permission table stores device control permissions corresponding to each piece of voiceprint information in the preset voiceprint library; querying and obtaining a device control permission corresponding to the voiceprint information of the control subject from the preset permission table to determine whether the control subject has the right to control the target device; the preset permission table also stores temporary device control permissions, and the determining whether the control subject has the right to control the target device based on the voiceprint information of the control subject further comprises: when the voiceprint information of the control subject does not match all voiceprint information in the preset voiceprint library, reading the temporary device control permissions from the preset permission table; determining whether the control subject has the right to control the target device based on the temporary device control permissions; the method further comprises: when the control subject has the right to control the target device, determining whether the voice instruction has a first preset feature; wherein the first preset feature is a feature related to the privacy of the control subject; when the voice instruction has the first preset feature, determining whether there is a binding relationship between the control subject and the target device; the controlling the target device to perform an action corresponding to the voice instruction based on the voice instruction when the control subject has the right to control the target device comprises: controlling the target device to perform an action corresponding to the voice instruction based on the voice instruction when there is a binding relationship between the control subject and the target device.
2. The device control method according to claim 1, characterized by, the determining whether the voice instruction has a first preset feature when the control subject has the right to control the target device comprises: when the control subject has the right to control the target device, identifying a keyword from the voice instruction; determining whether the keyword exists in a first preset word library; when the keyword exists in the first preset word library, determining that the voice instruction has the first preset feature.
3. The device control method according to claim 1, wherein the method further comprises: determining whether the voice instruction has a second preset feature when the control subject has the right to control the target device; when the voice instruction has the second preset feature, determining whether there is pre-set execution information having a binding relationship with the control subject; when there is pre-set execution information having a binding relationship with the control subject, obtaining the execution information; the method further comprises: when the control subject does not have the right to control the target device, performing voice warning.
4. The device control method according to claim 1, wherein the device comprises: a receiving unit configured to receive a voice instruction; 5. An apparatus control device characterized by comprising: a target device obtaining unit configured to obtain a target device to be controlled based on the voice instruction; a first determining unit configured to determine whether a control subject issuing the voice instruction has the right to control the target device based on the voice instruction; the first determining unit comprises: a voiceprint information obtaining unit configured to obtain voiceprint information of the control subject issuing the voice instruction based on the voice instruction; a determining subunit configured to determine whether the control subject has the right to control the target device based on the voiceprint information of the control subject; the determining subunit determines whether the control subject has the right to control the target device in the following manner: the voiceprint information of the control subject is compared one by one with the voiceprint information in a preset voiceprint library; when the voiceprint information of the control subject matches a piece of voiceprint information in the preset voiceprint library, a preset right table is read; wherein the preset right table stores device control rights corresponding to each piece of voiceprint information in the preset voiceprint library; the device control right corresponding to the voiceprint information of the control subject is obtained from the preset right table to determine whether the control subject has the right to control the target device; the preset right table also stores temporary device control rights, and the determining subunit determines whether the control subject has the right to control the target device in the following manner: when the voiceprint information of the control subject does not match all the voiceprint information in the preset voiceprint library, the temporary device control rights are read from the preset right table; whether the control subject has the right to control the target device is determined based on the temporary device control rights; a control unit configured to control the target device to perform an action corresponding to the voice instruction based on the voice instruction when the control subject has the right to control the target device; the device further comprises: a second determining unit configured to determine whether the voice instruction has a first preset feature when the control subject has the right to control the target device; wherein the first preset feature is a feature related to the privacy of the control subject; The third judging unit is configured to judge whether the control subject and the target device have a binding relationship when the voice instruction has the first preset feature. The control unit is further configured to control the target device to perform an action corresponding to the voice instruction based on the voice instruction when the control subject and the target device have the binding relationship.
6. A storage medium having stored thereon program code, characterized in that The program code is executed by the processor to implement the device control method in any one of claims 1 to 4.
7. An electronic device, comprising: The electronic device comprises a memory and a processor, and the memory stores program code capable of running on the processor. The program code is executed by the processor to implement the device control method in any one of claims 1 to 4.
Citation Information
Patent Citations
Voice control method and device and electronic equipment
CN107767875A
Control method and device of electric appliance
CN108305623A
Voice control method, voice system, equipment and storage medium
CN108682414A