Method for waking up application program and electronic equipment

Through the breath wake-up processing device and software module to detect the user's breath and voice data, the cumbersome problem of awakening voice assistants in the prior art is solved, convenient voice assistant wake-up and efficient voice recognition are realized, and user experience is improved.

CN119418695APending Publication Date: 2025-02-11HONOR DEVICE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411490759.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-11-16
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

In the prior art, the process of waking up the voice assistant is relatively cumbersome, resulting in a low user experience.

Method used

Through the breath wake-up processing device and the breath wake-up software module, the user's breath data and voice data are detected. If the preset conditions are met, the voice assistant application will be started and the breath wake-up processing device will be controlled to stop detection to avoid interrupting the current voice recognition .

Benefits of technology

It realizes convenient wake-up and efficient voice recognition of voice assistants, improves user experience, and prepares for the next wake-up of the application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119418695A_ABST
    Figure CN119418695A_ABST
Patent Text Reader

Abstract

The invention provides a method for awakening an application program and electronic equipment, and the method comprises the steps: a breath awakening processing device sends voice data in first data when the breath awakening processing device detects that the obtained first data is used for indicating breath awakening of a first application program; the breath wake-up software module stores the voice data, starts the first application program and controls the breath wake-up processing device to stop detecting breath wake-up of the first application program; when the first application program successfully calls the breath wake-up software module, a first notification is sent; the breath wake-up software module sends voice data to the first application program; the first application program performs voice recognition on the voice data; the first application program sends a second notification when determining that voice recognition is finished according to the voice data; the breath wake-up software module responds to the second notification to control the breath wake-up processing device to start next breath wake-up. Therefore, wakeup of the application program is realized, and preparation is made for wakeup of the application program.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the Chinese patent application filed with the State Intellectual Property Office on November 16, 2022, with application number 202211438531.X and application name “Method and electronic device for waking up an application”, and all its contents are incorporated by reference in this application. Technical Field

[0002] The present application belongs to the field of terminal technology, and in particular relates to a method for waking up an application and an electronic device. Background Art

[0003] With the development of voice recognition technology, voice assistants (such as YOYO, Xiaoyi, Siri, etc.) have been added to many electronic devices to help users complete the human-computer interaction process with electronic devices. Generally speaking, the voice assistant is in a dormant state, and the user can wake up the voice assistant when he wants to use it.

[0004] At present, there are two main technologies for waking up voice assistants: button wake-up and keyword wake-up. In the button wake-up technology, the voice assistant is woken up by the user's triggering operation on a button (such as the power button). In the keyword wake-up technology, the voice assistant is woken up by receiving a specific wake-up word input by the user's voice (for example, "Hello, YOYO", "Xiaoyi, Xiaoyi", "Hi Siri")

[0005] However, in the above implementation process, waking up the voice assistant is rather cumbersome, resulting in a low user experience. Summary of the invention

[0006] The present application provides a method for waking up an application and an electronic device, which not only realizes the waking up of the current application, but also prepares for the waking up of the next application, thereby improving the user experience.

[0007] In a first aspect, the present application provides a method for waking up an application, which is applied to an electronic device, wherein the electronic device comprises: a first application, a breath waking up software module, and a breath waking up processing device;

[0008] The method includes:

[0009] The breath awakening processing device obtains first data;

[0010] The breath awakening processing device sends the voice data in the first data to the breath awakening software module when detecting that the first data is used to indicate that the breath awakens the first application;

[0011] The breath awakening software module stores the voice data, starts the first application, and controls the breath awakening processing device to stop detecting the breath awakening of the first application and continue to obtain the voice data;

[0012] After the first application is started, when the breath awakening software module is successfully called, a first notification is sent to the breath awakening software module;

[0013] The breath awakening software module sends voice data to the first application in response to the first notification;

[0014] The first application performs speech recognition on the speech data;

[0015] The first application sends a second notification to the breath awakening software module when determining based on the voice data that the voice recognition is finished;

[0016] In response to the second notification, the breath awakening software module controls the breath awakening processing device to start detecting the next breath awakening of the first application.

[0017] In the above method, when the breath awakening processing device detects the first data for indicating the breath awakening of the first application, the breath awakening software module can start the first application, and use the breath awakening technology to wake up the first application, thereby ensuring the convenience and timeliness of starting the first application.

[0018] In addition, when the breath awakening software module starts the first application, the breath awakening processing device can be controlled to stop detecting the breath awakening of the first application, which can avoid interrupting the current voice recognition and ensure the quality of the current first application voice recognition.

[0019] In addition, the breath awakening software module can control the breath awakening processing device to start detecting the next breath awakening of the first application when the first application determines that the voice recognition is finished, so as to restore the breath awakening function of the first application and prepare for the awakening of the next application.

[0020] It can be seen that this application not only realizes the awakening of the current application, but also prepares for the awakening of the next application, thereby improving the user experience.

[0021] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:

[0022] When the breath awakening software module does not receive the first notification or the second notification after a preset period of time, the breath awakening processing device is controlled to start detecting the next breath awakening of the first application.

[0023] In the above method, when the breath awakening software module does not receive the first notification or the second notification after a preset period of time, it can be determined that the current first application is not started, or the first application fails to call the breath awakening software module, so that the breath awakening software module cannot receive the first notification or the second notification.

[0024] Thus, the breath awakening software module can control the breath awakening processing device to start detecting the next breath awakening of the first application, so as to facilitate the restoration of the breath awakening function of the voice assistant application.

[0025] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:

[0026] After the first application is started, the first user interface is displayed;

[0027] The first application displays the speech recognition result in the first user interface.

[0028] Among them, the first user interface can display the voice recognition result, so that the user can understand the voice recognition result in time, thereby improving the user's usage experience.

[0029] In conjunction with the first aspect, in certain implementations of the first aspect, the breath awakening software module includes: a first software module, and a second software module, and the voice data is stored in the second software module;

[0030] After the first application is started, when the breath awakening software module is successfully called, a first notification is sent to the breath awakening software module, including:

[0031] After the first application is started, when the first software module is successfully called, a first notification is sent to the first software module;

[0032] The breath awakening software module sends voice data to the first application in response to the first notification, including:

[0033] In response to the first notification, the first software module calls the voice data from the second software module and sends the voice data to the first application.

[0034] The first software module may be an audio policy service module (audio policy service).

[0035] The second software module may be an audio driver (sound trigger-hal).

[0036] In the above method, when the first application successfully calls the first software module, the first software module can call the voice data from the second software module and send the voice data to the first application, so that the first application can receive the voice data in time.

[0037] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:

[0038] The first software module sends a third notification to the second software module in response to the first notification;

[0039] In response to the third notification, the second software module controls the breath awakening processing device to stop detecting the breath awakening of the first application and continue to obtain the voice data.

[0040] In the above method, the second software module can respond to the third notification, control the breath awakening processing device to detect the breath awakening of the first application and continue to obtain voice data, and control the breath awakening processing device to stop detecting the breath awakening of the first application, so as to avoid interrupting the current voice recognition.

[0041] The quality of the current first application speech recognition is ensured again. The breath awakening processing device stops detecting the breath awakening of the first application, which can also save power for the electronic device.

[0042] In combination with the first aspect, in some implementations of the first aspect, the breath awakening software module controls the breath awakening processing device to start detecting the next breath awakening of the first application in response to the second notification, including:

[0043] The first software module sends a fourth notification to the second software module in response to the second notification;

[0044] In response to the fourth notification, the second software module controls the breath awakening processing device to start detecting the next breath awakening of the first application.

[0045] In the above method, when the breath awakening software module starts the first application, the breath awakening processing device can be controlled to stop detecting the breath awakening of the first application, and the second software module controls the breath awakening processing device to stop detecting the breath awakening of the first application in response to the third notification.

[0046] It can be seen that the current control breath wake-up processing device has stopped detecting the breath wake-up of the first application. Therefore, the second software module responds to the fourth notification and controls the breath wake-up processing device to start detecting the next breath wake-up of the first application, so as to restore the breath wake-up function of the first application.

[0047] In combination with the first aspect, in certain implementations of the first aspect, the breath awakening software module further includes a third software module and a fourth software module;

[0048] The breath awakening software module stores the voice data, starts the first application, controls the breath awakening processing device to stop detecting the breath awakening of the first application, and continues to obtain the voice data, including:

[0049] The second software module stores the voice data and sends a wake-up event to the third software module;

[0050] The third software module sends the wake-up event to the fourth software module in response to the wake-up event, and sends a fifth notification to the second software module;

[0051] The fourth software module starts the first application in response to the wake-up event;

[0052] In response to the fifth notification, the second software module controls the breath awakening processing device to stop detecting the breath awakening of the first application and continue to obtain the voice data.

[0053] The third software module may be a sound trigger module.

[0054] The fourth software module may be an audio trigger module (sound trigger).

[0055] In the above method, the fourth software module can start the first application in response to the wake-up event, thereby ensuring the timeliness of starting the first application.

[0056] In addition, since the wake-up event has been triggered, controlling the breath wake-up processing device to stop detecting the breath wake-up of the first application can avoid interrupting the current voice recognition and ensure the quality of the current voice recognition of the first application.

[0057] In combination with the first aspect, in some implementations of the first aspect, the method further includes:

[0058] The third software module sets a timing time in response to the wake-up event and starts timing according to the timing time;

