CN113053370B - Method and device for waking up application - Google Patents

Method and device for waking up application Download PDF

Info

Publication number
CN113053370B
CN113053370B CN201911375775.6A CN201911375775A CN113053370B CN 113053370 B CN113053370 B CN 113053370B CN 201911375775 A CN201911375775 A CN 201911375775A CN 113053370 B CN113053370 B CN 113053370B
Authority
CN
China
Prior art keywords
target application
wake
application
voice
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911375775.6A
Other languages
Chinese (zh)
Other versions
CN113053370A (en
Inventor
侯伟浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201911375775.6A priority Critical patent/CN113053370B/en
Publication of CN113053370A publication Critical patent/CN113053370A/en
Application granted granted Critical
Publication of CN113053370B publication Critical patent/CN113053370B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • G10L15/30Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • G10L15/34Adaptation of a single recogniser for parallel processing, e.g. by use of multiple processors or cloud computing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for waking up an application, and relates to the technical field of computers. One embodiment of the method comprises the following steps: under the condition that the client establishes Bluetooth connection with the wake-up device, judging whether a target application installed on the client is set as a voice assistant application or not; under the condition that the target application is set as a voice assistant application, carrying out voice wakeup on the target application according to a first wakeup instruction based on Bluetooth connection; and under the condition that the target application is not set as the voice assistant application, performing voice wakeup on the target application according to a second wakeup instruction based on BLE connection. According to the embodiment, voice wakeup can be directly carried out on the target application under the condition that the target application is set as the voice assistant application, and voice wakeup can be carried out on the target application by utilizing BLE connection under the condition that the target application is not set as the voice assistant application, so that user experience is improved.

Description

Method and device for waking up application
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for waking up an application.
Background
The voice assistant application is an intelligent application, and helps users to solve problems through intelligent interaction between intelligent dialogue and instant question and answer, and mainly helps users to solve life problems, so that the voice assistant application brings great convenience to users. In the prior art, when a voice assistant application is awakened, a voice assistant setting method supported by a mobile terminal system is required to be adopted, and the application is set as the voice assistant application in the mobile terminal system, so that a user can awaken the voice assistant application through a headset or awakening equipment, and voice awakening can be performed.
In the process of implementing the present invention, the inventor finds that at least the following problems exist in the prior art: when the user does not set the application as a voice assistant application, the application cannot be awakened, voice awakening cannot be performed, and bad user experience is brought to the user.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method and apparatus for waking up an application, which can wake up a target application by voice using BLE connection under the condition that the target application is not set as a voice assistant application, thereby improving user experience.
To achieve the above object, according to a first aspect of an embodiment of the present invention, there is provided a method of waking up an application.
The method for waking up the application comprises the following steps: under the condition that a client establishes Bluetooth connection with wake-up equipment, judging whether a target application installed on the client is set as a voice assistant application or not; performing voice wakeup on the target application according to a first wakeup instruction based on the Bluetooth connection under the condition that the target application is set to be the voice assistant application; and under the condition that the target application is not set as the voice assistant application, carrying out voice wakeup on the target application according to a second wakeup instruction based on BLE connection.
Optionally, before performing voice wake-up on the target application according to the second wake-up instruction based on the BLE connection, the method further includes: and under the condition that the target application is in a survival state, scanning whether the wake-up equipment has a BLE function or not through the target application, and if so, establishing BLE connection between the target application and the wake-up equipment.
Optionally, the performing voice wake-up on the target application according to the second wake-up instruction based on BLE connection includes: receiving a second wake-up instruction sent by the wake-up device based on BLE connection between the target application and the wake-up device, wherein the second wake-up instruction is an instruction sent by the wake-up device to the target application; and according to the received second awakening instruction, controlling the target application to open a transmission link channel of the audio data so as to carry out voice awakening on the target application.
Optionally, the scanning, by the target application, whether the wake-up device has a BLE function, and if yes, establishing a BLE connection between the target application and the wake-up device, including: judging whether the service identifier broadcasted by the awakening equipment is scanned by the target application; if yes, the BLE connection is established by using the service identifier according to a preset BLE connection protocol.
Optionally, based on the bluetooth connection, the voice waking up the target application according to a first wake-up instruction includes: based on the Bluetooth connection, receiving the first wake-up instruction sent by the wake-up device, wherein the first wake-up instruction is an instruction sent by the wake-up device to the client; and controlling the target application to open a transmission link channel of the audio data according to the received first awakening instruction so as to carry out voice awakening on the target application.
Optionally, in the case that the client establishes a bluetooth connection with the wake-up device, before determining whether the target application installed on the client is set as the voice assistant application, the method further includes: and judging whether the Bluetooth connection is established, if so, judging whether the target application is set as the voice assistant application, and if not, confirming that voice wakeup can not be carried out on the target application.
Optionally, before scanning, by the target application, whether the wake-up device has BLE functionality, in case the target application is in a surviving state, the method further comprises: and judging whether the target application is in a survival state, if so, scanning whether the awakening device has a BLE function, and if not, confirming that voice awakening can not be carried out on the target application.
To achieve the above object, according to a second aspect of an embodiment of the present invention, there is provided an apparatus for waking up an application.
An apparatus for waking up an application according to an embodiment of the present invention includes: the judging module is used for judging whether a target application installed on the client is set as a voice assistant application or not under the condition that the client establishes Bluetooth connection with the awakening equipment; the first operation module is used for carrying out voice wakeup on the target application according to a first wakeup instruction based on the Bluetooth connection under the condition that the target application is set to be the voice assistant application; and the second operation module is used for carrying out voice wakeup on the target application according to a second wakeup instruction based on BLE connection under the condition that the target application is not set as the voice assistant application.
Optionally, the second operation module is further configured to: and under the condition that the target application is in a survival state, scanning whether the wake-up equipment has a BLE function or not through the target application, and if so, establishing BLE connection between the target application and the wake-up equipment.
Optionally, the second operation module is further configured to: receiving a second wake-up instruction sent by the wake-up device based on BLE connection between the target application and the wake-up device, wherein the second wake-up instruction is an instruction sent by the wake-up device to the target application; and according to the received second awakening instruction, controlling the target application to open a transmission link channel of the audio data so as to carry out voice awakening on the target application.
Optionally, the second operation module is further configured to: judging whether the service identifier broadcasted by the awakening equipment is scanned by the target application; if yes, the BLE connection is established by using the service identifier according to a preset BLE connection protocol.
Optionally, the first operation module is further configured to: based on the Bluetooth connection, receiving the first wake-up instruction sent by the wake-up device, wherein the first wake-up instruction is an instruction sent by the wake-up device to the client; and controlling the target application to open a transmission link channel of the audio data according to the received first awakening instruction so as to carry out voice awakening on the target application.
Optionally, the judging module is further configured to: and judging whether the Bluetooth connection is established, if so, judging whether the target application is set as the voice assistant application, and if not, confirming that voice wakeup can not be carried out on the target application.
Optionally, the judging module is further configured to: and judging whether the target application is in a survival state, if so, scanning whether the awakening device has a BLE function, and if not, confirming that voice awakening can not be carried out on the target application.
To achieve the above object, according to a third aspect of the embodiments of the present invention, there is provided an electronic apparatus.
An electronic device of an embodiment of the present invention includes: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the method for waking up the application.
To achieve the above object, according to a fourth aspect of the embodiments of the present invention, there is provided a computer-readable medium.
A computer readable medium of an embodiment of the present invention has stored thereon a computer program which, when executed by a processor, implements a method of waking up an application of an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: under the condition that the target application is set as the voice assistant application, voice wakeup can be directly carried out on the target application, under the condition that the target application is not set as the voice assistant application, voice wakeup can be carried out on the target application by utilizing BLE connection, the technical problem that in the prior art, when a user does not set the application as the voice assistant application, the application cannot be wakened, voice wakeup cannot be carried out is solved, and user experience is improved.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main steps of a method of waking up an application according to an embodiment of the invention;
FIG. 2 is a schematic diagram of the main flow of a method for voice waking up a target application according to a second wake-up instruction according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of the main flow of a method of waking up an application according to an embodiment of the invention;
FIG. 4 is a schematic diagram of the main modules of an apparatus for waking up an application according to an embodiment of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
fig. 6 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of the main steps of a method of waking up an application according to an embodiment of the invention. As shown in fig. 1, the main steps of the method for waking up an application according to an embodiment of the present invention may include:
step S101, judging whether a target application installed on a client is set as a voice assistant application or not under the condition that the client establishes Bluetooth connection with wake-up equipment;
step S102, under the condition that the target application is set as a voice assistant application, carrying out voice wakeup on the target application according to a first wakeup instruction based on Bluetooth connection;
step S103, in the case that the target application is not set as the voice assistant application, performing voice wakeup on the target application according to the second wakeup instruction based on the BLE connection.
The method for waking up the application is applied to the client, and the method refers to waking up the application installed on the client. The client can be mobile equipment such as a mobile phone and the like; the application may be a communication application, shopping application, etc.; if the application is a shopping application, the awakening of the installed shopping application can be to input an article purchased by the user through voice, and the application can display the article to the user; if the application is a communication application, the communication application which is awakened to be installed can be an object which needs to be contacted by the voice dialing user, and the application can dial the contact object. The wake-up device in the embodiment of the present invention may be a bluetooth headset, or other devices that have a microphone and may perform bluetooth connection, which is not limited in the embodiment of the present invention. In addition, the voice wake-up operation performed in the embodiment of the present invention may be recording or other operations.
As can be seen from the above steps S101 to S103, in the method for waking up an application according to the embodiment of the present invention, when a target application is set as a voice assistant application, voice wake-up can be directly performed on the target application, and when the target application is not set as a voice assistant application, voice wake-up can be performed on the target application by using BLE connection. Where BLE is an abbreviation of Bluetooth Low Energy, bluetooth low energy technology, is also a low cost, short range, interoperable robust wireless technology. BLE can utilize many intelligent means to minimize power consumption and can also employ variable connection time intervals, which can be set to vary from a few milliseconds to a few seconds depending on the particular application. In addition, because the BLE adopts a very fast connection mode, the BLE can be in a non-connection state at ordinary times, the two ends of the link are only aware of each other, the link is opened only when necessary, and then the link is closed in a time as short as possible. If the client needs to utilize the BLE technology, the BLE accessory issued by the BLE accessory manufacturer and its matching application can be used together.
It should be noted that, whether the target application is directly or by means of BLE connection, it is necessary to ensure that the client establishes a bluetooth connection with the wake-up device, so that it can be determined whether the target application installed on the client is set as a voice assistant application. If it is determined that the target application is set as the voice assistant application, a first wake-up instruction may be received based on the established bluetooth connection, and then the voice wake-up may be performed on the target application using the first wake-up instruction. If it is determined that the target application is not set as a voice assistant application, a second wake-up instruction may be received based on the BLE connection, and then the voice wake-up is performed on the target application using the second wake-up instruction. The first wake-up instruction and the second wake-up instruction are instructions sent by the wake-up device, and the wake-up instruction includes specific voice operation.
It can also be seen from the above steps S101 to S103 that the establishment of the bluetooth connection is the precondition of the wake-up application method according to the embodiment of the present invention. Therefore, as a reference embodiment of the present invention, in the case where the client establishes a bluetooth connection with the wake-up device, the method for waking up an application may further include: and judging whether a Bluetooth connection is established, if so, judging whether the target application is set as a voice assistant application, and if not, confirming that voice wakeup can not be carried out on the target application. That is, it is necessary to determine in advance whether the client establishes a bluetooth connection with the wake-up device, and if the bluetooth connection has been established, it is explained that data transmission can be performed between the client and the wake-up device, and at this time, it may be determined whether the target application is set as an application that can interact with the instant question-and-answer through the intelligent dialogue. If the client does not establish Bluetooth connection with the awakening device, the client and the awakening device cannot transmit data, and the user cannot perform voice awakening on the target application.
In the method for waking up an application according to the embodiment of the present invention, if the target application is set as a voice assistant application, signal communication may be performed based on the established bluetooth connection. The specific implementation can be as follows: based on Bluetooth connection, receiving a first wake-up instruction sent by wake-up equipment; and according to the received first wake-up instruction, controlling the target application to open a transmission link channel of the audio data so as to wake up the target application by voice.
The first wake-up instruction is an instruction sent by the wake-up device to the client, that is, under the condition that bluetooth connection is established between the wake-up device and the client and the target application is set as a voice assistant application, the wake-up device can directly send the wake-up instruction to the client, so that the target application can open a transmission link channel of audio data, voice wake-up of the target application can be achieved through the transmission link channel of the audio data, and specific voice operation can be further executed. In the embodiment of the present invention, the transmission link of the audio data may be an SCO (i.e., a bidirectional transmission link of audio data), or may be other audio transmission links, which is not limited thereto. For example, when a user sets an application installed on a mobile phone as a voice assistant application, the bluetooth headset may issue a wake-up instruction to the mobile phone, the mobile phone may open the application, and then the application opens an SCO channel to start subsequent operations such as recording. Of course, the mobile phone and the Bluetooth headset are connected through Bluetooth in advance, that is to say, a Bluetooth information transmission channel is established between the mobile phone and the Bluetooth headset, and data transmission can be carried out between the mobile phone and the Bluetooth headset.
In the method for waking up an application in the embodiment of the present invention, a main innovation point is that voice wake-up can be performed by using BLE connection in the case that a target application is not set as a voice assistant application. It is noted that the requirement for voice wakeup using BLE connection is that the target application is in a live state, stated another way, the process of the target application is still running in the client system and is not killed, for example, the user sets the target application in the background, but does not kill the target application. Therefore, in the case that the target application is in a surviving state, the method for waking up the application before scanning whether the wake-up device has the BLE function by the target application may further include: and judging whether the target application is in a survival state, if so, scanning whether the wake-up equipment has a BLE function, and if not, confirming that voice wake-up cannot be carried out on the target application. That is, in the case where the client establishes a bluetooth connection with the wake-up device and the target application is not set as a voice assistant application, it is necessary to determine that the process of the target application is still running in the client system, and if the process of the target application is not running in the client system, it is indicated that voice wake-up cannot be performed on the target application. Assuming that the target application is a communication application and the communication application is in a non-survival state, the object that the user needs to contact cannot be dialed through voice.
In addition, in the method for waking up the application, based on the BLE connection, voice wake-up is performed on the target application according to the second wake-up instruction, so that the BLE connection has important significance. Thus, as a further referenceable embodiment of the invention, a method of waking up an application may further comprise: and under the condition that the target application is in a survival state, scanning whether the wake-up equipment has a BLE function or not through the target application, and if so, establishing BLE connection between the target application and the wake-up equipment.
Further, scanning, by the target application, whether the wake-up device has a BLE function, and if so, establishing a BLE connection between the target application and the wake-up device may include: judging whether the service identifier broadcasted by the wake-up equipment is scanned by the target application; if yes, establishing BLE connection by using the service identifier according to a preset BLE connection protocol. Wherein the service identity is a BLE identity broadcast by a BLE-capable wake-up device. The specific implementation can be described as: the target application scans surrounding devices, and after scanning the BLE identifier broadcasted by the wake-up device with the BLE function, the BLE connection between the target application and the wake-up device can be established by using a preset BLE connection protocol. It is assumed that the wake-up device with BLE function will broadcast a serviceID, and the target application will scan the serviceID when scanning, so that the wake-up device and the target application can perform BLE connection with the wake-up device according to a preset protocol, for example, if the serviceID is a special value d618d 000-6000-1000-8000-000000000000.
As mentioned above, in case the target application is not set as a voice helper application, the target application may be voice-awakened using the BLE connection. Therefore, as a further reference embodiment of the present invention, performing voice wake-up on the target application according to the second wake-up instruction based on the BLE connection may include: receiving a second wake-up instruction sent by the wake-up device based on BLE connection between the target application and the wake-up device; and according to the received second wake-up instruction, controlling the target application to open a transmission link channel of the audio data so as to wake up the target application by voice.
The first wake-up instruction is an instruction sent by the wake-up device to the target application, that is to say, under the condition that Bluetooth connection is established between the wake-up device and the client and BLE connection is established between the target application and the wake-up device, the wake-up device can directly send the wake-up instruction to the target application through the BLE connection, so that the target application can open a transmission link channel of audio data, voice wake-up of the target application can be achieved through the transmission link channel of the audio data, and specific voice operation can be further executed. In the embodiment of the present invention, the transmission link of the audio data may be an SCO (i.e., a bidirectional transmission link of audio data), or may be other audio transmission links, which is not limited thereto. For example, when a user sets an application installed on a mobile phone as a voice assistant application, the bluetooth headset may issue a wake-up instruction to the mobile phone, the mobile phone may open the application, and then the application opens an SCO channel to start subsequent operations such as recording.
In the method for waking up the application, the main innovation point is that voice wake-up can be performed according to the BLE connection and the second wake-up instruction under the condition that the client side and the wake-up device are connected in a Bluetooth mode and the target application is not set as the voice assistant application. Fig. 2 is a schematic diagram of the main flow of a method for voice waking up a target application according to a BLE connection and a second wake-up instruction according to an embodiment of the present invention. As shown in fig. 2, the main flow of the method for performing voice wakeup on a target application according to BLE connection and a second wakeup instruction may include:
step S201, judging whether the target application is in a survival state, if so, executing step S202, and if not, executing step S206;
step S202, judging whether the service identifier broadcasted by the wake-up device is scanned by the target application, if yes, executing step S203, and if not, executing step S206;
step S203, according to a preset BLE connection protocol, a BLE connection between a target application and wake-up equipment is established by using a service identifier;
step S204, receiving a second wake-up instruction sent by wake-up equipment to a target application based on the established BLE connection;
step S205, according to the received second wake-up instruction, controlling the target application to open a transmission link channel of the audio data so as to wake up the target application by voice;
step S206, confirming that the target application can not be wakened up by voice.
It is noted that, in step S202, it is determined whether the service identifier broadcast by the wake-up device is scanned into the service identifiers broadcast by the wake-up device by the target application, the service identifier broadcast by the wake-up device may refer to a BLE identifier broadcast by the wake-up device with a BLE function. Also, the precondition for performing steps S201 to S206 is that the client establishes a bluetooth connection with the wake-up device and the target application is not set as a voice assistant application.
Fig. 3 is a schematic diagram of the main flow of a method of waking up an application according to an embodiment of the present invention. As shown in fig. 3, the main flow of the method for waking up an application according to an embodiment of the present invention may include:
step S301, judging whether the client and the wake-up device establish Bluetooth connection, if yes, executing step S302, and if not, executing step S310;
step S302, judging whether the target application installed on the client is set as a voice assistant application, if yes, executing step S303, and if not, executing step S305;
step S303, based on Bluetooth connection, receiving a first wake-up instruction sent by wake-up equipment to a client;
step S304, according to the received first wake-up instruction, controlling the target application to open a transmission link channel of audio data so as to wake-up the target application by voice;
step S305, judging whether the target application is in a survival state, if so, executing step S306, and if not, executing step S310;
step S306, judging whether the service identifier broadcasted by the wake-up device is scanned by the target application, if yes, executing step S307, and if not, executing step S310;
step S307, according to a preset BLE connection protocol, a BLE connection between a target application and wake-up equipment is established by using a service identifier;
step S308, receiving a second wake-up instruction sent by wake-up equipment to a target application based on the established BLE connection;
step S309, according to the received second wake-up instruction, controlling the target application to open a transmission link channel of the audio data so as to wake-up the target application by voice;
step S310, confirming that voice wakeup of the target application is not possible.
It can be obtained that, when the wake-up device is not connected with the target application installed on the client, but the wake-up device and the client keep bluetooth connection, if the target application is set as a voice assistant application, the wake-up device can send a wake-up instruction to the client, so that voice wake-up can be performed on the target application; when the wake-up device and the client keep Bluetooth connection, but the target application is not set as a voice assistant application, the wake-up device establishes BLE connection with the target application installed on the client, and the wake-up device can send a wake-up instruction to the target application, so that voice wake-up can be carried out on the target application; in the case where the wake-up device and the client maintain bluetooth connection and the wake-up device and the target application installed on the client do not establish connection, the wake-up device does not issue a wake-up instruction, because in this case, the wake-up device cannot perform data transmission with the client.
According to the processing scheme of the wake-up application, the target application can be directly subjected to voice wake-up under the condition that the target application is set as the voice assistant application, and the target application can be subjected to voice wake-up by using BLE connection under the condition that the target application is not set as the voice assistant application, so that the technical problem that the application cannot be woken up and cannot be subjected to voice wake-up when a user does not set the application as the voice assistant application in the prior art is solved, and the user experience is improved.
Fig. 4 is a schematic diagram of the main modules of an apparatus for waking up an application according to an embodiment of the present invention. As shown in fig. 4, an apparatus 400 for waking up an application according to an embodiment of the present invention may include: a judging module 401, a first operating module 402 and a second operating module 403.
The judging module 401 may be configured to judge whether a target application installed on the client is set as a voice assistant application in a case where the client establishes a bluetooth connection with the wake-up device; the first operation module 402 may be configured to perform voice wakeup on the target application according to a first wakeup instruction based on bluetooth connection, where the target application is set as a voice assistant application; the second operation module 403 may be configured to perform voice wakeup on the target application according to a second wakeup instruction based on the BLE connection, in a case where the target application is not set as the voice assistant application.
In the embodiment of the present invention, the second operation module 403 may be further configured to: and under the condition that the target application is in a survival state, scanning whether the wake-up equipment has a BLE function or not through the target application, and if so, establishing BLE connection between the target application and the wake-up equipment.
In the embodiment of the present invention, the second operation module 403 may be further configured to: based on BLE connection between the target application and the wake-up device, receiving a second wake-up instruction sent by the wake-up device, wherein the second wake-up instruction is an instruction sent by the wake-up device to the target application; and according to the received second wake-up instruction, controlling the target application to open a transmission link channel of the audio data so as to wake up the target application by voice.
In the embodiment of the present invention, the second operation module 403 may be further configured to: judging whether the service identifier broadcasted by the wake-up equipment is scanned by the target application; if yes, establishing BLE connection by using the service identifier according to a preset BLE connection protocol.
In an embodiment of the present invention, the first operation module 402 may be further configured to: based on Bluetooth connection, receiving a first wake-up instruction sent by wake-up equipment, wherein the first wake-up instruction is an instruction sent by the wake-up equipment to a client; and according to the received first wake-up instruction, controlling the target application to open a transmission link channel of the audio data so as to wake up the target application by voice.
In the embodiment of the present invention, the judging module 401 may further be configured to: and judging whether a Bluetooth connection is established, if so, judging whether the target application is set as a voice assistant application, and if not, confirming that voice wakeup can not be carried out on the target application.
In the embodiment of the present invention, the judging module 401 may further be configured to: and judging whether the target application is in a survival state, if so, scanning whether the wake-up equipment has a BLE function, and if not, confirming that voice wake-up cannot be carried out on the target application.
As can be seen from the above description, in the device for waking up an application according to the embodiment of the present invention, when a target application is set as a voice assistant application, voice wake-up can be directly performed on the target application, and when the target application is not set as a voice assistant application, voice wake-up can be performed on the target application by using BLE connection, which solves the technical problem in the prior art that when a user does not set the application as a voice assistant application, the application cannot be woken up, and voice wake-up cannot be performed, and improves user experience.
Fig. 5 illustrates an exemplary system architecture 500 of a method of waking up an application or a device of waking up an application to which embodiments of the present invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is used as a medium to provide communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 505 via the network 504 using the terminal devices 501, 502, 503 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 501, 502, 503, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (by way of example only) providing support for shopping-type websites browsed by users using the terminal devices 501, 502, 503. The background management server may analyze and process the received data such as the product information query request, and feedback the processing result (e.g., the target push information, the product information—only an example) to the terminal device.
It should be noted that, the method for waking up an application provided in the embodiment of the present invention is generally executed by the server 505, and accordingly, a device for waking up an application is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, there is illustrated a schematic diagram of a computer system 600 suitable for use in implementing an embodiment of the present invention. The terminal device shown in fig. 6 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 601.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a determination module, a first operation module, and a second operation module. The names of these modules do not limit the module itself in some cases, and for example, the determination module may also be described as "a module that determines whether a target application installed on a client is set as a voice assistant application in the case where the client establishes a bluetooth connection with a wake-up device".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include: under the condition that the client establishes Bluetooth connection with the wake-up device, judging whether a target application installed on the client is set as a voice assistant application or not; under the condition that the target application is set as a voice assistant application, carrying out voice wakeup on the target application according to a first wakeup instruction based on Bluetooth connection; and under the condition that the target application is not set as the voice assistant application, performing voice wakeup on the target application according to a second wakeup instruction based on BLE connection.
According to the technical scheme of the embodiment of the invention, the target application can be directly awakened by voice under the condition that the target application is set as the voice assistant application, and the target application can be awakened by voice by using BLE connection under the condition that the target application is not set as the voice assistant application, so that the technical problem that the application cannot be awakened and cannot be awakened by voice when the user does not set the application as the voice assistant application in the prior art is solved, and the user experience is improved.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (9)

1. A method of waking an application, comprising:
under the condition that a client establishes Bluetooth connection with wake-up equipment, judging whether a target application installed on the client is set as a voice assistant application or not;
performing voice wakeup on the target application according to a first wakeup instruction based on the Bluetooth connection under the condition that the target application is set to be the voice assistant application;
and under the condition that the target application is not set as the voice assistant application, performing voice wakeup on the target application according to a second wakeup instruction based on BLE connection, wherein the voice wakeup comprises the following steps: receiving a second wake-up instruction sent by the wake-up device based on BLE connection between the target application and the wake-up device, wherein the second wake-up instruction is an instruction sent by the wake-up device to the target application; and according to the received second awakening instruction, controlling the target application to open a transmission link channel of the audio data so as to carry out voice awakening on the target application.
2. The method of claim 1, wherein prior to voice waking the target application according to a second wake-up instruction based on a BLE connection, the method further comprises:
and under the condition that the target application is in a survival state, scanning whether the wake-up equipment has a BLE function or not through the target application, and if so, establishing BLE connection between the target application and the wake-up equipment.
3. The method according to claim 2, wherein the scanning by the target application whether the wake-up device is BLE-capable, and if so, establishing a BLE connection between the target application and the wake-up device, comprises:
judging whether the service identifier broadcasted by the awakening equipment is scanned by the target application;
if yes, the BLE connection is established by using the service identifier according to a preset BLE connection protocol.
4. The method of claim 1, wherein the voice waking of the target application according to a first wake-up instruction based on the bluetooth connection comprises:
based on the Bluetooth connection, receiving the first wake-up instruction sent by the wake-up device, wherein the first wake-up instruction is an instruction sent by the wake-up device to the client;
and controlling the target application to open a transmission link channel of the audio data according to the received first awakening instruction so as to carry out voice awakening on the target application.
5. The method of claim 1, wherein in the event that a client establishes a bluetooth connection with a wake device, determining whether a target application installed on the client is set as a voice assistant application, the method further comprises:
and judging whether the Bluetooth connection is established, if so, judging whether the target application is set as the voice assistant application, and if not, confirming that voice wakeup can not be carried out on the target application.
6. The method of claim 2, wherein, in the case where the target application is in a surviving state, before scanning by the target application whether the wake-up device is BLE-capable, the method further comprises:
and judging whether the target application is in a survival state, if so, scanning whether the awakening device has a BLE function, and if not, confirming that voice awakening can not be carried out on the target application.
7. An apparatus for waking an application, comprising:
the judging module is used for judging whether a target application installed on the client is set as a voice assistant application or not under the condition that the client establishes Bluetooth connection with the awakening equipment;
the first operation module is used for carrying out voice wakeup on the target application according to a first wakeup instruction based on the Bluetooth connection under the condition that the target application is set to be the voice assistant application;
a second operation module, configured to perform, based on BLE connection, voice wakeup on the target application according to a second wakeup instruction, where the target application is not set as the voice assistant application, where the second operation module includes: receiving a second wake-up instruction sent by the wake-up device based on BLE connection between the target application and the wake-up device, wherein the second wake-up instruction is an instruction sent by the wake-up device to the target application; and according to the received second awakening instruction, controlling the target application to open a transmission link channel of the audio data so as to carry out voice awakening on the target application.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-6.
9. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-6.
CN201911375775.6A 2019-12-27 2019-12-27 Method and device for waking up application Active CN113053370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911375775.6A CN113053370B (en) 2019-12-27 2019-12-27 Method and device for waking up application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911375775.6A CN113053370B (en) 2019-12-27 2019-12-27 Method and device for waking up application

Publications (2)

Publication Number Publication Date
CN113053370A CN113053370A (en) 2021-06-29
CN113053370B true CN113053370B (en) 2024-04-05

Family

ID=76506206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911375775.6A Active CN113053370B (en) 2019-12-27 2019-12-27 Method and device for waking up application

Country Status (1)

Country Link
CN (1) CN113053370B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114594847A (en) * 2022-03-01 2022-06-07 紫光计算机科技有限公司 Computer energy-saving state control method and device and computer

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8793139B1 (en) * 2013-11-06 2014-07-29 Nexgen Flight LLC. Voice activated cockpit management system for flight procedures and control of aircraft systems and flight management systems of single and multi-engine aircraft
CN104506910A (en) * 2014-12-31 2015-04-08 青岛歌尔声学科技有限公司 Remote control method and dual-mode Bluetooth remote controller
CN105141998A (en) * 2015-08-19 2015-12-09 广州高清视信数码科技股份有限公司 Smart television voice remote controller control method and system based on DLNA (Digital Living Network Alliance)
CN105161110A (en) * 2015-08-19 2015-12-16 百度在线网络技术(北京)有限公司 Bluetooth connection-based speech recognition method, device and system
CN107122179A (en) * 2017-03-31 2017-09-01 阿里巴巴集团控股有限公司 The function control method and device of voice
CN107135467A (en) * 2017-04-28 2017-09-05 成都新橙北斗智联有限公司 A kind of dual-mode BLE application systems and method
CN108231072A (en) * 2017-12-08 2018-06-29 珠海格力电器股份有限公司 Device control device, method and device for embodying the device
CN208190881U (en) * 2018-06-11 2018-12-04 深圳市悦尔声学有限公司 A kind of bluetooth headset of one-key start blue-tooth intelligence terminal speech assistant application
CN108962240A (en) * 2018-06-14 2018-12-07 百度在线网络技术(北京)有限公司 A kind of sound control method and system based on earphone
CN110335597A (en) * 2019-06-24 2019-10-15 深圳市小魔信息技术有限公司 A kind of wake-up system and method under mobile phone screen lock state

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013094987A1 (en) * 2011-12-18 2013-06-27 인포뱅크 주식회사 Wireless terminal, and information-processing method for the wireless terminal
US9191832B2 (en) * 2013-06-06 2015-11-17 Apple Inc. Category-based fence

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8793139B1 (en) * 2013-11-06 2014-07-29 Nexgen Flight LLC. Voice activated cockpit management system for flight procedures and control of aircraft systems and flight management systems of single and multi-engine aircraft
CN104506910A (en) * 2014-12-31 2015-04-08 青岛歌尔声学科技有限公司 Remote control method and dual-mode Bluetooth remote controller
CN105141998A (en) * 2015-08-19 2015-12-09 广州高清视信数码科技股份有限公司 Smart television voice remote controller control method and system based on DLNA (Digital Living Network Alliance)
CN105161110A (en) * 2015-08-19 2015-12-16 百度在线网络技术(北京)有限公司 Bluetooth connection-based speech recognition method, device and system
CN107122179A (en) * 2017-03-31 2017-09-01 阿里巴巴集团控股有限公司 The function control method and device of voice
CN107135467A (en) * 2017-04-28 2017-09-05 成都新橙北斗智联有限公司 A kind of dual-mode BLE application systems and method
CN108231072A (en) * 2017-12-08 2018-06-29 珠海格力电器股份有限公司 Device control device, method and device for embodying the device
CN208190881U (en) * 2018-06-11 2018-12-04 深圳市悦尔声学有限公司 A kind of bluetooth headset of one-key start blue-tooth intelligence terminal speech assistant application
CN108962240A (en) * 2018-06-14 2018-12-07 百度在线网络技术(北京)有限公司 A kind of sound control method and system based on earphone
CN110335597A (en) * 2019-06-24 2019-10-15 深圳市小魔信息技术有限公司 A kind of wake-up system and method under mobile phone screen lock state

Also Published As

Publication number Publication date
CN113053370A (en) 2021-06-29

Similar Documents

Publication Publication Date Title
KR101382980B1 (en) System and method of sharing information between wireless devices
CN107889092B (en) Bluetooth device communication control method, device, terminal device and storage medium
KR20210096581A (en) Method, apparatus, device and storage medium for establishing wireless connection
CN111787517A (en) Method and device for binding activation of intelligent equipment
CN109510754B (en) Online document generation method, device and system and electronic equipment
CN110166791B (en) Connection establishing method, device, equipment and storage medium
US11558467B2 (en) Virtual personal agent leveraging natural language processing and machine learning
CN112311753A (en) Information interaction method and device and electronic equipment
CN112399358A (en) Telephone notification method, device, system, equipment and medium
US20200213844A1 (en) Communication method, communication apparatus and electronic device
CN113053370B (en) Method and device for waking up application
US9477943B2 (en) Multi-modality communication
CN111105797A (en) Voice interaction method and device and electronic equipment
CN111818500A (en) Method and device for establishing Bluetooth connection between mobile terminal and motor vehicle
CN111767176B (en) Method and device for remotely controlling terminal equipment
JP2008289142A (en) Cordless telephone system with ip network application
CN109660988A (en) Communicate authentication processing method, device and electronic equipment
CN113378041B (en) Prompt message pushing method, device, electronic equipment and computer readable medium
CN113766278B (en) Audio playing method, audio playing device and audio playing system
CN114461167A (en) Synchronous display flicker
CN113778367A (en) Voice interaction method, device, equipment and computer readable medium
CN105227435A (en) The method and apparatus of transmission of messages
CN113885341B (en) Method and device for equipment management
CN110557752B (en) Information protection method, information protection device, electronic equipment and computer readable medium
KR101361311B1 (en) Method of operating an application for providing a voice modulation service using mobile voice over internet protocol

Legal Events

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