Instruction response method, storage medium and electronic device

By leveraging the delivery of wake-up events and audio energy calculation in smart devices, the user experience problems caused by the difference in device wake-up speed are solved, achieving faster response and better user experience.

CN115312050BActive Publication Date: 2024-11-19QINGDAO HAIER TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210764433.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2024-11-19
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

The wake-up speed and algorithm complexity of different smart devices lead to a large time difference in reporting audio energy to cloud servers, resulting in poor user experience.

Method used

By allowing the device with faster wake-up speed to send its wake-up event to the device with slow wake-up speed, it calculates and reports audio energy in advance, shortens the reporting time difference, and the cloud server determines the response device based on the audio energy of both.

Benefits of technology

It effectively shortens the time difference between the audio energy reported by the device, avoids the problem of multiple devices responding to user instructions at the same time, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115312050B_ABST
    Figure CN115312050B_ABST
Patent Text Reader

Abstract

The present application discloses a method for responding to instructions, a storage medium, and an electronic device, and relates to the field of smart home / smart family technology. The method for responding to instructions includes: when a first device is in an unawakened state, and the first device receives a wake-up event sent by a second device, the first device obtains the first audio energy received within a first time range; the first device sends the first audio energy to a cloud server, and the cloud server is used to determine whether the first device is the response device of the target user through the first audio energy; when it is determined that the first device is the response device of the target user, the first device responds to the target user's instructions. The present invention solves the problem of multiple devices responding to user instructions and poor user experience due to the large time difference in reporting audio energy to the cloud server by different devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home / intelligent family, and more specifically, to a command response method, storage medium and electronic device. Background Art

[0002] There are more and more devices with intelligent voice functions in users' homes, from smart speakers and smart TVs to smart air conditioners, smart refrigerators, smart water heaters, etc. Users send wake-up commands to the devices to wake them up for operation. Smart devices from the same manufacturer often have the same wake-up commands. A common method in related technologies is for each device to calculate the audio energy during the wake-up period and report the audio energy to the cloud server. The cloud server decides which device will uniquely respond to the user based on the energy size.

[0003] However, different devices have different computing capabilities and algorithm execution speeds. Devices with high CPU configurations or low operating loads wake up quickly, while wake-up modules with more microphones have high algorithm complexity and wake up slowly. Combining these reasons, the time it takes for different devices to report audio energy to the cloud server will vary greatly. For example, device A with strong computing capabilities and fast wake-up algorithm execution is woken up at time T1 and sends audio energy E to the cloud server. A Report to the cloud server. Device B, which has a slower wake-up algorithm, is awakened at time T2 and sends the audio energy E B Report to the cloud server, E B Greater than E A However, if the time T2-T1 is too large, it will take a long time for device B to respond to the user. Moreover, if the time it takes for the cloud to send instructions exceeds the waiting time of device A, device A will wake up by itself. This will cause both device A and device B to be woken up at the same time, and both device A and device B will respond to the user, resulting in a poor user experience.

[0004] There is currently no effective solution to the above problems. Summary of the invention

[0005] The embodiments of the present invention provide a command response method, storage medium and electronic device to at least solve the problem of poor user experience caused by multiple devices responding to user commands due to the large time difference in reporting audio energy from different devices to a cloud server.

[0006] According to one embodiment of the present invention, a method for responding to instructions is provided, including: when a first device is in an unawakened state and the first device receives a wake-up event sent by a second device, the first device obtains first audio energy received within a first time range, wherein the wake-up event is an event generated when the second device is awakened by a wake-up word issued by a target user; the first device sends the first audio energy to a cloud server, wherein the cloud server is used to determine whether the first device is a response device of the target user through the first audio energy; when it is determined that the first device is a response device of the target user, the first device responds to the instruction of the target user.

[0007] In an exemplary embodiment, before the first device receives the wake-up event sent by the second device, the method also includes: the first device and the second device receive the wake-up word issued by the target user at a first moment; the second device is awakened by the wake-up word at a second moment, and the second device generates the wake-up event at the second moment and sends the wake-up event to the first device.

