Iot device intelligent voice wake-up method, electronic device, and storage medium
By selecting a group of devices with superior communication speed in a distributed voice system, ensuring that only one device is woken up, the problem of multiple device wake-up is solved, improving user experience and response speed.
Patent Information
- Application Number
- CN202211097755.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-08
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2042-09-08
AI Technical Summary
In existing technologies, users wake up multiple voice devices instead of the intended single voice device, leading to the problem of non-uniqueness in voice interaction.
By determining the communication speed of each device, devices with superior communication speeds are selected as the first device group. When a wake-up command is received, a device is selected from the first device group to be woken up. Other device groups stop the decision-making algorithm after receiving voice messages, ensuring unique wake-up.
It ensures the uniqueness of device wake-up, improves user experience and device response speed, and avoids the phenomenon of multiple devices waking up at the same time.
Smart Images

Figure CN115831107B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of smart home, and particularly relates to an Internet of Things device intelligent voice wake-up method, an electronic device and a storage medium. BACKGROUND
[0002] With the continuous development of smart home technology, voice control is increasingly applied to people's home life, facilitating voice interaction between users and voice devices.
[0003] A distributed voice system can not only control a single voice device through voice dialogue, but also control other voice devices through a woken-up voice device. In the prior art, when a user wakes up the voice recognition function of a voice device through a wake-up instruction, multiple voice devices may be woken up, while the user actually only wants to wake up one voice device for voice interaction. SUMMARY
[0004] Therefore, it is necessary to provide an Internet of Things device intelligent voice wake-up method, an electronic device and a storage medium, which can ensure the uniqueness of wake-up and ensure that only one device will be woken up after the user issues a wake-up instruction.
[0005] The first aspect of the embodiment of the present application discloses an Internet of Things device intelligent voice wake-up method applied to a distributed voice system, the distributed voice system comprising multiple devices, the multiple devices being communicatively connected, and the Internet of Things device intelligent voice wake-up method comprising the following steps: determining the communication speed of each device, selecting a device with a communication speed meeting a preset requirement from the multiple devices as a first device group, and selecting the remaining devices as a second device group; in response to a wake-up instruction, selecting a device from the first device group as a to-be-woken-up device, wherein the multiple devices will all run a decision algorithm for device wake-up after receiving the wake-up instruction; in response to voice information sent after the to-be-woken-up device is woken up, controlling all devices in the second device group to stop running the decision algorithm.
[0006] Compared with the related art, the embodiment of the present application has at least the following advantages:
[0007] By determining the communication speed of each device, a device with superior communication speed is selected as the first device group, and when a wake-up instruction is received, a device from the first device group is selected to be woken up (the other devices of the first device group are not woken up), so that the wake-up instruction of the user can be timely replied, and the user's use experience is improved; after the device is woken up, voice information is sent, and the second device group stops its own decision algorithm after receiving the voice information, that is, the devices of the second device group will not be woken up after receiving the voice information, so that the uniqueness of wake-up is ensured, and only one device will be woken up after the user issues a wake-up instruction.
[0008] In a possible implementation, the step of determining the communication speed of each device specifically comprises: selecting a device from the plurality of devices as a test device, and taking the remaining devices as to-be-tested devices; obtaining the communication duration of each to-be-tested device with the test device respectively, and taking the communication duration of the to-be-tested device with the test device as the communication speed of the to-be-tested device.
[0009] By adopting the technical scheme, the communication speed of each device can be determined according to the communication duration between devices.
[0010] In a possible implementation, before selecting the devices whose communication speeds meet the preset requirement as the first device group from the plurality of devices, the method further comprises: determining whether the communication duration of the device is less than a first preset wake-up duration; and if the communication duration of the device is less than the first preset wake-up duration, determining that the communication speed corresponding to the communication duration of the device meets the preset requirement.
[0011] By adopting the technical scheme, whether the communication speed of the device meets the preset requirement can be determined according to whether the communication duration of the device is less than the first preset wake-up duration.
[0012] In a possible implementation, before taking the remaining devices as the second device group, the method further comprises: determining whether there is a device whose communication duration is less than a second preset wake-up duration in the second device group; and adjusting the communication duration of the device whose communication duration is less than the second preset wake-up duration to the second preset wake-up duration, where the second preset wake-up duration is greater than the first preset wake-up duration.
[0013] By adopting the technical scheme, the communication duration of the second device group is greater than the second preset wake-up duration, and the second device group will not be woken up in the process of receiving the voice information and stopping the decision algorithm, thereby further ensuring the uniqueness of device wake-up.
[0014] In a possible implementation, the difference between the second preset wake-up duration and the first preset wake-up duration is greater than or equal to 100 milliseconds and less than or equal to 200 milliseconds.
[0015] By adopting the technical scheme, the difference between the second preset wake-up duration and the first preset wake-up duration is not too large, and the message delay of the second device group is also avoided from being too large, thereby affecting the user experience; and the difference between the second preset wake-up duration and the first preset wake-up duration is also not too small, thereby causing the second device group to be woken up in the process of receiving the voice message or stopping the decision algorithm.
[0016] In a possible implementation, after the communication duration of each to-be-tested device and the test device is acquired respectively, the method further includes: determining a first wake-up decision duration according to the communication durations of the plurality of devices; before selecting the devices with the communication speed satisfying the preset requirement as the first device group from the plurality of devices, the method further includes: determining whether the communication duration of the device is less than the first wake-up decision duration; and if the communication duration of the device is less than the first wake-up decision duration, determining that the communication speed corresponding to the communication duration of the device satisfies the preset requirement.
[0017] By adopting the technical solution, another manner of determining whether the communication speed satisfies the preset requirement can be implemented.
[0018] In a possible implementation, the first wake-up decision duration is determined according to the communication durations of the plurality of devices, including: sorting the communication durations of the plurality of devices in descending order or ascending order, and taking the median of the sorted communication durations as the first wake-up decision duration.
[0019] By adopting the technical solution, the median of the sorted queue according to the communication durations can be used to determine the first wake-up decision duration, so that the wake-up instruction of the user can be responded more quickly, and the use experience of the user can be improved.
[0020] In a possible implementation, before the remaining devices are taken as the second device group, the method further includes: determining whether there is a device with a communication duration less than a second wake-up decision duration in the second device group; and adjusting the communication duration of the device with the communication duration less than the second wake-up decision duration to the second wake-up decision duration, where the second wake-up decision duration is greater than the first wake-up decision duration.
[0021] By adopting the technical solution, the communication durations of the devices in the second device group are all greater than the second preset wake-up duration, and since the second preset wake-up duration is greater than the first preset wake-up duration, the devices in the second device group will not be woken up in the process of receiving the voice information and stopping the decision algorithm, and the uniqueness of the device wake-up is further ensured.
[0022] In a second aspect, an embodiment of the present application provides a computer readable storage medium, including computer instructions, when the computer instructions run on an electronic device, the electronic device executes the Internet of Things device intelligent voice wake-up method in the first aspect.
[0023] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the Internet of Things device intelligent voice wake-up method in the first aspect.
[0024] It can be understood that the computer readable storage medium of the second aspect provided above, the electronic device of the third aspect correspond to the method of the first aspect described above, and therefore the beneficial effects achieved thereby can refer to the beneficial effects of the corresponding method provided above, which will not be described here. BRIEF DESCRIPTION OF DRAWINGS
[0025] Figure 1 A flowchart of the method for intelligent voice wake-up of an Internet of Things device according to an embodiment of the present application is provided.
[0026] Figure 2 A flowchart of the method for intelligent voice wake-up of an Internet of Things device according to an embodiment of the present application is provided.
[0027] Figure 3 A flowchart of the method for intelligent voice wake-up of an Internet of Things device according to an embodiment of the present application is provided.
[0028] Figure 4 A flowchart of the method for intelligent voice wake-up of an Internet of Things device according to an embodiment of the present application is provided.
[0029] Figure 5 A structural schematic diagram of a possible electronic device according to an embodiment of the present application is provided. DETAILED DESCRIPTION
[0030] In order to more clearly understand the above objects, features and advantages of the present application, the present application will be described below in detail with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0031] In the following description, a large number of specific details are set forth in order to facilitate a thorough understanding of the present application. The described embodiments are only some of the embodiments of the present application, and are not all the embodiments.
[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application.
[0033] Further, it should be noted that in this document, the terms "comprise", "comprise", or any other variant thereof are intended to cover non-exclusive inclusions, so that processes, methods, articles or devices that include a series of elements not only include those elements, but also include other elements not explicitly listed, or inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "comprises a" does not exclude the presence of additional identical elements in the process, method, article or device that includes the element.
[0034] In the present application, "at least one" refers to one or more, and "multiple" refers to two or more than two. The "and / or" describes the association between the associated objects, which means that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth" and the like (if any) in the specification and claims of the present application and the drawings are used to distinguish similar objects, and are not used to describe a specific order or sequence.
[0035] In the embodiments of the present application, the words such as "exemplary" or "for example" are used to mean an example, illustration, or description. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the use of "exemplary" or "for example" and the like is intended to present the relevant concept in a specific manner.
[0036] For ease of understanding, some exemplary descriptions of concepts related to the embodiments of the present application are given for reference.
[0037] A plurality of devices are communicatively connected to form a distributed voice system, which is a loosely coupled system formed by interconnecting a plurality of devices through communication lines, and has high cohesion and transparency. The device in the present application is built-in with a microphone or a microphone array, and the user can interact with the device in the near field or the far field with a certain distance. The device includes a smart speaker, a smart TV, a smart washing machine, a smart phone, a smart central control screen switch, etc., which are not described one by one here.
[0038] Please refer to Figure 1 The flowchart of the Internet of Things device intelligent voice wake-up method provided in an embodiment of the present application includes the following steps:
[0039] Step S101: Determine the communication speed of each device, select the devices with communication speed meeting the preset requirements from the plurality of devices as a first device group, and select the remaining devices as a second device group.
[0040] In some embodiments, the communication speed of each device can be determined by the following method: randomly selecting one device from the plurality of devices as a test device, and selecting the remaining devices as test devices; respectively acquiring the communication duration of each test device with the test device, and taking the communication duration of the test device with the test device as the communication speed of the test device.
[0041] For ease of understanding, the following takes a distributed voice system including five devices as an example to specifically illustrate how to determine the communication speed of each device in the embodiment:
[0042] Suppose the numbers of the five devices are M1, M2, M3, M4 and M5 in turn, M1 is selected as the test device, and M2 to M5 are all the devices to be tested. M1 sends a message to M2 to M5, M2 to M5 will immediately send a reply message to M1 after receiving the message, M1 records the time of receiving the reply message sent by each device, and takes the time difference between the time of receiving the reply message sent by a certain device and the time of sending the message itself as the communication duration between M1 and the device (for example, M1 sends a message at T1, and receives the reply message sent by M2 at T2, then (T2-T1) is the communication duration between M1 and M2). After confirming the communication duration of each device, the communication duration is taken as the communication speed of the device.
[0043] It is worth mentioning that the communication duration between devices will be disturbed by external factors such as signal strength, environment, location of the device, and these external factors will change constantly (for example, the device may be placed in a different position, the environment may change, etc.), so the communication duration between devices is not a fixed value and may change. Therefore, in order to avoid the above situation and ensure that the communication duration between devices is accurate before the user wakes up the device by voice, the embodiment will also randomly select a device as a test device every preset time interval, take the remaining devices as devices to be tested, and reacquire the communication duration between the test device and the devices to be tested, so that the communication duration between devices is constantly updated, improving the accuracy of the Internet of Things device intelligent voice wake-up method of the embodiment. It can be understood that the preset time interval can be set according to user demand, and the embodiment does not specifically limit the size of the preset time interval.
[0044] It should be noted that how to select a device with a communication speed meeting the preset requirement as the first device group is specifically described in subsequent embodiments, and the embodiment will not be repeated.
[0045] Step S102: In response to the wake-up instruction, a device is selected from the first device group as a device to be woken up.
[0046] In some embodiments, the wake-up instruction is issued by the user, which can be a voice instruction such as "Hello, intelligent device" sent by the user. The content of the voice instruction can be set according to the actual needs of the user, and the embodiment does not specifically limit this.
[0047] It should be noted that the devices in the embodiment will run the decision algorithm for device wake-up after receiving the wake-up instruction. In order to facilitate understanding, the following will specifically describe how the embodiment selects a device from the first device group as the device to be woken up:
[0048] Suppose that there are three devices in the first device group, numbered S1, S2, and S3. After receiving the wake-up instruction, each device will send its own wake-up information to other devices, that is, S1 will send its own wake-up information to S2 and S3, S2 will send its own wake-up information to S1 and S3, and S3 will send its own wake-up information to S1 and S2. That is, there will be wake-up information of all other devices in the three devices S1, S2, and S3. The decision algorithm mentioned above specifically includes that S1, S2, and S3 make an algorithm decision on all the wake-up information currently possessed by themselves, and if the wake-up condition of itself is optimal, it will be woken up. It can be understood that since each device in the first device group has the same wake-up information, the result of the algorithm decision will also be the same, thereby ensuring that only one device in the first device group will be woken up.
[0049] Specifically, the wake-up information in the embodiment can be the audio straight mixing ratio and / or the audio angle received by the device.
[0050] Step S103: In response to the voice information sent by the device to be woken up after being woken up, control all devices in the second device group to stop running the decision algorithm.
[0051] In some embodiments, the device to be woken up will send voice information such as "hello" and "I am here" after being woken up, and the embodiment does not specifically limit the content of the voice information. The devices in the second device group will immediately stop their decision algorithm and will not respond to the wake-up after receiving the voice message. In the foregoing steps, each device will send its own wake-up information to all other devices after receiving the wake-up instruction. It can be understood that each device will also actively start the function of listening to the voice information at the same time of sending the wake-up information, so that the voice information can be listened to at the moment when the device to be woken up sends the voice information, so as to respond in time (that is, stop the decision algorithm of itself), thereby improving the reliability of the intelligent voice wake-up method of the Internet of Things device.
[0052] In order to facilitate understanding, the following will specifically illustrate the whole process of device wake-up in the embodiment:
[0053] (1) Suppose that the distributed voice system has six devices, numbered N1, N2, N3, N4, N5, and N6. N2 is randomly selected as the test device, and N1, N3 to N6 are the devices to be tested.
[0054] (2) N2 sends a test message to N1, N3 to N6, and N1, N3 to N6 send a test reply message to N2 after receiving the test message.
[0055] (3) N2 records the time when the test reply message sent by each device is received, and takes the time difference between the time when the test reply message sent by a certain device is received and the time when the test message is sent by itself as the communication duration between the device and itself. The communication duration with N1 is T1, the communication duration with N3 is T3, the communication duration with N4 is T4, the communication duration with N5 is T5, and the communication duration with N6 is T6. T1 is taken as the communication speed of N1, T3 is taken as the communication speed of N3, T4 is taken as the communication speed of N4, T5 is taken as the communication speed of N5, and T6 is taken as the communication speed of N6. The communication speed of N2 is taken as the default value that meets the preset requirement.
[0056] (4) A device with a communication speed meeting the preset requirement is selected from N1 to N6. Assuming that the communication speeds of N1 to N4 meet the preset requirement, and the communication speeds of N5 and N6 do not meet the preset requirement, N1 to N4 are the first device group, and N5 and N6 are the second device group.
[0057] (5) In response to the wake-up instruction sent by the user, N1 to N4 all send their own wake-up information to the other three devices. N1 to N4 make an algorithm decision on all the wake-up information currently possessed by themselves. Assuming that the wake-up condition of N3 is optimal, N3 is woken up.
[0058] (6) N3 sends a voice message, and N5 and N6 immediately stop their decision algorithm and do not respond to the wake-up after receiving the voice message.
[0059] Compared with the related art, the embodiments of the present application have at least the following advantages: the communication speed of each device is determined to select a device with superior communication speed as the first device group, and when a wake-up instruction is received, a device is selected from the first device group to wake up (the other devices of the first device group are not woken up), so that the wake-up instruction of the user can be timely replied, and the use experience of the user is improved; after the device is woken up, a voice message is sent, and the second device group stops its decision algorithm after receiving the voice message, that is, the devices of the second device group will not be woken up after receiving the voice message, so that the uniqueness of the wake-up is ensured, and it is ensured that only one device will be woken up after the user sends a wake-up instruction.
[0060] Please refer to Figure 2 The flowchart of the intelligent voice wake-up method of the Internet of Things device provided by an embodiment of the present application, which is an example of the foregoing embodiment, specifically illustrates a way of selecting a device with a communication speed meeting a preset requirement from multiple devices as the first device group, including the following steps:
[0061] Step S201: Selecting one device from the plurality of devices as a test device, and the remaining devices as to-be-tested devices.
[0062] Step S202: Obtaining the communication duration of each to-be-tested device with the test device, and taking the communication duration of the to-be-tested device with the test device as the communication speed of the to-be-tested device.
[0063] Step S203: Determining whether the communication duration of the device is less than a first preset wake-up duration. If the communication duration of the device is less than the first preset wake-up duration, determining that the communication speed corresponding to the communication duration of the device meets a preset requirement, and dividing the device into a first device group. If the communication duration of the device is greater than or equal to the first preset wake-up duration, dividing the device into a second device group.
[0064] In some embodiments, the first preset wake-up duration can be set according to actual needs, and is preferably 300 milliseconds to 500 milliseconds. The setting of such a range can ensure that each device can receive the wake-up information of all other devices in the case of a normal network, and most devices can receive the wake-up information in the case of network fluctuations. On the other hand, it also avoids the user waiting for too long a time, and improves the user experience.
[0065] Step S204: Determining whether there is a device in the second device group whose communication duration is less than a second preset wake-up duration. Adjusting the communication duration of the device whose communication duration is less than the second preset wake-up duration to the second preset wake-up duration.
[0066] In some embodiments, the second preset wake-up duration is greater than the first preset wake-up duration. The difference between the second preset wake-up duration and the first preset wake-up duration is greater than or equal to 100 milliseconds and less than or equal to 200 milliseconds. Since the device needs a certain time to receive the voice message and stop its own decision algorithm, in this way, it can be ensured that the devices in the second device group can complete the receiving of the voice message and the stopping of their own decision algorithm, avoiding the occurrence of the situation that "some devices in the second device group respond to the user's wake-up instruction before completely stopping their own decision algorithm, resulting in the wake-up of multiple devices", and improving the reliability of the intelligent voice wake-up method of the Internet of Things device.
[0067] Step S205: Selecting a device from the first device group as a to-be-woken device in response to a wake-up instruction.
[0068] In some embodiments, a device in the first device group can be selected as the device to be woken up in the following manner: since the communication duration of the devices in the first device group is less than the first preset wake-up duration, after the first preset wake-up duration elapses after the user issues the wake-up instruction, it can be ensured that all the devices in the first device group can receive the wake-up information of each other. That is, after the first preset wake-up duration, a device in the first device group is selected as the device to be woken up according to the result of the decision algorithm.
[0069] Step S206: In response to the voice information sent after the device to be woken up is woken up, the devices in the second device group are controlled to stop running the decision algorithm.
[0070] For the sake of understanding, the following describes the device wake-up method of the embodiment in combination with Figure 3 The device wake-up method of the embodiment is described in detail as follows:
[0071] (1) Assume that the distributed voice system has three devices, numbered M1, M2 and M3, M1 is randomly selected as the test device, M2 and M3 are the devices to be tested, the first preset wake-up duration is T1, and the second preset wake-up duration is T2.
[0072] (2) M1 sends a test message to M2 and M3, and M2 and M3 send a test reply message to M1 after receiving the test message.
[0073] (3) M1 records the communication duration with M2 as t1 and the communication duration with M3 as T3.
[0074] (4) It is determined that t1 is less than T1 and T3 is greater than T1, so M1 and M2 are the first device group, and M3 is the second device group.
[0075] (5) It is determined whether T3 is less than T2, if T3 is less than T2, the message delay of M3 is set to T2.
[0076] (5) In response to the wake-up instruction sent by the user, M1 to M3 will send their own wake-up information to other devices, but since a device is to be decided as the device to be woken up after T1, only M1 and M2 will receive each other's wake-up information within T1. M1 and M2 currently have all the wake-up information, which is decided by an algorithm, after T1, the wake-up condition of M1 is optimal, so M1 is woken up.
[0077] (6) M1 sends a voice message, and M3 stops its decision algorithm immediately after receiving the voice message and does not respond to wake-up.
[0078] Compared with the related art, the embodiments of the present application have at least the following advantages: by determining the communication speed of each device, a device with superior communication speed is selected as the first device group, and when a wake-up instruction is received, a device from the first device group is selected to wake up (other devices of the first device group are not woken up), so that the wake-up instruction of the user can be timely replied, and the use experience of the user is improved; after the device is woken up, a voice message is sent, and the second device group stops its decision algorithm after receiving the voice message, that is, the devices of the second device group will not be woken up after receiving the voice message, so that the uniqueness of wake-up is ensured, and it is ensured that only one device will be woken up after the user issues a wake-up instruction.
[0079] Please refer to Figure 4 The flowchart of the method for intelligently waking up a voice of an Internet of Things device provided by an embodiment of the present application, which is an example of the foregoing embodiment, specifically illustrates another way of selecting a device with communication speed meeting a preset requirement from multiple devices as a first device group, including the following steps:
[0080] Step S301: arbitrarily selecting a device from multiple devices as a test device, and taking the remaining devices as to-be-tested devices.
[0081] Step S302: acquiring the communication duration of each to-be-tested device with the test device, and taking the communication duration of the to-be-tested device with the test device as the communication speed of the to-be-tested device.
[0082] Step S303: determining a first wake-up decision duration according to the communication durations of the multiple devices.
[0083] In some embodiments, the first wake-up decision duration can be determined according to the following manner: sorting the communication durations of the multiple devices in descending order or ascending order, and taking the median of the sorted values as the first wake-up decision duration. For example, if there are five devices, and the communication durations of the five devices are 30 ms, 30 ms, 80 ms, 100 ms and 200 ms in turn, then 80 ms is the first wake-up decision duration.
[0084] Step S304: determining whether the communication duration of a device is less than the first wake-up decision duration, if the communication duration of the device is less than the first wake-up decision duration, determining that the communication speed corresponding to the communication duration of the device meets a preset requirement, and dividing the device into the first device group; if the communication duration of the device is greater than or equal to the first wake-up decision duration, dividing the device into the second device group.
[0085] Step S305: determining whether there is a device with a communication duration less than the second wake-up decision duration in the second device group; and adjusting the communication duration of the device with the communication duration less than the second wake-up decision duration to the second preset wake-up duration.
[0086] In some embodiments, the second wake-up decision duration is greater than the first wake-up decision duration. The difference between the second wake-up decision duration and the first wake-up decision duration is greater than or equal to 100 milliseconds and less than or equal to 200 milliseconds. Since it takes a certain amount of time for the device to receive the voice message and stop its own decision algorithm, in this way, it can be ensured that the devices in the second device group can all complete the receiving of the voice message and the stopping of their own decision algorithms, avoiding the occurrence of the situation that "some devices in the second device group respond to the user's wake-up instruction before completely stopping their own decision algorithms, resulting in multiple device wake-up", and improving the reliability of the intelligent voice wake-up method of the Internet of Things device.
[0087] Step S305: In response to the wake-up instruction, a device in the first device group is selected as a to-be-woken-up device.
[0088] Step S306: In response to the voice information sent after the to-be-woken-up device is woken up, the devices in the second device group are controlled to stop running the decision algorithm.
[0089] The steps S301, S302, S305 and S306 of the embodiment are similar to the steps S101 to S103 of the foregoing embodiment, and are not described here again to avoid repetition.
[0090] Compared with the related art, the embodiment of the present application has at least the following advantages: by determining the communication speed of each device, a device with superior communication speed is selected as the first device group, and when the wake-up instruction is received, a device in the first device group is selected to wake up (the other devices in the first device group are not woken up), so that the user's wake-up instruction can be replied in time, and the user's use experience is improved; after the device is woken up, a voice message is sent, and the second device group stops its own decision algorithm after receiving the voice message, that is, the devices in the second device group will not be woken up after receiving the voice message, so as to ensure the uniqueness of the wake-up, and ensure that only one device will be woken up after the user issues the wake-up instruction.
[0091] Please refer to Figure 5 , the hardware structure schematic diagram of the electronic device 1000 provided by the embodiment of the present application. As shown in Figure 5 , the electronic device 1000 can include a processor 1001, a memory 1002. The memory 1002 is used to store one or more computer programs 1003. One or more computer programs 1003 are configured to be executed by the processor 1001. The one or more computer programs 1003 include instructions, which can be used to implement the method of waking up the device as described in Figures 1 to 4 .
[0092] It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 1000. In other embodiments, the electronic device 1000 can include more or fewer components than illustrated, or combine certain components, or split certain components, or different arrangement of components.
[0093] The processor 1001 can include one or more processing units, for example: the processor 1001 can include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices, or can be integrated in one or more processors.
[0094] The processor 1001 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1001 is a cache memory. The memory can hold instructions or data that the processor 1001 has just used or recycled. If the processor 1001 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 1001, thus improving the efficiency of the system.
[0095] In some embodiments, the processor 1001 can include one or more interfaces. The interface can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.
[0096] In some embodiments, the memory 1002 can include high-speed random access memory and can also include nonvolatile memory, such as a hard disk, a memory card, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash storage device, or other nonvolatile solid-state storage device.
[0097] The embodiment further provides a storage medium, in which computer instructions are stored, and when the instructions run on an electronic device, the electronic device executes the related method steps to realize the method of waking up the device in the above embodiment.
[0098] The electronic device and the computer storage medium provided by the embodiment are used to execute the corresponding method provided above, and thus the beneficial effects achieved thereby can refer to the beneficial effects of the corresponding method provided above, which will not be described here again.
[0099] In actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0100] In several embodiments provided in the present application, the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are illustrative, for example, the division of the module or unit is a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0101] The units described as separate components can or can not be physically separate, and the components shown as units can be one physical unit or multiple physical units, that is, can be located in one place or can be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0102] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0103] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium, including a number of instructions to make a device (which can be a single-chip microcomputer, a chip, etc.) or a processor execute all or part of the steps of the method described in various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0104] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any change or replacement within the technical scope disclosed in the present application should be covered within the protection scope of the present application.
Claims
1. A method for intelligent voice wake-up of an Internet of Things (IoT) device, characterized in that, The IoT device intelligent voice wake-up method, applicable to multiple devices and interconnected with each other, includes: The communication speed of each of the devices is determined, and the devices whose communication speed meets the preset requirements are selected from the multiple devices as the first device group, and the remaining devices are selected as the second device group; wherein, by determining the communication speed of each of the devices, the device with the superior communication speed is selected as the first device group; In response to a wake-up command, one device is selected from the first device group as the device to be woken up. Upon receiving the wake-up command, each device sends its own wake-up information to the other devices. Multiple devices, upon receiving the wake-up command, run a decision algorithm for device wake-up. Based on the result of the decision algorithm, one device is selected from the first device group as the device to be woken up. Each device performs an algorithmic decision on all its current wake-up information, and since each device in the first device group has the same wake-up information, the algorithmic decision results are also the same. In response to the voice information sent by the device to be woken up, all devices in the second device group are controlled to stop running the decision algorithm; wherein, the devices in the second device group stop their own decision algorithm after receiving the voice information.
2. The intelligent voice wake-up method for IoT devices as described in claim 1, characterized in that, The step of determining the communication speed of each of the devices specifically includes: Select one device from the multiple devices as the test device, and use the remaining devices as the devices to be tested; The communication duration between each device under test and the test device is obtained, and the communication duration between the device under test and the test device is used as the communication speed of the device under test.
3. The intelligent voice wake-up method for IoT devices as described in claim 2, characterized in that, Before selecting the device whose communication speed meets the preset requirement from the plurality of devices as the first device group, the method further includes: Determine whether the communication duration of the device is less than the first preset wake-up duration; If the communication duration of the device is less than the first preset wake-up duration, it is determined that the communication speed corresponding to the communication duration of the device meets the preset requirement.
4. The intelligent voice wake-up method for IoT devices as described in claim 3, characterized in that, Following the designation of the remaining devices as the second group of devices, the following is also included: Determine whether there is a device in the second device group whose communication duration is less than the second preset wake-up duration; The communication duration of a device whose communication duration is less than the second preset wake-up duration is adjusted to the second preset wake-up duration, wherein the second preset wake-up duration is greater than the first preset wake-up duration.
5. The intelligent voice wake-up method for IoT devices as described in claim 4, characterized in that, The difference between the second preset wake-up duration and the first preset wake-up duration is greater than or equal to 100 milliseconds and less than or equal to 200 milliseconds.
6. The intelligent voice wake-up method for IoT devices as described in claim 2, characterized in that, After obtaining the communication duration between each of the devices under test and the test device, the method further includes: The first wake-up decision duration is determined based on the communication duration of the multiple devices. Before selecting the device whose communication speed meets the preset requirement from the plurality of devices as the first device group, the method further includes: Determine whether the communication duration of the device is less than the first wake-up decision duration; If the communication duration of the device is less than the first wake-up decision duration, it is determined that the communication speed corresponding to the communication duration of the device meets the preset requirements.
7. The intelligent voice wake-up method for IoT devices as described in claim 6, characterized in that, The step of determining the first wake-up decision duration based on the communication duration of the multiple devices specifically includes: The communication durations of the multiple devices are sorted in descending or ascending order, and the median of the sorted durations is used as the first wake-up decision duration.
8. The intelligent voice wake-up method for IoT devices as described in claim 6, characterized in that, Following the designation of the remaining devices as the second group of devices, the following is also included: Determine whether there is a device in the second device group whose communication duration is less than the second wake-up decision duration; The communication duration of a device whose communication duration is less than the second wake-up decision duration is adjusted to the second wake-up decision duration, wherein the second wake-up decision duration is greater than the first wake-up decision duration.
9. A computer-readable storage medium, characterized in that, The method includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the IoT device smart voice wake-up method as described in any one of claims 1 to 8.
10. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory being used to store instructions, and the processor being used to call the instructions in the memory, causing the electronic device to execute the IoT device smart voice wake-up method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Intelligent optimization method and device for wake-up decision, electronic equipment and storage medium
CN113608792A
Equipment awakening method and device, electronic equipment and medium
CN114639383A