[0059] When the third software module determines that the timing of the timer has expired and the first notification or the second notification has not been received, the sixth notification is sent to the second software module;

[0060] The second software module controls the breath awakening processing device to start detecting the next breath awakening of the first application in response to the sixth notification;

[0061] The third software module turns off the timing of the timing time in response to the first notification.

[0062] In the above method, whether the first notification or the second notification is received can be determined by setting the timer, so that when the first notification or the second notification is not received, the second software module controls the breath wake-up processing device to start detecting the next breath wake-up of the first application and restore the breath wake-up function.

[0063] In combination with the first aspect, in some implementations of the first aspect, when the first application determines according to the voice data that the voice recognition ends, the first application sends a second notification to the breath awakening software module, including:

[0064] The first application determines that the speech recognition is ended in response to an operation for instructing to end the speech recognition;

[0065] Alternatively, when the first application determines that the speech text corresponding to the speech data satisfies a preset rule, the speech recognition is determined to be ended;

[0066] When determining that the speech recognition is finished, the first application sends a second notification to the first software module.

[0067] Among them, the first application can determine whether the voice recognition is completed in two ways. One is to determine that the voice recognition is completed when the user's instruction to end the voice recognition is received. The other is to determine that the voice recognition is completed when the voice text corresponding to the voice data is determined to be a complete word or sentence.

[0068] In addition, when the first application determines that the voice recognition is completed, it sends a second notification to the first software module to facilitate notifying the third software module. The third software module can notify the second software module to control the breath awakening processing device to start detecting the next breath awakening of the first application.

[0069] In combination with the first aspect, in certain implementations of the first aspect, the breath awakening processing device includes: an inertial detection sensor, a sound collection sensor, and an audio digital signal processor;

[0070] The first data includes: voice data and gesture data. The breath awakening processing device obtains the first data, including:

[0071] The inertial detection sensor collects gesture data;

[0072] The inertial detection sensor sends gesture data to the audio digital signal processor;

[0073] The sound collection sensor collects voice data;

[0074] The sound collection sensor sends voice data to the audio digital signal processor;

[0075] When the breath awakening processing device detects that the first data is used to indicate that the breath awakens the first application, the voice data in the first data is sent to the breath awakening software module, including:

[0076] When the breath awakening processing device detects that the similarity between the gesture data and the preset awakening gesture data is greater than a first threshold, and the similarity between the voice data and the preset awakening breath data is greater than a second threshold, the voice data is sent to the breath awakening software module.

[0077] In the above method, the inertial detection sensor can collect gesture data, and the sound collection sensor can collect voice data.

[0078] The breath awakening processing device can detect the gesture data collected by the inertial detection sensor and the voice data collected by the sound collection sensor.

[0079] In a second aspect, the present application provides a device for waking up an application, and the device for triggering an electronic device to execute a function is used to execute the method for waking up an application in the first aspect and any possible design of the first aspect.

[0080] In a third aspect, the present application provides an electronic device, comprising a processor; when the processor executes computer code or instructions in a memory, the electronic device executes the method for waking up an application in the first aspect and any possible design of the first aspect.

[0081] In a fourth aspect, the present application provides an electronic device comprising one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device executes the method for waking up an application in the first aspect and any possible design of the first aspect.

[0082] In a fifth aspect, the present application provides a chip system comprising a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the method for waking up an application in the first aspect and any possible design of the first aspect.

[0083] In a sixth aspect, the present application provides a computer-readable storage medium, including a computer program, which, when the computer program runs on an electronic device, enables the electronic device to execute the method for waking up an application in the first aspect and any possible design of the first aspect.

[0084] In a seventh aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method for waking up an application in the first aspect and any possible design of the first aspect.

[0085] It can be understood that the beneficial effects of the second to seventh aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0087] Figure 1 A schematic diagram of a scenario of a method for waking up an application provided in an embodiment of the present application;

[0088] Figure 2 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;

[0089] Figure 3 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;

[0090] Figure 4 A schematic diagram of the structure of a breath awakening software module provided in one embodiment of the present application;

[0091] Figure 5 A flowchart of a method for waking up an application program provided in one embodiment of the present application;

[0092] Figure 6 A flowchart of a method for waking up an application program provided in one embodiment of the present application;

[0093] Figure 7A-7E A schematic diagram of a human-computer interaction interface provided in one embodiment of the present application. DETAILED DESCRIPTION

[0094] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0095] In the following, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features.

[0096] It should be understood that for a keyword-activated voice assistant application (application, APP):

[0097] After the electronic device collects voice data through a sound collection sensor (for example, a microphone), it sends it to a low-power audio digital signal processor (ADSP), and the ADSP detects the voice data through a voice wake-up model.

[0098] When the ADSP detects that there is wake-up word data matching the preset wake-up word in the voice data, the ADSP sends the voice data to the wake-up software module. This process can be called first-level wake-up.

[0099] The wake-up software module performs text verification and voiceprint verification on the aforementioned voice data to determine whether the voice data matches the generated voiceprint model. When the voice data matches the voiceprint model, the wake-up software module can control the voice assistant application to start. This process can be called secondary wake-up.

[0100] Among them, the keyword wake-up voice assistant application has specific keywords. Each time it is woken up, the voice wake-up model can stop running once and start running once.

[0101] For the Breath Voice Assistant app:

[0102] After the electronic device collects voice data through the sound collection sensor and gesture data through the inertial detection sensor, it sends them to a low-power audio digital signal processor (ADSP). The ADSP detects the voice data and gesture data through the breath awakening model.

[0103] Among them, the breath awakening model is used to detect the acquired voice data and gesture data, and to determine whether the similarity between the voice data and the preset awakening breath data is greater than a first threshold, and whether the similarity between the gesture data and the preset awakening gesture data is greater than a second threshold.

[0104] In addition, the original awakening model can be trained using sample awakening breath data and sample awakening gesture data to obtain a breath awakening model.

[0105] When the ADSP detects that the similarity between the voice data and the preset wake-up breath data is greater than a first threshold, and the similarity between the gesture data and the preset wake-up gesture data is greater than a second threshold, the ADSP sends the voice data to the breath wake-up software module. The breath wake-up software module controls the voice assistant application to start.

[0106] It can be seen that for the breath-awakening voice assistant application, there is only one level of awakening process.

[0107] The present application may provide a method for waking up an application, an apparatus for waking up an application, an electronic device, a chip system, a computer-readable storage medium, and a computer program product. When the ADSP detects that the acquired voice data matches the preset wake-up breath data, and the gesture data matches the preset wake-up gesture data, the detected voice data is sent to the breath wake-up software module. The breath wake-up software module stores the voice data, and controls the voice assistant application to start, and controls the ADSP to stop detecting the acquired data. After the voice assistant application is started, and when the breath wake-up software module is successfully called, the breath wake-up software module may send voice data to the control voice assistant application, so that the control voice assistant application performs voice recognition on the voice data. In addition, when the voice assistant application determines that the voice recognition ends according to the voice data, it may notify the breath wake-up software module, and the breath wake-up software module may control the ADSP to restart and detect the next acquired data.

[0108] Thus, the current wake-up of the application is achieved, the user's interaction with the electronic device through the voice assistant is ensured, preparations are made for the next wake-up of the application, and the user experience is improved.

[0109] The method for waking up an application provided in the present application can be applied to an electronic device, which can be an electronic device with display hardware and corresponding software support.

[0110] For example, the electronic device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a household appliance, or the like. The present application does not impose any restrictions on the specific type of the electronic device.

[0111] See also Figure 1 , Figure 1 A scenario diagram of a method for waking up an application provided by an embodiment of the present application is shown.

[0112] like Figure 1 As shown, the user can lift the electronic device, place the bottom of the electronic device close to the mouth, and speak into the microphone.

[0113] After the electronic device collects the corresponding voice data when the user speaks through the microphone, and the corresponding gesture data when the user lifts the electronic device through the inertial detection sensor, it is sent to the low-power ADSP, and the ADSP detects the voice data and gesture data through the breath awakening model. When the ADSP detects that the similarity between the voice data and the preset awakening breath data is greater than the first threshold, and the similarity between the gesture data and the preset awakening gesture data is greater than the second threshold, the ADSP sends the voice data to the breath awakening software module. The breath awakening software module controls the startup of the voice assistant.

[0114] Among them, the distance between the electronic device and the user's mouth can be maintained at 0-5cm, which makes it easier for the microphone of the electronic device to accurately collect the user's voice data.

[0115] In addition, the above-mentioned gesture data may be wrist-raising gesture data.

[0116] in, Figure 1 From the gesture state indicated by the box A in the left figure to the gesture state indicated by the box B in the right figure, it can be seen that the user can lift the electronic device by raising the wrist, and the inertial detection sensor can collect the gesture data of the wrist raising.

[0117] Figure 1 As can be seen from the right picture, after the user raises the electronic device with the wrist-raising gesture, he or she puts his or her mouth close to the microphone of the electronic device to speak, and can emit the breath indicated by part C. The microphone can collect the breath and the voice data corresponding to the breath.

[0118] It should be understood that the above is an example of a scenario and does not limit the scenario of the present application.

[0119] For ease of explanation, Figure 2 In the description, the electronic device 100 is taken as a mobile phone as an example.

[0120] like Figure 2 As shown, in some embodiments, the electronic device 100 may include a processor 101 and a communication module 102 .

