CN115312048A - Equipment awakening method and device, storage medium and electronic device - Google Patents

Equipment awakening method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115312048A
CN115312048A CN202210764132.6A CN202210764132A CN115312048A CN 115312048 A CN115312048 A CN 115312048A CN 202210764132 A CN202210764132 A CN 202210764132A CN 115312048 A CN115312048 A CN 115312048A
Authority
CN
China
Prior art keywords
cloud server
audio
awakening
wake
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210764132.6A
Other languages
Chinese (zh)
Inventor
姬光飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210764132.6A priority Critical patent/CN115312048A/en
Publication of CN115312048A publication Critical patent/CN115312048A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • G10L15/30Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Abstract

The application discloses a device awakening method and device, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the device awakening method comprises the following steps: establishing a short connection between a target device and a cloud server, and sending a request instruction to the cloud server according to the short connection, wherein the request instruction is used for determining the number of devices awakened by using a target awakening word in a target area; acquiring a first quantity sent by the cloud server in response to the request instruction, and determining whether to establish long connection between the target device and the cloud server according to the first quantity; responding to a first awakening audio and executing awakening operation corresponding to the first awakening audio under the condition that the first awakening audio is obtained and long connection between the target device and the cloud server is not established, wherein the first awakening audio carries the target awakening word.

Description