[0008] In an exemplary embodiment, obtaining the first audio energy received by the first device within the first time range includes: if the first device is in the non-awakened state at the second moment, determining a preset time range from the first moment to before the first moment as the first time range; the first device obtains the audio received within the first time range; and the first device determines the first audio energy received by the first device within the first time range through an audio energy calculation module.

[0009] In an exemplary embodiment, when it is determined that the first device is the response device of the target user, the first device responds to the instruction of the target user, including: when it is determined that the first device is the response device of the target user, the first device receives a response message sent by the cloud server, wherein the response message is used to indicate that the first device responds to the instruction of the target user; the first device receives the instruction issued by the target user and responds to the instruction issued by the target user.

[0010] In an exemplary embodiment, after the second device receives the wake-up word issued by the target user at a first moment, the method further includes: the second device obtains a second audio energy received within a first time range, wherein a preset time range from the first moment to before the first moment is the first time range; the second device sends the second audio energy to a cloud server, and the cloud server is also used to determine whether the second device is a response device of the target user through the second audio energy; when it is determined that the second device is a response device of the target user, the second device responds to the target user's instruction.

[0011] In an exemplary embodiment, the method also includes: the cloud server receives the first audio energy sent by the first device and the second audio energy sent by the second device; the cloud server determines the audio energy with the largest energy between the first audio energy and the second audio energy as the target audio energy; and the cloud server determines the device corresponding to the target audio energy as the response device of the target user.

[0012] In an exemplary embodiment, before the first device receives a wake-up event sent by the second device, the method also includes: the first device receives device information of the second device, and establishes a network connection with the second device through the device information of the second device, wherein the device information of the second device is sent from the second device to the first device, or sent from the cloud server to the first device.

[0013] According to another embodiment of the present invention, a device for responding to instructions is provided, including: an acquisition unit, used to acquire first audio energy received within a first time range when a first device is in an unawakened state and the first device receives a wake-up event sent by a second device, wherein the wake-up event is an event generated when the second device is awakened by a wake-up word issued by a target user; a sending unit, used to send the first audio energy to a cloud server, wherein the cloud server is used to determine whether the first device is a response device of the target user through the first audio energy; and a response unit, used to cause the first device to respond to the instruction of the target user when it is determined that the first device is a response device of the target user.

[0014] According to another embodiment of the present invention, a device for responding to instructions is provided, and the second device used in the above-mentioned method for responding to instructions includes: a voice collection module, used to collect wake-up words issued by a target user and instructions issued by the target user; a wake-up module, used to send a wake-up event to an application module when receiving the wake-up word issued by the target user; an application module, used to call an audio energy calculation module to calculate the second audio energy received by the second device within a first time range when receiving the wake-up event, and send the second audio energy to a cloud server, wherein the cloud server is used to determine whether the second device is a response device of the target user through the second audio energy, the first time range is a preset time range from a first moment to before the first moment, and the first moment is the moment when the wake-up module receives the wake-up word; a wake-up event transmission module, used to send the wake-up event to the first device; an audio energy calculation module, used to calculate the second audio energy received by the second device within the first time range.

[0015] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.

[0016] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0017] Through the present invention, if the second device is awakened before the first device, the second device sends its wake-up event to the first device. After the first device receives the wake-up event sent by the second device, the first device obtains the first audio energy within the first time range and sends the first audio energy to the cloud server. The cloud server determines whether the first device is the user's response device based on the received first audio energy.

[0018] In this way, the wake-up event of the second device with a faster wake-up speed is sent to the other first devices that wake up more slowly, so that the first device that wakes up slowly can calculate the audio energy in advance and send it to the cloud server, thereby shortening the time difference in reporting audio energy between the first device and the second device, and thus avoiding the problem of large time difference in reporting audio energy of different devices to the cloud server. The cloud server can determine the response device to the user command based on the audio energy reported by the first device and the audio energy reported by the second device. In this way, the problem of both the first device and the second device responding to the user command can be avoided, thereby achieving the effect of improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0021] Figure 1 is a schematic diagram of a hardware environment of an interaction method of a smart device according to an embodiment of the present application;