[0121] The processor 101 may include one or more processing units, for example, the processor 101 may include an application processor (AP), a modem processor, a graphics processor, an image signal processor (ISP), a controller, a memory, a video stream codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated in one or more processors 101.

[0122] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0123] The processor 101 may also be provided with a memory for storing instructions and data.

[0124] In some embodiments, the memory in the processor 101 is a cache memory. The memory can store instructions or data that the processor 101 has just used or cyclically used. If the processor 101 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 101, and thus improves the efficiency of the system.

[0125] In some embodiments, the processor 101 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface 304, etc.

[0126] The communication module 102 may include an antenna 1, an antenna 2, a mobile communication module, and / or a wireless communication module.

[0127] like Figure 2 As shown, in some embodiments, the electronic device 100 may also include an external memory interface 105, an internal memory 104, a USB interface 106, a charging management module 107, a power management module 108, a battery 109, and a sensor module 103, etc.

[0128] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0129] The charging management module 107 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.

[0130] In some wired charging embodiments, the charging management module 107 may receive charging input from a wired charger through the USB interface 106 .

[0131] In some wireless charging embodiments, the charging management module 107 may receive wireless charging input via a wireless charging coil of the electronic device 100. While the charging management module 107 is charging the battery 109, it may also provide power to the electronic device 100 via the power management module 108.

[0132] The power management module 108 is used to connect the battery 109, the charging management module 107 and the processor 101. The power management module 108 receives input from the battery 109 and / or the charging management module 107, and supplies power to the processor 101, the internal memory 104, the external memory, and the communication module 102. The power management module 108 can also be used to monitor parameters such as battery capacity, battery cycle number, and battery health status (leakage, impedance).

[0133] In some other embodiments, the power management module 108 may also be disposed in the processor 101 .

[0134] In other embodiments, the power management module 108 and the charging management module 107 may also be disposed in the same device.

[0135] The external memory interface 105 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 101 through the external memory interface 105 to implement a data storage function. For example, files such as music and video streams are stored in the external memory card.

[0136] The internal memory 104 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 101 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 104. The internal memory 104 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0137] The sensor module 103 in the electronic device 100 may include image sensors, touch sensors, pressure sensors, gyroscope sensors, air pressure sensors, magnetic sensors, acceleration sensors, distance sensors, proximity light sensors, ambient light sensors, fingerprint sensors, temperature sensors, bone conduction sensors and other components to realize sensing and / or acquisition functions for different signals.

[0138] Optionally, the electronic device 100 may further include peripheral devices, such as a mouse, buttons, indicator lights, a keyboard, a speaker, a microphone, etc.

[0139] The buttons include a power button, a volume button, etc. The buttons may be mechanical buttons or touch buttons. The electronic device 100 may receive button inputs and generate key signal inputs related to user settings and function controls of the electronic device 100.

[0140] The indicator may be a light indicator, which may be used to indicate the charging status and the change in the power level, and may also be used to indicate messages, missed calls, and notifications, etc.

[0141] It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100 .

[0142] In other embodiments, the electronic device 100 may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. The components shown may be implemented in hardware, software, or a combination of software and hardware.

[0143] Please refer to Figure 3 , is a schematic diagram of an electronic device provided in an embodiment of the present application. The method for waking up an application provided in an embodiment of the present application is applied to Figure 2 When the electronic device 100 is shown, the software in the electronic device 100 can be divided into the following Figure 3 The application layer 201, application framework layer 202, and driver layer 203 are shown.

[0144] like Figure 3 As shown, multiple applications may be installed in the application layer 201, which may include a first application, etc. For example, the first application may be a voice assistant application (application, APP).

[0145] The application framework layer 202 may include an audio trigger module, a sound trigger module, an audio policy service module, etc. In addition, the application framework layer 202 may also include an audio service module, an audio trigger service module, an audio flinger module, etc.

[0146] The audio trigger module is used to control the startup of the voice assistant application of the application layer 201. The sound trigger module is used to send a wake-up event to the audio trigger module, and to send a notification to the audio driver of the driver layer 203 to instruct the breath wake-up model to stop running or start running. The audio strategy service module is used to establish a voice recognition channel with the voice assistant application of the application layer 201.

[0147] In addition, the audio service module is used to send a startup notification to the audio trigger module in response to the startup notification sent by the voice assistant application of the application layer 201. The audio trigger module is also used to send a startup notification to the audio trigger service module in response to the startup notification sent by the audio service module. The audio trigger service module is used to send a startup notification to the sound trigger module in response to the startup notification sent by the audio trigger module. The sound trigger module is also used to send a notification to start running the breath awakening model to the audio strategy service module in response to the startup notification sent by the audio trigger module. The audio strategy service module starts the notification of running the breath awakening model in response to the notification of starting to run the breath awakening model. The audio indication module is used to send a notification of loading the breath awakening model to the audio driver of the driver layer 203 in response to the notification of loading the breath awakening model sent by the audio strategy service module. The audio driver of the driver layer 203 is used to send a notification for indicating the start of running the breath awakening model to the audio digital signal processor of the breath awakening processing device.

[0148] The driver layer 203 is a layer between hardware and software. The driver layer 203 may include an audio driver (soundtrigger-hal) and the like.

[0149] The driver layer 203 may be installed with a plurality of drivers for driving the hardware.

[0150] It should be noted that the application layer 201, the application framework layer 202 and the driver layer 203 may also include other contents, which are not specifically limited here.

[0151] also, Figure 3 Also shown is a breath awakening processing device connected to the driving layer 203.

[0152] For example, Figure 3 As shown, the breath awakening processing device may at least include an inertial detection sensor, a sound collection sensor, and an audio digital signal processor, etc.

[0153] The inertial detection sensor is used to collect gesture data. The sound collection sensor is used to collect voice data. The audio signal processor is used to obtain the gesture data collected by the inertial detection sensor and the voice data collected by the sound collection sensor, and detect the gesture data and the voice data.

[0154] The application framework layer 202 may include a breath awakening software module.

[0155] The breath awakening software module may include an audio framework and an audio driver (sound trigger-hal).

[0156] like Figure 4As shown, the audio framework may include an audio trigger module (sound trigger), a sound trigger module (sound trigger module), and an audio policy service module (audio policy service).

[0157] like Figure 5 As shown, the breath awakening processing device may include an audio digital signal processor (ADSP), a sound collection sensor, and an inertial detection sensor. The sound collection sensor and the inertial detection sensor are both connected to the audio digital signal processor.

[0158] Next, combine Figure 5 , which introduces in detail the specific implementation process of the method for waking up the application program of this application.

[0159] Figure 5 This is a flowchart of a method for waking up an application provided in this application.

[0160] like Figure 5 As shown, the method can be divided into three different stages, namely, the preparation stage, the start-up stage, and the identification stage.

[0161] The preparation stage can be understood as the stage of starting the breath wake-up function of the voice assistant application so that the breath wake-up model in the audio digital signal processor is in a continuous running state.

[0162] The startup phase can be understood as the phase of controlling the startup of the voice assistant application when the voice data and gesture data used to wake up the voice assistant application are obtained.

[0163] The recognition stage can be understood as the stage in which the voice assistant application performs voice recognition on the voice data and determines whether to start or stop the breath awakening model based on the status of the voice recognition.

[0164] like Figure 5 As shown, the method for waking up the application program of the present application may include:

[0165]

Preparation phase

[0166] S11. Activate the breath wake-up function of the voice assistant application.

[0167] The electronic device can display a method for waking up the voice assistant application in a setting interface. This application does not limit the specific implementation method of the setting interface.

[0168] In some embodiments, the above-mentioned setting interface may include a breath wake-up control, which is used to trigger the breath wake-up function of starting the voice assistant application.

[0169] Among them, this application does not limit the display position, display style, display size and other parameters of the breath wake-up control.

[0170] Thus, after receiving an operation on the breath wake-up control, the electronic device can activate the breath wake-up function of the voice assistant application.

[0171] S12. The voice assistant application sends a notification to the audio trigger module to instruct the audio trigger module to start.

[0172] Among them, after starting the breath wake-up function, the voice assistant application can send a startup notification to the audio trigger module, and the audio trigger module can be started in response to the startup notification.

[0173] Thus, after being started, the audio trigger module can receive and send data.

[0174] S13: The audio trigger module is started in response to the notification for instructing to start the audio trigger module, and sends a notification for instructing to start the sound trigger module to the sound trigger module.

[0175] Among them, after being started, the audio trigger module can send a start notification to the sound trigger module, and the sound trigger module can be started in response to the start notification.

[0176] Thus, after being started, the sound trigger module can receive and send data.

[0177] S14: The sound trigger module is started in response to the notification for instructing to start the sound trigger module, and sends a notification for instructing to start running the breath awakening model to the audio driver.

[0178] S15. The audio driver controls the breath awakening model in the audio digital signal processor to start running in response to the notification for instructing to start running the breath awakening model.

[0179] After being started, the sound trigger module can send a notification to the audio driver to instruct the start of the breath awakening model.

[0180] After receiving the notification for instructing to start running the breath awakening model, the audio driver can control the breath awakening model in the audio digital signal processor to start running.

[0181] In this way, data is prepared for the audio digital signal processor to run the breath awakening module.