Equipment awakening method and device, storage medium and electronic device
Technical Field
The application relates to the technical field of smart homes, in particular to a device awakening method and device, a storage medium and an electronic device.
Background
With the development of voice technology, voice equipment has entered into thousands of households, and voice interaction can release both hands to a great extent, so that many household scenes become matters of a sentence. Often there is a plurality of pronunciation awakening device that have the same word of awakening up in same family, in order to avoid a plurality of equipment to respond in a glance when awakening up, respond simultaneously, present speech equipment all has distributed technology, establish long connection with the high in the clouds server, and then after acquireing the audio of awakening up, send the audio of awakening up that acquires to the high in the clouds server, and then confirm whether to awaken up the operation through the instruction that acquires the high in the clouds server, promptly after speech equipment opens distributed device, equipment all need wait the response of high in the clouds server and just can awaken up.
However, if there is only one device in the home, after the device starts the distributed technology, the device needs to wait for an instruction sent by the cloud server to determine whether to wake up, so that the response time is too long. Meanwhile, as only one device is arranged in the family, if the distributed technology is continuously adopted to determine whether to wake up, the resources of the cloud server are occupied.
In the related art, the problem of low wakeup efficiency caused by the fact that wakeup of equipment needs to be determined through an instruction of a cloud server is not solved.
Accordingly, there is a need for improvement in the related art to overcome the disadvantages of the related art.
Disclosure of Invention
The embodiment of the invention provides a device awakening method and device, a storage medium and an electronic device, and at least solves the problem that awakening of devices is low in awakening efficiency because the awakening of the devices needs to be determined through instructions of a cloud server.
According to an aspect of the embodiments of the present invention, there is provided a device wake-up method, including: the method comprises the steps of establishing a short connection between a target device and a cloud server, and sending a request instruction to the cloud server according to the short connection, wherein the request instruction is used for determining the number of devices which are waken by using a target wake-up word in a target area; acquiring a first quantity sent by the cloud server in response to the request instruction, and determining whether to establish long connection between the target device and the cloud server according to the first quantity; responding to a first awakening audio and executing awakening operation corresponding to the first awakening audio under the condition that the first awakening audio is obtained and long connection between the target device and the cloud server is not established, wherein the first awakening audio carries the target awakening word.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus wake-up apparatus, including: the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for establishing short connection between target equipment and a cloud server and sending a request instruction to the cloud server according to the short connection, and the request instruction is used for determining the number of equipment which is wakened by using a target wake-up word in a target area; the determining module is used for acquiring a first quantity sent by the cloud server in response to the request instruction and determining whether to establish long connection between the target device and the cloud server according to the first quantity; and the awakening module is used for responding to a first awakening audio and executing awakening operation corresponding to the first awakening audio under the condition that the first awakening audio is obtained and long connection between the target device and the cloud server is not established, wherein the first awakening audio carries the target awakening word.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the above-mentioned device wake-up method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the device wake-up method through the computer program.
According to the method and the device, the number of the devices waken up by using the target wake-up words in the target area is obtained through the short connection between the target device and the cloud server, whether the long connection between the target device and the cloud server is established or not is determined according to the number of the devices sent by the cloud server, and therefore when the first wake-up audio is obtained and the long connection between the target device and the cloud server is not established, the first wake-up audio is directly responded to, and the wake-up operation corresponding to the first wake-up audio is executed. By adopting the technical scheme, only one device which is awakened by using the target awakening word in the target area is provided, and the device is directly awakened without being judged by the cloud server under the condition that the device acquires the awakening audio frequency, so that the awakening speed is improved. The problem of lower awakening caused by the fact that the awakening of the equipment is determined by the instruction of the cloud server is solved.
Drawings
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 application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic diagram of a hardware environment of a device wake-up method according to an embodiment of the present application;
FIG. 2 is a flow chart (one) of a device wake-up method according to an embodiment of the present invention;
FIG. 3 is a flow chart diagram according to a prior art device wake-up method;
fig. 4 is a flowchart of a device wake-up method according to an embodiment of the present invention (two);
fig. 5 is a flowchart (iii) of a device wake-up method according to an embodiment of the present invention;
fig. 6 is a block diagram of a device wake-up apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiments of the present application, a device wake-up method is provided. The equipment awakening method is widely applied to full-house intelligent digital control application scenes such as Smart Home, intelligent Home equipment ecology, intelligent house (intelligence house) ecology and the like. Alternatively, in this embodiment, the device wake-up method may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, set a database on the server or independent of the server, and provide a data storage service for the server 104, and configure a cloud computing and/or edge computing service on the server or independent of the server, and provide a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity ), bluetooth. Terminal equipment 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In order to solve the above problem, in this embodiment, a device wake-up method is provided, including but not limited to being applied in a target device, and fig. 2 is a flowchart (a) of the device wake-up method according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, establishing a short connection between a target device and a cloud server, and sending a request instruction to the cloud server according to the short connection, wherein the request instruction is used for determining the number of devices which are waken by using a target wakening word in a target area; wherein the target device is located in the target area.
It should be noted that the target devices include, but are not limited to, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent stove, an intelligent washing machine, an intelligent water heater, and the like. The target area includes, but is not limited to, an area where a circle of a preset radius centered on the target device is located in a home where the target device is located.
It should be noted that, after the device in the target area is powered on, networking operation is performed, and then the device information of the device itself is uploaded to the cloud server, where the device information includes but is not limited to: device description information, device identification, location of the device, etc.
Step S204, acquiring a first quantity sent by the cloud server in response to the request instruction, and determining whether to establish long connection between the target device and the cloud server according to the first quantity;
in an exemplary embodiment, the determining whether to establish the long connection between the target device and the cloud server according to the first number may be implemented by: when the first number is smaller than a preset threshold value, a long connection between the target device and the cloud server is not established; and under the condition that the first number is determined to be larger than or equal to the preset threshold value, establishing long connection between the target device and the cloud server.
In an exemplary embodiment, the preset threshold is two, that is, in a case that the number of devices to be awakened by using the target awakening word in the target area is equal to one, the long connection between the target device and the cloud server is not established, so that network resources of the cloud server can be saved, and whether to awaken or not is not determined by the cloud server, thereby improving the response speed. Under the condition that the number of the devices waken up by using the target wake-up word in the target area is more than one, in order to avoid that a plurality of devices using the same target wake-up word respond at once when waken up, long connection between the target device and the cloud server needs to be established, and whether waken up is determined through the cloud server. It should be noted that when the target device needs to determine whether to wake up through the cloud server, the target device establishes a long connection with the cloud server to transmit data and instructions, so as to improve the response speed.
Step S206, when a first wake-up audio is obtained and it is determined that a long connection is not established between the target device and the cloud server, directly responding to the first wake-up audio and executing a wake-up operation corresponding to the first wake-up audio, where the first wake-up audio carries the target wake-up word.
In an exemplary embodiment, performing the wake-up operation corresponding to the first wake-up audio includes, but is not limited to: the target device is awakened by the first awakening audio, the target device executes target operation, and the first awakening audio carries a control instruction for executing the target operation.
That is to say, if a long connection is not established between the target device and the cloud server, it is indicated that only one device which uses the target wake-up word to wake up in the target area is provided, and then whether the device wakes up is determined without the cloud server, the device directly responds to the first wake-up audio, and executes the wake-up operation corresponding to the first wake-up audio, so that the response speed is increased.
In the above step, the number of devices wakened by the target wake-up word in the target area is obtained through the short connection between the target device and the cloud server, whether a long connection between the target device and the cloud server is established or not is determined according to the number of devices sent by the cloud server, and then the first wake-up audio is directly responded to and a wake-up operation corresponding to the first wake-up audio is executed under the condition that the first wake-up audio is obtained and the long connection between the target device and the cloud server is not established. By adopting the technical scheme, only one device which is awakened by using the target awakening word in the target area is provided, and the device is directly awakened without being judged by the cloud server under the condition that the device acquires the awakening audio frequency, so that the awakening speed is improved. The problem of lower awakening caused by the fact that the awakening of the equipment is determined by the instruction of the cloud server is solved.
In an exemplary embodiment, after the above step S204 is executed, there are the following steps S11-S13:
step S11: under the condition that a first awakening audio is obtained and a long connection is established between the target device and the cloud server, sending an awakening request instruction to the cloud server through the long connection, wherein the awakening request instruction carries device characteristic information of the target device, and the device characteristic information at least comprises: the energy of the first wake-up audio received by the target device, and a device identifier of the target device;
it should be noted that if a long connection is established between the target device and the cloud server, it is indicated that there is more than one device that wakes up using the target wake-up word in the target area, and in order to avoid a situation that multiple devices using the same target wake-up word respond to the first wake-up audio all at once when receiving the first wake-up audio, the cloud server determines whether to wake up, that is, each device of the multiple devices needs to send the energy of the acquired first wake-up audio and the device identifier of the device to the cloud server, and the cloud server determines which device is to wake up.
It should be noted that, because different devices are different in the position of the object that emits the first wake-up audio, and thus the energy of the first wake-up audio acquired by the different devices is also different, if the device is closer to the object that emits the first wake-up audio, the energy of the acquired first wake-up audio is larger.
Step S12: under the condition that a control instruction sent by the cloud server in response to the awakening request instruction is acquired within preset time, whether to execute awakening operation corresponding to the first awakening audio is determined according to the control instruction;
in an exemplary embodiment, determining whether to perform the wake-up operation corresponding to the first wake-up audio according to the control instruction may be implemented by: executing a wakeup operation corresponding to the first wakeup audio under the condition that the control instruction is a first control instruction; the first control instruction is a control instruction which is sent by the cloud server under the condition that the energy corresponding to the target device is the maximum in the multiple devices after the energy of the first wake-up audio sent by each device in the multiple devices is obtained; the plurality of devices includes the target device; each of the plurality of devices is awakened using a target wake word; when the control instruction is a second control instruction, not executing the awakening operation corresponding to the first awakening audio; the second control instruction is a control instruction which is sent by the cloud server under the condition that it is determined that the energy corresponding to the target device is not the maximum in the multiple devices after the energy of the first wake-up audio sent by each device in the multiple devices is obtained.
That is to say, the cloud server may determine, according to the energy of the first wake-up audio sent by each of the multiple devices, a distance between an object that sends the first wake-up audio and each device, where the larger the energy of the first wake-up audio sent by the device to the cloud server is, the closer the object that sends the first wake-up audio is to the device is indicated, and then the cloud server may determine, as the device that needs to be woken up, the device with the largest energy as the device that sends the first wake-up audio. And then sending a first control instruction or a second control instruction to the target equipment according to the energy of the first wake-up audio collected by the target equipment.
Step S13: and executing the awakening operation corresponding to the first awakening audio under the condition that the control instruction sent by the cloud server in response to the awakening request instruction is not acquired within preset time.
It should be noted that if a control instruction sent by the cloud server in response to the wakeup request instruction is not obtained within a preset time, a timeout mechanism is triggered, and the target device defaults to be a device which needs to be wakened by an object sending a first wakeup audio, and executes a wakeup operation corresponding to the first wakeup audio.
In an exemplary embodiment, when the first wake-up audio is obtained and it is determined that the long connection between the target device and the cloud server is not established, the request instruction may be sent to the cloud server again through the short connection, and a second number sent by the cloud server in response to the request instruction is obtained; determining whether to transform the short connection between the target device and the cloud server to a long connection between the target device and the cloud server according to the second number.
That is to say, if a long connection is not established between the target device and the cloud server, it is indicated that only the target device is a device using the target wakeup word in the target area, after the target device receives the wakeup word, in order to avoid newly adding a device using the target wakeup word in the target area, the target device may establish a short connection with the cloud server again, and send a request instruction to the cloud server in a short connection manner, to request to obtain a second number of devices in the target area that are wakened up by using the target wakeup word, if the second number is greater than one, the long connection needs to be established between the target device and the cloud server at this time, and then when the first wakeup audio is obtained next time, send device characteristic information to the cloud server through the long connection, and the cloud server determines whether to wake up. If the second number is equal to one, the target device does not have to establish a long connection with the cloud server.
In an exemplary embodiment, in a case that the first wake-up audio is obtained and it is determined that a long connection is established between the target device and the cloud server, the request instruction may be sent to the cloud server again through the long connection, and a third number sent by the cloud server in response to the request instruction is obtained; determining whether to disconnect the long connection between the target device and the cloud server according to the third number.
That is to say, if a long connection is established between the target device and the cloud server, it indicates that there are multiple devices using the target wakeup word in the target area, and then after the target device receives the wakeup word, in order to avoid reducing the devices using the target wakeup word in the target area, so that only the target device using the target wakeup time is used, the target device may send a request instruction to the cloud server through the long connection established with the cloud server to request to obtain a third number of devices in the target area that are wakened up using the target wakeup word, and if the second number is greater than one, the target device does not need to disconnect the long connection with the cloud server at this time. If the second number is equal to one, the target device does not need to determine whether to wake up through the cloud server, and then the long connection between the cloud servers can be disconnected in order to save resources of the cloud servers and improve response speed.
In an exemplary embodiment, after the step S204 is executed, the request instruction may be sent to the cloud server again after a preset time interval, and a fourth quantity sent by the cloud server in response to the request instruction is obtained; determining whether to disconnect the long connection between the target device and the cloud server according to the fourth number under the condition that the long connection between the target device and the cloud server is determined to be established; and under the condition that the target equipment is determined not to be connected with the cloud server, determining whether to establish long connection between the target equipment and the cloud server according to the fourth quantity.
It should be noted that, in order to avoid adding a new device using the target wake-up word in the target area, the target device may send a request instruction to the cloud server at preset time intervals, so as to determine the number of devices in the target area that are woken up by using the target wake-up word. It should be noted that, if a long connection is established between the target device and the cloud server, the request instruction may be sent to the cloud server in a long connection manner, and if a long connection is not established between the target device and the cloud server, the request instruction may be sent to the cloud server in a short connection manner.
After the target device obtains the fourth number sent by the cloud server, if a long connection is established between the target device and the cloud server, and the fourth number is equal to one, the long connection between the target device and the cloud server needs to be disconnected, and if the long connection is not established between the target device and the cloud server, and the fourth number is greater than one, the long connection between the target device and the cloud server needs to be established.
In an exemplary embodiment, after determining whether a long connection is established between the target device and the cloud server according to the second number or the third number, the method further includes: when a long connection is established between the target device and the cloud server when the first wake-up audio is received, determining whether to execute a wake-up operation corresponding to a second wake-up audio to the cloud server through the long connection when the second wake-up audio is received; and under the condition that long connection is not established between the target device and the cloud server when the first awakening audio is received, executing awakening operation corresponding to a second awakening audio when the second awakening audio is received, wherein the second awakening audio carries the target awakening word, and the receiving time of the second awakening audio is later than that of the first awakening audio.
For example, the first wake-up audio may be a wake-up audio received when the target device is currently woken up, and the second wake-up audio may be a wake-up audio received next time the target device is woken up. Therefore, the awakening mode of the target device can be determined according to whether long connection is established between the current target device and the cloud server. For example, if a long connection is established between the current target device and the cloud server, whether to perform the wakeup operation may be determined according to the time when the second wakeup audio is received next time; if the long connection is not established between the current target device and the cloud server, the awakening operation is directly executed when the second awakening audio is received next time, so that the confirmation process to the cloud is reduced, and the equipment awakening response speed is accelerated.
It is to be understood that the above-described embodiments are only a few, and not all, embodiments of the present invention. In order to better understand the above device wake-up method, the following describes the above process with reference to an embodiment, but is not limited to the technical solution of the embodiment of the present invention, and specifically:
in an optional embodiment, if the current voice wake-up device has a distributed type, the device distributed type is opened, and the distributed wake-up scheme is to use a cloud server to make a decision to determine whether the device is to wake up.
For better understanding, fig. 3 is a flowchart according to a wake-up method of the existing device, and the specific flow is as follows:
step S301: starting up the equipment;
step S302: networking the devices;
step S303: the device performs distributed login, and long connection is established between the device and the cloud server;
it should be noted that, in the embodiment of the present application, both the distributed login and the open/open distribution are equivalent to long connection between the device and the cloud server in the above embodiment, and the device close distribution is equivalent to long connection between the device and the cloud server in the above embodiment.
Step S304: the device receives a wake-up audio;
step S305: uploading the equipment information to a cloud server;
step S306: the equipment waits for the judgment result of the cloud server within a fixed time;
note that the fixed time may be 300ms.
Step S307: the device receives the decision result;
step S308: the equipment determines to be awakened or not according to the judgment result;
step S309: the device is affected by the network and overtime, and the judgment result of the cloud server is not received within fixed time;
step S310: the device wakes up.
That is, after the device is started, the device performs distributed login and establishes long connection with the cloud server; after the device receives the awakening words to be awakened, the device uploads device characteristic information (score (equivalent to energy in the embodiment), deviceid (equivalent to device identification in the embodiment) and the like) to the cloud server through long connection between the device and the cloud server, and then the cloud server judges according to the score and sends awakening inhibition information to the device with low score; it should be noted that, if the device is affected by the network and is overtime, and the decision result of the cloud server is not received within a fixed time, the device is awakened according to an overtime mechanism.
Furthermore, for the existing device wake-up scheme, if there is only one distributed device in the home, there are the following disadvantages: (1) Distributed awakening requires a decision process, if only one device exists in the same family, the device is required to wait for awakening until timeout (waiting for other device decision); or the equipment sends the equipment information to the cloud server, and then the equipment acquires the awakening time sent by the cloud server; furthermore, in any mode, the awakening time of the equipment is too long, instant response cannot be obtained, and the experience is poor; (2) When the devices are distributed, in order to improve the interaction speed, long connection needs to be established with the cloud server, and then if only one device exists in the same family, the resources such as network bandwidth of the cloud server are occupied in a distributed mode.
Further, in order to solve the above problem, the present application provides a device wake-up method, specifically:
firstly, when equipment is started and awakened each time, a distributed switch detection request is sent to a cloud server, and then the cloud server returns the number of the equipment in a family group; if the number of the devices in the family group is more than or equal to 2, the terminal device normally starts the distributed mode to log in the devices, long connection is established between the terminal device and the cloud server, and when the devices are awakened, distributed decision making is normally carried out, and distributed awakening is carried out (namely awakening is carried out by obtaining an instruction of the cloud server); if the number of the devices in the family group is 1, the terminal does not log in the devices and does not establish long connection with the cloud server, and when the devices are awakened, the devices directly perform corresponding awakening operation.
Secondly, when the devices are awakened each time, detecting the number of the current home devices, when one device in the home group is changed into a plurality of devices, a newly added device can acquire the number of the devices which is more than or equal to 2 when the devices are started, the distributed device can be opened, and the devices normally enter the distributed device; when the equipment is awakened every time, the number of the current home equipment is detected, when a plurality of pieces of equipment in the home group are changed into one piece, distributed operation is closed, the equipment directly performs awakening operation, and long connection between the equipment and the cloud server is disconnected.
Furthermore, by adopting the technical scheme, the number of the devices in the family is dynamically acquired, and the distributed devices can be dynamically opened and closed according to the number of the devices in the family, so that the response time of the devices can be prolonged, the number of the devices connected with the cloud server is reduced, and the pressure of the cloud server is reduced.
For better understanding, fig. 4 is a flowchart (ii) of a device wake-up method according to an embodiment of the present invention, and the specific steps are as follows:
s401: starting up the equipment;
s402: the equipment is networked;
s403: the device sends a distributed switch request to the cloud server (corresponding to the sending request command in the above embodiment);
s404: acquiring the number of devices in a family scene sent by a cloud server;
s405: determining whether the number of devices is greater than 1;
s406: under the condition that the number of the devices is determined to be 1, distributed login is not performed; step S407 is executed;
s407: the equipment is directly awakened under the condition of receiving the awakening audio;
s408: under the condition that the number of the equipment is determined to be more than 1, the equipment performs distributed login; executing step S409;
s409: the device uploads device information (equivalent to the device characteristic information in the above embodiment) to the cloud server when receiving the wake-up audio;
s410: the equipment waits for the judgment result of the cloud server at a fixed time;
s411: the device receives the decision result;
s412: the equipment determines to be awakened or not according to the judgment result;
s413: the device is affected by the network and overtime, and the judgment result of the cloud server is not received within fixed time;
s414: the device wakes up.
That is to say, after the device starts networking, a distributed switch detection request is initiated, and then the device analyzes and obtains the number of devices in the home group issued by the cloud server according to the detection request, when the number of the devices in the home group is 1, the distributed switch is not started, the distributed login is not performed, and then when the device receives a wakeup audio, the device is directly waken up; when the number of the devices in the family group is larger than 1, distributed login is carried out, long connection is established with the cloud server, when the devices are awakened, the feature information of the awakening devices is sent to the cloud server, distributed decision is carried out by the cloud server, and awakening is selected or inhibited according to the distributed decision result.
It should be noted that, each time the device receives the wake-up audio, the device also initiates a distributed switch detection request, specifically, fig. 5 is a flowchart (three) of a device wake-up method according to an embodiment of the present invention, as shown in fig. 5:
s501: the device receives a wake-up audio;
s502: sending a distributed switch request to a cloud server;
s503: analyzing and acquiring the number of devices in the family scene sent by the cloud server;
s504: 1 device at home is changed into a plurality of devices;
s505: the equipment performs distributed login;
s506: starting distributed request operation when receiving awakening audio next time;
that is to say, when the device receives the wakeup audio next time, it needs to send device information to the cloud server, and determines whether to perform wakeup according to an instruction of the cloud server.
S507: the number of devices in the family is changed into 1;
s508: disconnecting the distributed connection;
s509: and directly awakening the next time when the awakening audio is received.
That is to say, when the number of the devices is changed from one device to multiple devices (a user newly binds and joins a new device), distributed login is performed, connection with the cloud server is established, when the devices receive a wake-up audio, device information of the wake-up devices is sent to the cloud server, distributed decision is performed, and wake-up or wake-up inhibition is selected according to a distributed decision result. When the number of the devices is changed into 1 (the devices are unbound or the devices are powered off), the devices are closed to be distributed, long connection with the cloud server is disconnected, and meanwhile, when the devices receive awakening audio, the devices are directly awakened.
It should be noted that, by using the above scheme, the number of devices in a family can be dynamically acquired; the distributed type cloud server system has the advantages that distributed type can be dynamically opened and closed according to the number of devices in a family, the response time of the devices is prolonged, the number of the devices connected with the cloud server is reduced, and the pressure of the cloud server is reduced.
Meanwhile, the application is particularly applicable to the following scenes: the number of devices in a family is only one, the distributed type is not started according to the distributed switch control, and the device is directly awakened under the condition of acquiring the awakening audio frequency, so that the awakening response is quick. The household equipment is changed into one equipment from a plurality of equipment (the original distributed open state enters the closed state). Subsequent awakening is not distributed, and under the condition of acquiring the awakening audio, the subsequent awakening is directly awakened, so that the awakening response is fast; meanwhile, due to distributed closing, the number of connected cloud devices is reduced, and the devices can also automatically open the distributed mode under the condition that the number of devices in a family is changed from one device to multiple devices.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method of the embodiments of the present invention.
In this embodiment, an apparatus wake-up device is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware or a combination of software and hardware are also possible and contemplated.
Fig. 6 is a block diagram of a device wake-up apparatus according to an embodiment of the present invention, where the apparatus includes:
the sending module 62 is configured to establish a short connection between the target device and the cloud server, and send a request instruction to the cloud server according to the short connection, where the request instruction is used to determine the number of devices that are awakened using the target awakening word in the target area;
a determining module 64, configured to obtain a first number sent by the cloud server in response to the request instruction, and determine whether to establish a long connection between the target device and the cloud server according to the first number;
the wake-up module 66 is configured to, when a first wake-up audio is obtained and it is determined that a long connection is not established between the target device and the cloud server, directly respond to the first wake-up audio and perform a wake-up operation corresponding to the first wake-up audio, where the first wake-up audio carries the target wake-up word.
According to the device, the number of the devices wakened by the target wakening words in the target area is obtained through the short connection between the target device and the cloud server, whether the long connection between the target device and the cloud server is established or not is determined according to the number of the devices sent by the cloud server, and therefore when the first wakening audio is obtained and the long connection between the target device and the cloud server is not established, the first wakening audio is directly responded, and the wakening operation corresponding to the first wakening audio is executed. By adopting the technical scheme, only one device which uses the target awakening word to awaken in the target area is provided, and the device directly awakens without being judged by the cloud server under the condition that the device acquires the awakening audio, so that the awakening speed is improved. The problem of lower awakening caused by the fact that the awakening of the equipment is determined by the instruction of the cloud server is solved.
In an exemplary embodiment, the wakeup module 66 is further configured to, when the first wakeup audio is obtained and it is determined that a long connection is established between the target device and the cloud server, send a wakeup request instruction to the cloud server through the long connection, where the wakeup request instruction carries device feature information of the target device, and the device feature information at least includes: the energy of the first wake-up audio received by the target device, and a device identifier of the target device; under the condition that a control instruction sent by the cloud server in response to the awakening request instruction is acquired within preset time, whether to execute awakening operation corresponding to the first awakening audio is determined according to the control instruction; and executing the awakening operation corresponding to the first awakening audio under the condition that the control instruction sent by the cloud server in response to the awakening request instruction is not acquired within preset time.
In an exemplary embodiment, the wake-up module 66 is further configured to, if the control instruction is a first control instruction, perform a wake-up operation corresponding to the first wake-up audio; the first control instruction is a control instruction which is sent by the cloud server under the condition that the energy corresponding to the target device is the largest in the multiple devices after the energy of the first awakening audio sent by each device in the multiple devices is obtained; the plurality of devices includes the target device; when the control instruction is a second control instruction, not executing the awakening operation corresponding to the first awakening audio; the second control instruction is a control instruction which is sent by the cloud server under the condition that it is determined that the energy corresponding to the target device is not the maximum in the multiple devices after the energy of the first wake-up audio sent by each device in the multiple devices is acquired.
In an exemplary embodiment, the sending module 62 is further configured to, when the first wake-up audio is obtained and it is determined that the long connection between the target device and the cloud server is not established, send the request instruction to the cloud server again through the short connection, and obtain a second number sent by the cloud server in response to the request instruction; the determining module 64 is further configured to determine whether to establish a long connection between the target device and the cloud server again according to the second number.
In an exemplary embodiment, the sending module 62 is further configured to, in a case that the first wake-up audio is obtained and it is determined that a long connection is established between the target device and the cloud server, send the request instruction to the cloud server again through the long connection, and obtain a third number sent by the cloud server in response to the request instruction; the determining module 64 is further configured to determine whether to transform the short connection between the target device and the cloud server into a long connection between the target device and the cloud server according to the second number.
In an exemplary embodiment, the sending module 62 is further configured to, after determining whether to establish a long connection between the target device and the cloud server according to the first number, send the request instruction to the cloud server again after a preset time interval, and obtain a fourth number sent by the cloud server in response to the request instruction; a determining module 64, configured to determine whether to disconnect the long connection between the target device and the cloud server according to the fourth number under a condition that it is determined that the long connection between the target device and the cloud server is established; and under the condition that the target equipment is determined not to be connected with the cloud server, determining whether to establish long connection between the target equipment and the cloud server according to the fourth quantity.
In an exemplary embodiment, the determining module 64 is further configured to, in a case that it is determined that the first number is smaller than a preset threshold, not establish a long connection between the target device and the cloud server; and under the condition that the first number is determined to be larger than or equal to the preset threshold value, establishing long connection between the target device and the cloud server.
In an exemplary embodiment, the wakeup module 66 is further configured to, in a case that a long connection is established between the target device and the cloud server when receiving the first wakeup audio, determine, when receiving a second wakeup audio, whether to perform a wakeup operation corresponding to the second wakeup audio to the cloud server through the long connection; and under the condition that long connection is not established between the target device and the cloud server when the first awakening audio is received, executing awakening operation corresponding to a second awakening audio when the second awakening audio is received, wherein the second awakening audio carries the target awakening word, and the receiving time of the second awakening audio is later than that of the first awakening audio.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, establishing a short connection between a target device and a cloud server, and sending a request instruction to the cloud server according to the short connection, wherein the request instruction is used for determining the number of devices awakened by using a target awakening word in a target area;
s2, acquiring a first quantity sent by the cloud server in response to the request instruction, and determining whether to establish long connection between the target device and the cloud server according to the first quantity;
and S3, under the condition that a first awakening audio is obtained and long connection between the target device and the cloud server is determined not to be established, directly responding to the first awakening audio and executing awakening operation corresponding to the first awakening audio, wherein the target awakening word is carried in the first awakening audio.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementations, and details of this embodiment are not repeated herein.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, establishing a short connection between a target device and a cloud server, and sending a request instruction to the cloud server according to the short connection, wherein the request instruction is used for determining the number of devices awakened by using a target awakening word in a target area;
s2, acquiring a first quantity sent by the cloud server in response to the request instruction, and determining whether to establish long connection between the target device and the cloud server according to the first quantity;
and S3, under the condition that a first awakening audio is obtained and long connection between the target device and the cloud server is not established, directly responding to the first awakening audio and executing awakening operation corresponding to the first awakening audio, wherein the target awakening word is carried in the first awakening audio.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementations, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented in a general purpose computing device, they may be centralized in a single computing device or distributed across a network of multiple computing devices, and they may be implemented in program code that is executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed in an order different from that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps therein may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A device wake-up method, comprising:
establishing a short connection between a target device and a cloud server, and sending a request instruction to the cloud server according to the short connection, wherein the request instruction is used for determining the number of devices awakened by using a target awakening word in a target area;
acquiring a first quantity sent by the cloud server in response to the request instruction, and determining whether to establish long connection between the target device and the cloud server according to the first quantity;
and under the condition that a first awakening audio is obtained and long connection between the target device and the cloud server is not established, responding to the first awakening audio, and executing awakening operation corresponding to the first awakening audio, wherein the target awakening word is carried in the first awakening audio.
2. The method of claim 1, wherein the determining whether to establish the long connection between the target device and the cloud server according to the first number comprises:
when the first number is smaller than a preset threshold value, a long connection between the target device and the cloud server is not established;
and under the condition that the first number is determined to be larger than or equal to the preset threshold value, establishing long connection between the target device and the cloud server.
3. The method of claim 1 or 2, wherein after determining whether to establish the long connection between the target device and the cloud server according to the first number, the method further comprises:
under the condition that a first awakening audio is obtained and a long connection is established between the target device and the cloud server, sending an awakening request instruction to the cloud server through the long connection, wherein the awakening request instruction carries device characteristic information of the target device, and the device characteristic information at least comprises: the energy of the first wake-up audio received by the target device, and a device identifier of the target device;
under the condition that a control instruction sent by the cloud server in response to the awakening request instruction is acquired within preset time, whether to execute awakening operation corresponding to the first awakening audio is determined according to the control instruction;
and executing a wakeup operation corresponding to the first wakeup audio under the condition that a control instruction sent by the cloud server in response to the wakeup request instruction is not acquired within preset time.
4. The method of claim 3, wherein determining whether to perform a wake-up operation corresponding to the first wake-up audio according to the control instruction comprises:
executing a wakeup operation corresponding to the first wakeup audio under the condition that the control instruction is a first control instruction; the first control instruction is a control instruction which is sent by the cloud server under the condition that the energy corresponding to the target device is the maximum in the multiple devices after the energy of the first wake-up audio sent by each device in the multiple devices is obtained; the plurality of devices includes the target device; each of the plurality of devices is awakened using a target wake word;
when the control instruction is a second control instruction, not executing the awakening operation corresponding to the first awakening audio; the second control instruction is a control instruction which is sent by the cloud server under the condition that it is determined that the energy corresponding to the target device is not the maximum in the multiple devices after the energy of the first wake-up audio sent by each device in the multiple devices is obtained.
5. The method of any of claims 1-4, wherein if the first wake-up audio is obtained and it is determined that a long connection is not established between the target device and the cloud server, the method further comprises:
sending the request instruction to the cloud server through short connection again, and acquiring a second quantity sent by the cloud server in response to the request instruction;
determining whether to transform the short connection between the target device and the cloud server to a long connection between the target device and the cloud server according to the second number.
6. The method according to claim 3 or 4, wherein in the case that the first wake-up audio is acquired and it is determined that the long connection is established between the target device and the cloud server, the method further comprises:
sending the request instruction to the cloud server again through the long connection, and acquiring a third quantity sent by the cloud server in response to the request instruction;
determining whether to disconnect the long connection between the target device and the cloud server according to the third number.
7. The method of claim 5 or 6, further comprising:
when a long connection is established between the target device and the cloud server when the first wake-up audio is received, and when a second wake-up audio is received, determining whether to execute a wake-up operation corresponding to the second wake-up audio to the cloud server through the long connection;
and executing a wakeup operation corresponding to a second wakeup audio when the second wakeup audio is received under the condition that long connection is not established between the target device and the cloud server when the first wakeup audio is received, wherein the second wakeup audio carries the target wakeup word, and the receiving time of the second wakeup audio is later than that of the first wakeup audio.
8. An apparatus wake-up device, comprising:
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for establishing short connection between target equipment and a cloud server and sending a request instruction to the cloud server according to the short connection, and the request instruction is used for determining the number of equipment which is wakened by using a target wake-up word in a target area;
the determining module is used for acquiring a first quantity sent by the cloud server in response to the request instruction and determining whether to establish long connection between the target device and the cloud server according to the first quantity;
and the awakening module is used for responding to a first awakening audio and executing awakening operation corresponding to the first awakening audio under the condition that the first awakening audio is obtained and long connection between the target device and the cloud server is not established, wherein the first awakening audio carries the target awakening word.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202210764132.6A 2022-06-30 2022-06-30 Equipment awakening method and device, storage medium and electronic device Pending CN115312048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210764132.6A CN115312048A (en) 2022-06-30 2022-06-30 Equipment awakening method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210764132.6A CN115312048A (en) 2022-06-30 2022-06-30 Equipment awakening method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115312048A true CN115312048A (en) 2022-11-08