[0022] Figure 2 is a flow chart of an interaction method of a smart device according to an embodiment of the present application;

[0023] Figure 3 is a schematic diagram of a device and a cloud server connected via a network according to an embodiment of the present application;

[0024] Figure 4 is a flow chart according to an embodiment of the present application;

[0025] Figure 5 is another flow chart according to an embodiment of the present application;

[0026] Figure 6 It is a structural block diagram of a device for responding to instructions according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] According to one aspect of an embodiment of the present application, a method for responding to a command is provided. The method for responding to a command is widely used in smart home, smart home, smart home device ecology, smart home ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the method for responding to the command can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.

[0030] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.

[0031] Based on the above mobile terminal or network architecture, a method for responding to an instruction is provided in this embodiment. Figure 2 is a flow chart of a method for responding to a basic instruction according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0032] Step S202: when the first device is in an unawakened state and the first device receives a wake-up event sent by the second device, the first device acquires first audio energy received within a first time range, wherein the wake-up event is an event generated when the second device is awakened by a wake-up word sent by a target user;

[0033] The first device and the second device may be smart home devices in a smart home system, such as a smart washing machine, a smart air conditioner, a smart speaker, etc. The first device and the second device may be awakened by the same wake-up word, which may be determined according to actual conditions.

[0034] Step S204: the first device sends the first audio energy to a cloud server, wherein the cloud server is used to determine whether the first device is a response device of the target user according to the first audio energy;

[0035] Among them, the above-mentioned second device can be a device with a faster wake-up speed, and the first device is a device with a slower wake-up speed. When the target user issues a wake-up word, the second device with a faster wake-up speed is awakened first. After the second device is awakened, a wake-up event is generated, and the wake-up event is used to indicate that the second device has been awakened. Since the wake-up speed of the first device is slower, the second device sends the wake-up event to the first device. After the first device receives the wake-up event of the second device, it calculates the first audio energy of the first device within the first time range, and reports the first audio energy to the cloud server. The cloud server determines whether the first device is the response device of the target user based on the received first audio energy.

[0036] Step S206: When it is determined that the first device is the response device of the target user, the first device responds to the instruction of the target user.

[0037] In an exemplary embodiment, before the first device receives the wake-up event sent by the second device, the method also includes: the first device and the second device receive the wake-up word issued by the target user at a first moment; the second device is awakened by the wake-up word at a second moment, and the second device generates the wake-up event at the second moment and sends the wake-up event to the first device.

[0038] As an optional implementation, when the first device and the second device are in sleep mode, their voice collection modules are in working mode (collecting audio). Assuming that the above wake-up word is "ABCD", assuming that the moment T1 when the first device and the second device receive "D" in "ABCD" is the above-mentioned first moment, the second device is awakened by the wake-up word "ABCD" at the second moment T2 (T2 is less than or equal to T1), and the second device generates a wake-up event at the second moment T2, indicating that the second device has been awakened by the wake-up word "ABCD", and sends the wake-up event to the first device.

[0039] In an exemplary embodiment, obtaining the first audio energy received by the first device within the first time range includes: if the first device is in the non-awakened state at the second moment, determining a preset time range from the first moment to before the first moment as the first time range; the first device obtains the audio received within the first time range; and the first device determines the first audio energy received by the first device within the first time range through an audio energy calculation module.

[0040] As an optional implementation, the second device sends the wake-up event to the first device at the second moment T2, when the first device is not awakened. Assuming that the moment when the first device receives "D" in "ABCD" is the above-mentioned first moment, the preset time range before the first moment is determined as the first time range. The above-mentioned preset time range can be determined according to actual conditions, such as 3 seconds, 4 seconds, etc. Assuming that the preset time range is 3 seconds and the first moment is 8:53, 8:50 to 8:53 is determined as the first time range. The voice acquisition module of the first device receives an audio signal. The audio received by the first device in the first time range is obtained, and the first audio energy received in the first time range is calculated by the audio energy calculation module in the first device. The audio energy calculation module can use the method of calculating audio energy in the prior art to calculate the first audio energy received by the first device in the first time range.

[0041] In an exemplary embodiment, when it is determined that the first device is the response device of the target user, the first device responds to the instruction of the target user, including: when it is determined that the first device is the response device of the target user, the first device receives a response message sent by the cloud server, wherein the response message is used to indicate that the first device responds to the instruction of the target user; the first device receives the instruction issued by the target user and responds to the instruction issued by the target user.

[0042] As an optional implementation, assuming that the cloud server determines that the first device is a responding device, a response message is sent to the first device, and the response message is used to indicate that the first device is a responding device. The response message can be set according to actual conditions, for example, 1. That is, the device that receives the response message 1 sent by the cloud service is the responding device. If the first device is the responding device of the target user, the first device responds to the instruction issued by the target user.

[0043] In an exemplary embodiment, after the second device receives the wake-up word issued by the target user at a first moment, the method further includes: the second device obtains a second audio energy received within a first time range, wherein a preset time range from the first moment to before the first moment is the first time range; the second device sends the second audio energy to a cloud server, and the cloud server is also used to determine whether the second device is a response device of the target user through the second audio energy; when it is determined that the second device is a response device of the target user, the second device responds to the target user's instruction.

[0044] As an optional implementation, assuming that the moment when the second device receives "D" in "ABCD" is the above-mentioned first moment, the preset time range before the first moment is determined as the first time range. The above-mentioned preset time range can be determined according to actual conditions, such as 3 seconds, 4 seconds, etc. Assuming that the preset time range is 3 seconds and the first moment is 8:53, 8:50 to 8:53 is determined as the first time range. The voice acquisition module of the second device receives an audio signal. The audio received by the second device in the first time range is obtained, and the second audio energy received in the first time range is calculated by the audio energy calculation module in the second device. The audio energy calculation module can use the method of calculating audio energy in the prior art to calculate the second audio energy received by the second device in the first time range.

[0045] The second device reports the second audio energy received within the first time range to the cloud server. Since the positions of the second device and the first device are different, the received audio energies are also different. The cloud server can determine the response device for responding to the target user's command based on the second audio energy reported by the second device and the first audio energy reported by the first device. Specifically, the device corresponding to the maximum audio energy can be determined as the response device of the target user.

[0046] In an exemplary embodiment, the method also includes: the cloud server receives the first audio energy sent by the first device and the second audio energy sent by the second device; the cloud server determines the audio energy with the largest energy between the first audio energy and the second audio energy as the target audio energy; and the cloud server determines the device corresponding to the target audio energy as the response device of the target user.

[0047] As an optional implementation, Figure 3 The device shown is connected to the cloud server through a network. It is assumed that the device A shown in the figure is the first device and the device B is the second device. Device A and device B report the audio energy to the cloud server, and the cloud server determines the response device of the target user according to the audio energy reported by device A and device B. Specifically, the device with the largest audio energy can be determined as the response device. Assuming that the first audio energy E1 reported by device A is greater than the second audio energy E2 reported by device B, device A is the response device of the target user, and device A responds to the target user's instruction.

[0048] In an exemplary embodiment, before the first device receives a wake-up event sent by the second device, the method also includes: the first device receives device information of the second device, and establishes a network connection with the second device through the device information of the second device, wherein the device information of the second device is sent from the second device to the first device, or sent from the cloud server to the first device.

[0049] As an optional implementation, each device in the distributed network needs at least information about other devices so that it can send wake-up events to other devices in the network. This can be achieved in the following ways:

[0050] Method 1: After the device is turned on, it broadcasts its own device information (device name, ID, IP address, etc.) to other devices through the local area network. After receiving the information, other devices save it and establish a link with it in the local area network. Similarly, all devices will save the information of all devices in the network, thereby establishing a local network containing all devices. This method can be completed on the device side, does not require the participation of the cloud server, and the transmission speed is faster than cloud transmission. For example, after the second device is turned on, it broadcasts its own device information to other devices (including the first device). After receiving the information, the first device saves it and establishes a link with it in the local area network. Alternatively, after the first device is turned on, it broadcasts its own device information to other devices (including the second device). After receiving the information, the second device saves it and establishes a link with it in the local area network.

[0051] Method 2: The cloud server sends all device information in the distributed network to all devices, so that all devices also save the information of all devices in the network. In this method, the wake-up event is forwarded by the cloud server. For example, the cloud server sends the device information of the second device to the first device, and sends the device information of the first device to the second device.

[0052] As an optional implementation, Figure 4 The flowchart shown in the figure can be applied to the second device in the above embodiment, and includes the following steps:

[0053] Step S41, the device is turned on and networked with other devices;

[0054] The second device can be networked with other devices (including the first device) through method 1 and method 2 in the above embodiments;

[0055] Step S42, the wake-up module detects the user waking up and reports it to the application module;

[0056] After the wake-up module in the second device detects the user's wake-up word, it reports the wake-up event to the application module.

[0057] Step S43, the application module sends a wake-up event to other devices;

[0058] The application module of the second device sends the wake-up event to other devices, where the other devices include the first device in the above embodiment.

[0059] Step S44, the application module sends the second audio energy to the cloud server;

[0060] The audio energy calculation module of the second device calculates the second audio energy of the second device and reports the second audio energy to the cloud server.

[0061] Step S45, waiting for and processing the wake-up result returned by the cloud server;

[0062] The cloud server determines the target user's response device based on the audio energy reported by multiple devices (including the first audio energy reported by the first device and the second audio energy reported by the second device). The cloud server returns a result of 1 for the device that responds, and a result of 0 for the device that does not need to respond. If the wake-up result received by the second device is 1, the second device is the target user's response device. If the received result is 0, the second device does not need to respond to the target user.

[0063] As an optional implementation, Figure 5 The flowchart shown in the figure can be applied to the first device in the above embodiment, and includes the following steps:

[0064] Step S51, receiving a wake-up event sent by other devices in the network;

[0065] Among them, the other devices include the second device in the above embodiment, and the wake-up event is an event generated after the second device receives the wake-up word and is awakened.

[0066] Step S52, detecting whether it has been awakened;

[0067] Determine whether the first device has been awakened. If so, directly execute step S55; otherwise, execute step S53.

[0068] Step S53, processing the wake-up event sent by other devices;

[0069] The first device receives a wake-up event W from another device (eg, the second device). i .

[0070] Step S54, the application module sends the first audio energy to the cloud server;

[0071] The first device obtains the first audio energy E in advance j Then send it to the cloud server.

[0072] Step S55, processing the wake-up result returned by the cloud server;

[0073] The cloud server determines the target user's response device based on the audio energy reported by multiple devices (including the first audio energy reported by the first device and the second audio energy reported by the second device). The cloud server returns a result of 1 for the device that responds, and a result of 0 for the device that does not need to respond. If the wake-up result received by the first device is 1, the first device is the target user's response device. If the received result is 0, the first device does not need to respond to the target user.

[0074] In the above embodiment, the wake-up event of the device with a fast wake-up speed is sent to other devices with slow wake-up speed in the network, so that the slow wake-up device can do corresponding processing in advance, shortening the wake-up response time. Using the LAN networking solution, the wake-up event is transmitted within the LAN, which improves the transmission speed and reduces the resource occupation and development cost of the cloud.

[0075] In the present embodiment, a device for responding to an instruction is also provided, and the device is used to implement the above-mentioned embodiment and preferred implementation mode, and the descriptions that have been made are not repeated here. As used below, the term "unit" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0076] Figure 6 is a structural block diagram of a device for responding to instructions according to an embodiment of the present invention, such as Figure 6 As shown, the apparatus includes: an acquisition unit 62, for acquiring a first audio energy received within a first time range when the first device is in an unawakened state and the first device receives a wake-up event sent by a second device, wherein the wake-up event is an event generated when the second device is awakened by a wake-up word issued by a target user; a sending unit 64, for sending the first audio energy to a cloud server, wherein the cloud server is used to determine whether the first device is a response device of the target user through the first audio energy; a response unit 66, for responding to an instruction of the target user by the first device when it is determined that the first device is a response device of the target user.

[0077] In an exemplary embodiment, the above-mentioned device is also used to receive the wake-up word issued by the target user at a first moment before the first device receives the wake-up event sent by the second device, wherein the second device is used to be awakened by the wake-up word at a second moment, and the second device generates the wake-up event at the second moment and sends the wake-up event to the first device.

[0078] In an exemplary embodiment, the above-mentioned device is also used to determine the preset time range from the first moment to before the first moment as the first time range if the first device is in the non-awakened state at the second moment; obtain the audio received within the first time range; and determine the first audio energy received by the first device within the first time range through an audio energy calculation module.

[0079] In an exemplary embodiment, the above-mentioned device is also used to receive a response message sent by the cloud server when it is determined that the first device is the response device of the target user, wherein the response message is used to instruct the first device to respond to the instructions of the target user; receive instructions issued by the target user, and respond to the instructions issued by the target user.

[0080] In an exemplary embodiment, the second device is used to obtain a second audio energy received within a first time range after receiving the wake-up word issued by the target user at a first moment, wherein a preset time range from the first moment to before the first moment is the first time range; the second device sends the second audio energy to a cloud server, and the cloud server is also used to determine whether the second device is a response device of the target user through the second audio energy; when it is determined that the second device is a response device of the target user, the second device responds to the target user's instructions.

[0081] In an exemplary embodiment, the cloud server is also used to receive the first audio energy sent by the first device and the second audio energy sent by the second device; the cloud server determines the audio energy with the largest energy between the first audio energy and the second audio energy as the target audio energy; the cloud server determines the device corresponding to the target audio energy as the response device of the target user.

[0082] In an exemplary embodiment, the above-mentioned device is also used to receive device information of the second device before the first device receives a wake-up event sent by the second device, and establish a network connection with the second device through the device information of the second device, wherein the device information of the second device is sent by the second device to the first device, or sent by the cloud server to the first device.

[0083] In this embodiment, a device for responding to an instruction is also provided, which is applied to the second device in the above-mentioned method for responding to the instruction, and the device includes: a voice collection module, which is used to collect wake-up words issued by a target user and instructions issued by the target user; a wake-up module, which is used to send a wake-up event to an application module when receiving the wake-up word issued by the target user; an application module, which is used to call an audio energy calculation module to calculate the second audio energy received by the second device within a first time range when receiving the wake-up event, and send the second audio energy to a cloud server, wherein the cloud server is used to determine whether the second device is a response device of the target user through the second audio energy, the first time range is a preset time range from a first moment to before the first moment, and the first moment is the moment when the wake-up module receives the wake-up word; a wake-up event transmission module, which is used to send the wake-up event to the first device; an audio energy calculation module, which is used to calculate the second audio energy received by the second device within the first time range.

[0084] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for responding to an instruction, characterized in that: include: When the first device is in an unawakened state and receives a wake-up event sent by a second device, the first device acquires first audio energy received within a first time range, wherein the wake-up event is an event generated when the second device is awakened by a wake-up word sent by a target user; the first device sends the first audio energy to a cloud server, wherein the cloud server is used to determine whether the first device is a response device of the target user through the first audio energy; In the case where it is determined that the first device is a response device of the target user, the first device responds to an instruction of the target user; The acquiring of first audio energy received by the first device within a first time range includes: If the first device is in the non-awakened state at the second moment, a preset time range from the first moment to before the first moment is determined as the first time range, wherein the first moment is the moment when the first device and the second device receive the wake-up word, the second moment is the moment when the second device is awakened by the wake-up word, generates a wake-up event and sends the wake-up event to the first device, and the second moment is less than or equal to the first moment; The first device acquires audio received within the first time range; The first device determines the first audio energy received by the first device within the first time range through an audio energy calculation module.

2. The method according to claim 1, characterized in that In the case where it is determined that the first device is a response device of the target user, the first device responds to an instruction of the target user, including: In the case where it is determined that the first device is the response device of the target user, the first device receives a response message sent by the cloud server, wherein the response message is used to instruct the first device to respond to the instruction of the target user; The first device receives the instruction issued by the target user and responds to the instruction issued by the target user.

3. The method according to claim 1, characterized in that After the second device receives the wake-up word sent by the target user at the first moment, the method further includes: The second device acquires second audio energy received within the first time range, wherein a preset time range from the first moment to before the first moment is the first time range; The second device sends the second audio energy to a cloud server, and the cloud server is further used to determine whether the second device is a response device of the target user according to the second audio energy; In a case where it is determined that the second device is the response device of the target user, the second device responds to the instruction of the target user.

4. The method according to claim 3, characterized in that The method further comprises: The cloud server receives the first audio energy sent by the first device and the second audio energy sent by the second device; The cloud server determines the audio energy with the largest energy between the first audio energy and the second audio energy as the target audio energy; The cloud server determines the device corresponding to the target audio energy as the response device of the target user.

5. The method according to any one of claims 1 to 4, characterized in that Before the first device receives the wake-up event sent by the second device, the method further includes: The first device receives device information of the second device and establishes a network connection with the second device through the device information of the second device, wherein the device information of the second device is sent from the second device to the first device, or sent from the cloud server to the first device.

6. A device for responding to an instruction, characterized in that: include: an acquisition unit, configured to acquire, when the first device is in an unawakened state and the first device receives a wake-up event sent by the second device, a first audio energy received within a first time range, wherein the wake-up event is an event generated when the second device is awakened by a wake-up word sent by a target user; a sending unit, configured to send the first audio energy to a cloud server, wherein the cloud server is configured to determine whether the first device is a response device of the target user through the first audio energy; a responding unit, configured to, when determining that the first device is a responding device of the target user, cause the first device to respond to an instruction of the target user; The device is also used to determine a preset time range from a first moment to before the first moment as the first time range if the first device is in the non-awakened state at a second moment, wherein the first moment is the moment when the first device and the second device receive the wake-up word, the second moment is the moment when the second device is awakened by the wake-up word, generates a wake-up event and sends the wake-up event to the first device, and the second moment is less than or equal to the first moment; the first device obtains the audio received within the first time range; the first device determines the first audio energy received by the first device within the first time range through an audio energy calculation module.

7. A device for responding to an instruction, characterized in that: The second device used in the method according to any one of claims 1 to 4 comprises: A voice collection module, used to collect the wake-up words issued by the target user and the instructions issued by the target user; A wake-up module, configured to send a wake-up event to an application module when receiving a wake-up word sent by the target user; an application module, configured to, upon receiving the wake-up event, call the audio energy calculation module to calculate the second audio energy received by the second device within a first time range, and send the second audio energy to a cloud server, wherein the cloud server is configured to determine whether the second device is a response device of the target user through the second audio energy, the first time range being a preset time range from a first moment to before the first moment, and the first moment being a moment when the wake-up module receives the wake-up word; A wake-up event transmission module, configured to send the wake-up event to the first device; The audio energy calculation module is used to calculate the second audio energy received by the second device within the first time range.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 5 when executed.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 5 through the computer program.