[0182] S16: The audio digital signal processor runs the breath awakening model in response to the notification instructing to start running the breath awakening model.

[0183] It should be understood that the audio digital signal processor is a low-power digital signal processor. After the voice assistant application starts the breath wake-up function, the breath wake-up model can be in a continuously running state on the audio digital signal processor, which is convenient for real-time detection of the received voice data and gesture data.

[0184] During the operation of the breath awakening model, the received data can be continuously detected to determine whether the received data is used to wake up the voice assistant application.

[0185] The data for waking up the voice assistant application is used to indicate that the similarity between the acquired voice data and the preset wake-up breath data is greater than a first threshold, and the similarity between the gesture data and the preset wake-up gesture data is greater than a second threshold.

[0186] In summary, after receiving the operation performed on the breath wake-up control instructed by the user, the electronic device can start the breath wake-up function of the voice assistant application, so that the user can wake up the voice assistant by breath wake-up, ensuring the convenience of waking up the voice assistant application and improving the user experience.

[0187] In addition, after the breath wake-up function of the voice assistant application is activated, the breath wake-up model can be in a continuously running state on the audio digital signal processor, detecting the received data in real time to determine whether the received data is used to wake up the voice assistant application, so as to facilitate waking up the voice assistant application in time when the received data is used to wake up the voice assistant application.

[0188]

Start-up phase

[0189] S17, the sound collection sensor sends voice data to the audio digital signal processor;

[0190] The sound collection sensor can collect voice data in real time, and after collecting the voice data, the voice data can be sent to the audio digital signal processor.

[0191] In some embodiments, the sound collection sensor is a microphone (MIC).

[0192] S18, the inertial detection sensor sends gesture data to the audio digital signal processor;

[0193] The inertial detection sensor can collect gesture data in real time, and after collecting the gesture data, the gesture data can be sent to the audio digital signal processor.

[0194] S19. When the audio digital signal processor detects that the received data is used to indicate waking up the voice assistant application, a wake-up event is triggered.

[0195] Based on the description of S16, it can be determined that the breath awakening model in the audio digital signal processor is in a continuous running state. That is, there are three situations:

[0196] The audio digital signal processor only receives the voice data sent by the sound collection sensor. When the breath awakening model in the audio digital signal processor receives the voice data sent by the sound collection sensor, it detects the voice data.

[0197] The audio digital signal processor only receives the gesture data sent by the hand inertia detection sensor. When the breath awakening model in the audio digital signal processor receives the gesture data sent by the inertia detection sensor, it detects the gesture data.

[0198] The audio digital signal processor simultaneously receives the gesture data sent by the inertial detection sensor and the voice data sent by the sound collection sensor. When the breath awakening model in the audio digital signal processor receives the voice data sent by the sound collection sensor and the gesture data sent by the inertial detection sensor, it can detect the received voice data and gesture data.

[0199] When it is determined that the similarity between the voice data and the preset wake-up breath data is greater than a first threshold, and the similarity between the gesture data and the preset wake-up gesture data is greater than a second threshold, the audio digital signal processor may determine that the voice data and the gesture data are data for waking up the voice assistant application. Thus, the audio digital signal processor may trigger a wake-up event.

[0200] In some embodiments, the gesture data is wrist-raising gesture data.

[0201] Assume that the gesture data is wrist-raising gesture data, the electronic device is a mobile phone, and the sound collection sensor is a microphone.

[0202] Combination Figure 1 When the user lifts up the mobile phone and puts the microphone of the mobile phone close to his mouth to speak, the microphone can collect voice data corresponding to the user's words and send the voice data to the audio digital signal processor. The inertial detection sensor can collect gesture data corresponding to the user's wrist raising when lifting the mobile phone, and send the gesture data to the audio digital signal processor.

[0203] After receiving the above-mentioned voice data and gesture data, the audio digital signal processor detects the voice data and gesture data through the breath wake-up model. When it is determined that the similarity between the voice data and the preset wake-up breath data is greater than the first threshold, and the similarity between the gesture data and the preset wake-up gesture data is greater than the second threshold, the audio digital signal processor can trigger a wake-up event.

[0204] S20. The audio digital signal processor sends voice data to the audio driver.

[0205] After triggering a wake-up event, the audio digital signal processor can send the acquired voice data to the audio driver.

[0206] As a result, the audio driver can start storing voice data to prepare data for the voice assistant application to obtain the voice data.

[0207] S21. The audio driver triggers the buffer to store voice data.

[0208] After receiving the voice data, the audio driver can trigger the audio driver's buffer to store the voice data, and prepare data for the voice assistant application to obtain the voice data.

[0209] S22: The audio driver sends a wake-up event to the sound trigger module.

[0210] After receiving the voice data, the audio driver can send a wake-up event to the sound trigger module, so that the sound trigger module can continue to send wake-up events to the audio trigger module.

[0211] Among them, S21 and S22 have no particular order in terms of timing, and can be executed sequentially or simultaneously.

[0212] S23. The sound trigger module sends a notification to the audio driver to instruct the audio driver to stop running the breath awakening model.

[0213] After receiving the wake-up event, the sound trigger module may send a notification to the audio driver to instruct it to stop running the breath wake-up model.

[0214] Since the awakening event has been triggered, it can be regarded as consuming one awakening event, and the breath awakening model can stop running.

[0215] S24: In response to the notification for instructing to stop running the breath awakening model, the audio driver controls the breath awakening model in the audio digital signal processor to stop running.

[0216] Based on S19, the audio digital signal processor can determine that the received data is data for waking up the voice assistant application and trigger a wake-up event.

[0217] That is to say, in the current wake-up event, the voice assistant application can be woken up based on the voice data, and there is no need for the breath wake-up model in the audio digital signal processor to detect again whether the acquired voice data is the data for waking up the voice assistant application.

[0218] Then, after receiving the notification instructing to stop running the breath wake-up model, the audio driver can control the breath wake-up model in the audio digital signal processor to stop running, that is, the breath wake-up model no longer detects whether the received data is the user's wake-up voice, and only needs to continue to receive voice data.

[0219] S25. The sound trigger module starts a timer in response to the wake-up event.

[0220] After receiving the wake-up event, the sound trigger module can also start a timer to facilitate the sound trigger module to determine whether a notification indicating the start of voice recognition or a notification indicating the end of voice recognition is received within the timing of the timer.

[0221] That is to say, the sound trigger module can determine whether the audio strategy service module is successfully called through the setting time of the timer, so as to send a notification to the audio driver to instruct the start of the breath awakening model when the call is unsuccessful.

[0222] In some embodiments, the timing period of the timer is 1-5s.

[0223] For example, the timing period of the timer is 3s.

[0224] Among them, S23, S25, and S26 have no particular order in terms of timing and can be executed sequentially or simultaneously.

[0225] S26. The sound trigger module responds to the wake-up event and sends the wake-up event to the audio trigger module.

[0226] Among them, after receiving the wake-up event, the sound trigger module can also send a wake-up event to the audio trigger module, so that the audio trigger module can control the startup of the voice assistant application after receiving the wake-up event.

[0227] S27. The audio trigger module controls the voice assistant application to start in response to the wake-up event.

[0228] After receiving the wake-up event, the audio trigger module can determine that the voice assistant application needs to be started. Thus, the audio trigger module can control the voice assistant application to start.

[0229] S28. After the voice assistant application is started, a user interface is displayed.

[0230] After the voice assistant application is started, the electronic device can display a user interface. This application does not limit the specific implementation method of the user interface.

[0231] The user interface may be displayed in a partial area of ​​the current interface of the electronic device, or may be a different interface from the current interface of the electronic device.

[0232] In some embodiments, the above-mentioned setting interface may include a voice assistant floating ball control, which is used to remind the user that the voice assistant application has been started and to trigger the voice assistant application to end voice recognition.

[0233] Among them, this application does not limit the display position, display style, display size and other parameters of the voice assistant floating ball control.

[0234] Thus, after the electronic device displays the above-mentioned user interface, the user can determine that the voice assistant application has been started.

[0235] In summary, the breath wake-up model in the audio digital signal processor can be in a continuous running state until it is determined that the similarity between the received voice data and the preset wake-up breath data is greater than the first threshold, and the similarity between the received gesture data and the preset wake-up gesture data is greater than the second threshold, and the audio digital signal processor can trigger a wake-up event.

[0236] As a result, the audio digital signal processor can start to report the wake-up event step by step, and control the startup of the voice assistant application through the audio trigger module, ensuring the convenience and timeliness of the startup of the voice assistant application.

[0237] It can be seen that the above-mentioned breath-awakening voice assistant technology does not require wake-up words and trigger buttons, simplifies the voice interaction steps, and starts the voice assistant application more quickly.

[0238] In addition, this breath-awakening voice assistant technology allows users to directly approach electronic devices to have conversations, which improves the accuracy of user interaction with electronic devices, reduces the risk of conversation content leakage in terms of privacy protection, and avoids interference with others.

[0239] It should be noted that the survey found that 52% of respondents were concerned about the leakage of private information when using voice assistants, and 46% of respondents would feel annoyed when hearing others using voice assistant applications in public places.

[0240] Identification Phase

[0241] S291. After the voice assistant application is started, when the voice policy server is successfully called, a notification indicating the start of voice recognition is sent to the voice policy server.