Family

ID=83854777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210764132.6A Pending CN115312048A (en) 2022-06-30 2022-06-30 Equipment awakening method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115312048A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111722824A (en) * 2020-05-29 2020-09-29 北京小米松果电子有限公司 Voice control method, device and computer storage medium
CN111916079A (en) * 2020-08-03 2020-11-10 深圳创维-Rgb电子有限公司 Voice response method, system, equipment and storage medium of electronic equipment
CN112837686A (en) * 2021-01-29 2021-05-25 青岛海尔科技有限公司 Wake-up response operation execution method and device, storage medium and electronic device
WO2022027982A1 (en) * 2020-08-03 2022-02-10 北京京东尚科信息技术有限公司 Responding method and responding apparatus of electronic device, and computer system and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111722824A (en) * 2020-05-29 2020-09-29 北京小米松果电子有限公司 Voice control method, device and computer storage medium
CN111916079A (en) * 2020-08-03 2020-11-10 深圳创维-Rgb电子有限公司 Voice response method, system, equipment and storage medium of electronic equipment
WO2022027982A1 (en) * 2020-08-03 2022-02-10 北京京东尚科信息技术有限公司 Responding method and responding apparatus of electronic device, and computer system and storage medium
CN112837686A (en) * 2021-01-29 2021-05-25 青岛海尔科技有限公司 Wake-up response operation execution method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US11825252B2 (en) Identifying devices using power data and network data
US10735829B2 (en) Identifying device state changes using power data and network data
EP3586521B1 (en) Identifying device state changes using power data and network data
CN114697150A (en) Command issuing method and device, storage medium and electronic device
CN115309062A (en) Device control method, device, storage medium, and electronic apparatus
CN116016002A (en) Intelligent household appliance network distribution method and device and electronic device
CN115312048A (en) Equipment awakening method and device, storage medium and electronic device
CN115457955A (en) Distributed awakening decision method and device, storage medium and electronic device
CN115174512A (en) Message pushing method and device, storage medium and electronic device
CN115200146A (en) Method and device for sending closing command, storage medium and electronic device
CN115314331B (en) Control method and device of intelligent terminal, storage medium and electronic device
CN115148204A (en) Voice wake-up processing method and device, storage medium and electronic device
CN116092498A (en) Voice instruction response method and device, storage medium and electronic device
CN115174297A (en) Attribute information updating method and device, storage medium and electronic device
CN115616930A (en) Control instruction sending method and device, storage medium and electronic device
CN115312050A (en) Command response method, storage medium and electronic device
CN115047797A (en) Equipment operation method and device combined with behavior preference and storage medium
CN117527459A (en) Control method and device of intelligent equipment, storage medium and electronic device
CN115987935A (en) Notification message pushing method and device, storage medium and electronic device
CN115314503A (en) Data transmission method and device, storage medium and electronic device
CN117542355A (en) Distributed voice awakening method and device, storage medium and electronic device
CN116483449A (en) Equipment awakening method and device, storage medium and electronic device
CN115473752A (en) Control command transmission method and device, storage medium and electronic device
CN113674740A (en) Response method and device of household appliance, storage medium and electronic device
CN117524212A (en) Equipment awakening method, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination