Disclosure of Invention
The embodiment of the invention provides a wake-up method, a wake-up device, a wake-up system, wake-up equipment and a storage medium, and aims to solve the technical problem that the power supply time of a built-in battery of an intelligent wake-up product in the prior art is short.
In a first aspect, an embodiment of the present invention provides a wake-up method, including:
monitoring the sound collector through a monitoring mechanism, and controlling the working state of the sound collector according to a monitoring result;
and receiving the indication information received by the sound collector in the first working state, and executing corresponding action according to the indication information.
Further, monitor the sound collector through monitoring the mechanism to according to the operating condition of monitoring result control sound collector, include:
if the monitoring mechanism monitors that the sound collector collects the preset awakening information, the sound collector is in a first working state;
and if the monitoring mechanism does not monitor the indication information collected by the sound collector for more than the preset time, the sound collector is in a second working state.
Further, if monitoring mechanism monitors that sound collector gathers and predetermines awakening information, make sound collector be in first operating condition, include:
and if the monitoring mechanism monitors the preset awakening information, establishing communication connection with the sound collector so as to enable the sound collector to be in a first working state.
Further, the preset wake-up information is voice information.
Further, the receiving the indication information collected by the sound collector and executing the action corresponding to the indication information includes:
receiving indication information collected by the sound collector, and sending the indication information to a cloud;
and receiving and playing audio information returned by the cloud according to the indication information.
Further, the receiving the indication information collected by the sound collector and sending the indication information to a cloud includes:
and receiving the indication information collected by the sound collector, and sending the indication information to a cloud terminal through a mobile network.
In a second aspect, an embodiment of the present invention further provides a wake-up apparatus, including:
the state control module is used for monitoring the sound collector through the monitoring mechanism and controlling the working state of the sound collector according to the monitoring result;
and the execution module is used for receiving the indication information received by the sound collector in the first working state and executing corresponding action according to the indication information.
In a third aspect, an embodiment of the present invention further provides a wake-up system, including:
the monitoring mechanism is used for monitoring the sound collector;
a sound collector for collecting a control command, the control command including indication information;
and the control mechanism is used for controlling the working state of the sound collector according to the monitoring result of the monitoring mechanism for monitoring the sound collector, receiving the indication information received by the sound collector in the first working state and executing corresponding action according to the indication information.
In a fourth aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the wake-up method as described in the first aspect.
In a fifth aspect, an embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the wake-up method according to the first aspect.
The technical scheme of the awakening method provided by the embodiment of the invention comprises the following steps: monitoring the sound collector through a monitoring mechanism, and controlling the working state of the sound collector according to a monitoring result; and receiving the indication information received by the sound collector in the first working state, and executing corresponding action according to the indication information. The state of the sound collector is controlled according to the monitoring result of the monitoring mechanism, the sound collector is in a first working state and a second working state according to the monitoring result, the sound collector only has data communication with the control mechanism in the first working state, the sound collector does not have data communication with the control mechanism in the second working state, and the control mechanism does not have data analysis processing, so that the power consumption of the intelligent awakening product in the second working state is very small, and the technical effect of prolonging the power supply time of a built-in battery of the intelligent awakening product is achieved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described through embodiments with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
Example one
Fig. 1 is a flowchart of a wake-up method according to an embodiment of the present invention. The technical scheme of this embodiment is applicable to the condition that reduces the power consumption of intelligent awakening product. The method can be executed by the wake-up apparatus provided by the embodiment of the present invention, and the apparatus can be implemented in software and/or hardware and configured to be applied in a processor. The method specifically comprises the following steps:
s101, monitoring the sound collector through a monitoring mechanism, and controlling the working state of the sound collector according to a monitoring result.
A smart wake-up product, such as a tianmao sprite, is typically controlled in its performance by a user through speech, and therefore it typically includes a listening structure, a sound collector, and a control mechanism, and the control mechanism listens to the sound collector through the listening mechanism and collects control commands from the user through the sound collector. The control command comprises preset awakening information and indicating information, wherein the preset awakening information is used for awakening the intelligent awakening product from a sleep state, and the preset awakening information is used for controlling the intelligent awakening product to execute specific actions, such as playing songs, switching songs and the like.
In order to effectively capture the control instruction of the user, the sound collector needs to collect the control instruction in real time, the control mechanism needs to receive the control instruction collected by the sound collector at any time, and the power consumption of the sound collector and the control mechanism of the intelligent wake-up product is generally large. In order to reduce the power consumption of the intelligent wake-up product, the sound collector is monitored by the monitoring mechanism according to the monitoring result, and the operating state of the sound collector is controlled according to the monitoring result, the state of the sound collector generally includes a first operating state and a second operating state, and when the first operating state is detected, the sound collector performs data communication with the control mechanism, and when the second operating state is detected, the sound collector only performs data communication with the monitoring device. The method specifically comprises the following steps: if the sound collector is currently in the second working state and the monitoring mechanism monitors that the sound collector collects the preset awakening information, the control mechanism establishes communication connection with the sound collector, so that the sound collector is in the first working state; if the sound collector is currently in the first working state and the monitoring structure monitors that the sound collector collects the preset awakening information, the control structure keeps the communication connection with the sound collector, so that the sound collector is continuously in the first working state; if the sound collector is currently in the first working state, and the monitoring mechanism does not monitor the indication information collected by the sound collector beyond the preset time and indicates that the current user does not use the intelligent awakening product, the control mechanism interrupts the communication connection with the sound collector to enable the sound collector to be in the second working state, wherein the preset time can be set by a manufacturer or the user in a specific use scene.
In summary, the control mechanism in the second operating state is only connected to the monitoring mechanism, and does not need to perform data communication with the sound collector, the monitoring mechanism monitors the preset wake-up information through the sound collector, and at this time, the monitoring mechanism only matches the preset wake-up information, and does not need to analyze all control names received by the sound collector.
S102, receiving the indication information received by the sound collector in the first working state, and executing corresponding action according to the indication information.
The sound collector collects the indication information in the first working state, sends the indication information to the control mechanism, and then the control mechanism executes corresponding actions according to the indication information, such as playing songs or switching songs. The method specifically comprises the following steps: the control mechanism receives the indication information collected by the sound collector and sends the indication information to the cloud end; and receiving and playing audio information returned by the cloud according to the indication information.
Preferably, in order to improve the security of the intelligent wake-up product, after receiving the indication information collected by the sound collector, for example, "play a song," the control mechanism encodes the indication information first, and then sends the encoded indication information to the cloud, the cloud randomly selects a song according to the received encoded indication information, then encodes the audio, and then sends the encoded audio to the control mechanism through the wireless network, after receiving the encoded audio, the control mechanism decodes the encoded audio first to obtain the audio, and then controls the playing mechanism to play the audio. The wireless network is WiFi, 3G, 4G or 5G and the like.
The technical scheme of the awakening method provided by the embodiment of the invention comprises the following steps: monitoring the sound collector through a monitoring mechanism, and controlling the working state of the sound collector according to a monitoring result; and receiving the indication information received by the sound collector in the first working state, and executing corresponding action according to the indication information. The state of the sound collector is controlled according to the monitoring result of the monitoring mechanism, the sound collector is in a first working state and a second working state according to the monitoring result, the sound collector only has data communication with the control mechanism in the first working state, the sound collector does not have data communication with the control mechanism in the second working state, and the control mechanism does not have data analysis processing, so that the power consumption of the intelligent awakening product in the second working state is very small, and the technical effect of prolonging the power supply time of a built-in battery of the intelligent awakening product is achieved.
Example two
Fig. 2 is a block diagram of a wake-up apparatus according to a second embodiment of the present invention. The apparatus is configured to perform the wake-up method provided in any of the above embodiments. The device can be realized by software or hardware, and comprises:
the state control module 11 is used for monitoring the sound collector through the monitoring mechanism and controlling the working state of the sound collector according to the monitoring result;
and the execution module 12 is configured to receive the indication information received by the sound collector in the first working state, and execute a corresponding action according to the indication information.
The monitoring device further comprises a second working state module 13, which is used for enabling the sound collector to be in a second working state when the monitoring mechanism does not monitor the indication information collected by the sound collector for more than the preset time.
According to the technical scheme of the awakening device provided by the embodiment of the invention, the state control module monitors the sound collector through the monitoring mechanism and controls the working state of the sound collector according to the monitoring result; and receiving the indication information received by the sound collector in the first working state through the execution module, and executing corresponding action according to the indication information. The state of the sound collector is controlled according to the monitoring result of the monitoring mechanism, the sound collector is in a first working state and a second working state according to the monitoring result, the sound collector only has data communication with the control mechanism in the first working state, the sound collector does not have data communication with the control mechanism in the second working state, and the control mechanism does not have data analysis processing, so that the power consumption of the intelligent awakening product in the second working state is very small, and the technical effect of prolonging the power supply time of a built-in battery of the intelligent awakening product is achieved.
The wake-up device provided by the embodiment of the invention can execute the wake-up method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE III
Fig. 3 is a block diagram of a wake-up system according to a third embodiment of the present invention. The system is configured to perform the wake-up method provided in any of the above embodiments. The device includes: the monitoring mechanism 21, the sound collector 22, and the control mechanism 23 connecting the monitoring mechanism 21 and the sound collector 22, the monitoring mechanism 21 is used for monitoring the sound collector 22; the sound collector 22 is used for collecting indication information; the control mechanism 23 is used for controlling the working state of the sound collector 22 according to the monitoring result of the monitoring mechanism 21 for monitoring the sound collector 22, receiving the indication information received by the sound collector 22 in the working state, and executing corresponding action according to the indication information.
A smart wake-up product, such as a tianmao sprite, is typically controlled in its performance by a user through speech, and therefore it typically includes a listening structure, a sound collector, and a control mechanism, and the control mechanism listens to the sound collector through the listening mechanism and collects control commands from the user through the sound collector. The control command comprises preset awakening information and indicating information, wherein the preset awakening information is used for awakening the intelligent awakening product from a sleep state, and the preset awakening information is used for controlling the intelligent awakening product to execute specific actions, such as playing songs, switching songs and the like.
In order to effectively capture the control instruction of the user, the sound collector needs to collect the control instruction in real time, the control mechanism needs to receive the control instruction collected by the sound collector at any time, and the power consumption of the sound collector and the control mechanism of the intelligent wake-up product is generally large. In order to reduce the power consumption of the intelligent wake-up product, the sound collector is monitored by the monitoring mechanism according to the monitoring result, and the operating state of the sound collector is controlled according to the monitoring result, the state of the sound collector generally comprises a first operating state and a second operating state, and when the first operating state is detected, the sound collector is in data communication with the control mechanism, and when the second operating state is detected, the sound collector is in data communication with the monitoring device. The method specifically comprises the following steps: if the sound collector is currently in the second working state and the monitoring mechanism monitors that the sound collector collects the preset awakening information, the control mechanism establishes communication connection with the sound collector, so that the sound collector is in the first working state; if the sound collector is currently in the first working state and the monitoring structure monitors that the sound collector collects the preset awakening information, the control structure keeps the communication connection with the sound collector, so that the sound collector is continuously in the first working state; if the sound collector is currently in the first working state, and the monitoring mechanism does not monitor the indication information collected by the sound collector beyond the preset time and indicates that the current user does not use the intelligent awakening product, the control mechanism interrupts the communication connection with the sound collector to enable the sound collector to be in the second working state, wherein the preset time can be set by a manufacturer or the user in a specific use scene.
In summary, the control mechanism in the second operating state is only connected to the monitoring mechanism, and does not need to perform data communication with the sound collector, the monitoring mechanism monitors the preset wake-up information through the sound collector, and at this time, the monitoring mechanism only matches the preset wake-up information, and does not need to analyze all control names received by the sound collector.
The control mechanism of the present embodiment preferably uses an RM Cortex-M series STM32 chip.
The sound collector collects the indication information in the first working state, sends the indication information to the control mechanism, and then the control mechanism executes corresponding actions according to the indication information, such as playing songs or switching songs. The method specifically comprises the following steps: the control mechanism receives the indication information collected by the sound collector and sends the indication information to the cloud end; and receiving and playing audio information returned by the cloud according to the indication information.
Preferably, in order to improve the security of the intelligent wake-up product, after receiving the indication information collected by the sound collector, for example, "play a song," the control mechanism encodes the indication information first, and then sends the encoded indication information to the cloud, the cloud randomly selects a song according to the received encoded indication information, then encodes the audio, and then sends the encoded audio to the control mechanism through the wireless network, after receiving the encoded audio, the control mechanism decodes the encoded audio first to obtain the audio, and then controls the playing mechanism to play the audio. The wireless network is WiFi, 3G, 4G or 5G and the like.
The technical scheme of the awakening system provided by the embodiment of the invention comprises a monitoring mechanism, a sound collector and a control mechanism, wherein the monitoring mechanism is used for monitoring the sound collector; the sound collector is used for collecting indication information; the control mechanism is used for controlling the working state of the sound collector according to the monitoring result of the monitoring mechanism for monitoring the sound collector, receiving the indication information received by the sound collector in the first working state and executing corresponding action according to the indication information. The state of the sound collector is controlled according to the monitoring result of the monitoring mechanism, the sound collector is in a first working state and a second working state according to the monitoring result, the sound collector only has data communication with the control mechanism in the first working state, the sound collector does not have data communication with the control mechanism in the second working state, and the control mechanism does not have data analysis processing, so that the power consumption of the intelligent awakening product in the second working state is very small, and the technical effect of prolonging the power supply time of a built-in battery of the intelligent awakening product is achieved.
Example four
Fig. 4 is a schematic structural diagram of a mobile phone apparatus according to a fourth embodiment of the present invention, as shown in fig. 4, the mobile phone apparatus includes a processor 301, a memory 302, an input device 303, and an output device 304; the number of the processors 301 in the mobile phone device may be one or more, and one processor 301 is taken as an example in fig. 4; the processor 301, the memory 302, the input device 303 and the output device 304 in the mobile phone device may be connected by a bus or other means, and fig. 4 illustrates the connection by the bus as an example.
The memory 302 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules (e.g., the state control module 11 and the execution module 12) corresponding to the wake-up method in the embodiment of the present invention. The processor 301 executes various functional applications of the device and data processing by executing software programs, instructions and modules stored in the memory 302, that is, implements the wake-up method described above.
The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 302 may further include memory located remotely from the processor 301, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the apparatus.
The output means 304 may comprise a display device such as a display screen, e.g. of a user terminal.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a wake-up method, the method including:
monitoring the sound collector through a monitoring mechanism, and controlling the working state of the sound collector according to a monitoring result;
and receiving the indication information received by the sound collector in the first working state, and executing corresponding action according to the indication information.
Of course, the storage medium provided by the embodiments of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the wake-up method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the wake-up method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the wake-up apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.