[0242] Among them, after the voice assistant application is started, it can start to call the sound policy server. When the call to the sound policy server is successful, the channel between the voice assistant application and the sound policy server can be opened.

[0243] It should be noted that when the voice assistant application calls the sound policy server, there may be two situations: successful and unsuccessful. When the audio channel of the sound policy server is occupied, or the voice assistant exits after successful startup, the voice assistant application may fail to call the sound policy server.

[0244] For example, after the voice assistant application is started, the recording function of the electronic device is turned on, the audio channel of the sound policy server is occupied, and the voice assistant application cannot successfully call the sound policy server.

[0245] Therefore, when the voice assistant application successfully calls the voice policy server, it can send a notification to the voice policy server to indicate the start of voice recognition.

[0246] Among them, the notification for indicating the start of voice recognition is used to indicate that the voice assistant application is able to receive voice data and recognize the voice data.

[0247] S292: The sound policy server calls voice data from the audio driver in response to the notification indicating the start of voice recognition.

[0248] Based on S21, it can be determined that the voice data is stored in the buffer of the audio driver. In addition, based on S291, the sound policy server can receive a notification indicating the start of voice recognition.

[0249] Then, after receiving the notification indicating the start of voice recognition, the sound policy server can determine that the voice assistant application is able to receive voice data and recognize the voice data. The sound policy server calls the voice data from the audio driver to facilitate sending the voice data to the voice assistant application.

[0250] In some embodiments, the sound policy server may carry voice data from an audio driver's buffer via a stream from audio source 1999 .

[0251] S293. After the voice policy server receives the voice data from the audio driver, it sends the voice data to the voice assistant application.

[0252] After the sound policy server calls the audio data from the audio driver's buffer, it can send the voice data to the voice assistant application to facilitate the voice assistant application to recognize the voice data.

[0253] S294. After receiving the voice data, the voice assistant application recognizes the received voice data.

[0254] Among them, the voice assistant application recognizes the received voice data, not only recognizes the meaning of the voice data, but also converts the voice data into text.

[0255] S295. In response to the notification for instructing the start of speech recognition, the sound policy server sends a notification for instructing the start of speech recognition to the sound trigger module.

[0256] After receiving the notification for instructing the start of speech recognition, the sound policy server may send the notification for instructing the start of speech recognition to the sound trigger module, so as to prepare for the sound trigger module to perform the next operation according to the notification for instructing the start of speech recognition.

[0257] Among them, S292 and S295 have no particular order in terms of timing and can be executed sequentially or simultaneously.

[0258] S296. The sound trigger module turns off the timer in response to the notification indicating the start of voice recognition.

[0259] It can be understood that when the sound trigger module receives a notification indicating the start of voice recognition, it can be determined that the voice assistant application has successfully called the sound policy server.

[0260] Based on S25, the sound trigger module has started the timer.

[0261] Thus, after receiving the notification indicating the start of voice recognition, the sound trigger module can turn off the timer and start the timer to prepare for the next time the voice assistant application is woken up.

[0262] In addition, turning off the timer can also minimize the power consumption of electronic devices.

[0263] S297. In response to the notification indicating the start of speech recognition, the sound trigger module sends a notification to the audio driver indicating the stop of the breath awakening model.

[0264] Among them, S297 is an optional step.

[0265] In addition, S297 and Figure 5 The implementation method of S23 in the illustrated embodiment is similar and will not be described in detail in this application.

[0266] It should be understood that when the voice assistant application is performing voice recognition, if the breath awakening model is running, the awakening event may be triggered again, causing the current voice recognition to be interrupted.

[0267] Therefore, based on S22, the sound trigger module has sent a notification to the audio driver to instruct the stop running of the breath awakening model, and the breath awakening model can stop running. To avoid the breath awakening model from starting again for other reasons after stopping, the sound trigger module can send a notification to the audio driver again to instruct the stop running of the breath awakening model, so as to prevent the breath awakening model from starting and triggering the awakening event again.

[0268] Among them, S293 and S296 have no particular order in terms of timing and can be executed sequentially or simultaneously.

[0269] S298: In response to the notification for instructing to stop running the breath awakening model, the audio driver controls the breath awakening model in the audio digital signal processor to stop running.

[0270] Among them, S298 is an optional step.

[0271] Among them, S298 and Figure 5 The implementation of S24 in the illustrated embodiment is similar and will not be described in detail in this application.

[0272] S299. When the voice assistant application determines that the voice recognition has ended based on the voice data, the voice assistant application sends a notification indicating the end of the voice recognition to the sound policy server.

[0273] Among them, the voice assistant application can use multiple methods to determine the end of voice recognition based on voice data.

[0274] In some embodiments, when the voice assistant application receives the user's operation of triggering the voice assistant floating ball control in S28 according to the voice data, it can be determined that the user wants to end the voice recognition. Thus, the voice assistant application can end the voice recognition in response to the operation on the voice assistant floating ball control.

[0275] In other embodiments, the voice assistant application determines that voice recognition ends when it determines that the voice text corresponding to the received voice data is a complete word or sentence.

[0276] Assume that the voice data is "Have you eaten today?"

[0277] After receiving the sentence “Have you eaten today?”, the voice assistant application can determine that “Have you eaten today?” is a complete sentence, and the voice assistant application can determine that the voice recognition is finished.

[0278] After receiving “eat today”, the voice assistant application can determine that “eat today” is not a complete sentence, and the voice assistant application can determine that the voice recognition is not finished.

[0279] Until the voice assistant application receives "Have you eaten yet?", so that "Eat today" and "Have you eaten yet?" form a complete sentence, the voice assistant application can determine that the voice recognition is finished.

[0280] S300. When the voice assistant application determines that the voice recognition is finished according to the voice data, the voice assistant application displays the voice recognition result.

[0281] The speech recognition result may be text data corresponding to the speech data, or may be an interaction result corresponding to the user data.

[0282] In some embodiments, the voice assistant application may convert the voice data into text during the process of recognizing the voice data and display it on the user interface in S28.

[0283] For example, when the voice data is “Today's weather”, after the voice assistant application recognizes “Today's weather”, it can display the text data corresponding to “Today's weather” on the user interface.

[0284] In other embodiments, the voice assistant application may display the interaction results corresponding to the voice data on the user interface in S28 after the voice data recognition is completed.

[0285] For example, when the voice data is "today's weather", after recognizing "today's weather", the voice assistant application can determine that the user wants to know today's weather conditions, and can display the actual conditions such as the current temperature, maximum temperature, and minimum temperature corresponding to today's weather on the user interface.

[0286] S301. In response to a notification indicating the end of speech recognition, the sound policy server sends a notification indicating the end of speech recognition to a sound trigger module.

[0287] After receiving the notification indicating the end of speech recognition, the sound policy server may send the notification indicating the end of speech recognition to the sound trigger module, so as to prepare for the sound trigger module to perform the next operation according to the notification indicating the end of speech recognition.

[0288] S302: In response to the notification indicating the end of speech recognition, the sound trigger module sends a notification indicating the start of the breath awakening model to the audio driver.

[0289] Based on S24, or S22 and S298, it can be determined that the audio driver has controlled the breath wake-up model in the audio digital signal processor to stop running, and the voice assistant application stops the breath wake-up function.

[0290] Therefore, in order to restore the breath wake-up function of the voice assistant application, the sound trigger module can send a notification to the audio driver to instruct the start-up of the breath wake-up model, so that the sound trigger module can control the start-up of the breath wake-up model in the audio digital signal processor, so that the breath wake-up model in the audio digital signal processor can detect the next received data.

[0291] S303: In response to the notification for instructing to start running the breath awakening model, the audio driver controls the breath awakening model in the audio digital signal processor to start running.

[0292] After receiving the notification instructing to start running the breath awakening model, the audio driver can control the breath awakening model in the audio digital signal processor to start running, so as to restore the breath awakening function of the voice assistant application, so that the breath awakening model in the audio digital signal processor can detect the data received next time.

[0293] S311. When the sound trigger module does not receive a notification indicating the start of speech recognition or a notification indicating the end of speech recognition at the end of the timer, it sends a notification to the audio driver to instruct the start of the breath awakening model.

[0294] The “×” between the voice assistant application and the audio policy service module is used to indicate that the voice assistant application failed to call the audio policy service module.

[0295] Based on S295, when the voice assistant application successfully calls the audio policy service module, the sound trigger module can receive a notification indicating the start of voice recognition.

[0296] Based on S301, after the voice assistant application successfully calls the audio policy service module, and the voice assistant application finishes voice recognition, the sound trigger module can receive a notification indicating the end of voice recognition.

[0297] Then, when the sound trigger module does not receive a notification indicating the start of voice recognition or a notification indicating the end of voice recognition at the end of the timer, it can be determined that the sound trigger module has failed to call the voice assistant application.

[0298] Therefore, in order to restore the breath wake-up function of the voice assistant application, the sound trigger module can send a notification to the audio driver to instruct the start-up of the breath wake-up model, so that the audio driver can control the start-up of the breath wake-up model in the audio digital signal processor.

[0299] S312: In response to the notification for instructing to start running the breath awakening model, the audio driver controls the breath awakening model in the audio digital signal processor to start running.

[0300] Among them, S312 and Figure 5 The implementation of S303 in the illustrated embodiment is similar and will not be described in detail in this application.

