Equipment control method and device, electronic equipment and storage medium
By obtaining and comparing the sound source characteristics corresponding to the voice information, identifying the electronic devices that the user may want to wake up, solving the problem of multiple electronic devices responding simultaneously, and improving the accuracy and user experience of voice control.
Patent Information
- Application Number
- CN202411051693.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-11-15
AI Technical Summary
In voice control scenarios, when the user inputs voice information, it is easy to cause multiple electronic devices to wake up at the same time, resulting in inaccurate and incorrect wake-up, affecting the user's voice control of the electronic devices.
By obtaining the first sound source feature corresponding to the voice information input by the user, and broadcasting on the local area network, detecting and receiving the second sound source feature corresponding to the same voice information sent by other electronic devices, based on the first and second sound source feature pairs The electronic devices are filtered to identify the target electronic devices that the user may want to wake up, thereby performing the corresponding device operations.
Improves the accuracy of device wake-up, reduces the possibility of false wake-up, ensures that only the device closest to the user responds to commands, providing a more accurate and efficient user experience.
Smart Images

Figure CN118968981A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of equipment control technology, and in particular to a equipment control method, an equipment control device, an electronic device and a computer-readable storage medium. Background Art
[0002] With the development of science and technology, users can deploy multiple electronic devices at home, so that users can control the electronic devices to perform corresponding functions at home through corresponding control instructions. Among them, for electronic devices, they can usually have a voice wake-up function. After the user enters the corresponding voice wake-up command, the electronic device is activated to achieve control of the electronic device. However, in the process of waking up or controlling electronic devices, it is easy to wake up multiple electronic devices at the same time, affecting the user's voice control of the electronic device. Summary of the invention
[0003] The embodiments of the present invention provide a device control method, an apparatus, an electronic device, and a computer-readable storage medium to solve or partially solve the problem of inaccurate wake-up and false wake-up that are prone to occur during voice control of the electronic device.
[0004] An embodiment of the present invention discloses a device control method, which is applied to a first electronic device. The method includes:
[0005] In response to voice information input by a user, obtaining a first sound source feature corresponding to the voice information;
[0006] If there is a second electronic device within the preset range, receiving a second sound source feature corresponding to the voice information and sent by the second electronic device;
[0007] Electronic devices are screened according to the first sound source feature and the second sound source feature to obtain a device execution result for the voice information, wherein the device execution result is used to instruct the first electronic device or the second electronic device to perform a device operation corresponding to the voice information.
[0008] In some feasible implementations, screening electronic devices according to the first sound source feature and the second sound source feature to obtain a device execution result for the voice information includes:
[0009] comparing the first sound source feature with the second sound source feature, and if the comparison result indicates that a first distance between the first electronic device and the user is less than a second distance between the second electronic device and the user, using the first electronic device as an execution device;
[0010] A device operation corresponding to the voice information is executed, and a first judgment result for the voice information is sent to the second electronic device, where the first judgment result is used to indicate that the second electronic device does not need to respond to the voice information.
[0011] In some feasible implementations, the screening of electronic devices according to the first sound source feature and the second sound source feature to obtain a device judgment result for the voice information further includes:
[0012] If the comparison result indicates that the first distance between the first electronic device and the user is greater than the second distance between the second electronic device and the user, a second judgment result regarding the voice information sent by the second electronic device is received, and the voice information is not responded to based on the second judgment result.
[0013] In some feasible implementations, the first sound source feature includes at least a first sound source intensity, the second sound source feature includes at least a second sound source intensity, and comparing the first sound source feature with the second sound source feature, if the comparison result indicates that a first distance between the first electronic device and the user is less than a second distance between the second electronic device and the user, using the first electronic device as an execution device includes:
[0014] If the first sound source intensity is greater than the second sound source intensity, the first electronic device is used as an execution device.
[0015] In some feasible implementations, the first sound source feature includes at least a first sound source intensity, the second sound source feature includes at least a second sound source intensity, and if the comparison result indicates that a first distance between the first electronic device and the user is greater than a second distance between the second electronic device and the user, receiving the second judgment result sent by the second electronic device includes:
[0016] If the first sound source strength is less than the second sound source strength, a second judgment result for the voice information sent by the second electronic device is received.
[0017] Some possible implementations also include:
[0018] If there is no second electronic device within the preset range, a device operation corresponding to the voice information is performed.
[0019] In some feasible implementations, the first sound source feature includes at least a first sound source orientation, and if a second electronic device exists within the preset range, receiving a second sound source feature corresponding to the voice information and sent by the second electronic device includes:
[0020] Locating a target space corresponding to the orientation of the first sound source;
[0021] If there is a second electronic device in the target space, a second sound source feature corresponding to the voice information and sent by the second electronic device is received.
[0022] The embodiment of the present invention further discloses a device control apparatus, which is applied to a first electronic device, and the device includes:
[0023] A sound source information acquisition module, configured to acquire a first sound source feature corresponding to the voice information in response to the voice information input by the user;
[0024] a sound source feature receiving module, configured to receive a second sound source feature corresponding to the voice information and sent by the second electronic device if there is a second electronic device within a preset range;
[0025] A device processing module is used to screen electronic devices according to the first sound source feature and the second sound source feature to obtain a device execution result for the voice information, wherein the device execution result is used to instruct the first electronic device or the second electronic device to perform a device operation corresponding to the voice information.
[0026] In some feasible implementations, the device processing module is specifically used to:
[0027] comparing the first sound source feature with the second sound source feature, and if the comparison result indicates that a first distance between the first electronic device and the user is less than a second distance between the second electronic device and the user, using the first electronic device as an execution device;
[0028] A device operation corresponding to the voice information is executed, and a first judgment result for the voice information is sent to the second electronic device, where the first judgment result is used to indicate that the second electronic device does not need to respond to the voice information.
[0029] In some feasible implementations, the device processing module is further configured to:
[0030] If the comparison result indicates that the first distance between the first electronic device and the user is greater than the second distance between the second electronic device and the user, a second judgment result regarding the voice information sent by the second electronic device is received, and the voice information is not responded to based on the second judgment result.
[0031] In some feasible implementations, the first sound source feature includes at least a first sound source intensity, the second sound source feature includes at least a second sound source intensity, and the device processing module is specifically configured to:
[0032] If the first sound source intensity is greater than the second sound source intensity, the first electronic device is used as an execution device.
[0033] In some feasible implementations, the first sound source feature includes at least a first sound source intensity, the second sound source feature includes at least a second sound source intensity, and the device processing module is specifically configured to:
[0034] If the first sound source strength is less than the second sound source strength, a second judgment result for the voice information sent by the second electronic device is received.
[0035] Some possible implementations also include:
[0036] The operation execution module is used to execute the device operation corresponding to the voice information if the second electronic device does not exist within the preset range.
[0037] In some feasible implementations, the first sound source feature at least includes a first sound source orientation, and the sound source feature receiving module is specifically configured to:
[0038] Locating a target space corresponding to the orientation of the first sound source;
[0039] If there is a second electronic device in the target space, a second sound source feature corresponding to the voice information and sent by the second electronic device is received.
[0040] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0041] The memory is used to store computer programs;
[0042] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.
[0043] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method described in the embodiment of the present invention.
[0044] The embodiments of the present invention include the following advantages:
[0045] In an embodiment of the present invention, in a voice control scenario, when an electronic device detects voice information input by a user, it can obtain a first sound source feature corresponding to the voice information, and broadcast the first sound source feature to other electronic devices in the same local area network, and detect whether there are other electronic devices within a preset range. If so, it receives a second sound source feature corresponding to the same voice information sent by other electronic devices, and then screens the electronic devices based on the first sound source feature and the second sound source feature, and screens out target electronic devices that respond to the voice information, and then the target electronic devices perform corresponding device operations. In the voice control scenario, when there are multiple electronic devices in the space and there is a possibility of simultaneous response between different electronic devices, the electronic devices that the user may want to wake up can be identified based on the sound source features corresponding to the voice information received by each electronic device, thereby improving the accuracy of device wake-up and reducing the possibility of false wake-up. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 is a flowchart of a method for controlling a device provided in an embodiment of the present invention;
[0047] Figure 2 is a schematic diagram of an application scenario provided in an embodiment of the present invention;
[0048] Figure 3 is a structural block diagram of a control device of a device provided in an embodiment of the present invention;
[0049] Figure 4 It is a block diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0051] As an example, with the development of voice control technology, more and more electronic devices support voice control. For example, in smart homes, different types of home appliances can be controlled by voice. In the process of controlling home appliances by voice, users need to first wake up the corresponding home appliances by using a wake-up word. After waking up, the home appliances perform corresponding device operations based on the corresponding voice information. When there are multiple home appliances in the same space, when the user inputs the corresponding voice information, since multiple home appliances may share the same wake-up word, it is easy for the user to wake up multiple electronic devices at the same time in the process of controlling home appliances by voice, which affects the user's voice control of the electronic devices.
[0052] In this regard, in the present invention, in a voice control scenario, when an electronic device detects voice information input by a user, it can obtain a first sound source feature corresponding to the voice information, and broadcast the first sound source feature to other electronic devices in the same local area network, and detect whether there are other electronic devices within a preset range. If so, it receives a second sound source feature corresponding to the same voice information sent by other electronic devices, and then screens the electronic devices based on the first sound source feature and the second sound source feature, and screens out target electronic devices that respond to the voice information, and then the target electronic devices perform corresponding device operations. In the voice control scenario, when there are multiple electronic devices in the space and there is a possibility of simultaneous response between different electronic devices, the electronic devices that the user may want to wake up can be identified based on the sound source features corresponding to the voice information received by each electronic device, thereby improving the accuracy of device wake-up and reducing the possibility of false wake-up.
[0053] Reference Figure 1 , shows a flowchart of a control method of a device provided in an embodiment of the present invention, which is applied to a first electronic device and may specifically include the following steps:
[0054] Step 101, in response to voice information input by a user, obtaining a first sound source feature corresponding to the voice information;
[0055] Optionally, the electronic device can be a device that supports voice control, such as a smart home device. When a user inputs corresponding voice information, the electronic device can collect the voice information input by the user, perform semantic recognition, and then determine the voice command corresponding to the voice information, and then execute the corresponding voice command, including playing music, setting an alarm, checking the weather, controlling the device, etc. The present invention is not limited to this.
[0056] Optionally, there may be at least two electronic devices in a space, and different electronic devices may share the same "wake-up word", such as "hello, xx", "hello, xx" and "xx", etc., where "xx" can be the name of the voice assistant of the electronic device, or a personalized name set by the user. In the case of multiple electronic devices, if the user inputs the corresponding voice information (such as the wake-up word, etc.), it is easy to wake up all the electronic devices at the same time, which will reduce the accuracy of device wake-up on the one hand, and may also cause false wake-up on the other hand, affecting the user's control over the electronic devices.
[0057] In an embodiment of the present invention, for all electronic devices, especially electronic devices located in the same local area network, when it is detected that a user inputs voice information, the sound source characteristics corresponding to the voice information can be obtained, and the sound source characteristics obtained can be broadcast to other electronic devices in the same local area network, so that each electronic device can determine whether to respond to the voice information based on the received sound source characteristics.
[0058] For example, suppose that in the living room, there are electronic devices ①, ② and ③, etc. When the user inputs the corresponding voice information, electronic devices ①, ② and ③ can respectively detect the voice information and determine the sound source features corresponding to the voice information. The sound source features can be used to characterize the positional relationship between the electronic device and the user. Since the positional relationship between different electronic devices and the user may be different, the sound source features determined by each electronic device may also be different. Therefore, based on different sound source features, the target electronic device that should actually respond to the user's voice information can be determined, thereby improving the accuracy of device wake-up and reducing the possibility of false wake-up.
[0059] Step 102: if there is a second electronic device within the preset range, receiving a second sound source feature corresponding to the voice information and sent by the second electronic device;
[0060] Among them, the first electronic device and the second electronic device are both electronic devices in the same local area network, and the processing process of responding to voice information between the first electronic device and the second electronic device is the same. In the embodiment of the present invention, the first electronic device is taken as an example for exemplary description.
[0061] In an embodiment of the present invention, for the first electronic device, after determining the first sound source feature corresponding to the voice information input by the user, it can first detect whether there is a second electronic device within the preset range. If there is no second electronic device within the preset range, it indicates that currently only the first electronic device has received the voice information input by the user, then the first electronic device can respond to the voice information and perform the device operation corresponding to the voice information; if there is a second electronic device within the preset range, it indicates that in addition to the first electronic device receiving the voice information input by the user, there is at least one second electronic device that receives the voice information input by the user, then the first electronic device can receive the second sound source feature corresponding to the voice information sent by the second electronic device, and also send the first sound source feature corresponding to the voice information to each second electronic device, so that the first electronic device and the second electronic device can respectively determine whether they need to respond to the voice information based on the sound source features.
[0062] In some feasible implementations, the first sound source feature includes at least a first sound source orientation, and the first sound source orientation represents the relative direction and position of the voice information. The first electronic device can locate the target space corresponding to the first sound source orientation, and perform device detection on the target space. If there is a second electronic device in the target space, the second sound source feature corresponding to the voice information sent by the second electronic device is received; if there is no second electronic device in the target space, the device operation corresponding to the voice information is executed, so as to preliminarily determine whether there is an electronic device that receives the same voice information based on the sound source feature, which can effectively reduce the probability of false device wake-up.
[0063] Step 103, screening electronic devices according to the first sound source feature and the second sound source feature to obtain a device execution result for the voice information, wherein the device execution result is used to instruct the first electronic device or the second electronic device to perform a device operation corresponding to the voice information.
[0064] In an embodiment of the present invention, when there are multiple electronic devices that all receive the same voice information, the first electronic device can screen the electronic devices based on the first sound source feature and the second sound source feature to obtain a device execution result for the voice information, and the device execution result is used to instruct the first electronic device or the second electronic device to perform a device operation corresponding to the voice information. Therefore, in a voice control scenario, when there are multiple electronic devices in the space and there is a possibility of simultaneous response between different electronic devices, the electronic devices that the user may want to wake up can be identified based on the sound source features corresponding to the voice information received by each electronic device, thereby improving the accuracy of device wake-up and reducing the possibility of false wake-up.
[0065] It should be noted that when there are at least two electronic devices receiving the same voice information, each electronic device can perform device screening based on the sound source characteristics determined by itself and the sound source characteristics corresponding to the same voice information sent by other electronic devices to determine whether it responds to the voice information itself or other electronic devices respond to the voice information.
[0066] In some feasible implementations, the first electronic device may compare the first sound source feature with the second sound source feature. If the comparison result indicates that the first distance between the first electronic device and the user is less than the second distance between the second electronic device and the user, the first electronic device is used as an execution device, and the device operation corresponding to the voice information is executed, and the first judgment result for the voice information is sent to the second electronic device, and the first judgment result is used to indicate that the second electronic device does not need to respond to the voice information. If the comparison result indicates that the first distance between the first electronic device and the user is greater than the second distance between the second electronic device and the user, the second judgment result for the voice information sent by the second electronic device is received, and the voice information is not responded to based on the second judgment result. In the voice control scenario, when there are multiple electronic devices in the space and there is a possibility of simultaneous response between different electronic devices, the electronic devices that the user may want to wake up can be identified according to the sound source features corresponding to the voice information received by each electronic device, thereby improving the accuracy of device wake-up and reducing the possibility of false wake-up.
[0067] In a specific implementation, the first sound source feature includes at least the first sound source intensity, and the second sound source feature includes at least the second sound source intensity. For the above-mentioned device screening process, the first electronic device can compare the first sound source intensity with the second sound source intensity. If the first sound source intensity is greater than the second sound source intensity, the first electronic device is used as an execution device, and the device operation corresponding to the voice information is executed, and the first judgment result for the voice information is sent to the second electronic device, and the first judgment result is used to indicate that the second electronic device does not need to respond to the voice information. Correspondingly, if the first sound source intensity is less than the second sound source intensity, the second judgment result for the voice information sent by the second electronic device is received, and the first electronic device does not respond to the voice information, so as to avoid false wake-up. In the voice control scenario, when there are multiple electronic devices in the space and there is a possibility of simultaneous response between different electronic devices, the electronic devices that the user may want to wake up can be identified according to the sound source characteristics corresponding to the voice information received by each electronic device, thereby improving the accuracy of device wake-up and reducing the possibility of false wake-up.
[0068] In some examples, assuming that there are electronic devices ① and ② in the living room, when the user is in the living room and inputs corresponding voice information, both electronic devices ① and ② can receive the voice information and determine the sound source features corresponding to the voice information, specifically:
[0069] For electronic device ①: after receiving the voice information, the first sound source feature corresponding to the voice information can be determined, including the first sound source direction and the first sound source intensity. Based on the first sound source direction, it can be detected that electronic device ② also receives the voice information. Then electronic device ① can also receive the second sound source feature sent by electronic device ②, including the second sound source intensity, and then compare the first sound source intensity with the second sound source intensity. If the first sound source intensity is greater than the second sound source intensity, the electronic device ① is closer to the user, and the electronic device ① is used as an execution device to perform a wake-up operation and corresponding device operations, and at the same time send the execution result to the electronic device ②, and inform the electronic device ② through the execution result that there is no need to respond to the voice information; on the contrary, if the second sound source intensity is greater than the first sound source intensity, indicating that the electronic device ② is closer to the user, the electronic device ① does not respond to the voice information, that is, does not perform the wake-up operation. For this process, the electronic device ① can determine not to respond based on the first sound source intensity and the second sound source intensity, or it can receive the execution result sent by the electronic device ②, or it can be a combination of the two, etc., and the present invention is not limited to this.
[0070] For electronic device ②: after receiving the voice information, the second sound source feature corresponding to the voice information can be determined, including the second sound source direction and the second sound source intensity. Based on the second sound source direction, it can be detected that electronic device ① also receives the voice information. Then electronic device ② can also receive the first sound source feature sent by electronic device ①, including the first sound source intensity, and then compare the first sound source intensity with the second sound source intensity. The comparison process can refer to the processing process of electronic device ①, which will not be repeated here. Therefore, in the voice control scenario, when there are multiple electronic devices in the space and there is a possibility of simultaneous response between different electronic devices, the electronic device closest to the user can be identified according to the sound source features corresponding to the voice information received by each electronic device, and the device can be used as the device to be awakened, thereby improving the accuracy of device awakening and reducing the possibility of false awakening.
[0071] In one example, assume that there are two smart speaker devices in a home environment: device A and device B. When the user issues a voice command "play music" in the living room, each device can first collect sound source features: device A detects the user's voice and records the first sound source intensity, assuming it is 70dB; device B also detects the user's voice and records the second sound source intensity, assuming it is 60dB. Then, device A and device B can broadcast the corresponding sound source features to other devices in the same local area network, that is, device A can obtain the sound source features collected by device B, and device B can obtain the sound source features collected by device A. Then, device A and device B can compare the sound source intensity respectively. Device A compares the first sound source intensity 70dB with the second sound source intensity 60dB. Since 70dB is greater than 60dB, device A determines that it should be used as an execution device, and then device A starts to execute the device operation corresponding to the voice information, that is, play music. And, device A sends the first judgment result to device B at the same time, indicating that device B does not need to respond to the voice information. Device B receives the first judgment result sent by device A and confirms that it does not need to respond to the voice information, thereby avoiding false wake-up. Correspondingly, device B itself can also determine that it does not need to respond to the voice information according to the sound source strength.
[0072] In this way, electronic devices can identify devices that users may want to wake up based on the intensity of the sound source, improving the accuracy of device wakeup and reducing the possibility of false wakeups. This mechanism is particularly useful in scenarios where users interact with multiple smart devices, ensuring that only the device closest to the user responds to commands, providing a more accurate and efficient user experience.
[0073] It should be noted that the embodiments of the present invention include but are not limited to the above examples. It is understandable that those skilled in the art can also make settings according to actual needs under the guidance of the ideas of the embodiments of the present invention, and the present invention is not limited to this.
[0074] In an embodiment of the present invention, in a voice control scenario, when an electronic device detects voice information input by a user, it can obtain a first sound source feature corresponding to the voice information, and broadcast the first sound source feature to other electronic devices in the same local area network, and detect whether there are other electronic devices within a preset range. If so, it receives a second sound source feature corresponding to the same voice information sent by other electronic devices, and then screens the electronic devices based on the first sound source feature and the second sound source feature, and screens out target electronic devices that respond to the voice information, and then the target electronic devices perform corresponding device operations. In the voice control scenario, when there are multiple electronic devices in the space and there is a possibility of simultaneous response between different electronic devices, the electronic devices that the user may want to wake up can be identified based on the sound source features corresponding to the voice information received by each electronic device, thereby improving the accuracy of device wake-up and reducing the possibility of false wake-up.
[0075] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the following examples are used for exemplary description:
[0076] For each electronic device in the same local area network, it can obtain the relative position information of other electronic devices through WiFi_Sensing technology to determine whether there are multiple electronic devices receiving the same voice information at the same time.
[0077] In a modern smart home environment, users may have multiple smart devices with voice functions in their homes. These devices not only have WiFi connection capabilities, but also integrate advanced wifi_sensing technology to assist in location awareness. When configuring the network, these devices, in addition to conventionally recording the network information of other devices in the same local area network, also use wifi_sensing technology to obtain their respective location information in the physical space.
[0078] When a user issues a command containing a specific wake-up word at home, nearby smart devices will immediately enter monitoring mode. The device's microphone will capture and analyze the direction and intensity of the user's voice. Once the device detects the wake-up word, it can immediately record the direction and intensity of the sound source and broadcast this information within the local area network. At the same time, the device can also receive sound source information broadcast by other devices.
[0079] It should be noted that the information interaction and judgment logic between devices ensure the accuracy and rationality of the command response. For example, if a device detects that the user is on its side and there are no other devices in the area, it will directly respond to the user's command. In this case, the interaction between the user and the device is clear and direct.
[0080] In a more complex environment, the user may be between two devices, and the device can make a judgment based on the intensity of the sound received. If the sound intensity detected by this device is higher than that of another device, it will respond to the user's command first and notify the adjacent device of the judgment result. In this way, even if multiple devices can receive the user's command at the same time, it can ensure that only one device responds, thus avoiding unnecessary confusion and repeated operations.
[0081] If the device determines that the user is on the other side of an adjacent device, it will choose not to respond to this command. This design fully considers the natural interaction habits of users in a home environment and ensures that smart devices provide timely and accurate services when users need them. Compared with the traditional wake-up method that only relies on sound intensity to determine the wake-up method, this wake-up mechanism based on wifi_sensing and information interaction between devices in the local area network is more intelligent and efficient. It not only solves the problem of multiple devices with the same wake-up word responding at the same time in a close space, but also improves the user experience and the overall performance of the smart home system.
[0082] For example, refer to Figure 2 , showing a schematic diagram of an application scenario provided in an embodiment of the present invention. Based on the above-mentioned judgment process according to the sound source characteristics, if user A is on one side of the present device and there is no other device on the same side, the present device can respond to the voice command of user A; if user B is between the present device and the adjacent device, both the present device and the adjacent device can judge whether to respond to the voice command according to the sound source intensity; if user C is farther away from the present device and closer to the adjacent device, the present device does not respond to the voice command, and the adjacent device responds to the voice command.
[0083] Through the above process, in a voice control scenario, when there are multiple electronic devices in the space and there is a possibility of simultaneous response between different electronic devices, the device closest to the user can be identified as the wake-up device based on the sound source characteristics corresponding to the voice information received by each electronic device, thereby improving the accuracy of device wake-up and reducing the possibility of false wake-up.
[0084] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0085] Reference Figure 3 , shows a structural block diagram of a control device of a device provided in an embodiment of the present invention, which may specifically include the following modules:
[0086] The sound source information acquisition module 301 is used to obtain a first sound source feature corresponding to the voice information in response to the voice information input by the user;
[0087] The sound source feature receiving module 302 is configured to receive a second sound source feature corresponding to the voice information and sent by the second electronic device if there is a second electronic device within a preset range;
[0088] The device processing module 303 is used to screen electronic devices according to the first sound source feature and the second sound source feature to obtain a device execution result for the voice information, and the device execution result is used to instruct the first electronic device or the second electronic device to perform a device operation corresponding to the voice information.
[0089] In some feasible implementations, the device processing module 303 is specifically used to:
[0090] comparing the first sound source feature with the second sound source feature, and if the comparison result indicates that a first distance between the first electronic device and the user is less than a second distance between the second electronic device and the user, using the first electronic device as an execution device;
[0091] A device operation corresponding to the voice information is executed, and a first judgment result for the voice information is sent to the second electronic device, where the first judgment result is used to indicate that the second electronic device does not need to respond to the voice information.
[0092] In some feasible implementations, the device processing module 303 is further configured to:
[0093] If the comparison result indicates that the first distance between the first electronic device and the user is greater than the second distance between the second electronic device and the user, a second judgment result regarding the voice information sent by the second electronic device is received, and the voice information is not responded to based on the second judgment result.
[0094] In some feasible implementations, the first sound source feature includes at least a first sound source intensity, the second sound source feature includes at least a second sound source intensity, and the device processing module 303 is specifically configured to:
[0095] If the first sound source intensity is greater than the second sound source intensity, the first electronic device is used as an execution device.
[0096] In some feasible implementations, the first sound source feature includes at least a first sound source intensity, the second sound source feature includes at least a second sound source intensity, and the device processing module 303 is specifically configured to:
[0097] If the first sound source strength is less than the second sound source strength, a second judgment result for the voice information sent by the second electronic device is received.
[0098] Some possible implementations also include:
[0099] The operation execution module is used to execute the device operation corresponding to the voice information if the second electronic device does not exist within the preset range.
[0100] In some feasible implementations, the first sound source feature at least includes a first sound source orientation, and the sound source feature receiving module 302 is specifically configured to:
[0101] Locating a target space corresponding to the orientation of the first sound source;
[0102] If there is a second electronic device in the target space, a second sound source feature corresponding to the voice information and sent by the second electronic device is received.
[0103] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0104] In addition, an embodiment of the present invention further provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the control method embodiment of the above-mentioned device are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0105] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the control method embodiment of the above-mentioned device is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0106] Figure 4 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.
[0107] The electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410, and a power supply 411. Those skilled in the art will appreciate that the electronic device structure involved in the embodiments of the present invention does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.
[0108] It should be understood that in the embodiment of the present invention, the radio frequency unit 401 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 410 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 401 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.
[0109] The electronic device provides users with wireless broadband Internet access through the network module 402, such as helping users to send and receive emails, browse web pages, and access streaming media.
[0110] The audio output unit 403 can convert the audio data received by the RF unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output it as sound. Moreover, the audio output unit 403 can also provide audio output related to a specific function performed by the electronic device 400 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, etc.
[0111] The input unit 404 is used to receive audio or video signals. The input unit 404 may include a graphics processor (GPU) 4041 and a microphone 4042, and the graphics processor 4041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 406. The image frame processed by the graphics processor 4041 can be stored in the memory 409 (or other storage medium) or sent via the radio frequency unit 401 or the network module 402. The microphone 4042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode.
[0112] The electronic device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 4061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 4061 and / or the backlight when the electronic device 400 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 405 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.
[0113] The display unit 406 is used to display information input by the user or information provided to the user. The display unit 406 may include a display panel 4061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0114] The user input unit 407 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. The touch panel 4071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 4071 or near the touch panel 4071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 4071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact point coordinates, and then sends it to the processor 410, receives the command sent by the processor 410 and executes it. In addition, the touch panel 4071 can be implemented using various types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 4071, the user input unit 407 may also include other input devices 4072. Specifically, other input devices 4072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail here.
[0115] Further, the touch panel 4071 may be covered on the display panel 4061. When the touch panel 4071 detects a touch operation on or near it, it is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. It can be understood that in one embodiment, the touch panel 4071 and the display panel 4061 are used as two independent components to implement the input and output functions of the electronic device, but in some embodiments, the touch panel 4071 and the display panel 4061 can be integrated to implement the input and output functions of the electronic device, which is not limited here.
[0116] The interface unit 408 is an interface for connecting an external device to the electronic device 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 400 or may be used to transmit data between the electronic device 400 and an external device.
[0117] The memory 409 can be used to store software programs and various data. The memory 409 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 409 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0118] The processor 410 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 409, and calling data stored in the memory 409, so as to monitor the electronic device as a whole. The processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 410.
[0119] The electronic device 400 may also include a power supply 411 (such as a battery) for supplying power to each component. Preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.
[0120] In addition, the electronic device 400 includes some functional modules not shown, which will not be described in detail here.
[0121] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0123] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
[0124] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0125] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0126] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0127] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0128] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0129] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0130] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for controlling a device, It is characterized in that Applied to a first electronic device, the method includes: In response to voice information input by a user, obtaining a first sound source feature corresponding to the voice information; If there is a second electronic device within the preset range, receiving a second sound source feature corresponding to the voice information and sent by the second electronic device; Electronic devices are screened according to the first sound source feature and the second sound source feature to obtain a device execution result for the voice information, wherein the device execution result is used to instruct the first electronic device or the second electronic device to perform a device operation corresponding to the voice information.
2. The method according to claim 1, It is characterized in that The step of screening electronic devices according to the first sound source feature and the second sound source feature to obtain a device execution result for the voice information includes: comparing the first sound source feature with the second sound source feature, and if the comparison result indicates that a first distance between the first electronic device and the user is less than a second distance between the second electronic device and the user, using the first electronic device as an execution device; A device operation corresponding to the voice information is executed, and a first judgment result for the voice information is sent to the second electronic device, where the first judgment result is used to indicate that the second electronic device does not need to respond to the voice information.
3. The method according to claim 2, It is characterized in that The screening of electronic devices according to the first sound source feature and the second sound source feature to obtain a device judgment result for the voice information also includes: If the comparison result indicates that the first distance between the first electronic device and the user is greater than the second distance between the second electronic device and the user, a second judgment result regarding the voice information sent by the second electronic device is received, and the voice information is not responded to based on the second judgment result.
4. The method according to claim 2, It is characterized in that The first sound source feature includes at least a first sound source intensity, the second sound source feature includes at least a second sound source intensity, and the first sound source feature is compared with the second sound source feature. If the comparison result indicates that a first distance between the first electronic device and the user is less than a second distance between the second electronic device and the user, the first electronic device is used as an execution device, including: If the first sound source intensity is greater than the second sound source intensity, the first electronic device is used as an execution device.
5. The method according to claim 3, It is characterized in that The first sound source feature includes at least a first sound source intensity, the second sound source feature includes at least a second sound source intensity, and if the comparison result indicates that a first distance between the first electronic device and the user is greater than a second distance between the second electronic device and the user, receiving the second judgment result sent by the second electronic device, comprises: If the first sound source strength is less than the second sound source strength, a second judgment result for the voice information sent by the second electronic device is received.
6. The method according to any one of claims 1 to 5, It is characterized in that Also includes: If there is no second electronic device within the preset range, a device operation corresponding to the voice information is performed.
7. The method according to any one of claims 1 to 5, It is characterized in that The first sound source feature at least includes a first sound source orientation, and if there is a second electronic device within the preset range, receiving a second sound source feature corresponding to the voice information and sent by the second electronic device includes: Locating a target space corresponding to the orientation of the first sound source; If there is a second electronic device in the target space, a second sound source feature corresponding to the voice information and sent by the second electronic device is received.
8. A control device for an equipment, It is characterized in that Applied to a first electronic device, the device comprises: A sound source information acquisition module, configured to acquire a first sound source feature corresponding to the voice information in response to the voice information input by the user; a sound source feature receiving module, configured to receive a second sound source feature corresponding to the voice information and sent by the second electronic device if there is a second electronic device within a preset range; A device processing module is used to screen electronic devices according to the first sound source feature and the second sound source feature to obtain a device execution result for the voice information, wherein the device execution result is used to instruct the first electronic device or the second electronic device to perform a device operation corresponding to the voice information.
9. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 7.
