Method, apparatus and electronic device for setting device operation permissions
By using voice recognition technology to obtain operation requests from wearable devices and set permissions, the problem of wearable devices only supporting single-user operation is solved, enabling interconnection and interaction between multiple user devices and improving the user experience.
Patent Information
- Application Number
- CN202310245765.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-15
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2043-03-15
AI Technical Summary
Existing wearable devices only support operation by a single user, resulting in a poor user experience.
The system uses voice recognition technology to obtain operation requests from the second electronic device, and sets the operation permissions of the second electronic device on the first electronic device based on the identity information of each device, thereby realizing the interconnection and interaction between electronic devices.
It improves the user experience of wearable devices, supports interconnection and interaction between multiple users, and enhances the playability and fun of the devices.
Smart Images

Figure CN116469397B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of speech recognition, and more particularly, to a method and device for setting device operation permissions and an electronic device. BACKGROUND
[0002] With the development of science and technology, electronic devices are increasingly widely used and have more and more functions, and have become one of the necessities in people's daily life. With the development and popularization of wearable devices, the application scenarios of wearable devices are increasingly rich. In the related art, the combination of speech recognition technology and wearable devices only supports a single user to use and experience the wearable devices, which makes the user experience of the wearable devices unsatisfactory. SUMMARY
[0003] In view of the above problems, the present application provides a method and device for setting device operation permissions, an electronic device and a storage medium. The method can recognize an operation request sent by a second electronic device to a first electronic device by voice, and further set the operation permission of the second electronic device to the first electronic device according to the identity information of each electronic device, thereby realizing the interconnection and interaction between electronic devices and improving the user experience.
[0004] In a first aspect, an embodiment of the present application provides a method for setting device operation permissions, applied to a first electronic device, and the method comprises: if an operation request of a second electronic device is received, obtaining the identity information of the second electronic device as first identity information, wherein the operation request is generated by the second electronic device based on user input voice; obtaining the identity information of the first electronic device as second identity information; and setting the operation permission of the second electronic device to the first electronic device based on the first identity information and the second identity information.
[0005] In a second aspect, an embodiment of the present application provides a device for setting device operation permissions, applied to a first electronic device, and the device comprises a first identity information obtaining module, a second identity information obtaining module and an operation permission setting module. The first identity information obtaining module is configured to obtain the identity information of the second electronic device as first identity information if an operation request of the second electronic device is received, wherein the operation request is generated by the second electronic device based on user input voice. The second identity information obtaining module is configured to obtain the identity information of the first electronic device as second identity information. The operation permission setting module is configured to set the operation permission of the second electronic device to the first electronic device based on the first identity information and the second identity information.
[0006] In a third aspect, an electronic device is provided, including a memory and a processor, the memory is coupled to the processor, and the memory stores instructions, when the instructions are executed by the processor, the processor executes the method described above.
[0007] In a fourth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores program codes, the program codes can be invoked by a processor to execute the method described above.
[0008] The method and device for setting device operation permission, the electronic device and the storage medium provided by the embodiments of the present application, by receiving the operation request of the second electronic device, the identity information of the second electronic device is obtained as the first identity information, wherein the operation request is generated by the second electronic device based on the voice input by the user; the identity information of the first electronic device is obtained as the second identity information; based on the first identity information and the second identity information, the operation permission of the second electronic device to the first electronic device is set. The present application identifies the operation request sent by the second electronic device to the first electronic device through voice recognition, and further sets the operation permission of the second electronic device to the first electronic device according to the identity information of each electronic device, realizes the interconnection and interaction between electronic devices, and improves the experience of users. BRIEF DESCRIPTION OF DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0010] Figure 1 A schematic diagram of an application environment of the method for setting device operation permission provided by an embodiment of the present application is shown;
[0011] Figure 2 A flowchart of the method for setting device operation permission provided by an embodiment of the present application is shown;
[0012] Figure 3 A flowchart of the method for setting device operation permission provided by an embodiment of the present application is shown;
[0013] Figure 4 A flowchart of the method for setting device operation permission provided by an embodiment of the present application is shown;
[0014] Figure 5 A schematic diagram of establishing a cooperative relationship between electronic devices provided by an embodiment of the present application is shown;
[0015] Figure 6 FIG. 1 shows a schematic diagram of establishing a cooperative relationship between electronic devices according to an embodiment of the present application;
[0016] Figure 7 FIG. 1 shows a schematic diagram of establishing a cooperative relationship between electronic devices according to an embodiment of the present application;
[0017] Figure 8 FIG. 1 shows a schematic diagram of establishing a cooperative relationship between electronic devices according to an embodiment of the present application;
[0018] Figure 9 FIG. 1 shows a schematic diagram of establishing a cooperative relationship between electronic devices according to an embodiment of the present application;
[0019] Figure 10 FIG. 1 shows a schematic diagram of establishing a cooperative relationship between electronic devices according to an embodiment of the present application;
[0020] Figure 11 FIG. 1 shows a schematic diagram of establishing a cooperative relationship between electronic devices according to an embodiment of the present application;
[0021] Figure 12 FIG. 1 shows a schematic diagram of establishing a cooperative relationship between electronic devices according to an embodiment of the present application;
[0022] Figure 13 FIG. 1 shows a schematic diagram of establishing a cooperative relationship between electronic devices according to an embodiment of the present application; DETAILED DESCRIPTION
[0023] In order to enable personnel in the art to better understand the schemes of the present application, the technical schemes in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application.
[0024] With the development and popularity of wearable devices, the application scenarios of wearable devices are increasingly rich. In the related art, since the wearable device only supports the user wearing the wearable device to operate and experience, the user's experience of the wearable device is low.
[0025] To solve the above problems, the inventors have found, through long-term research, and proposed the method, device, electronic device and storage medium for setting device operation permission provided in the embodiments of the present application. The method for setting device operation permission specifically comprises: recognizing, by a second electronic device, an operation request sent by a first electronic device; and setting, by the second electronic device, operation permission of the second electronic device to the first electronic device according to identity information of the electronic devices. The method for setting device operation permission provided in the embodiments of the present application realizes the interconnection and interaction between electronic devices, and improves the user's experience. The specific method for setting device operation permission is described in detail in subsequent embodiments.
[0026] The application environment of the method for setting the operation permission of the device will be described below.
[0027] Please refer to Figure 1 , Figure 1 The application environment of the method for setting the operation permission of the device provided in the embodiments of the present application is shown. As shown in Figure 1 , the application environment includes a first electronic device 101 and a second electronic device 102, wherein the first electronic device 101 can be a mobile phone, a tablet computer, a game console, a wearable device, etc. The second electronic device 102 can be a mobile phone, a tablet computer, a game console, a wearable device, etc. without limitation. Among them, Figure 1 Only the application environment in which the first electronic device 101 is a smart phone and the second electronic device 102 is a smart phone is shown. Among them, a cooperative relationship is established between the first electronic device 101 and the second electronic device 102, and the first electronic device 101 and the second electronic device 102 can perform data transmission based on the cooperative relationship. Among them, the first electronic device 101 and the second electronic device 102 can perform data transmission based on the cooperative relationship through wireless communication technology (such as WiFi, Bluetooth, zigbee technology, etc.) or serial communication interface (such as serial peripheral interface, etc.). In the embodiments of the present application, the manner in which the first electronic device 101 and the second electronic device 102 perform data transmission based on the cooperative relationship is not limited. Among them, the data transmitted by the first electronic device 101 and the second electronic device 102 based on the cooperative relationship can be audio data, video data, text data, etc. without limitation.
[0028] Please refer to Figure 2 , Figure 2 The flowchart of the method for setting the operation permission of the device provided in an embodiment of the present application is shown. The method for setting the operation permission of the device is applied to the first electronic device, recognizes the operation request sent by the second electronic device to the first electronic device through voice, and further sets the operation permission of the second electronic device to the first electronic device according to the identity information of each electronic device, thereby realizing the interconnection and interaction between electronic devices and improving the user experience. In specific embodiments, the method for setting the operation permission of the device can be applied to the device 200 for setting the operation permission of the device and the electronic device 100 Figure 11 configured with the device 200 for setting the operation permission of the device (as shown in Figure 12 ). The specific process of the present embodiment will be described below taking the first electronic device as an example. It can be understood that the first electronic device to which the present embodiment is applied can include a smart phone, a tablet computer, a wearable electronic device, a smart home, etc. without limitation. The application environment of the method for setting the operation permission of the device will be described below. Figure 2The illustrated flow is described in detail, and the method of setting the device operation permission can specifically include the following steps:
[0029] Step S110: If the operation request of the second electronic device is received, the identity information of the second electronic device is obtained as the first identity information, wherein the operation request is generated by the second electronic device based on the voice input by the user.
[0030] In some embodiments, a cooperative relationship is established between the first electronic device and the second electronic device, and the first electronic device and the second electronic device can transmit data based on the cooperative relationship. Further, the second electronic device can send an operation request to the first electronic device based on the cooperative relationship. The operation request can be generated by the second electronic device based on the user pressing the operation key of the second electronic device, or can be generated by the second electronic device based on the user pressing the screen of the second electronic device, or can be generated by the second electronic device based on the voice input by the user.
[0031] In some embodiments, the first electronic device can be pre-configured with an operation request detection model, and the first electronic device can receive the voice sent by the second electronic device based on the cooperative relationship. Further, the voice sent by the second electronic device is detected based on the operation request detection model to determine whether the voice sent by the second electronic device includes an operation request. If the processor in the first electronic device detects that the voice sent by the second electronic device includes an operation request based on the operation request detection model, it is confirmed that the first electronic device receives the operation request of the second electronic device.
[0032] In other embodiments, the second electronic device can be pre-configured with an operation request detection model, and the second electronic device can detect the voice input by the user to the second electronic device based on the operation request detection model to determine whether the voice input by the user to the second electronic device includes an operation request. If the processor in the second electronic device detects that the voice input by the user to the second electronic device includes an operation request based on the operation request detection model, the operation request and the voice corresponding to the operation request can be sent to the first electronic device based on the cooperative relationship established between the first electronic device and the second electronic device, and the first electronic device can receive the operation request and the voice corresponding to the operation request sent by the second electronic device based on the cooperative relationship.
[0033] The operation request detection model can be a keyword detection model (such as a TF-IDF algorithm, a Filler model, an LDA algorithm, etc.), or a semantic extraction model (such as a natural language processing technology (NLP), an FCN model, a U-Net model, an OCRNet model, etc.), which is not limited herein. The second electronic device can include a microphone, and the operation request sent by the second electronic device to the first electronic device can be the voice input by the user and collected by the microphone of the second electronic device. For example, the second electronic device includes a microphone, and after the microphone of the second electronic device collects the voice input by the user “I will help you operate”, the voice is sent to the first electronic device. The keyword detection model is pre-set in the first electronic device, and the first electronic device can perform keyword detection on the voice received from the second electronic device based on the keyword detection model, to obtain the keywords “I will” and “operate”, and then determine that the operation request of the second electronic device is received.
[0034] In some embodiments, after the first electronic device receives the operation request of the second electronic device, the identity information of the second electronic device can be further obtained as the first identity information.
[0035] In some embodiments, after the first electronic device receives the operation request of the second electronic device, the ID, operation account information, and operation domain of the second electronic device can be obtained based on the cooperative relationship established between the first electronic device and the second electronic device, and the ID, operation account information, and operation domain of the second electronic device can be taken as the identity information of the second electronic device.
[0036] In some other embodiments, the first electronic device can be pre-provided with a voiceprint recognition model and a voiceprint library. Further, after the first electronic device receives the operation request generated by the second electronic device based on the voice input by the user, the voiceprint recognition model can be used to perform voiceprint recognition on the voice corresponding to the operation request, to obtain a first voiceprint corresponding to the voice. Further, the first electronic device can obtain the identity information corresponding to the first voiceprint based on the voiceprint library, and determine the identity information as the identity information of the second electronic device, and determine the identity information of the second electronic device as the first identity information.
[0037] In some embodiments, the second electronic device can include a microphone, and after the processor in the second electronic device obtains the audio collected by the microphone, the collected audio can be preprocessed. For example, a human voice detection model (such as a VAD model) can be pre-set in the second electronic device, and the second electronic device can detect the audio collected by the microphone in the second electronic device in real time based on the human voice detection model. Further, the second electronic device can filter out audio that does not contain human voice, that is, the second electronic device does not send audio that does not contain human voice to the first electronic device; the second electronic device can also perform noise reduction processing on audio that contains human voice, that is, the second electronic device optimizes the audio sent to the first electronic device to improve the robustness and reliability of the first electronic device in inaudible voiceprint identification, and to improve the accuracy of the obtained first identity information.
[0038] In some embodiments, the second electronic device can perform noise reduction processing on audio containing human voice, that is, the second electronic device can detect the foreground human voice and background noise of the audio collected by the microphone in the second electronic device in real time based on the human voice detection model. If it is detected that the audio includes foreground human voice, the second electronic device can perform noise reduction processing on the audio collected at the current time by using the background noise collected within a preset time period before the current time, thereby improving the efficiency of the second electronic device in sending voice to the first electronic device, and improving the reliability and robustness of the first electronic device in identifying the voice sent by the second electronic device.
[0039] In some embodiments, referring to Figure 3 Before step S110, the method for setting device operation permissions provided by the embodiments of the present application can further include steps S101-S103.
[0040] Step S101: obtaining a first sound pickup result of the first electronic device, and obtaining a second sound pickup result of the second electronic device.
[0041] In some embodiments, the cooperative relationship established between the plurality of electronic devices can be a virtual cooperative relationship, a real cooperative relationship, or a hybrid cooperative relationship. In the virtual cooperative relationship, there is no requirement for the spatial position of the plurality of devices establishing the virtual cooperative relationship, that is, the plurality of devices establishing the virtual cooperative relationship can perform data transmission without being in the same space. In the real cooperative relationship, the plurality of devices establishing the real cooperative relationship are required to be in the same space, that is, the plurality of devices establishing the real cooperative relationship can perform data transmission only when they are in the same space. In the hybrid cooperative relationship, the plurality of devices establishing the hybrid cooperative relationship are required to have some devices in the same space and some devices without spatial position requirement, that is, the plurality of devices establishing the hybrid cooperative relationship can perform data transmission only when some of the devices are in the same space, and some of the devices can perform data transmission without being in the same space.
[0042] In some embodiments, the cooperation relationship between the first electronic device and the second electronic device can be determining whether the first electronic device and the second electronic device are in the same space, if the first electronic device and the second electronic device are in the same space, a real cooperation relationship can be established between the first electronic device and the second electronic device, if the first electronic device and the second electronic device are not in the same space, a virtual cooperation relationship or a mixed cooperation relationship can be established between the first electronic device and the second electronic device.
[0043] Optionally, the manner of determining whether the first electronic device and the second electronic device are in the same space can be obtaining a first positioning of the first electronic device and a second positioning of the second electronic device, and determining whether the first electronic device and the second electronic device are in the same space according to the distance between the first positioning and the second positioning. For example, if the distance between the first positioning and the second positioning is greater than a preset distance, it is determined that the first electronic device and the second electronic device are not in the same space. Wherein, the first electronic device can include a sound pickup device, and the second electronic device can also include a sound pickup device, and the manner of determining whether the first electronic device and the second electronic device are in the same space can also be obtaining a first sound pickup result of the first electronic device and a second sound pickup result of the second electronic device, and determining whether the first electronic device and the second electronic device are in the same space according to the first sound pickup result and the second sound pickup result. Wherein, the first sound pickup result can be understood as the audio collected by the first electronic device, and the second sound pickup result can be understood as the audio collected by the second electronic device.
[0044] Step S102: processing the first sound pickup result based on a preset voice detection model to obtain a first voice feature, and processing the second sound pickup result based on the preset voice detection model to obtain a second voice feature.
[0045] In some embodiments, the first electronic device is pre-provided with a preset voice detection model, wherein the preset voice detection model can be a voiceprint recognition model (such as TF-IDF algorithm, Filler model, LDA algorithm, etc.), or a voice content recognition model (such as Seq2Seq model, transfomer model, etc.). Wherein, the processor in the first electronic device can directly obtain the first sound pickup result collected by the microphone of the first electronic device, and further process the first sound pickup result based on the preset voice detection model to obtain the first voice feature. Wherein, the first language feature can be the voiceprint of the first sound pickup result, or the voice content of the first sound pickup result, which is not limited here.
[0046] In some embodiments, the first electronic device can obtain the second pickup result of the second electronic device from the associated cloud or electronic device through wireless communication technology, can also obtain the second pickup result of the second electronic device from the associated electronic device through a serial communication interface, and can also obtain the second pickup result of the second electronic device directly from the second electronic device through wireless communication technology or a serial communication interface. Further, the second voice feature is obtained by processing the second pickup result based on a preset voice detection model. The second language feature can be a voiceprint of the second pickup result or a voice content of the second pickup result, which is not limited herein.
[0047] In some embodiments, the second electronic device can also be pre-configured with a preset voice detection model. After the second electronic device obtains the second pickup result, the second voice feature can be obtained by processing the second pickup result based on the preset voice detection model. Further, the second voice feature is sent to the first electronic device through wireless communication technology or a serial communication interface. The first electronic device establishes a cooperative relationship between the first electronic device and the second electronic device based on the first language feature and the second language feature.
[0048] Step S103: If the similarity between the first voice feature and the second voice feature is greater than or equal to a preset similarity, it is determined that the first electronic device and the second electronic device are in the same space, and a cooperative relationship between the first electronic device and the second electronic device is established. The electronic devices establishing the cooperative relationship perform data transmission based on the cooperative relationship.
[0049] In some embodiments, after the first electronic device obtains the first voice feature and the second voice feature, the similarity between the first voice feature and the second voice feature can be calculated. Optionally, the similarity between the first voice feature and the second voice feature can be the similarity between the voiceprint in the first voice feature and the voiceprint in the second voice feature, and the similarity is taken as the similarity between the first voice feature and the second voice feature. Alternatively, the similarity between the voice content in the first voice feature and the voice content in the second voice feature can be calculated, and the similarity is taken as the similarity between the first voice feature and the second voice feature. Alternatively, the first similarity between the voiceprint in the first voice feature and the voiceprint in the second voice feature can be calculated, and the second similarity between the voice content in the first voice feature and the voice content in the second voice feature can be calculated. Further, the average, median or arithmetic mean of the first similarity and the second similarity is calculated as the similarity between the first voice feature and the second voice feature.
[0050] Further, after the first electronic device obtains the similarity between the first voice feature and the second voice feature, the first electronic device can compare the similarity with a preset similarity. If the similarity between the first voice feature and the second voice feature is greater than or equal to the preset similarity, the first electronic device and the second electronic device are determined to be in the same space, and a cooperative relationship is established between the first electronic device and the second electronic device. After the plurality of electronic devices establish the cooperative relationship, data transmission can be performed based on the cooperative relationship. Further, after the plurality of electronic devices establish the cooperative relationship, one of the electronic devices can send an operation request to one or more electronic devices with which the cooperative relationship is established based on the cooperative relationship. The one or more electronic devices can set the operation authority of the electronic device sending the operation request on the one or more electronic devices, so as to realize interconnection and interaction among the plurality of electronic devices, and improve the interest and experience of the user in operating the electronic device.
[0051] For example, the first electronic device is a wearable device including a microphone, which can collect the voice of a wearing user and the voice of other users within the pickup range of the microphone. The second electronic device is also a wearable device including a microphone, which can collect the voice of a wearing user and the voice of other users within the pickup range of the microphone. The microphone in the first electronic device (A) can collect the voice of user (a) and the voice of user (b) within the pickup range of the microphone, i.e., the first pickup result. The volume of the voice of user (a) collected by the microphone in the first electronic device (A) is much greater than the volume of the voice of user (b). Further, the first electronic device can process the first pickup result by using a preset voice detection model to obtain a first voice feature. The first electronic device can separate the voices of user a and user b by using the volume feature to obtain voice Aa and Ab, and further extract the voiceprint and / or voice content of each voice as the first voice feature of the first pickup result.
[0052] The microphone in the second electronic device (B) can collect the voice of user (b) and the voice of user (a) within the pickup range of the microphone, i.e., the second pickup result. The volume of the voice of user (b) collected by the microphone in the second electronic device (B) is much greater than the volume of the voice of user (a). Further, the second electronic device can process the second pickup result by using a preset voice detection model to obtain a second voice feature. The second electronic device can separate the voices of user a and user b by using the volume feature to obtain voice Ba and Bb, and further extract the voiceprint and / or voice content of each voice as the second voice feature of the second pickup result.
[0053] The first electronic device can match the voiceprint and speech content of the acquired human voice Aa with all human voices (human voices Ba and Bb) collected by the second electronic device. If the similarity between the voiceprint and speech content of the human voice Aa and the voiceprint and speech content of the human voice collected by the second electronic device is greater than or equal to a preset similarity, it is determined that the first electronic device and the second electronic device are in the same space, and a real collaborative relationship is established between the first electronic device and the second electronic device.
[0054] It should be noted that when two or more electronic devices in the same space perform voice collection to establish a collaborative relationship, considering that the microphones of all electronic devices in the same space form a microphone array, the voice collected by the electronic device cannot be separated by the volume characteristics of the voice collected by the electronic device. The embodiments provided in the present application can perform multi-source positioning and separation by integrating all the voices collected by the electronic devices to determine whether the multiple electronic devices are in the same space to further establish a collaborative relationship between the multiple devices. In the same space, each device can obtain the audio collected by multiple devices in real time, and analyze and extract the common background noise collected by multiple devices in real time. Then, the background noise is used to perform real-time noise reduction processing on the audio currently collected by each device to obtain the pickup result of each device.
[0055] In some embodiments, the first electronic device can include a first microphone with an adjustable pickup range, and the second electronic device can include a second microphone with an adjustable pickup range. The pickup range of the first microphone can be the same as or different from the pickup range of the second microphone, which is not limited herein.
[0056] In some embodiments, the first microphone can collect a first pickup result in a first pickup range, and the second microphone can also collect a second pickup result in the first pickup range. If the similarity between the first voice feature of the first pickup result obtained by the first electronic device in the first pickup range and the second voice feature of the second pickup result obtained by the second electronic device in the first pickup range is less than a preset similarity, it is determined that the first electronic device does not obtain the first pickup result of the first electronic device in the first pickup range, and the second electronic device does not obtain the second pickup result of the second electronic device in the first pickup range, and the pickup range of the first microphone and the second microphone is automatically enlarged to obtain the first pickup result of the first electronic device in a second pickup range and the second pickup result of the second electronic device in the second pickup range. Further return to execute the steps of obtaining the first voice feature of the first pickup result obtained by the first electronic device in the second pickup range, and obtaining the second voice feature of the second pickup result obtained by the second electronic device in the second pickup range, and comparing the similarity between the first voice feature and the second voice feature with the preset similarity, until the similarity between the first voice feature and the second voice feature is greater than or equal to the preset similarity, it is determined that the first electronic device and the second electronic device are in the same space, and the first electronic device and the second electronic device are established in a cooperative relationship, or when the pickup range of the microphone reaches the maximum value, the adjustment of the pickup range of the microphone is stopped.
[0057] In some embodiments, the first pickup range is smaller than the second pickup range. When the first electronic device and the second electronic device establish a cooperative relationship, the pickup range of the first microphone and the second microphone can be gradually enlarged from the minimum value, until the first electronic device and the second electronic device establish a cooperative relationship, the pickup range of the microphone can be kept as the size when the cooperative relationship is established; or when the pickup range of the first microphone and the second microphone is enlarged to the maximum value, it is still not determined that the first electronic device and the second electronic device are in the same space, the pickup range of the microphone can be kept as the maximum value or the minimum value.
[0058] In some embodiments, after the first electronic device and the second electronic device establish a cooperative relationship, or the cooperative relationship between the first electronic device and the second electronic device changes (for example, the first electronic device is taken over by other electronic devices, the first electronic device exits the cooperative relationship, or a new electronic device establishes a cooperative relationship with the first electronic device, etc.), the pickup range of the first microphone can change, and the pickup range of the second microphone can also change, which is not limited here.
[0059] In some embodiments, the pickup range of the first microphone in the first electronic device can be adjusted according to the environment in which the first electronic device is located and the number of other devices in the environment in which the first electronic device is located. For example, if the noise in the environment in which the first electronic device is located is greater than a noise threshold or the number of other devices in the environment in which the first electronic device is located is greater than a number threshold, in order to improve the pickup quality of the first electronic device, the pickup range of the first electronic device can be adjusted to the minimum range under the premise that a cooperative relationship can be established with one other device. If the noise in the environment in which the first electronic device is located is less than or equal to the noise threshold or the number of other devices in the environment in which the first electronic device is located is less than or equal to the number threshold, in order to improve the efficiency of cooperation between the first electronic device and other electronic devices, the pickup range of the first electronic device can be adjusted to the maximum pickup range.
[0060] In some embodiments, referring to Figure 4 The method for setting the operation permission of the device provided in the embodiments of the present application can further include steps S104-S106.
[0061] Step S104: If the similarity between the first voice feature and the second voice feature is less than the preset similarity, a query request is generated and sent to a cooperative device, wherein the cooperative device has established a cooperative relationship with the first electronic device.
[0062] In some embodiments, when a cooperative relationship is established between electronic devices, different spatial distributions of the devices can cause the two devices to reverberate, thereby collecting different opponent voices, and thus causing the establishment of a cooperative relationship between the devices to fail. To avoid the establishment of a cooperative relationship between the first electronic device and the second electronic device being affected by the spatial distribution between the first electronic device and the second electronic device, in the embodiments of the present application, the first electronic device can generate a query request and send the query request to a cooperative device that has established a cooperative relationship with the first electronic device when the similarity between the first voice feature and the second voice feature is less than the preset similarity.
[0063] As an embodiment, when the similarity between the first voice feature obtained by the first electronic device when the pickup range of the first microphone is expanded to the maximum range and the second voice feature obtained by the second microphone when the pickup range of the second microphone is expanded to the maximum range is less than the preset similarity, the first electronic device can generate a query request and send the query request to a cooperative device that has established a cooperative relationship with the first electronic device.
[0064] Step S105: obtaining a query result fed back by the collaborative device based on the query request, wherein the query result comprises that the collaborative device and the second electronic device have established a collaborative relationship or that the collaborative device and the second electronic device have not established a collaborative relationship.
[0065] In some embodiments, after the first electronic device sends the query request to the collaborative device, the collaborative device can query devices that have established a collaborative relationship with the collaborative device in response to the query request, and feed back a query result to the first electronic device, wherein the query result comprises that the collaborative device and the second electronic device have established a collaborative relationship or that the collaborative device and the second electronic device have not established a collaborative relationship.
[0066] As an embodiment, after the first electronic device sends the query request to the collaborative device, the collaborative device can query devices that have established a collaborative relationship with the collaborative device, except the first electronic device, in response to the query request, so as to avoid a dead loop and not query the system relationship of the inquirer.
[0067] As another embodiment, after the first electronic device sends the query request to the collaborative device, the collaborative device can query devices that have established a collaborative relationship with the collaborative device, except the first electronic device, in response to the query request, and if the collaborative device has not established a collaborative relationship with the second electronic device, the collaborative device can further generate a target device query request and send the target device query request to devices that have established a collaborative relationship with the collaborative device, until a device that has established a collaborative relationship with the second electronic device is found or a device that has not established a collaborative relationship with the second electronic device is found, a target device query result is obtained, and the target device query result is sent to the first electronic device. The target device query result comprises that a device that has established a collaborative relationship with the second electronic device exists or that a device that has not established a collaborative relationship with the second electronic device exists. Further, if the first electronic device determines that a device that has established a collaborative relationship with the second electronic device exists based on the target device query result, the first electronic device and the second electronic device establish a collaborative relationship.
[0068] Step S106: if it is determined that the collaborative device and the second electronic device have established a collaborative relationship based on the query result, the first electronic device and the second electronic device establish a collaborative relationship.
[0069] In some embodiments, if the first electronic device determines that the collaborative device and the second electronic device have established a collaborative relationship based on the query result, the first electronic device and the second electronic device establish a collaborative relationship.
[0070] For example, refer to Figure 5 , Figure 6 and Figure 7 . Figure 5 It is shown that, in an ideal state, each of the plurality of devices can establish a collaborative relationship with each other. Figure 6 It is shown that, when the first electronic device cannot establish a collaborative relationship with the second electronic device according to the pickup result, the first electronic device generates a query request to the collaborative device, queries whether the collaborative device has established a collaborative relationship with the second electronic device, if not, the collaborative device queries whether the device that has established a collaborative relationship with the collaborative device has established a collaborative relationship with the second electronic device, until a device that has established a collaborative relationship with the second electronic device is found, and further establishes a collaborative relationship between the first electronic device and the second electronic device. Figure 7 It is shown that, when the first electronic device cannot establish a collaborative relationship with the second electronic device according to the pickup result, the first electronic device generates a query request to the collaborative device, queries whether the collaborative device has established a collaborative relationship with the second electronic device, if not, the collaborative device queries whether the device that has established a collaborative relationship with the collaborative device has established a collaborative relationship with the second electronic device, until a device that has established a collaborative relationship with the second electronic device is found, and further establishes a collaborative relationship between the first electronic device and the second electronic device.
[0071] Step S120: Obtain the identity information of the first electronic device as the second identity information.
[0072] In some embodiments, the first electronic device obtaining the identity information of the first electronic device can be that the first electronic device obtains the ID, operation account information, operation domain, etc. of the first electronic device, and takes the ID, operation account information, operation domain, etc. of the first electronic device as the identity information of the first electronic device. Further, the identity information of the first electronic device is taken as the second identity information.
[0073] In another embodiment, the first electronic device can include a first microphone, and the first electronic device can obtain the voice collected by the first microphone, and identify the identity information of the user corresponding to the voice collected by the first microphone through the non-invasive voiceprint recognition technology, and take the identity information of the user as the identity information of the first electronic device, and determine the identity information of the first electronic device as the second identity information.
[0074] The first electronic device can be a wearable device including a microphone, such as a headset, a virtual reality (VR) device, or the like, which has a voice interaction function. The first electronic device can collect sound in real time through the microphone, extract the voice of the wearer, and extract the voiceprint of the voice of the wearer through a voiceprint recognition model preset in the first electronic device. Further, the voiceprint is matched with a voiceprint library preset in the first electronic device to identify the identity information of the wearer, and the identity information of the wearer is taken as the identity information of the first electronic device, and the identity information of the first electronic device is determined as the second identity information.
[0075] As an implementation manner, if the wearer has not registered the voiceprint in the voiceprint library, the first electronic device can generate prompt information prompting the wearer to register the voiceprint corresponding to the identity information in the voiceprint library, so as to enrich the voiceprint library of the first electronic device and improve the accuracy of the first electronic device in determining the first identity information.
[0076] Step S130: based on the first identity information and the second identity information, setting the operation permission of the second electronic device to the first electronic device.
[0077] In some embodiments, after the first electronic device obtains the first identity information and the second identity information, the operation permission of the second electronic device to the first electronic device can be set based on the first identity information and the second identity information. For example, the first electronic device can be preset with a level corresponding to the operation account information; the first identity information is the operation account information of the first electronic device, and the second identity information is the operation account information of the second electronic device. If it is determined that the level of the operation account information of the first electronic device is higher than that of the operation account information of the second electronic device based on the level of the operation account information preset in the first electronic device, the second electronic device is granted the operation permission of the first electronic device. If the level of the operation account information of the first electronic device is equal to or lower than that of the operation account information of the second electronic device, an authorization setting interface is generated and displayed on the first electronic device, so that the user sets the operation permission of the second electronic device to the first electronic device based on the authorization setting interface.
[0078] In some embodiments, referring to Figure 8 , step S130 can include steps S131-S134.
[0079] Step S131: obtaining a first priority corresponding to the first identity information.
[0080] In some embodiments, the first electronic device can be preconfigured with a priority corresponding to the identity information. After the first electronic device acquires the first identity information, the first electronic device can further acquire a first priority corresponding to the first identity information. For example, the first identity information is the identity information of the user wearing the first electronic device, such as a parent or a team leader in a game.
[0081] Step S132: Acquire a second priority corresponding to the second identity information.
[0082] In some embodiments, the first electronic device can be preconfigured with a priority corresponding to the identity information. After the first electronic device acquires the second identity information, the first electronic device can further acquire a second priority corresponding to the second identity information. For example, the second identity information is the identity information of the user wearing the second electronic device, such as a child or a team member in a game.
[0083] Step S133: If the first priority is higher than the second priority, the operation permission of the first electronic device is granted to the second electronic device.
[0084] In some embodiments, the first electronic device can be preconfigured with a priority corresponding to the identity information. After the first electronic device acquires the second identity information, the first electronic device can further acquire a second priority corresponding to the second identity information. For example, the second identity information is the identity information of the user wearing the second electronic device, such as a child or a team member in a game.
[0085] In some embodiments, the first electronic device can be preconfigured with a priority corresponding to the identity information. After the first electronic device acquires the second identity information, the first electronic device can further acquire a second priority corresponding to the second identity information. For example, the second identity information is the identity information of the user wearing the second electronic device, such as a child or a team member in a game.
[0086] Step S134: If the first priority is equal to the second priority, acquire a permission setting instruction input by a user corresponding to the first electronic device based on the operation request, and set the operation permission of the first electronic device by the second electronic device based on the permission setting instruction.
[0087] In some embodiments, if the first electronic device determines that the first priority is equal to the second priority, the first electronic device acquires a permission setting instruction input by a user corresponding to the first electronic device based on the operation request, and sets the operation permission of the second electronic device to the first electronic device based on the permission setting instruction.
[0088] In some embodiments, the operation request is generated by the second electronic device based on a voice input by a user. After the second electronic device determines that the first priority is equal to the second priority, the second electronic device can generate prompt information for prompting a user corresponding to the first electronic device to input a permission setting instruction based on the operation request. Further, the first electronic device can acquire the permission setting instruction input by the user corresponding to the first electronic device based on the operation request, and can set the operation permission of the second electronic device to the first electronic device based on the permission setting instruction. The permission setting instruction input by the user corresponding to the first electronic device based on the operation request can be to grant the operation permission of the first electronic device to the second electronic device, or not to grant the operation permission of the first electronic device to the second electronic device.
[0089] For example, if the first electronic device receives the operation request of the second electronic device, determines that the first priority is equal to the second priority, and receives the permission setting instruction input by the user corresponding to the first electronic device based on the operation request to grant the operation permission of the first electronic device to the second electronic device, the first electronic device grants the operation permission of the first electronic device to the second electronic device. If the first electronic device receives the operation request of the second electronic device, determines that the first priority is equal to the second priority, and does not detect a sound from the user corresponding to the first electronic device from the time the first electronic device receives the operation request until the time threshold is reached, the first electronic device determines that the permission setting instruction input by the user corresponding to the first electronic device based on the operation request to grant the operation permission of the first electronic device to the second electronic device is obtained, and grants the operation permission of the first electronic device to the second electronic device.
[0090] In some embodiments, the first electronic device identifies the identity information of the user based on the inaudible voiceprint recognition, determines the preset permission corresponding to the identity information, and then regularly acquires the permission setting instruction input by the user corresponding to the first electronic device based on the operation request when the priority corresponding to the identity information of the second electronic device is equal to the priority corresponding to the identity information of the first electronic device, and sets the operation permission of the second electronic device to the first electronic device based on the permission setting instruction, to support the user to perform cross-device interconnection and interaction, and improve the user experience.
[0091] In some embodiments, the first electronic device has a cooperative relationship with a plurality of electronic devices. If the first electronic device receives a voice of the plurality of electronic devices including an operation request, the first electronic device can separate the voice collected by each electronic device by using a multi-source positioning separation method to obtain an independent voice operation request and a voice source of each electronic device, then further use a non-sensitive voiceprint recognition technology to confirm the identity information corresponding to each electronic device, and further obtain the preset permission of each electronic device according to the identity information, and then arrange the priority according to the level of the preset permission of each electronic device and the time corresponding to the voice operation request to obtain a target order. Finally, the first electronic device can set the operation permission of each electronic device to the first electronic device based on the target order.
[0092] The method for setting the operation permission of the device provided by an embodiment of the present application, if the operation request of the second electronic device is received, the identity information of the second electronic device is obtained as the first identity information, wherein the operation request is generated by the second electronic device based on the voice input by the user; the identity information of the first electronic device is obtained as the second identity information; and the operation permission of the second electronic device to the first electronic device is set based on the first identity information and the second identity information. The present application identifies the operation request sent by the second electronic device to the first electronic device through voice recognition, and further sets the operation permission of the second electronic device to the first electronic device according to the identity information of each electronic device, thereby realizing the interconnection and interaction between devices and improving the experience of the user.
[0093] Please refer to Figure 9 , Figure 9 The flowchart of the method for setting the operation permission of the device provided by an embodiment of the present application is shown. The method is applied to the first electronic device described above, wherein the first electronic device is a wearable device. The following will be described in detail with respect to the flowchart shown in Figure 9 The method for setting the operation permission of the device can specifically include the following steps:
[0094] Step S210: If the operation request of the second electronic device is received, the state information of the first electronic device is detected, wherein the state information includes a wearing state or a non-wearing state.
[0095] In some embodiments, the first electronic device is a wearable device, which can include a microphone, such as a headset, a VR, and other wearable devices with voice interaction function.
[0096] The first electronic device and the second electronic device have a cooperative relationship, and the first electronic device and the second electronic device can perform data transmission based on the cooperative relationship. As an implementation manner, after receiving an operation request of the second electronic device, the first electronic device can detect state information of the first electronic device. The state information includes whether the first electronic device is in a wearing state or not.
[0097] Optionally, the processor of the first electronic device can detect the state information of the first electronic device in the following manner: detecting whether there is pulse information, if there is pulse information, determining that the first electronic device is in a wearing state; and if there is no pulse information, determining that the first electronic device is not in a wearing state. The first electronic device can also include an infrared sensor, and the first electronic device can obtain an infrared signal of the infrared sensor to detect the state information of the first electronic device.
[0098] Step S220: If the state information of the first electronic device is not in a wearing state, the operation permission of the first electronic device is granted to the second electronic device.
[0099] In some embodiments, if the processor of the first electronic device detects that the state information of the first electronic device is not in a wearing state, the operation permission of the first electronic device is granted to the second electronic device.
[0100] For example, the first electronic device and the second electronic device are applied to a multi-device team game, if the first electronic device receives an operation request of the second electronic device, further, the processor of the first electronic device can detect the state information of the first electronic device, if it is detected that the first electronic device is not in a wearing state, the operation permission of the first electronic device is granted to the second electronic device.
[0101] The wearable device, that is, the first electronic device, intelligently authorizes the operation of the second electronic device by means of a microphone and analysis of the state information of the first electronic device, realizes reliable, robust and rich cross-device voice cooperation, and improves the experience of the user to the wearable device.
[0102] In some embodiments, referring to Figure 10 The method for setting the operation permission of the device provided by the embodiments of the present application can further include steps S230-S250.
[0103] Step S230: If the state information of the first electronic device is in a wearing state, target voice of the first electronic device is obtained.
[0104] In some embodiments, if the processor of the first electronic device determines that the state information of the first electronic device is in the wearing state, the target voice of the first electronic device can be obtained.
[0105] The target voice can be understood as the voice of the user wearing the first electronic device collected by the microphone in the first electronic device.
[0106] In some embodiments, if the state information of the first electronic device is in the wearing state, and the processor in the first electronic device detects that the user wearing the first electronic device has been talking all the time, the target voice of the first electronic device is obtained.
[0107] Step S240: performing semantic analysis on the target voice to obtain semantic content corresponding to the target voice, wherein the semantic content includes game content or non-game content.
[0108] In some embodiments, after the first electronic device obtains the target voice, the first electronic device can perform semantic analysis on the target voice to obtain semantic content corresponding to the target voice. The semantic content includes game content or non-game content.
[0109] In some embodiments, the first electronic device can be pre-configured with a semantic analysis model, such as a natural language processing technology (NLP), an FCN model, a U-Net model, an OCRNet model, etc. Further, after the first electronic device obtains the target voice, the first electronic device can obtain the semantic content corresponding to the target voice based on the semantic analysis model.
[0110] Step S250: if the semantic content is non-game content, the operation permission of the first electronic device is granted to the second electronic device.
[0111] In some embodiments, if the first electronic device determines that the semantic content of the target voice is non-game content, such as making a phone call, the operation permission of the first electronic device can be granted to the second electronic device.
[0112] The first electronic device detects state information of the first electronic device after receiving the operation request of the second electronic device, and authorizes the second electronic device to operate in a flexible manner. For example, the first electronic device and the second electronic device are applied to a multi-device team game. After receiving the operation request of the second electronic device, the first electronic device detects state information of the first electronic device. If the first electronic device is in an unworn state, the operation permission of the first electronic device is granted to the second electronic device. If the first electronic device is in a worn state and it is detected that the user wearing the first electronic device is talking all the time, the target voice of the user is obtained, semantic analysis is performed on the target voice, if it is determined that the user is doing something other than the game, such as making a phone call, the operation permission of the first electronic device is granted to the second electronic device, thereby realizing the interconnection and interaction between devices and improving the user experience.
[0113] Compared with the method for setting device operation permission shown in Figure 2 If the operation request of the second electronic device is received, the state information of the first electronic device is detected, and the state information includes a worn state or an unworn state. If the state information of the first electronic device is in an unworn state, the operation permission of the first electronic device is granted to the second electronic device. The wearing condition of the electronic device is detected, the operation permission of the electronic device is intelligently granted to the electronic device requesting operation when the electronic device is in an unworn state, the interconnection and interaction of the user across devices are realized, and the user experience is improved.
[0114] Please refer to Figure 11 , Figure 11 A module block diagram of the device for setting device operation permission is shown. The device for setting device operation permission 200 is applied to the first electronic device. The following will be described in detail with respect to the flow shown in Figure 11 The device for setting device operation permission 200 includes a first identity information acquisition module 210, a second identity information acquisition module 220, and an operation permission setting module 230, wherein:
[0115] The first identity information acquisition module 210 is configured to acquire the identity information of the second electronic device as the first identity information if the operation request of the second electronic device is received, and the operation request is generated by the second electronic device based on the voice input by the user.
[0116] The second identity information acquisition module 220 is configured to acquire the identity information of the first electronic device as the second identity information.
[0117] The operation permission setting module 230 is configured to set an operation permission of the second electronic device to the first electronic device based on the first identity information and the second identity information.
[0118] Further, before the identity information of the second electronic device is obtained as the first identity information if the operation request of the second electronic device is received, the device 200 for setting the operation permission of the device further includes a sound pickup result obtaining module, a voice feature obtaining module, and a first cooperative relationship establishing module.
[0119] The sound pickup result obtaining module is configured to obtain a first sound pickup result of the first electronic device and a second sound pickup result of the second electronic device.
[0120] The voice feature obtaining module is configured to process the first sound pickup result based on a preset voice detection model to obtain a first voice feature, and process the second sound pickup result based on the preset voice detection model to obtain a second voice feature.
[0121] The first cooperative relationship establishing module is configured to determine that the first electronic device and the second electronic device are in the same space if a similarity of the first voice feature and the second voice feature is greater than or equal to a preset similarity, and establish a cooperative relationship between the first electronic device and the second electronic device, wherein the electronic devices in the cooperative relationship perform data transmission based on the cooperative relationship.
[0122] Further, the sound pickup result obtaining module can include a sound pickup result obtaining submodule.
[0123] The sound pickup result obtaining submodule is configured to obtain the first sound pickup result of the first electronic device in a second sound pickup range and the second sound pickup result of the second electronic device in the second sound pickup range if the first sound pickup result of the first electronic device is not obtained in a first sound pickup range and the second sound pickup result of the second electronic device is not obtained in the first sound pickup range, wherein the first sound pickup range is smaller than the second sound pickup range.
[0124] Further, the device 200 for setting the operation permission of the device further includes a query request sending module, a query result obtaining module, and a second cooperative relationship establishing module.
[0125] The query request sending module is configured to generate a query request and send the query request to a cooperative device if the similarity of the first voice feature and the second voice feature is less than the preset similarity, wherein the cooperative device has a cooperative relationship with the first electronic device.
[0126] The query result acquisition module is configured to acquire a query result fed back by the cooperative device based on the query request, wherein the query result comprises that the cooperative device and the second electronic device have established a cooperative relationship or the cooperative device and the second electronic device have not established a cooperative relationship.
[0127] The second cooperative relationship establishment module is configured to establish a cooperative relationship between the first electronic device and the second electronic device if it is determined based on the query result that the cooperative device and the second electronic device have established a cooperative relationship.
[0128] Further, the operation permission setting module 230 can comprise a first priority acquisition unit, a second priority acquisition unit, a first operation permission setting unit and a second operation permission setting unit, wherein:
[0129] The first priority acquisition unit is configured to acquire a first priority corresponding to the first identity information.
[0130] The second priority acquisition unit is configured to acquire a second priority corresponding to the second identity information.
[0131] The first operation permission setting unit is configured to grant the second electronic device with the operation permission of the first electronic device if the first priority is higher than the second priority.
[0132] The second operation permission setting unit is configured to acquire a permission setting instruction input by a user corresponding to the first electronic device based on the operation request, and set the operation permission of the first electronic device by the second electronic device based on the permission setting instruction if the first priority is equal to the second priority.
[0133] Further, the first electronic device is a wearable device, and the device 200 for setting the operation permission of the device can further comprise a state information monitoring module and an operation permission granting first module, wherein:
[0134] The state information monitoring module is configured to detect state information of the first electronic device, wherein the state information comprises a wearing state or a non-wearing state.
[0135] The operation permission granting first module is configured to grant the second electronic device with the operation permission of the first electronic device if the state information of the first electronic device is the non-wearing state.
[0136] Further, the device 200 for setting the operation permission of the device can further comprise a target voice acquisition module, a voice content acquisition module and an operation permission granting second module, wherein:
[0137] The target voice acquisition module is configured to acquire a target voice of the first electronic device if the state information of the first electronic device is in the wearing state.
[0138] The voice content acquisition module is configured to perform semantic analysis on the target voice to obtain semantic content corresponding to the target voice, wherein the semantic content includes game content or non-game content.
[0139] The operation permission granting second module is configured to grant the second electronic device with an operation permission of the first electronic device if the semantic content is non-game content.
[0140] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and module can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0141] In several embodiments provided in the present application, the coupling between the modules can be electrical, mechanical or other forms of coupling.
[0142] In addition, each functional module in each embodiment of the present application can be integrated in one processing module, or each module can exist physically independently, or two or more modules can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.
[0143] Please refer to Figure 12 which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 can be a smart phone, a tablet computer, an electronic book or the like, which can run an application program. The electronic device 100 in the present application can include one or more of the following components: a processor 110, a memory 120 and one or more application programs, wherein the one or more application programs can be stored in the memory 120 and configured to be executed by the one or more processors 110, and the one or more programs are configured to perform the method as described in the foregoing method embodiments.
[0144] The processor 110 can include one or more processing cores. The processor 110 connects various parts within the entire electronic device 100 by various interfaces and lines, performs various functions of the electronic device 100 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Alternatively, the processor 110 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), a programmable logic array (PLA). The processor 110 can integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes an operating system, a user interface, and an application program, etc.; the GPU is responsible for rendering and drawing of content to be displayed; and the modem is used for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 110, but be implemented by a separate communication chip.
[0145] The memory 120 can include a random access memory (RAM) and can also include a read-only memory (ROM). The memory 120 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 can include a program storage area and a data storage area, wherein the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing each of the method embodiments described below, etc. The data storage area can also store data created by the electronic device 100 in use (such as a phone book, audio and video data, chat record data, etc.).
[0146] Please refer to Figure 13 which shows a structural block diagram of a computer readable storage medium provided by the embodiments of the present application. The computer readable medium 300 stores program codes therein, and the program codes can be called and executed by a processor to perform the methods described in the above method embodiments.
[0147] The computer-readable storage medium 300 can be an electronic memory such as a flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk or ROM. Alternatively, the computer-readable storage medium 300 comprises a non-transitory computer-readable medium. The computer-readable storage medium 300 has storage space for program code 310 to perform any of the method steps of the above-described methods. The program code can be read from or written to one or more computer program products. The program code 310 can be compressed, for example, in a suitable form.
[0148] To sum up, the method and device for setting device operation permission, electronic device and storage medium provided by the embodiments of the present application, if the operation request of the second electronic device is received, the identity information of the second electronic device is obtained as the first identity information, wherein the operation request is generated by the second electronic device based on the voice input by the user; the identity information of the first electronic device is obtained as the second identity information; and the operation permission of the second electronic device to the first electronic device is set based on the first identity information and the second identity information. The present application recognizes the operation request sent by the second electronic device to the first electronic device through voice recognition, and further sets the operation permission of the second electronic device to the first electronic device according to the identity information of each electronic device, thereby realizing the interconnection and interaction between electronic devices and improving the experience of the user.
[0149] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method of setting a device operation authority, characterized by, The method applied to a first electronic device comprises: obtaining a first pickup result of the first electronic device and a second pickup result of a second electronic device; processing the first pickup result based on a preset voice detection model to obtain a first voice feature, and processing the second pickup result based on the preset voice detection model to obtain a second voice feature; if a similarity of the first voice feature and the second voice feature is greater than or equal to a preset similarity, determining that the first electronic device and the second electronic device are in the same space, and establishing a cooperative relationship between the first electronic device and the second electronic device, wherein a plurality of electronic devices establishing the cooperative relationship perform data transmission based on the cooperative relationship; if an operation request of the second electronic device is received, obtaining identity information of the second electronic device as first identity information, wherein the operation request is generated by the second electronic device based on a voice input by a user; obtaining identity information of the first electronic device as second identity information; based on the first identity information and the second identity information, setting an operation permission of the second electronic device on the first electronic device.
2. The method of claim 1, wherein, The method further comprises: if the first pickup result of the first electronic device is not obtained in a first pickup range, and the second pickup result of the second electronic device is not obtained in the first pickup range, obtaining the first pickup result of the first electronic device in a second pickup range, and obtaining the second pickup result of the second electronic device in the second pickup range, wherein the first pickup range is smaller than the second pickup range.
3. The method of claim 1, wherein, The method further comprises: if the similarity of the first voice feature and the second voice feature is less than the preset similarity, generating a query request and sending the query request to a cooperative device, wherein the cooperative device has a cooperative relationship with the first electronic device; obtaining a query result fed back by the cooperative device based on the query request, wherein the query result comprises that the cooperative device has a cooperative relationship with the second electronic device, or the cooperative device does not have a cooperative relationship with the second electronic device; if it is determined based on the query result that the cooperative device has a cooperative relationship with the second electronic device, establishing a cooperative relationship between the first electronic device and the second electronic device.
4. The method of claim 1, wherein, The method further comprises: obtaining a first priority corresponding to the first identity information; obtaining a second priority corresponding to the second identity information; if the first priority is higher than the second priority, granting the operation permission of the first electronic device to the second electronic device; If the first priority is equal to the second priority, a permission setting instruction input by a user of the first electronic device based on the operation request is acquired, and an operation permission of the second electronic device to the first electronic device is set based on the permission setting instruction.
5. The method of claim 1, wherein, The first electronic device is a wearable device, and the method further includes: detecting state information of the first electronic device, wherein the state information includes a wearing state or a non-wearing state; if the state information of the first electronic device is the non-wearing state, the operation permission of the first electronic device is granted to the second electronic device.
6. The method of claim 5, wherein, The method further includes: if the state information of the first electronic device is the wearing state, a target voice of the first electronic device is acquired; performing semantic analysis on the target voice to obtain semantic content corresponding to the target voice, wherein the semantic content includes game content or non-game content; if the semantic content is non-game content, the operation permission of the first electronic device is granted to the second electronic device.
7. An apparatus for setting a device operation authority, the apparatus comprising: The device is applied to a first electronic device, and includes: a first identity information acquisition module configured to acquire a first sound pickup result of the first electronic device and a second sound pickup result of a second electronic device, process the first sound pickup result based on a preset voice detection model to obtain a first voice feature, process the second sound pickup result based on the preset voice detection model to obtain a second voice feature, and determine that the first electronic device and the second electronic device are in the same space and establish a collaborative relationship between the first electronic device and the second electronic device if a similarity of the first voice feature and the second voice feature is greater than or equal to a preset similarity, wherein a plurality of electronic devices establishing the collaborative relationship perform data transmission based on the collaborative relationship, and acquire identity information of the second electronic device as first identity information if an operation request of the second electronic device is received, wherein the operation request is generated by the second electronic device based on a voice input by a user; a second identity information acquisition module configured to acquire identity information of the first electronic device as second identity information; an operation permission setting module configured to set an operation permission of the second electronic device to the first electronic device based on the first identity information and the second identity information.
8. An electronic device, comprising: includes: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the method of any one of claims 1-6.
9. A computer readable storage medium, characterized in that, The computer-readable storage medium stores program code, and the program code can be called and executed by a processor to perform the method of any one of claims 1-6.
Citation Information
Patent Citations
Method and apparatus for setting operational right
CN105095706A
Method and apparatus of controlling access permission among multi devices, and mobile terminal
CN106685978A