[0301] In summary, when the voice assistant application successfully calls the audio strategy service module, the sound trigger module can send a notification to the audio driver to stop running the breath wake-up module, so that the audio driver controls the breath wake-up model to stop running and avoid interrupting the current speech recognition.

[0302] In addition, when the voice assistant application determines that voice recognition has ended, the sound trigger module can send a notification to the audio driver to start the breath wake-up module, so that the audio driver controls the breath wake-up model to start running, thereby restoring the breath wake-up function of the voice assistant application.

[0303] In addition, when the sound trigger module expires at the end of the set timer and no notification indicating the start of voice recognition or the end of voice recognition is received, the sound trigger module can send a notification to the audio driver to start running the breath wake-up module, so that the audio driver controls the breath wake-up model to start running, thereby facilitating the restoration of the breath wake-up function of the voice assistant application.

[0304] It can be seen that regardless of whether the voice assistant application successfully calls the audio strategy service module, the sound trigger module can send a notification to the audio driver to start the breath wake-up module, so that the audio driver controls the breath wake-up model to start running, thereby facilitating the restoration of the breath wake-up function of the voice assistant application.

[0305] That is to say, the sound trigger module can send a notification to the audio driver at the right time to start the breath wake-up module, so that the audio driver can control the breath wake-up model to start running, which can not only avoid the current voice recognition interruption, but also ensure that the voice assistant application can be woken up normally next time.

[0306] In the present application, when the electronic device receives an operation to start the breath wake-up function of the voice assistant application, the breath wake-up function is started, so that the user can wake up the voice assistant by breath wake-up, thereby improving the user experience. After the breath wake-up function of the voice assistant application is started, the breath wake-up model can be in a continuously running state on the audio digital signal processor, so that when the received data is data for waking up the voice assistant application, the wake-up event is triggered in time, so that the voice assistant application can be woken up.

[0307] In addition, when the breath wake-up module in the audio digital signal processor determines that the similarity between the received voice data and the preset breath wake-up data is greater than a first threshold, and the similarity between the received gesture data and the preset wake-up gesture data is greater than a second threshold, it can trigger a wake-up event and report the wake-up event step by step. The voice assistant application is started by controlling the sound trigger module, thereby ensuring the convenience and timeliness of the startup of the voice assistant application.

[0308] In addition, regardless of whether the voice assistant application successfully calls the audio policy service module, the sound trigger module can send a notification to the audio driver to start the breath wake-up module, so that the audio driver controls the breath wake-up model to start running, thereby restoring the breath wake-up function of the voice assistant application.

[0309] It can be seen that the method of waking up the voice assistant application with breath in the present application is suitable for a variety of target customers, such as white-collar workers, civil servants and office workers who use voice assistant applications (accounting for more than 80% of users and covering a wider range of usage scenarios).

[0310] The method of awakening the voice assistant application by breath in the present application is applicable to multiple typical scenarios, for example, in relatively quiet public places such as coffee shops, western restaurants, or high-speed rail / airport lounges; when users are in subway stations, airports, train stations and other places, queuing to enter the station with luggage in their hands; when users are in supermarkets, shopping malls and other places, holding things in their hands to select and buy goods; when users are walking the dog outdoors; when users drive into / leave parking lots, toll stations, communities / parks, and their hands are just freed from the steering wheel of the car.

[0311] The breath awakening voice assistant application method of the present application is applicable to a variety of needs, does not require wake-up words and trigger buttons, simplifies the voice interaction steps, and starts the voice assistant application more quickly. In addition, users can directly approach the conversation, which improves the accuracy of the user's interaction with the electronic device, reduces the risk of conversation content leakage in terms of privacy protection, and avoids interference with others.

[0312] Based on some of the aforementioned embodiments, the method for waking up an application provided by the present application is introduced below.

[0313] Exemplarily, the present application provides a method for waking up an application.

[0314] For the sake of convenience, the method for waking up the application program of the present application can be as follows: Figure 2 to be executed by the electronic devices in the

[0315] See also Figure 6 , Figure 6 A flow chart of a method for waking up an application program provided in an embodiment of the present application is shown.

[0316] like Figure 6 As shown, the method for waking up an application provided by the present application is applied to an electronic device, and the electronic device includes: a first application, a breath awakening software module, and a breath awakening processing device.

[0317] The electronic device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a home appliance, or the like.

[0318] Among them, the breath awakening software module may include a first software module, a third software module, a second software module, and a fourth software module.

[0319] like Figure 4 As shown, the first software module may be an audio policy service module (audio policy service).

[0320] The third software module may be a sound trigger module.

[0321] The second software module may be an audio driver (sound trigger-hal).

[0322] The fourth software module may be an audio trigger module (sound trigger).

[0323] like Figure 3 As shown, the breath awakening processing device may include an audio digital signal processor (ADSP), a sound collection sensor, and an inertial detection sensor.

[0324] The sound collection sensor may be a microphone.

[0325] Specifically, the method for waking up an application provided by the present application may include:

[0326] S101. The breath awakening processing device obtains first data.

[0327] The first data can be Figure 5 The data received by the audio digital signal sensor in S19.

[0328] For the specific implementation of S101, please refer to Figure 5 The description of S17-S19 in will not be repeated here.

[0329] S102: When the breath awakening processing device detects that the first data is used to instruct the breath to awaken the first application program, the breath awakening processing device sends the voice data in the first data to the breath awakening software module.

[0330] For the specific implementation of S102, please refer to Figure 5 The description of S19-S20 in is not repeated here.

[0331] S103: The breath awakening software module stores the voice data, starts the first application, and controls the breath awakening processing device to stop detecting the breath awakening of the first application and continue to obtain the voice data.

[0332] Among them, the first application can be a voice assistant application.

[0333] For the specific implementation of S103, please refer to Figure 5 The description of S21-S24 in will not be repeated here.

[0334] S104: After the first application is started, when the breath awakening software module is successfully called, a first notification is sent to the breath awakening software module.

[0335] The first notice can be found in Figure 5 Description of the notification for indicating the start of speech recognition in S291.

[0336] For the specific implementation of S104, please refer to Figure 5 The description of S21-S27 in will not be repeated here.

[0337] S105. The breath awakening software module sends voice data to the first application in response to the first notification.

[0338] For the specific implementation of S105, please refer to Figure 5 The description of S292-S295 in will not be repeated here.

[0339] S106: The first application performs speech recognition on the speech data.

[0340] For the specific implementation of S106, please refer to Figure 5 The description of S296 in is not repeated here.

[0341] S107. When the first application determines according to the voice data that the voice recognition is finished, the first application sends a second notification to the breath awakening software module.

[0342] The second notice can be found in Figure 5 Description of the notification in S299 indicating the end of speech recognition.

[0343] For the specific implementation of S107, please refer to Figure 5 The description of S299 in is not repeated here.

[0344] S108. The breath awakening software module controls the breath awakening processing device to start detecting the next breath awakening of the first application in response to the second notification.

[0345] For the specific implementation of S108, please refer to Figure 5 The description of S301-302 in will not be repeated here.

[0346] In the method for waking up an application of the present application, when the breath awakening processing device detects the first data for indicating the breath awakening of the first application, the first application can be started through the breath awakening software module, thereby ensuring the convenience and timeliness of starting the first application.

[0347] When the breath awakening software module starts the first application, the breath awakening processing device can be controlled to stop detecting the breath awakening of the first application, thereby avoiding interruption of the current voice recognition.

[0348] In addition, the breath awakening software module can control the breath awakening processing device to start detecting the next breath awakening of the first application when the first application determines that the voice recognition is finished, so as to restore the breath awakening function of the first application.

[0349] In some embodiments, the method for waking up an application program of the present application may further include:

[0350] When the breath awakening software module does not receive the first notification or the second notification after a preset period of time, the breath awakening processing device is controlled to start detecting the next breath awakening of the first application.

[0351] The specific implementation of this step can be found in Figure 5 The description of S311-S312 in will not be repeated here.

[0352] Among them, when the breath awakening software module has not received the first notification or the second notification after a preset period of time, it controls the breath awakening processing device to start detecting the next breath awakening of the first application, so as to restore the breath awakening function of the voice assistant application.

[0353] In some embodiments, the method for waking up an application program of the present application may further include:

[0354] After the first application is started, a first user interface is displayed.

[0355] The first application displays the speech recognition result in the first user interface.

[0356] The first user interface can be found in Figure 7D-Figure 7E interface 14, and Figure 5 Description of the user interface in S28 and S300.

[0357] The specific implementation of this step can be found in Figure 5 The description of S28 and S300 in FIG. 1 is not repeated here.

[0358] Among them, the first user interface can display the voice recognition result, so that the user can understand the voice recognition result in time, thereby improving the user's usage experience.

[0359] In some embodiments, the breath awakening software module includes: a first software module and a second software module, and the voice data is stored in the second software module.

[0360] In some embodiments, the method of waking up an application program of the present application may include:

[0361] Step 201: After the first application is started, when the first software module is successfully called, a first notification is sent to the first software module.

[0362] The specific implementation of step 201 can be found in Figure 5 The description of S291 in is not repeated here.

[0363] Step 202: In response to the first notification, the first software module calls voice data from the second software module and sends the voice data to the first application.

[0364] The specific implementation of step 202 can be found in Figure 5 The description of S293-S295 in will not be repeated here.

[0365] When the first application successfully calls the first software module, the first software module can call the voice data from the second software module and send the voice data to the first application, so that the first application can receive the voice data in time.

[0366] In some embodiments, the method for waking up an application program of the present application may further include:

[0367] Step 301: In response to a first notification, a first software module sends a third notification to a second software module.

[0368] Wherein, step 301 may include: the first software module sends the first notification to the third software module in response to the first notification; the third software module sends the third notification to the second software module in response to the first notification.

[0369] The third notice can be found in Figure 5Description of the notification in S297 for instructing to stop running the breath awakening model.

[0370] The specific implementation of step 301 can be found in Figure 5 The description of S295 and S297 in will not be repeated here.

[0371] Step 302: In response to the third notification, the second software module controls the breath awakening processing device to stop detecting the breath awakening of the first application and continue to obtain voice data.

[0372] The specific implementation of step 302 can be found in Figure 5 The description of S297-S298 in will not be repeated here.

[0373] Among them, controlling the breath awakening processing device to stop detecting the breath awakening of the first application can avoid interrupting the current voice recognition, and can again ensure the quality of the current first application voice recognition.

[0374] In some embodiments, the method of waking up an application program of the present application may include:

[0375] Step 401: In response to the second notification, the first software module sends a fourth notification to the second software module.

[0376] Step 401 may include: the first software module sends the second notification to the third software module in response to the second notification, and the third software module sends a fourth notification to the second software module in response to the second notification.

[0377] The fourth notice can be found in Figure 5 Description of the notification for instructing to start running the breath awakening model in S302.

[0378] The specific implementation of step 401 can be found in Figure 5 The description of S301-S302 in will not be repeated here.

[0379] Step 402: In response to the fourth notification, the second software module controls the breath awakening processing device to start detecting the next breath awakening of the first application.

[0380] The specific implementation of step 402 can be found in Figure 5 The description of S303 in is not repeated here.

[0381] Among them, the second software module controls the breath awakening processing device in response to the fourth notification to start detecting the next breath awakening of the first application, so as to restore the breath awakening function of the first application.

[0382] In some embodiments, the breath awakening software module further includes a third software module and a fourth software module.

[0383] In some embodiments, the method of waking up an application program of the present application may include:

[0384] Step 501: The second software module stores voice data and sends a wake-up event to the third software module.

[0385] The specific implementation of step 501 can be found in Figure 5 The description of S22 in is not repeated here.

[0386] Step 502: In response to the wake-up event, the third software module sends a wake-up event to the fourth software module and sends a fifth notification to the second software module.

[0387] The fifth notice can be found in Figure 5 Description of the notification in S23 for instructing to stop running the breath awakening model.

[0388] The specific implementation of step 502 can be found in Figure 5 The description of S23 and S26 in will not be repeated here.

[0389] Step 503: The fourth software module starts the first application in response to the wake-up event.

[0390] The specific implementation of step 503 can be found in Figure 5 The description of S27 in is not repeated here.

[0391] Step 504: In response to the fifth notification, the second software module controls the breath awakening processing device to stop detecting the breath awakening of the first application and continue to obtain voice data.

[0392] The specific implementation of step 504 can be found in Figure 5 The description of S24 in will not be repeated here.

[0393] It can be seen that the fourth software module can start the first application in response to the wake-up event, thereby ensuring the timeliness and accuracy of starting the first application.

[0394] In addition, since the wake-up event has been triggered, controlling the breath wake-up processing device to stop detecting the breath wake-up of the first application can avoid interrupting the current voice recognition and ensure the quality of the current voice recognition of the first application.

[0395] In some embodiments, the method for waking up an application program of the present application may further include:

[0396] Step 601: The third software module sets a timing time in response to a wake-up event and starts timing according to the timing time.

[0397] The specific implementation of step 601 can be found in Figure 5 The description of S25 in is not repeated here.

[0398] Step 602: When the third software module determines that the timing time has expired and has not received the first notification or the second notification, the third software module sends a sixth notification to the second software module.

[0399] The sixth notice can be found in Figure 5 Description of the notification for instructing to start running the breath awakening model in S311.

[0400] The specific implementation of step 602 can be found in Figure 5 The description of S311 in is not repeated here.

[0401] Step 603: In response to the sixth notification, the second software module controls the breath awakening processing device to start detecting the next breath awakening of the first application.

[0402] The specific implementation of step 603 can be found in Figure 5 The description of S312 in is not repeated here.

[0403] Step 604: The third software module turns off the timing of the timing time in response to the first notification.

[0404] The specific implementation of step 604 can be found in Figure 5 The description of S293 in is not repeated here.

[0405] Among them, the setting time of the timer can be used to determine whether the first notification or the second notification is received, so that when the first notification or the second notification is not received, the second software module controls the breath wake-up processing device to start the next breath wake-up of the first application and restore the breath wake-up function.

[0406] In some embodiments, the method of waking up an application program of the present application may include:

[0407] The first application determines that the voice recognition is ended in response to an operation for instructing to end the voice recognition.

[0408] Alternatively, when the first application determines that the voice text corresponding to the voice data satisfies a preset rule, it determines that the voice recognition ends.

[0409] When determining that the speech recognition is finished, the first application sends a second notification to the first software module.

[0410] Among them, the preset rule is that the voice text corresponding to the voice data is a complete word or sentence.

[0411] The specific implementation of the above steps can be found in Figure 5 The description of S299 in is not repeated here.

[0412] It can be seen that the first application can determine whether the voice recognition is completed through the above two methods.

[0413] In some embodiments, the breath awakening processing device includes: an inertial detection sensor, a sound collection sensor, and an audio digital signal processor.

[0414] The first data includes: voice data and gesture data.

[0415] In some embodiments, the method of waking up an application program of the present application may include:

[0416] Step 701: The inertial detection sensor collects gesture data;

[0417] Step 702: The inertial detection sensor sends gesture data to the audio digital signal processor.

[0418] The specific implementation of step 701 and step 702 can be found in Figure 5 The description of S18 in is not repeated here.

[0419] Step 703: The sound collection sensor collects voice data;

[0420] Step 704: The sound collection sensor sends voice data to the audio digital signal processor.

[0421] The specific implementation of step 703 and step 704 can be found in Figure 5 The description of S17 in is not repeated here.

[0422] Step 705: When the breath awakening processing device detects that the similarity between the gesture data and the preset awakening gesture data is greater than the first threshold, and the similarity between the voice data and the preset awakening breath data is greater than the second threshold, the voice data is sent to the breath awakening software module.

[0423] The specific implementation of step 703 and step 704 can be found in Figure 5 The description of S19 in is not repeated here.

[0424] Among them, the inertial detection sensor can collect gesture data, and the sound collection sensor can collect voice data.

[0425] The breath awakening processing device can detect the gesture data collected by the inertial detection sensor and the voice data collected by the sound collection sensor.

[0426] Based on the above description, combined with Figure 7A-7E , describes in detail the method for implementing the wake-up application program of the electronic device in this application. For the convenience of explanation, Figure 7A-7E In the figure, the electronic device is a mobile phone and the first application is a voice assistant application as an example.

[0427] The phone can display Fig. 7A The interface 11 shown is used to display icons of various application programs (APP) installed on the mobile phone. For example, the interface 11 may include: a control 101. The control 101 is used to display an icon for setting an APP.

[0428] Upon receiving the user's Fig. 7A After the control 101 shown in FIG. 1 is triggered (such as click, double-click or long press operation, etc.), the mobile phone can be used as shown in FIG. Fig. 7A The interface 11 shown changes to display as shown Figure 7B Interface 12 is shown.

[0429] The interface 12 may include: a control 102. The control 102 is used to trigger the setting interface of the voice assistant application.

[0430] Upon receiving the user's Figure 7B After the control 102 shown in the figure performs the triggering operation, the mobile phone can Figure 7B The interface 12 shown changes to display as shown in Figure 7C Interface 13 is shown.

[0431] The interface 13 may include: a control 103. The control 103 is used to trigger the breath wake-up function of starting the voice assistant application.

[0432] Upon receiving the user's Figure 7C After the control 103 shown is triggered, the mobile phone starts the breath wake-up function of the voice assistant application.

[0433] Thus, the voice assistant application can notify the breath awakening software module to start, and the breath awakening software module can notify the breath awakening processing device to detect the acquired data.

[0434] When the breath awakening processing device detects that the acquired data is data for the breath awakening voice assistant application, the voice data in the data is sent to the breath awakening software module.

[0435] The breath wake-up software module stores voice data and controls the voice assistant application to start. After the voice assistant application is started, the phone can display the following Fig.7D Interface 14 is shown.

[0436] In addition, the breath awakening software module can also control the breath awakening processing device to stop detecting the received data and continue to receive the voice data in the above data.

[0437] The interface 14 may include a control 105. The control 105 is used to remind the user that the voice assistant application has been started and to trigger the voice assistant application to end voice recognition.

[0438] After the voice assistant application is started, when the breath awakening software module is successfully called, the breath awakening software module can send voice data to the voice assistant application.

[0439] After receiving the voice data, the voice assistant application can convert the voice data into text data. At this time, the interface 14 can also include a control 104. The control 104 is used to display the text data corresponding to the voice data.

[0440] For example, when the voice data is “Today's weather”, the text data displayed in the control 104 is “Today's weather”.

[0441] It should be understood that when the voice data is "today's weather", it means that the user wants to know today's weather conditions.

[0442] After the voice assistant application determines that the voice recognition is complete based on the voice data, the phone can display the following Fig.7D Interface 14 is shown.

[0443] In addition, after the voice assistant application determines that the voice recognition is completed according to the voice data, it notifies the breath awakening software module, and the breath awakening software module can control the breath awakening processing device to restart and recognize the next received data. That is, the breath awakening function of the voice assistant application is restored.

[0444] The interface 14 may further include a control 106. The control 106 is used to display the speech recognition result of the voice assistant application.

[0445] For example, when the voice data is "Today's weather", the voice recognition result displayed by control 106 may be "City A, mostly cloudy, 10% chance of rainfall, current temperature 14°C, maximum temperature 17°C, minimum temperature 11°C".

[0446] In summary, the voice assistant application can be awakened by breath awakening, and after the voice assistant application determines that the voice recognition is completed, the breath awakening software module can control the breath awakening processing device to restart and recognize the next received data.

[0447] Exemplarily, the present application provides a document processing device, which may include one or more modules for executing the method of waking up an application in the foregoing embodiment.

[0448] Exemplarily, the present application provides an electronic device, including a processor; when the processor executes computer code or instructions in the memory, the electronic device executes the method of waking up the application in the above embodiment.

[0449] Exemplarily, the present application provides an electronic device, comprising one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device executes the method of waking up the application in the foregoing embodiments.

[0450] It is understandable that, in order to realize the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.

[0451] In this embodiment, the electronic device can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0452] In the case of dividing each functional module according to each function, the electronic device involved in the above embodiment may also include: a receiving module and a determining module. The receiving module and the determining module cooperate with each other to support the electronic device to perform the above steps and / or other processes of the technology described in this article.

[0453] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0454] The electronic device provided in this embodiment is used to execute the above method of waking up the application program, and thus can achieve the same effect as the above implementation method.

[0455] Exemplarily, the present application provides a chip system, which includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the method of waking up the application in the foregoing embodiment.

[0456] Exemplarily, the present application provides a computer-readable storage medium, in which codes or instructions are stored. When the codes or instructions are executed on an electronic device, the electronic device implements the method of waking up the application in the foregoing embodiment.

[0457] Exemplarily, the present application provides a computer program product, which, when executed on a computer, enables an electronic device to implement the method for waking up an application in the foregoing embodiment.

[0458] Among them, the electronic device, computer-readable storage medium, computer program product or chip system provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.

[0459] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0460] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0461] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0462] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0463] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0464] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for waking up an application, characterized in that: Applied to an electronic device, the electronic device includes a first application program; the method includes: In response to a first operation of a user, first data is acquired, where the first data includes first voice data and gesture data, and the first operation is an operation in which the user moves the electronic device and speaks toward the electronic device; When the breath awakening model in the electronic device detects that the first data meets a first condition, the first application is started, the breath awakening model is stopped, and second voice data is acquired, wherein the first condition includes that the similarity between the gesture data and the preset awakening gesture data is greater than a first threshold, and the similarity between the first voice data and the preset awakening breath data is greater than a second threshold; When the first application is started, performing voice recognition on the second voice data; When the voice recognition of the second voice data is completed, the breath awakening model is started to detect again whether to start the first application.

2. The method according to claim 1, characterized in that The method further comprises: During the process of performing the speech recognition on the second speech data, if it is detected that the breath awakening model is started, the breath awakening model is stopped to put the breath awakening model in a closed state.

3. The method according to claim 2, characterized in that The stopping detecting the breath awakening of the first application comprises: Stop running the breath awakening model.

4. The method according to claim 3, characterized in that: The electronic device includes an application processor and an audio digital signal processor, a breath awakening software module runs on the application processor, the breath awakening model runs on the audio digital signal processor, and the acquiring of the first data includes: The audio digital signal processor acquires first data; When the breath awakening model in the electronic device detects that the first data meets the first condition, the first application is started, the breath awakening model is stopped, and the second voice data is acquired, including: When the audio digital signal processor detects that the first data meets the first condition through the breath awakening model, the first application is started, the audio digital signal processor is controlled to stop running the breath awakening model, and the second voice data is acquired; The performing speech recognition on the second speech data when the first application is started includes: When the first application is started, the first application sends a first notification to the breath awakening software module, wherein the first notification is used to request the breath awakening software module to send the second voice data to the first application; The breath awakening software module sends the second voice data to the first application in response to the first notification; The first application performs the speech recognition on the second speech data; When the voice recognition of the second voice data is finished, the breath awakening model is started to detect again whether to start the first application, including: When the first application determines that the voice recognition is finished according to the second voice data, the second notification is sent to the breath awakening software module, wherein the second notification is used to request the breath awakening software module to notify the audio digital signal processor to start the breath awakening model; In response to the second notification, the breath awakening software module controls the audio digital signal processor to start the breath awakening model to detect again whether to start the first application.

5. The method according to claim 4, characterized in that The method further comprises: When the breath awakening software module does not receive the first notification or the second notification after a preset period of time, it controls the audio digital signal processor to start the breath awakening model to detect again whether to start the first application.

6. The method according to claim 5, characterized in that The breath awakening software module includes: a first software module and a second software module, and the second voice data is stored in the second software module; When the first application is started, the first notification is sent to the breath awakening software module, including: When the first application is started, sending the first notification to the first software module; The breath awakening software module sends the second voice data to the first application in response to the first notification, including: In response to the first notification, the first software module calls the second voice data from the second software module and sends the second voice data to the first application.

7. The method according to claim 6, characterized in that In the process of performing the speech recognition on the second speech data, if the breath awakening model is started, stopping the breath awakening model includes: In response to the first notification, the first software module sends a third notification to the second software module, wherein the third notification is used to request the second software module to notify the audio digital signal processor to stop running the breath awakening model; In response to the third notification, the second software module controls the audio digital signal processor to stop running the breath awakening model when the breath awakening model is started.

8. The method according to claim 7, characterized in that The breath awakening software module controls the audio digital signal processor to start the breath awakening model in response to the second notification to detect again whether to start the first application, including: In response to the second notification, the first software module sends a fourth notification to the second software module, wherein the fourth notification is used to request the second software module to notify the audio digital signal processor to start the breath awakening model; In response to the fourth notification, the second software module controls the audio digital signal processor to start the breath awakening model to detect again whether to start the first application.

9. The method according to claim 8, characterized in that The breath awakening software module also includes a third software module and a fourth software module; when the audio digital signal processor detects that the first data meets the first condition through the breath awakening model, the first application is started, the audio digital signal processor is controlled to stop running the breath awakening model, and the second voice data is obtained, including: When the audio digital signal processor detects that the first data meets a first condition through the breath awakening model, the second software module sends a wake-up event to the third software module; In response to the wake-up event, the third software module sends the wake-up event to the fourth software module, and sends a fifth notification to the second software module, wherein the fifth notification is used to request the breath wake-up software module to notify the audio digital signal processor to stop running the breath wake-up model; The fourth software module controls the first application to start in response to the wake-up event; In response to the fifth notification, the second software module controls the audio digital signal processor to stop running the breath awakening model and obtain the second voice data.

10. The method according to claim 9, characterized in that When the breath awakening software module does not receive the first notification or the second notification after a preset period of time, controlling the audio digital signal processor to start the breath awakening model to detect again whether to start the first application includes: The third software module sets a timing time in response to the wake-up event, and starts timing according to the timing time; When the third software module determines that the timing time has expired and the first notification or the second notification has not been received, the sixth notification is sent to the second software module, wherein the sixth notification is used to request the second software module to notify the audio digital signal processor to start the breath awakening model; The second software module starts the breath awakening model in response to the sixth notification to detect again whether to start the first application; The third software module turns off the timing of the timing time in response to the first notification.

11. The method according to any one of claims 6 to 10, characterized in that: When the first application determines according to the second voice data that the voice recognition is finished, sending a second notification to the breath awakening software module includes: The first application determines that the speech recognition is ended in response to an operation for indicating the end of the speech recognition; Alternatively, when the first application determines that the voice text corresponding to the second voice data satisfies a preset rule, the voice recognition is determined to be ended; When determining that the voice recognition is finished, the first application sends the second notification to the first software module.

12. The method according to any one of claims 6 to 10, characterized in that: The electronic device further includes an inertia detection sensor and a sound collection sensor; the audio digital signal processor acquires first data, including: The inertial detection sensor collects the gesture data; The inertial detection sensor sends the gesture data to the audio digital signal processor; The sound collection sensor collects the first voice data; The sound collection sensor sends the first voice data to the audio digital signal processor.

13. The method according to any one of claims 1 to 12, characterized in that The method further comprises: After the first application is started, the first user interface is displayed; The first application displays the speech recognition result in the first user interface.

14. An electronic device, characterized in that: include: one or more processors; Memory; And one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device executes the method for waking up the application as described in any one of claims 1-13.

15. A chip system, characterized in that: The chip system includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the method for waking up an application as described in any one of claims 1-13.

16. A computer-readable storage medium comprising a computer program, characterized in that: When the computer program runs on an electronic device, the electronic device executes the method for waking up an application as described in any one of claims 1 to 13.

Citation Information

Cited By

  • Wireless earphone and intelligent voice control system for wireless earphone

    CN119922445A