CN111405105B - Method and apparatus for controlling bluetooth headset, and storage medium - Google Patents

Method and apparatus for controlling bluetooth headset, and storage medium Download PDF

Info

Publication number
CN111405105B
CN111405105B CN202010199753.5A CN202010199753A CN111405105B CN 111405105 B CN111405105 B CN 111405105B CN 202010199753 A CN202010199753 A CN 202010199753A CN 111405105 B CN111405105 B CN 111405105B
Authority
CN
China
Prior art keywords
command
bluetooth headset
command word
media
electronic device
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
CN202010199753.5A
Other languages
Chinese (zh)
Other versions
CN111405105A (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.)
Shenzhen Weiai Intelligent Co ltd
Original Assignee
Shenzhen Weiai Intelligent 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 Shenzhen Weiai Intelligent Co ltd filed Critical Shenzhen Weiai Intelligent Co ltd
Priority to CN202010199753.5A priority Critical patent/CN111405105B/en
Publication of CN111405105A publication Critical patent/CN111405105A/en
Application granted granted Critical
Publication of CN111405105B publication Critical patent/CN111405105B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6058Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
    • H04M1/6066Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone including a wireless connection
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/02Details of telephonic subscriber devices including a Bluetooth interface

Abstract

The present disclosure provides a method and apparatus for controlling a bluetooth headset, and a storage medium. One embodiment of the method comprises: recognizing user input voice collected by a Bluetooth headset to obtain a user command sentence; determining a command word set corresponding to the current working mode of the Bluetooth headset according to the corresponding relation between the preset working mode and the command word set; matching the user command sentence with each command word in the determined command word set respectively; in response to determining that the user command statement matches a target command word in the determined set of command words, executing a command corresponding to the target command word, and setting a current operating mode of the bluetooth headset according to an operating mode of the bluetooth headset after the bluetooth headset has executed the command corresponding to the target command word. The embodiment realizes that the voice of the user is directly recognized on the Bluetooth headset and corresponding operation is executed, and improves the voice operation efficiency of the user and the product experience of the user.

Description

Method and apparatus for controlling bluetooth headset, and storage medium
Technical Field
The present disclosure relates to the field of bluetooth headset technology, and in particular, to a method and apparatus for controlling a bluetooth headset, and a storage medium.
Background
The appearance of wireless Bluetooth headsets in recent years provides great convenience for people to use headsets for conversation and audio-visual entertainment. However, most wireless bluetooth headsets do not have voice command control functionality. When people want to perform operations such as adjusting the volume, controlling the media playing, answering or hanging up an incoming call, some manual operations are still needed to trigger or use the mobile phone to perform control.
There are also some wireless bluetooth headsets at present, when a user wants to operate a mobile phone or a bluetooth headset through a bluetooth headset by using a voice command, the user needs to speak a preset awakening word through the bluetooth headset to awaken a voice assistant application installed at a mobile phone end, then speak a command sentence corresponding to a desired operation, the bluetooth headset sends voice data spoken by the user to the mobile phone end, and then the voice data is identified by the mobile phone end or sent to a cloud end through the mobile phone end for identification, so that corresponding operation is executed according to an identification result. Therefore, in the scheme, the user needs to speak the awakening word before each operation, namely, only one preset awakening word can be used as the user intention entry in all scenes. In addition, the voice spoken by the user is not directly recognized and executed on the bluetooth headset, and the voice operation efficiency of the user is low and inconvenient.
Disclosure of Invention
The present disclosure provides a method and apparatus for controlling a bluetooth headset, and a storage medium.
In a first aspect, the present disclosure provides a method for controlling a bluetooth headset, applied to at least one processor in the bluetooth headset, the method comprising: recognizing user input voice collected by a Bluetooth headset to obtain a user command sentence; determining a command word set corresponding to the current working mode of the Bluetooth headset according to the corresponding relation between the preset working mode and the command word set; matching the user command sentence with each command word in the determined command word set respectively; in response to determining that the user command statement matches a target command word in the determined set of command words, executing a command corresponding to the target command word, and setting a current operating mode of the bluetooth headset according to an operating mode of the bluetooth headset after the bluetooth headset has executed the command corresponding to the target command word.
In some optional embodiments, determining a command word set corresponding to the current operating mode of the bluetooth headset according to a preset correspondence between the operating mode and the command word set includes: in response to determining that the current operating mode of the bluetooth headset is the standby mode, determining the set of command words corresponding to the current operating mode comprises: awakening the voice assistant application command word, starting the media playing command word and recovering the media playing command word; in response to determining that the current operating mode of the bluetooth headset is an incoming call ring mode, determining the set of command words corresponding to the current operating mode comprises: answering the incoming call command word and rejecting the incoming call command word; in response to determining that the current operating mode of the bluetooth headset is the media play mode, determining the set of command words corresponding to the current operating mode includes: waking up the voice assistant application command word, stopping playing the command word, pausing playing the command word, playing the previous command word, playing the next command word, increasing the volume command word, and decreasing the volume command word.
In some optional embodiments, in response to determining that the user command sentence matches a target command word in the determined set of command words, executing a command corresponding to the target command word, and setting the current operating mode of the bluetooth headset according to the operating mode of the bluetooth headset after the bluetooth headset has executed the command corresponding to the target command word, includes: in response to determining that the user command statement matches the wake voice assistant app command word, sending a launch command to the electronic device currently connected with the bluetooth headset instructing the electronic device to launch a voice assistant app installed on the electronic device.
In some optional embodiments, in response to determining that the user command sentence matches a target command word in the determined set of command words, executing a command corresponding to the target command word, and setting the current operating mode of the bluetooth headset according to the operating mode of the bluetooth headset after the bluetooth headset has executed the command corresponding to the target command word, includes: and in response to determining that the user command sentence matches the start media play command word, sending a start media play command to the electronic device currently connected with the bluetooth headset, the start media play command instructing the electronic device to start a media play application, and setting the current operating mode of the bluetooth headset to the media play mode.
In some optional embodiments, in response to determining that the user command sentence matches a target command word in the determined set of command words, executing a command corresponding to the target command word, and setting the current operating mode of the bluetooth headset according to the operating mode of the bluetooth headset after the bluetooth headset has executed the command corresponding to the target command word, includes: in response to determining that the user command statement matches the resume media play command word, sending a resume media play command to the electronic device currently connected with the bluetooth headset instructing the electronic device to resume media play, and setting a current operating mode of the bluetooth headset to a media play mode.
In some optional embodiments, in response to determining that the user command sentence matches a target command word in the determined set of command words, executing a command corresponding to the target command word, and setting the current operating mode of the bluetooth headset according to the operating mode of the bluetooth headset after the bluetooth headset has executed the command corresponding to the target command word, includes: and responding to the fact that the user command sentence is matched with the incoming call answering command word, and sending an incoming call answering command for indicating the electronic equipment to answer the incoming call to the electronic equipment connected with the Bluetooth headset currently.
In some optional embodiments, in response to determining that the user command sentence matches a target command word in the determined set of command words, executing a command corresponding to the target command word, and setting the current operating mode of the bluetooth headset according to the operating mode of the bluetooth headset after the bluetooth headset has executed the command corresponding to the target command word, includes: and in response to determining that the user command sentence is matched with the incoming call rejection command word, sending an incoming call rejection command for indicating that the electronic equipment rejects the incoming call to the electronic equipment currently connected with the Bluetooth headset, and setting the current working mode of the Bluetooth headset to a standby mode.
In some optional embodiments, in response to determining that the user command sentence matches a target command word in the determined set of command words, executing a command corresponding to the target command word, and setting the current operating mode of the bluetooth headset according to the operating mode of the bluetooth headset after the bluetooth headset has executed the command corresponding to the target command word, includes: in response to determining that the user command statement matches the stop playing command word, sending a stop playing media command to the electronic device currently connected to the bluetooth headset instructing the electronic device to stop playing media, and setting a current operating mode of the bluetooth headset to a standby mode.
In some optional embodiments, in response to determining that the user command sentence matches a target command word in the determined set of command words, executing a command corresponding to the target command word, and setting the current operating mode of the bluetooth headset according to the operating mode of the bluetooth headset after the bluetooth headset has executed the command corresponding to the target command word, includes: in response to determining that the user command statement matches the pause command word, sending a pause media command to the electronic device currently connected to the bluetooth headset instructing the electronic device to pause playing media, and setting a current operating mode of the bluetooth headset to a standby mode.
In some optional embodiments, in response to determining that the user command sentence matches a target command word in the determined set of command words, executing a command corresponding to the target command word, and setting the current operating mode of the bluetooth headset according to the operating mode of the bluetooth headset after the bluetooth headset has executed the command corresponding to the target command word, includes: and in response to determining that the user command sentence matches the previous command word for playing, sending a previous media playing command to the electronic device currently connected with the Bluetooth headset, the previous media playing command instructing the electronic device to play the previous media.
In some optional embodiments, in response to determining that the user command sentence matches a target command word in the determined set of command words, executing a command corresponding to the target command word, and setting the current operating mode of the bluetooth headset according to the operating mode of the bluetooth headset after the bluetooth headset has executed the command corresponding to the target command word, includes: in response to determining that the user command statement matches the play next command word, sending a play next media command to the electronic device currently connected to the bluetooth headset instructing the electronic device to play the next media.
In some optional embodiments, in response to determining that the user command sentence matches a target command word in the determined set of command words, executing a command corresponding to the target command word, and setting the current operating mode of the bluetooth headset according to the operating mode of the bluetooth headset after the bluetooth headset has executed the command corresponding to the target command word, includes: in response to determining that the user command sentence matches the volume up command word, increasing the volume of the bluetooth headset by a preset volume, or sending a volume up command to an electronic device currently connected with the bluetooth headset to instruct the electronic device to increase the volume.
In some optional embodiments, in response to determining that the user command sentence matches a target command word in the determined set of command words, executing a command corresponding to the target command word, and setting the current operating mode of the bluetooth headset according to the operating mode of the bluetooth headset after the bluetooth headset has executed the command corresponding to the target command word, includes: in response to determining that the user command statement matches the volume-down command word, reducing the volume of the bluetooth headset by a preset volume, or sending a volume-down command to an electronic device currently connected with the bluetooth headset instructing the electronic device to reduce the volume.
In some optional embodiments, the at least one processor in the bluetooth headset comprises a low power processor and/or a bluetooth protocol control processor.
In a second aspect, the present disclosure provides an apparatus for controlling a bluetooth headset, applied to at least one processor in the bluetooth headset, the apparatus comprising: the recognition unit is configured to recognize user input voice collected by the Bluetooth headset to obtain a user command sentence; the command word set determining unit is configured to determine a command word set corresponding to the current working mode of the Bluetooth headset according to the corresponding relation between the preset working mode and the command word set; a matching unit configured to match the user command sentence with each command word in the determined command word set respectively; an execution unit configured to execute a command corresponding to a target command word in response to determining that the user command sentence matches the target command word in the determined set of command words, and set a current operating mode of the bluetooth headset according to an operating mode of the bluetooth headset after the bluetooth headset has executed the command corresponding to the target command word.
In some optional embodiments, the command word set determining unit includes: a standby mode command word determination module configured to, in response to determining that a current operating mode of the bluetooth headset is a standby mode, determine a set of command words corresponding to the current operating mode including: awakening the voice assistant application command word, starting the media playing command word and recovering the media playing command word; an incoming call ringing mode command word determination module configured to, in response to determining that a current operating mode of the bluetooth headset is an incoming call ringing mode, determine a set of command words corresponding to the current operating mode comprising: answering the incoming call command word and rejecting the incoming call command word; a media play mode command word determination module configured to, in response to determining that the current operating mode of the bluetooth headset is the media play mode, determine a set of command words corresponding to the current operating mode including: waking up the voice assistant application command word, stopping playing the command word, pausing playing the command word, playing the previous command word, playing the next command word, increasing the volume command word, and decreasing the volume command word.
In some optional embodiments, the execution unit comprises: a voice assistant app launch module configured to send a launch command to an electronic device currently connected with the bluetooth headset instructing the electronic device to launch a voice assistant app installed on the electronic device in response to determining that the user command statement matches the wake voice assistant app command word.
In some optional embodiments, the execution unit comprises: a start media play module configured to send a start media play command to an electronic device currently connected with the bluetooth headset to instruct the electronic device to start a media play application in response to determining that the user command sentence matches the start media play command word, and set a current operating mode of the bluetooth headset to a media play mode.
In some optional embodiments, the execution unit comprises: a resume media play module configured to: in response to determining that the user command statement matches the resume media play command word, sending a resume media play command to the electronic device currently connected with the bluetooth headset instructing the electronic device to resume media play, and setting a current operating mode of the bluetooth headset to a media play mode.
In some optional embodiments, the execution unit comprises: and the call answering module is configured to respond to the fact that the user command sentence is matched with the call answering command word, and send a call answering command for instructing the electronic equipment to answer the call to the electronic equipment which is connected with the Bluetooth headset currently.
In some optional embodiments, the execution unit comprises: and the call refusing module is configured to respond to the determination that the user command statement is matched with the call refusing command word, send a call refusing command for indicating the electronic equipment to refuse the call to the electronic equipment currently connected with the Bluetooth headset, and set the current working mode of the Bluetooth headset to be a standby mode.
In some optional embodiments, the execution unit comprises: a stop play module configured to send a stop play media command to an electronic device currently connected to the Bluetooth headset to instruct the electronic device to stop playing media in response to determining that the user command sentence matches the stop play command word, and set a current operating mode of the Bluetooth headset to a standby mode.
In some optional embodiments, the execution unit comprises: a pause play module configured to send a pause play media command to the electronic device currently connected with the Bluetooth headset to instruct the electronic device to pause playing of media in response to determining that the user command sentence matches the pause play command word, and set a current operating mode of the Bluetooth headset to a standby mode.
In some optional embodiments, the execution unit comprises: a play last module configured to send a play last media command to the electronic device currently connected with the Bluetooth headset to instruct the electronic device to play the last media in response to determining that the user command sentence matches the play last command word.
In some optional embodiments, the execution unit comprises: a play next module configured to send a play next media command to the electronic device currently connected with the Bluetooth headset instructing the electronic device to play the next media in response to determining that the user command sentence matches the play next command word.
In some optional embodiments, the execution unit comprises: a volume up module configured to increase the volume of the Bluetooth headset by a preset volume or send a volume up command instructing the electronic device to increase the volume to an electronic device currently connected with the Bluetooth headset in response to determining that the user command sentence matches the volume up command word.
In some optional embodiments, the execution unit comprises: a volume-down module configured to reduce the volume of the Bluetooth headset by a preset volume or send a volume-down command instructing the electronic device to reduce the volume to an electronic device currently connected with the Bluetooth headset in response to determining that the user command sentence matches the volume-down command word.
In some optional embodiments, the at least one processor in the bluetooth headset comprises a low power processor and/or a bluetooth protocol control processor.
In a third aspect, the present disclosure provides a bluetooth headset, comprising: an interface; a memory having at least one program stored thereon; and at least one processor operatively connected to the interface and the memory; the at least one program, when executed by the at least one processor, causes the at least one processor to be configured to implement a method as described in any implementation of the first aspect.
In some optional embodiments, the at least one processor comprises a low power processor and/or a bluetooth protocol control processor.
In a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by at least one processor, causes the at least one processor to be configured to implement a method as described in any of the implementations of the first aspect.
According to the method and the device for controlling the Bluetooth headset, the Bluetooth headset and the storage medium, the user command sentences are obtained by directly identifying the voice data of the user in the Bluetooth headset, different command word sets are respectively activated according to different current working modes of the Bluetooth headset, and corresponding operation is executed if the user command sentences are matched with the command words in the currently activated command word sets. That is, a user can directly, simply and conveniently realize corresponding operations that can be executed in different scenes by speaking command words corresponding to the scenes, and the technical effects of the method may include but are not limited to: firstly, hands of a user are liberated, the user can operate the Bluetooth headset or the electronic device connected with the Bluetooth headset without touching and controlling the headset or operating the electronic device connected with the Bluetooth headset by hands, and the operation efficiency of the user on the Bluetooth headset or the electronic device connected with the Bluetooth headset is improved; secondly, the user does not need to wake up the equipment for one time in advance, but can execute the control operation on the Bluetooth headset or the electronic equipment connected with the Bluetooth headset by directly speaking the related command words corresponding to the current working mode, so that the user operation is facilitated; third, voice recognition and command word matching are performed inside the bluetooth headset, without sending voice data to the electronic device connected to the bluetooth headset, and the process of controlling the bluetooth headset or the electronic device connected to the bluetooth headset by voice is more efficient and convenient for the user.
Drawings
Other features, objects and advantages of the disclosure will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present disclosure may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for controlling a Bluetooth headset according to the present disclosure;
FIG. 3 is a flow chart of yet another embodiment of a method for controlling a Bluetooth headset according to the present disclosure;
FIG. 4 is a schematic diagram of an application scenario according to the method for controlling a Bluetooth headset shown in FIG. 3;
FIG. 5 is a schematic block diagram illustrating one embodiment of an apparatus for controlling a Bluetooth headset according to the present disclosure;
fig. 6 is a hardware architecture diagram of one embodiment of a bluetooth headset suitable for use in implementing the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the disclosed method for controlling a bluetooth headset or apparatus for controlling a bluetooth headset may be applied.
As shown in fig. 1, the system architecture 100 may include a bluetooth headset 101 and a terminal device 102. The terminal device 102 may establish a connection with the bluetooth headset 101 via a wireless communication link based on the bluetooth protocol.
The terminal device 102 may be various electronic devices supporting the bluetooth protocol, including but not limited to a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), a laptop computer, a desktop computer, and the like.
The bluetooth headset 101 may be provided with at least one processor.
It should be noted that the method for controlling the bluetooth headset provided by the present disclosure is generally performed by the bluetooth headset 101, and accordingly, the apparatus for controlling the bluetooth headset is generally disposed in the bluetooth headset 101.
It should be noted that the method for controlling the smart headset provided in the present disclosure may be executed by one processor in the bluetooth headset, may also be executed by two processors in the bluetooth headset, and may also be executed by more than two processors in the bluetooth headset.
In an alternative implementation, the at least one processor in the bluetooth headset may include a low power processor that may be configured to perform the method for controlling a smart headset provided by the present disclosure, and the low power processor may also be simultaneously configured to process bluetooth protocol data. Like this, the treater quantity is less among the bluetooth headset, and bluetooth headset's volume is less, and because the low-power consumption of low-power consumption treater and the characteristics that computing power is strong, the bluetooth headset that this optional implementation mode realized can the quick response user's voice request to and can prolong standby time, reduce the number of times of charging.
In an alternative implementation, the at least one processor in the bluetooth headset may also include a bluetooth protocol control processor, which may be configured to perform the method for controlling the smart headset provided by the present disclosure, while also being configured to process bluetooth protocol data as the bluetooth protocol control processor. Therefore, the number of processors in the Bluetooth headset is small, the size of the Bluetooth headset is relatively small, and the cost of the Bluetooth headset can be reduced due to the fact that the cost of the Bluetooth protocol control processor is low.
In an alternative implementation, the at least one processor in the bluetooth headset may include a low power processor and a bluetooth protocol control processor. Wherein the low power processor is configured to perform the method for controlling a smart headset provided by the present disclosure, and the bluetooth protocol control processor is configured to process bluetooth protocol data.
In an alternative implementation, the at least one processor in the bluetooth headset may include a low power processor and a bluetooth protocol control processor. Wherein the bluetooth protocol control processor is configured to process bluetooth protocol data. The method for controlling the smart headset provided by the present disclosure may be performed by a low power processor and a bluetooth protocol control processor in the bluetooth headset. For example, recognizing the user input voice collected by the bluetooth headset to obtain a user command sentence may be executed by the low power consumption processor, determining a command word set corresponding to the current operating mode of the bluetooth headset according to a preset corresponding relationship between an operating mode and the command word set, matching the user command sentence with each command word in the determined command word set, executing a command corresponding to a target command word in response to determining that the user command sentence is matched with the target command word in the determined command word set, and setting the current operating mode of the bluetooth headset according to the operating mode after the bluetooth headset executes the command corresponding to the target command word may be executed by the bluetooth protocol control processor. Therefore, the processors in the Bluetooth headset are clearly divided, the response speed of the Bluetooth headset to the voice request of the user can be further improved, the standby time of the Bluetooth headset is prolonged, and the charging times are reduced.
It should be noted that, as the bluetooth headset, the bluetooth headset 101 may further include some devices necessary for completing the function of the bluetooth headset wirelessly playing voice data, for example: a charging module, a microphone and a speaker, etc.
With continuing reference to fig. 2, a flow 200 of one embodiment of a method for controlling a bluetooth headset according to the present disclosure is shown, applied to at least one processor in a bluetooth headset, the method for controlling a bluetooth headset comprising the steps of:
step 201, recognizing the user input voice collected by the bluetooth headset to obtain a user command statement.
In this embodiment, an executing body (for example, the bluetooth headset shown in fig. 1) of the method for controlling the bluetooth headset may first acquire the user input voice collected by the bluetooth headset, and then perform voice recognition on the acquired user input voice to obtain the user command sentence.
In this embodiment, the execution main body may use voice data collected by the bluetooth headset in real time as the user input voice. For example, the user input voice may be a voice data segment of a specified length of time or a specified number of data frames collected in real time by the bluetooth headset. For example, assuming that each frame of voice data collected by the bluetooth headset corresponds to 10 milliseconds of voice, 200 frames (i.e., corresponding to 2 seconds) of voice data continuously collected by the bluetooth headset in real time can be used as the user input voice. For another example, the voice input by the user may also be a voice data segment acquired in real time by using bluetooth and acquired by using a sliding window method, that is, each time voice data of a frame with a preset window length is acquired, the first frame data of the voice data acquired next time slides backwards by using a preset sliding step frame relative to the first frame of the voice data acquired last time, where both the preset window length and the preset sliding step length may be customized. For example, the user input voice may also be a voice data segment in which the average value of the voice signal amplitudes collected by the bluetooth headset in real time exceeds a preset signal amplitude threshold.
It should be noted that how to perform voice recognition on the input voice of the user is the existing technology which is widely researched and applied at present, and the disclosure does not specifically limit this technology.
Step 202, determining a command word set corresponding to the current working mode of the bluetooth headset according to the corresponding relation between the preset working mode and the command word set.
In this embodiment, the execution main body may store the correspondence between the operation mode and the command word set in advance by using various implementation manners. For example, the correspondence between the operation mode and the set of command words may be stored in a configuration file. For another example, the correspondence between the operation mode and the command word set may also be stored in a code file in which the above-described method logic for controlling a bluetooth headset is located.
The corresponding relationship between the preset working mode and the command word set can be summarized, summarized and formulated by technical experts according to different working modes of the bluetooth headset in practice, wherein the technical experts can only execute various commands corresponding to the corresponding working modes. The different working modes of the bluetooth headset form a preset working mode set, and the current working mode of the bluetooth headset may be a working mode in the preset working mode set. The Bluetooth headset or the electronic equipment connected with the Bluetooth headset can update the current working mode of the Bluetooth headset in real time according to the current working condition of the Bluetooth headset. The working mode in the correspondence between the preset working mode and the command word set may be a working mode in the preset working mode set. The command word sets corresponding to different working modes are different. The command words corresponding to different operation modes may be completely different, i.e. may not include the same command word. The command words corresponding to different operation modes may also be partially identical, i.e. may include at least one identical command word.
The length of the command word in the command word set corresponding to each operating mode is not specifically limited in this disclosure, and for example, the command word may be a single word, a phrase, a short sentence, or the like.
In this way, when the execution main body executes step 202, the command word set corresponding to the current operating mode of the bluetooth headset may be determined according to the pre-stored correspondence between the preset operating mode and the command word set.
Step 203, matching the user command sentence with each command word in the determined command word set.
In this embodiment, the execution body may adopt various implementations to match the user command sentence obtained in step 201 with each command word in the command word set determined in step 202.
For example, the execution body may determine, for each command word in the determined command word set, whether the user command sentence includes the command word; if it is determined to be included, it is determined that the user command sentence matches the command word, and if it is determined to be not included, it is determined that the user command sentence does not match the command word.
For another example, the execution subject may calculate, for each command word in the determined command word set, a text similarity between the user command sentence and the command word; and if the calculated text similarity is greater than a preset similarity threshold, determining that the user command sentence is matched with the command word, and if the calculated text similarity is not greater than the preset similarity threshold, determining that the user command sentence is not matched with the command word.
And 204, responding to the fact that the command sentence of the user is matched with the target command word in the determined command word set, executing a command corresponding to the target command word, and setting the current working mode of the Bluetooth headset according to the working mode of the Bluetooth headset after the Bluetooth headset executes the command corresponding to the target command word.
In this embodiment, after the step 203 is executed, if it is determined that the user command sentence matches the target command word in the determined command word set, the execution main body may execute the command corresponding to the target command word, and set the current operating mode of the bluetooth headset according to the operating mode of the bluetooth headset after the bluetooth headset executes the command corresponding to the target command word.
In this embodiment, each command word in the correspondence between the preset operating mode and the command word set corresponds to a corresponding command. Typically, different command words correspond to different commands. However, in order to increase the flexibility of the method of controlling the bluetooth headset by the user, different command words may correspond to the same command. For example, "play next" and "next" may be two different command words, but the commands corresponding to the two command words may be the same, and both of the commands may be the same, so that the electronic device connected to the bluetooth headset switches to the next piece of music currently playing music to play. In addition, when different command words correspond to the same command, it is necessary to ensure that command word sets corresponding to different operating modes are not identical, and it is also necessary to ensure that commands corresponding to command word sets corresponding to different operating modes are not identical. Colloquially, the commands that can be executed in a bluetooth headset in different operating modes are different.
According to the method provided by the embodiment of the disclosure, the voice input by the user is directly recognized in the Bluetooth headset, and if the voice of the user is matched with the command word corresponding to the current working mode, the corresponding command is executed, so that the user can directly, simply and conveniently execute the corresponding operation which can be executed in the scene by speaking the command word corresponding to the scene in different scenes, the efficiency of the user for operating the Bluetooth headset is improved, and the use by the user is facilitated.
With further reference to fig. 3, a flow 300 of yet another embodiment of a method for controlling a bluetooth headset is shown. The process 300 of the method for controlling a bluetooth headset includes the steps of:
step 301, recognizing the user input voice collected by the bluetooth headset to obtain a user command sentence.
In this embodiment, the specific operation of step 301 is substantially the same as the operation of step 201 in the embodiment shown in fig. 2, and is not described herein again.
Step 302, determining a current working mode of the bluetooth headset.
In this embodiment, the current operation mode of the bluetooth headset may be an operation mode in a preset operation mode set. Here, the preset operation mode set may include: standby mode, incoming call ringing mode and media play mode. The following is a detailed description:
the standby mode may refer to: the bluetooth headset neither plays any media content (or pauses playing), nor makes a phone call or a voice call based on instant messaging software, nor rings an incoming call.
The incoming call ringing mode may refer to: an electronic device (e.g., a smart phone) connected to a bluetooth headset has an incoming call ring, and both the bluetooth headset and the electronic device connected to the bluetooth headset are sending out a ring signal.
The media play mode may refer to: the Bluetooth headset plays the streaming media content transmitted from the electronic equipment connected with the Bluetooth headset.
If the executing entity determines that the current operating mode of the bluetooth headset is the standby mode, the executing entity may go to step 303A to execute the operation.
If the executing entity determines that the current operating mode of the bluetooth headset is the incoming call ringing mode, the executing entity may go to step 303B to execute.
If the executing agent determines that the current operating mode of the bluetooth headset is the media playing mode, the executing agent may go to step 303C to execute.
Step 303A, determining a command word set corresponding to the current operating mode includes: waking up the voice assistant application command words, starting the media playing command words, and resuming the media playing command words.
Here, in the step 302, if it is determined that the current operation mode of the bluetooth headset is the standby mode, the determining that the command word set corresponding to the current operation mode includes: waking up the voice assistant application command words, starting the media playing command words, and resuming the media playing command words. That is, if the bluetooth headset is currently in the standby mode, the wake-up voice assistant application command word is activated, the media play command word is started, and the media play command word is resumed.
Here, the command word to wake the voice assistant application may be at least one command word preset to perform an operation to wake the voice assistant application. For example, the wake voice assistant application command word may be the software name of the voice assistant application. As another example, the wake voice assistant application command word may also be a wake word plus the software name of the voice assistant application, where the wake word may be, for example, "hi," "hello," or the like.
Here, the start media play command word may be at least one preset command word for performing an operation of starting the media play application. For example, the start media play command word may be "play a song," play music, "play a video," play, "i want to listen to a song," and so on.
Here, the resume media play command word may be at least one preset command word for performing a media play operation. For example, the resume media play command word may be "play next", "continue playing", "resume playing", "continue playing", and so on.
The execution subject can go to step 304 after step 303A is executed.
Step 303B, determining the command word set corresponding to the current operating mode includes: an incoming call answering command word and an incoming call refusing command word.
Here, in step 302, if it is determined that the current operating mode of the bluetooth headset is an incoming call ring mode, the determining that the set of command words corresponding to the current operating mode includes: an incoming call answering command word and an incoming call refusing command word. Namely, if the Bluetooth headset is currently in the incoming call ringing mode, the incoming call answering command word and the incoming call refusing command word are activated.
Here, the call answering command word may be at least one preset command word for performing an operation of answering a call, an instant messaging software voice call, or a video call. For example, the answer call command word may be "answer call", "answer voice", "call", "answer call", "connect video call", "connect voice call", or the like.
Here, the call refusal command word may be at least one preset command word for performing an operation of refusing an incoming call, an instant messaging software voice call, or a video call. For example, the call rejection command word may be "not answer", "not answer call", "hang up", "reject voice", "hang up", "not connect", "hang up", "do not answer", and the like.
The execution agent may go to step 304 to execute after step 303B is executed.
Step 303C, determining the command word set corresponding to the current working mode includes: waking up the voice assistant application command word, stopping playing the command word, pausing playing the command word, playing the previous command word, playing the next command word, increasing the volume command word, and decreasing the volume command word.
Here, in step 302, if it is determined that the current operating mode of the bluetooth headset is the media playing mode, the determining that the set of command words corresponding to the current operating mode includes: waking up the voice assistant application command word, stopping playing the command word, pausing playing the command word, playing the previous command word, playing the next command word, increasing the volume command word, and decreasing the volume command word. That is, if the bluetooth headset is currently in the media play mode, the wake-up voice assistant application command word is activated, the play command word is stopped, the play command word is paused, the previous command word is played, the next command word is played, the volume up command word and the volume down command word are played.
Here, the stop playing command word may be at least one preset command word for performing an operation of stopping playing the streaming media currently being played by the bluetooth headset. For example, the stop play command word may be "stop play", "anycast", "not broadcast", and the like.
Here, the pause play command word may be at least one preset command word for performing an operation of temporarily stopping playing the streaming media currently being played by the bluetooth headset. For example, the pause play command word may be "pause play", "pause down", "play here first", "play after wait", and the like.
Here, the play last command word may be at least one command word preset to perform an operation of playing the streaming media that is the last streaming media currently being played by the bluetooth headset. For example, the play last play command word may be "last", "last bar", "previous", and so on.
Here, the playing next command word may be at least one command word preset to perform an operation of playing the next streaming media of the streaming media being played by the current bluetooth headset. For example, the play next play command word may be "next", "play next", "next bar", "next bar", and so on.
Here, the volume-up command word may be at least one command word preset to perform a volume-up operation. For example, the up volume command word may be "loud," "up volume," "sound somewhat small," and so on.
Here, the volume-down command word may be at least one command word preset for performing a volume-down operation. For example, the volume-down command word may be "little-click," "volume-down," "sound somewhat loud," and so on.
The execution agent may go to step 304 to execute after step 303C is executed.
And step 304, respectively matching the user command sentence with each command word in the determined command word set.
In this embodiment, after the step 303A, 303B, or 303C is executed, the executing body may match the user command sentence obtained in the step 301 with each command word in the command word set obtained after the step 303A, 303B, or 303C is executed, and for a specific matching method, reference may be made to the related description of the step 203 in the embodiment shown in fig. 2, which is not described herein again. From the above description, it is clear that:
when the executing agent executes step 304 after executing step 303A, the command word set determined in step 304 includes: waking up the voice assistant application command words, starting the media playing command words, and resuming the media playing command words.
When the executing agent executes step 304 after executing step 303B, the set of command words determined in step 304 includes: an incoming call answering command word and an incoming call refusing command word.
When the executing agent executes step 304 after executing step 303C, the set of command words determined in step 304 includes: waking up the voice assistant application command word, stopping playing the command word, pausing playing the command word, playing the previous command word, playing the next command word, increasing the volume command word, and decreasing the volume command word. That is, if the bluetooth headset is currently in the media play mode, the wake-up voice assistant application command word is activated, the play command word is stopped, the play command word is paused, the previous command word is played, the next command word is played, the volume up command word and the volume down command word are played.
Step 305, in response to determining that the user command statement matches the wake voice assistant application command word, sending a start command to the electronic device currently connected with the bluetooth headset, the start command instructing the electronic device to start a voice assistant application installed on the electronic device.
As can be seen from the above description, the command word set corresponding to the standby mode and the command word set corresponding to the media playing mode may include command words for waking up the voice assistant application. Therefore, the executing entity may determine that the current operating mode of the bluetooth headset is the standby mode or the media playing mode in step 302, and may wake up the voice assistant app command word only in the command word set determined in step 304 and only perform an operation of matching the user command sentence obtained in step 301 with the wake up voice assistant app command word in step 304. If it is determined in step 304 that the user command statement matches the wake voice assistant app command word, the execution body may send a start command to the electronic device currently connected to the bluetooth headset, instructing the electronic device to start a voice assistant app installed on the electronic device. The electronic equipment can start the voice assistant application installed on the electronic equipment after receiving the starting command. Here, the voice assistant application installed on the electronic device may be an application program that implements an intelligent interaction with an instant question and answer through an intelligent dialog to help a user solve a problem. The voice assistant application may be an existing intelligent voice assistant type application on the market, such as siri (apple intelligent voice assistant), favorite classmate voice assistant (millet intelligent voice assistant), and the like. The voice assistant applications may also be various intelligent voice assistant-like applications developed in the future.
After the voice assistant application is started, the user uses the Bluetooth headset to speak, the voice data spoken by the user can be collected by the Bluetooth headset and sent to the electronic equipment, and the voice assistant application started on the electronic equipment can receive the voice data of the user, recognize and determine the intention of the user, and execute corresponding operation according to the determined intention of the user.
For example, if the user wants to inquire the weather of today, the user may speak "what the weather is today" using the bluetooth headset, the user voice data is collected by the bluetooth headset and sent to the electronic device, the voice assistant application on the electronic device performs voice recognition on the received voice data, and determines that the user intends to inquire the weather of today, the voice assistant application on the electronic device may start a browser, access a preset website for inquiring the weather, obtain the weather data, and display the obtained weather data in the browser. Furthermore, the user only needs to speak out corresponding requirements by using the Bluetooth headset, and the electronic equipment connected with the Bluetooth headset can be controlled to realize the requirements of the user.
Because the command word sets corresponding to the standby mode and the media play mode comprise the command words for waking up the voice assistant application, when the bluetooth headset is in the standby mode or the media play mode, a user can wake up the voice assistant application installed on the electronic equipment connected with the bluetooth headset by speaking the sentences matched with the command words for waking up the voice assistant application.
It should be noted that, no matter in the standby mode or in the media playing mode, the user starts the voice assistant application installed on the electronic device connected to the bluetooth headset through voice, the current operating mode of the bluetooth headset may not be changed, and the original standby mode or the original media playing mode is continuously maintained.
Step 306, in response to determining that the user command sentence matches the media playing start command word, sending a media playing start command to the electronic device currently connected to the bluetooth headset, the media playing start command instructing the electronic device to start a media playing application, and setting the current working mode of the bluetooth headset to the media playing mode.
As can be seen from the above description, the command word set corresponding to the standby mode may include a command word for starting media playing. Therefore, the executing entity may determine that the current operating mode of the bluetooth headset is the standby mode in step 302, and may perform the operation of matching the user command sentence obtained in step 301 with the media play start command word in the command word set determined in step 304 only if the media play start command word is in the command word set determined in step 304. If it is determined in step 304 that the user command sentence matches the start media play command word, the executing body may send a start media play command to the electronic device currently connected to the bluetooth headset, the start media play command instructing the electronic device to start a media play application, and set the current operating mode of the bluetooth headset to the media play mode. The electronic device may start the specific media playing application installed thereon and start playing the streaming media after receiving the media playing starting command (for example, continue playing according to a breakpoint of the specific media playing application when exiting last time). Here, the specified media playing application may be a media playing application that is specified in advance when the electronic device is shipped from a factory, or the specified media playing application may be specified by a user at a later stage. After the designated media playing application is started, the user can listen to the streaming media content by using the Bluetooth headset.
Because the command word set corresponding to the standby mode comprises the command word for starting media playing, when the Bluetooth headset is in the standby mode, a user can control the electronic equipment to start the specified media playing application installed on the electronic equipment to play the streaming media and then listen to the streaming media in the Bluetooth headset by speaking the sentence matched with the command word for starting media playing. However, since the streaming media has already been played in the bluetooth headset, the current working mode of the bluetooth headset is no longer the standby mode, and therefore, the execution main body may set the current working mode of the bluetooth headset to the media playing mode.
Step 307, in response to determining that the user command sentence matches the resume media play command word, sending a resume media play command to the electronic device currently connected to the bluetooth headset, the resume media play command instructing the electronic device to resume media play, and setting the current operating mode of the bluetooth headset to the media play mode.
As can be seen from the above description, the command word set corresponding to the standby mode may include a resume media playing command word. Therefore, the execution subject may determine that the current operating mode of the bluetooth headset is the standby mode in step 302, and the resume media playing command word may not be in the command word set determined in step 304, nor may the execution subject perform an operation of matching the user command sentence obtained in step 301 with the resume media playing command word in step 304. If it is determined in step 304 that the user command sentence matches the resume media play command word, the executing entity may send a resume media play command to the electronic device currently connected to the bluetooth headset, the resume media play command instructing the electronic device to resume media play, and set the current operating mode of the bluetooth headset to the media play mode. After receiving the resume media playing command, the electronic device may continue playing the streaming media according to the breakpoint when the specified media playing application exits last time by using the specified media playing application installed thereon. Thus, the user can resume listening to the streaming media content using the bluetooth headset.
Because the command word set corresponding to the standby mode comprises the media playing recovery command word, when the Bluetooth headset is in the standby mode, a user can realize the purpose of controlling the electronic equipment to recover playing of the streaming media and then continue listening to the streaming media in the Bluetooth headset by speaking the sentence matched with the media playing recovery command word. However, since the streaming media is already played back in the bluetooth headset, the current working mode of the bluetooth headset is no longer the standby mode, and therefore, the execution main body can set the current working mode of the bluetooth headset to the media playing mode.
And 308, responding to the fact that the user command sentence is matched with the incoming call answering command word, and sending an incoming call answering command for indicating the electronic equipment to answer the incoming call to the electronic equipment connected with the Bluetooth headset currently.
As can be seen from the above description, the command word set corresponding to the incoming call ringing mode may include an incoming call answering command word. Therefore, the executing body may determine, in step 302, that the current operating mode of the bluetooth headset is the incoming call ringing mode, that the incoming call answering command word is in the command word set determined in step 304, and that the user command sentence obtained in step 301 is matched with the incoming call answering command word is also executed in step 304. If it is determined in step 304 that the user command sentence matches the incoming call answering command word, the executing body may send an incoming call answering command instructing the electronic device to answer an incoming call to the electronic device currently connected to the bluetooth headset. The electronic equipment can connect the current incoming call, the current instant messaging software voice call or the current instant messaging software video call after receiving the incoming call answering command.
Because the command word set corresponding to the incoming call ringing mode comprises the incoming call answering command words, when the Bluetooth headset is in the incoming call ringing mode, a user can realize the purpose of controlling the electronic equipment to answer the incoming call or answer the voice call or the video call of the instant messaging software by speaking the sentence matched with the incoming call answering command word, and then the user can use the Bluetooth headset to answer the incoming call or answer the voice call or the video call of the instant messaging software. And in the process that the user uses the Bluetooth headset to answer the incoming call or answer the voice call or the video call of the instant messaging software, the working mode of the Bluetooth headset does not need to be modified, and if the user finishes answering the incoming call or answering the voice call or the video call of the instant messaging software, the current working mode of the Bluetooth headset can be set to be the standby mode.
Step 309, in response to determining that the user command sentence matches the incoming call rejection command word, sending an incoming call rejection command for instructing the electronic device to reject the incoming call to the electronic device currently connected to the bluetooth headset, and setting the current working mode of the bluetooth headset to the standby mode.
As can be seen from the above description, the command word set corresponding to the incoming call ringing mode may include the call rejection command word. Therefore, the executing body may determine that the current operating mode of the bluetooth headset is an incoming call ringing mode in step 302, and the call rejection command word may be in the command word set determined in step 304, or may perform an operation of matching the user command statement obtained in step 301 with the call rejection command word in step 304. If it is determined in step 304 that the user command sentence matches the incoming call rejection command word, the execution main body may send an incoming call rejection command indicating that the electronic device rejects an incoming call to the electronic device currently connected to the bluetooth headset, and set the current operating mode of the bluetooth headset to the standby mode. After receiving the incoming call rejection command, the electronic equipment can hang up the current incoming call, hang up the voice call of the current instant messaging software or hang up the video call of the current instant messaging software.
Because the command word set corresponding to the incoming call ringing mode comprises the incoming call refusing command word, a user can realize the purpose of controlling the electronic equipment to hang up the incoming call or hang up the voice call or the video call of the instant messaging software by speaking the sentence matched with the incoming call refusing command word when the Bluetooth headset is in the incoming call ringing mode. After the user hangs up the incoming call or hangs up the voice call or the video call of the instant messaging software, the bluetooth headset is continuously in the standby mode, so that the execution main body can set the current working mode of the bluetooth headset to be the standby mode.
Step 310, in response to determining that the user command sentence matches the stop playing command word, sending a stop playing media command for instructing the electronic device to stop playing media to the electronic device currently connected to the bluetooth headset, and setting the current working mode of the bluetooth headset to the standby mode.
As can be seen from the above description, the command word set corresponding to the media playing mode may include a stop playing command word. Therefore, the execution subject may determine that the current operating mode of the bluetooth headset is the media playing mode in step 302, and the stop playing command word may be in the command word set determined in step 304, and may also perform an operation of matching the user command sentence obtained in step 301 with the stop playing command word in step 304. If it is determined in step 304 that the user command sentence matches the stop-play command word, the executing entity may send a stop-play media command instructing the electronic device to stop playing media to the electronic device currently connected to the bluetooth headset, and set the current operating mode of the bluetooth headset to the standby mode. The electronic device may close the application currently playing the streaming media after receiving the stop command.
The command word set corresponding to the media playing mode comprises the stop playing command word. Therefore, when the bluetooth headset is in the media playing mode, the user can control the electronic device to close the application currently playing the streaming media by speaking the sentence matched with the playing stop command word. However, since the streaming media is not being played in the bluetooth headset, the current working mode of the bluetooth headset is no longer the media playing mode but should be in the standby mode, so the execution main body may set the current working mode of the bluetooth headset to the standby mode.
In step 311, in response to determining that the user command sentence matches the pause command word, a pause media command for instructing the electronic device to pause playing media is sent to the electronic device currently connected to the bluetooth headset, and the current operating mode of the bluetooth headset is set to the standby mode.
As can be seen from the above description, the command word set corresponding to the media playing mode may include a pause playing command word. Therefore, the execution subject may determine that the current operating mode of the bluetooth headset is the media playing mode in step 302, and the pause playing command word cannot be in the command word set determined in step 304, and the operation of matching the user command sentence obtained in step 301 with the pause playing command word cannot be performed in step 304. If it is determined in step 304 that the user command sentence matches the pause command word, the executing body may send a pause media command to the electronic device currently connected to the bluetooth headset, instructing the electronic device to pause playing media, and set the current operating mode of the bluetooth headset to the standby mode. The electronic device can pause the currently played streaming media after receiving the play pause command, and record the current play progress.
The command word set corresponding to the media playing mode comprises a pause playing command word. Therefore, when the Bluetooth headset is in the media playing mode, the user can control the electronic equipment to pause the streaming media currently being played by speaking the sentence matched with the playing pause command word. However, since the streaming media is no longer played in the bluetooth headset, the current working mode of the bluetooth headset is no longer the media playing mode but should be in the standby mode, and therefore, the execution main body may set the current working mode of the bluetooth headset to the standby mode.
Step 312, in response to determining that the user command sentence matches the previous command word, sending a previous media playing command to the electronic device currently connected to the bluetooth headset, the previous media playing command instructing the electronic device to play the previous media.
As can be seen from the above description, the command word set corresponding to the media playing mode may include playing the last command word. Therefore, the executing entity may play the previous command word in the command word set determined in step 304 only if it is determined in step 302 that the current operating mode of the bluetooth headset is the media playing mode, and may also perform an operation of matching the user command sentence obtained in step 301 with the previous command word in step 304. If it is determined in step 304 that the user command sentence matches the play last command word, the executing entity may send a play last media command instructing the electronic device to play the last media to the electronic device currently connected to the bluetooth headset. The electronic equipment can be switched to the previous media playing the currently playing media after receiving the previous media playing command, and then a user can listen to the previous media of the currently playing media in the Bluetooth headset, the Bluetooth headset is originally in the media playing mode, and the Bluetooth headset is still in the media playing mode after the previous media is played, so that the current working mode of the Bluetooth headset does not need to be modified.
The command word set corresponding to the media playing mode comprises a playing last command word. Therefore, when the Bluetooth headset is in the media playing mode, the user can realize the purpose of controlling the electronic equipment to switch to play the previous media of the currently played streaming media by speaking the sentence matched with the previous command word. The current working mode of the Bluetooth headset can be unchanged, and the original media playing mode is continuously maintained.
Step 313, in response to determining that the user command statement matches the play next command word, sending a play next media command to the electronic device currently connected to the bluetooth headset instructing the electronic device to play the next media.
As can be seen from the above description, the command word set corresponding to the media playing mode may include playing the next command word. Therefore, the executing entity may play the next command word in the command word set determined in step 304 only when it is determined in step 302 that the current operating mode of the bluetooth headset is the media playing mode, and may also perform an operation of matching the user command sentence obtained in step 301 with the play of the next command word in step 304. If it is determined in step 304 that the user command sentence matches the play next command word, the executing entity may send a play next media command to the electronic device currently connected to the bluetooth headset instructing the electronic device to play the next media. The electronic equipment can be switched to play the next media of the currently played media after receiving the command of playing the next media, and then a user can listen to the next media of the currently played media in the Bluetooth headset, wherein the Bluetooth headset is originally in the media playing mode and is still in the media playing mode after playing the next media, so that the current working mode of the Bluetooth headset does not need to be modified.
The command word set corresponding to the media playing mode comprises the next command word. Therefore, when the Bluetooth headset is in the media playing mode, the user can realize the purpose of controlling the electronic equipment to switch to play the next media of the streaming media currently being played by speaking the sentence matched with the next command word. The current working mode of the Bluetooth headset can be unchanged, and the original media playing mode is continuously maintained.
In response to determining that the user command sentence matches the volume up command word, step 314, increase the volume of the bluetooth headset by a preset volume, or send a volume up command for instructing the electronic device to increase the volume to the electronic device currently connected to the bluetooth headset.
As can be seen from the above description, the command word set corresponding to the media playback mode may include a volume up command word. Therefore, when the execution subject determines that the current operating mode of the bluetooth headset is the media playing mode in step 302, the volume up command word cannot be matched with the user command sentence obtained in step 301 in the command word set determined in step 304, and cannot be matched with the volume up command word in step 304. If it is determined in step 304 that the user command sentence matches the volume up command word, the executing body may increase the volume of the bluetooth headset by a preset volume, or may send a volume up command instructing the electronic device to increase the volume to the electronic device currently connected to the bluetooth headset. The electronic device can increase the volume of the media playing application of the currently played media by preset volume after receiving the volume increasing command, and then the user can hear the sound played before the volume is increased relatively in the Bluetooth headset. The Bluetooth headset is originally in a media playing mode and is still in the media playing mode after the volume is increased, so that the current working mode of the Bluetooth headset does not need to be modified.
The command word set corresponding to the media play mode includes the volume up command word. Therefore, when the Bluetooth headset is in the media playing mode, the user can control the Bluetooth headset to increase the volume or control the electronic equipment connected with the Bluetooth headset to improve the volume of the media playing application playing media currently by speaking the sentence matched with the volume increasing command word. The current working mode of the Bluetooth headset can be unchanged, and the original media playing mode is continuously maintained.
And 315, in response to the fact that the user command sentence is matched with the volume-reducing command word, reducing the volume of the Bluetooth headset by preset volume, or sending a volume-reducing command for instructing the electronic equipment to reduce the volume to the electronic equipment connected with the Bluetooth headset currently.
As can be seen from the above description, the command word set corresponding to the media playing mode may include a volume-down command word. Therefore, when the execution subject determines that the current operating mode of the bluetooth headset is the media playing mode in step 302, the volume-down command word cannot be matched with the user command sentence obtained in step 301 in the command word set determined in step 304, or cannot be matched with the volume-down command word in step 304. If it is determined in step 304 that the user command sentence matches the volume-down command word, the executing body may decrease the volume of the bluetooth headset by a preset volume, or may also transmit a volume-down command instructing the electronic device to decrease the volume to the electronic device currently connected to the bluetooth headset. The electronic device can reduce the volume of the media playing application of the currently played media by the preset volume after receiving the volume reduction command, and then the user can hear the sound played before the volume reduction in the Bluetooth headset. The Bluetooth headset is originally in the media playing mode and still in the media playing mode after the volume is reduced, so that the current working mode of the Bluetooth headset does not need to be modified.
Since the command word set corresponding to the media play mode includes the volume-down command word. Therefore, when the Bluetooth headset is in the media playing mode, the user can control the Bluetooth headset to reduce the volume or control the electronic equipment connected with the Bluetooth headset to reduce the volume of the media playing application playing media currently by speaking the sentence matched with the volume reduction command word. The current working mode of the Bluetooth headset can be unchanged, and the original media playing mode is continuously maintained.
As can be seen from fig. 3, compared with the embodiment corresponding to fig. 2, the flow 300 of the method for controlling the bluetooth headset in this embodiment gives three different operation modes of the bluetooth headset and a command word set corresponding to each operation mode, and gives an operation performed after a user sentence obtained by voice recognition input by a user is matched with each command word. Therefore, the scheme described in the embodiment can realize the control of the bluetooth headset through voice in the standby mode, the incoming call ringing mode and the media playing mode.
With continued reference to fig. 4, fig. 4 is a schematic diagram of an application scenario of the method for controlling a bluetooth headset according to the embodiment shown in fig. 3. In the application scenario shown in fig. 4, a user may interact with the bluetooth headset 401 through a voice user interface, wherein the voice user interface consists of three parts: an operating mode 402, a set of user command words 403, and a system function response 404.
The operational modes 402 include: a standby mode 4021, an incoming call alerting mode 4022, and a media play mode 4023.
The set of user command words 403 includes: waking up the voice assistant application command word 40301, starting the media playing command word 40302, resuming the media playing command word 40303, answering the incoming call command word 40304, rejecting the incoming call command word 40305, stopping the playing command word 40306, pausing the playing command word 40307, playing the previous command word 40308, playing the next command word 40309, increasing the volume command word 40310, and decreasing the volume command word 40311.
The system function response 404 includes: waking up the voice assistant application 40401, starting media playing 40402, resuming media playing 40403, answering incoming call, voice or video call 40404, hanging up incoming call, voice or video call 40405, stopping playing media 40406, pausing playing media 40407, playing previous media 40408, playing next media 40409, increasing the volume 40410 of earphone or media playing, and decreasing the volume 40411 of earphone or media playing.
The command word set corresponding to the standby mode 4021 includes: waking up the voice assistant application command words 40301, starting the media play command words 40302, and resuming the media play command words 40303.
The command word set corresponding to the incoming call ringing mode 4022 includes: an incoming call answering command word 40304 and an incoming call rejection command word 40305.
The command word set corresponding to the media play mode 4023 includes: waking up the voice assistant application command word 40301, stopping playing the command word 40306, pausing playing the command word 40307, playing the previous command word 40308, playing the next command word 40309, increasing volume command word 40310, and decreasing volume command word 40311.
The system function response corresponding to the awakening voice assistant application command word 40301 is as follows: the voice assistant application 40401 is awakened.
The system function response corresponding to the start media play command word 40302 is: media play is initiated 40402.
The system function response corresponding to the media playing command word 40303 is restored as follows: resume media play 40403.
The system function response corresponding to the answer incoming call command word 40304 is as follows: answer an incoming call, voice or video call 40404.
The system function response corresponding to the call rejection order word 40305 is as follows: hanging up the incoming call, voice or video call 40406.
The system function response corresponding to the stop playing command word 40306 is as follows: the media 40406 is stopped from playing.
The system function response corresponding to the pause playing command word 40307 is as follows: the media 40407 is paused.
The system function response corresponding to playing the last command word 40308 is: play the last media 40408.
The system function response corresponding to the next command word 40309 is played as follows: the next media 40409 is played.
The system function response corresponding to the volume up command word 40310 is: the headphone or media playback volume is increased 40410.
The system function response corresponding to the volume-down command word 40311 is: the headphone or media playback volume is reduced 40411.
The bluetooth headset 401 may wake up the voice assistant application 40401 in response to the system function from the standby mode 4021 via the wake up voice assistant application command word 40301 and then maintain the operating mode as the standby mode 4021.
The bluetooth headset 401 may implement the system function response from the standby mode 4021 via the start media play command word 40302 to play the media 40402 and then switch the operation mode from the standby mode 4021 to the media play mode 4023.
The bluetooth headset 401 may implement a system function response from the standby mode 4021 through the resume media play command word 40303 to play the media 40403, and then switch the operation mode from the standby mode 4021 to the media play mode 4023.
The bluetooth headset 401 can implement a system function response to answer a call, voice or video call 40404 via the call answer command word 40304 from the call ringing mode 4022, and then maintain the operating mode as the call ringing mode 4022.
The bluetooth headset 401 may implement a system function to respond to a missed call, voice or video call 40406 through the missed call command word 40305 from the incoming call ringing mode 4022, and then switch the operation mode from the incoming call ringing mode 4022 to the standby mode 4021.
The bluetooth headset 401 may wake up the voice assistant application 40401 in response to the system function via the wake up voice assistant application command word 40301 from the media play mode 4023 and then maintain the operating mode as the media play mode 4023.
The bluetooth headset 401 may implement a system function from the media play mode 4023 through the stop play command word 40306 in response to stop playing the media 40406, and then switch the operation mode from the media play mode 4022 to the standby mode 4021.
The bluetooth headset 401 may implement a system function from the media play mode 4023 through the pause play command word 40307 in response to the pause play of the media 40407, and then switch the operation mode from the media play mode 4022 to the standby mode 4021.
The bluetooth headset 401 may play the previous media 40408 in response to the system function implemented by playing the previous command word 40308 from the media play mode 4023, and then keep the operation mode as the media play mode 4023.
The bluetooth headset 401 may respond to play the next media 40409 from the media play mode 4023 by playing the next command word 40309, and then maintain the operating mode as the media play mode 4023.
The bluetooth headset 401 may implement a system function from the media play mode 4023 via the volume up command word 40310 in response to increase the headset or media play volume 40410 and then maintain the operating mode as the media play mode 4023.
The bluetooth headset 401 may implement a system function from the media play mode 4023 via the volume reduction command word 40311 to respond to the volume reduction 40411 and then maintain the operating mode as the media play mode 4023.
The user can interact with the bluetooth headset 401 through the voice user interface provided by the bluetooth headset 401, and does not need to manually operate the bluetooth headset, thereby liberating both hands of the user and facilitating the use and operation of the bluetooth headset by the user.
With further reference to fig. 5, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an apparatus for controlling a bluetooth headset, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to at least one processor of various bluetooth headsets.
As shown in fig. 5, the apparatus 500 for controlling a bluetooth headset of the present embodiment includes: a recognition unit 501, a command word set determination unit 502, a matching unit 503, and an execution unit 504. The recognition unit 501 is configured to recognize the user input voice collected by the bluetooth headset to obtain a user command sentence; a command word set determining unit 502 configured to determine a command word set corresponding to a current operating mode of the bluetooth headset according to a corresponding relationship between a preset operating mode and the command word set; a matching unit 503 configured to match the user command sentence with each command word in the determined command word set; and the execution unit 504 is configured to, in response to determining that the user command statement matches a target command word in the determined command word set, execute a command corresponding to the target command word, and set a current operating mode of the bluetooth headset according to an operating mode of the bluetooth headset after the bluetooth headset executes the command corresponding to the target command word.
In this embodiment, specific processes of the identification unit 501, the command word set determination unit 502, the matching unit 503, and the execution unit 504 of the apparatus 500 for controlling a bluetooth headset and technical effects brought by the specific processes may respectively refer to the related descriptions of step 201, step 202, step 203, and step 204 in the corresponding embodiment of fig. 2, and are not repeated herein.
In some optional implementations, the command word set determining unit 502 may include: a standby mode command word determination module (not shown in fig. 5), configured to, in response to determining that a current operating mode of the bluetooth headset is a standby mode, determine a set of command words corresponding to the current operating mode, including: awakening the voice assistant application command word, starting the media playing command word and recovering the media playing command word; an incoming call ringing mode command word determination module (not shown in fig. 5), configured to, in response to determining that the current operating mode of the bluetooth headset is an incoming call ringing mode, determine a command word set corresponding to the current operating mode, including: answering the incoming call command word and rejecting the incoming call command word; a media play mode command word determination module (not shown in fig. 5), configured to, in response to determining that the current operating mode of the bluetooth headset is the media play mode, determine a command word set corresponding to the current operating mode, including: the above wake-up voice assistant applies the command word, stops playing the command word, pauses playing the command word, plays the previous command word, plays the next command word, increases the volume command word, and decreases the volume command word.
In some optional implementations, the executing unit 504 may include: a voice assistant app launching module (not shown in fig. 5) configured to send a launch command to an electronic device currently connected to the bluetooth headset to instruct the electronic device to launch a voice assistant app installed on the electronic device in response to determining that the user command statement matches the wake voice assistant app command word.
In some optional implementations, the executing unit 504 may include: a media playing module (not shown in fig. 5) configured to send a start media playing command for instructing the electronic device to start a media playing application to an electronic device currently connected to the bluetooth headset in response to determining that the user command statement matches the start media playing command word, and set a current operating mode of the bluetooth headset to a media playing mode.
In some optional implementations, the executing unit 504 may include: a resume media Play module (not shown in FIG. 5) configured to: and in response to determining that the user command sentence is matched with the media playing recovery command word, sending a media playing recovery command for instructing the electronic equipment to recover media playing to the electronic equipment currently connected with the Bluetooth headset, and setting the current working mode of the Bluetooth headset to be a media playing mode.
In some optional implementations, the executing unit 504 may include: an answer call module (not shown in fig. 5) configured to send an answer call command for instructing the electronic device to answer an incoming call to the electronic device currently connected to the bluetooth headset in response to determining that the user command sentence matches the answer call command word.
In some optional implementations, the executing unit 504 may include: a call rejection module (not shown in fig. 5) configured to send a call rejection command indicating that the electronic device rejects calls to the electronic device currently connected to the bluetooth headset in response to determining that the user command statement matches the call rejection command word, and set a current operating mode of the bluetooth headset to a standby mode.
In some optional implementations, the executing unit 504 may include: a stop playing module (not shown in fig. 5) configured to send a stop playing media command for instructing the electronic device to stop playing media to the electronic device currently connected to the bluetooth headset in response to determining that the user command sentence matches the stop playing command word, and set a current operating mode of the bluetooth headset to a standby mode.
In some optional implementations, the executing unit 504 may include: a pause playing module (not shown in fig. 5) configured to send a pause playing media command for instructing the electronic device to pause playing media to the electronic device currently connected to the bluetooth headset in response to determining that the user command sentence matches the pause playing command word, and set a current operating mode of the bluetooth headset to a standby mode.
In some optional implementations, the executing unit 504 may include: a play last module (not shown in fig. 5) configured to send a play last media command to the electronic device currently connected to the bluetooth headset to instruct the electronic device to play a last media in response to determining that the user command statement matches the play last command word.
In some optional implementations, the executing unit 504 may include: a play next module (not shown in fig. 5) configured to send a play next media command to an electronic device currently connected to the bluetooth headset instructing the electronic device to play a next media in response to determining that the user command statement matches the play next command word.
In some optional implementations, the executing unit 504 may include: a volume up module (not shown in fig. 5) configured to increase the volume of the bluetooth headset by a preset volume or send a volume up command instructing the electronic device to increase the volume to an electronic device currently connected to the bluetooth headset in response to determining that the user command sentence matches the volume up command word.
In some optional implementations, the executing unit 504 may include: a volume-down module (not shown in fig. 5) configured to, in response to determining that the user command statement matches the volume-down command word, decrease the volume of the bluetooth headset by the preset volume, or send a volume-down command to an electronic device currently connected to the bluetooth headset to instruct the electronic device to decrease the volume.
It should be noted that, for details of implementation and technical effects of each unit in the apparatus for controlling a bluetooth headset provided in the present disclosure, reference may be made to descriptions of other embodiments in the present disclosure, and details are not described herein again.
Referring now to fig. 6, a hardware architecture diagram of one embodiment of a bluetooth headset 600 suitable for use in implementing the present disclosure is shown. The bluetooth headset shown in fig. 6 is only an example and should not bring any limitation to the function and use range of the present disclosure.
As shown in fig. 6, the bluetooth headset 600 includes at least one processor 601, a memory 602, an interface 603, a bus 604, an input unit 605, and an output unit 606.
The at least one processor 601, the memory 602 and the interface 603 are connected to each other via a bus 604. An input unit 605 and an output unit 606 are connected to the bus 604 via the interface 603. Herein, the methods provided according to the present disclosure may be implemented as computer programs and stored in the memory 602. The at least one processor 601 in the bluetooth headset 600 embodies the bluetooth headset control functions defined in the methods provided by the present disclosure by invoking the above-described computer programs stored in the memory 602.
In some implementations, the input unit 605 may include a microphone and other devices for collecting voice data, the output unit 606 may include a speaker and other devices for playing voice or music data, and a communication component and other devices for data interaction with other electronic devices may also be part of the input unit 605 or the output unit 606.
Therefore, when the above computer program is invoked to perform the function of controlling the bluetooth headset, the at least one processor 601 may control the input unit 605 to collect voice data of the user, control the at least one processor to recognize the voice data input by the user, modify the working mode of the bluetooth headset, and finally control the output unit 606 to perform corresponding operations.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the 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 illustrated in the flow chart. The computer program, when executed by the at least one processor 601, performs the above-described functions defined in the methods of the present disclosure.
It should be noted that the computer readable medium in the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 present disclosure, 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 contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, Python, and conventional procedural programming languages, such as the "C" programming language or similar programming languages.
The flowchart 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 disclosure. 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 and/or flowchart illustration, and combinations of blocks in the block diagrams and/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 units described in this disclosure may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a recognition unit, a command word set determination unit, a matching unit, and an execution unit. The names of the units do not limit the units themselves in some cases, and for example, the recognition unit can also be described as a unit for recognizing the input voice of the user collected by the bluetooth headset to obtain the user command sentence.
As another aspect, the present disclosure also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: recognizing user input voice collected by a Bluetooth headset to obtain a user command sentence; determining a command word set corresponding to the current working mode of the Bluetooth headset according to the corresponding relation between a preset working mode and the command word set; matching the user command sentence with each command word in the determined command word set respectively; and in response to determining that the user command sentence is matched with a target command word in the determined command word set, executing a command corresponding to the target command word, and setting the current working mode of the Bluetooth headset according to the working mode of the Bluetooth headset after the Bluetooth headset executes the command corresponding to the target command word.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept as defined above. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (6)

1. A method for controlling a bluetooth headset, for use in a low power processor in the bluetooth headset, the method comprising:
identifying user input voice collected by the Bluetooth headset in real time to obtain a user command statement, wherein the user input voice is a voice data segment which is collected by the Bluetooth headset in real time by using a sliding window method and has a voice signal amplitude mean value exceeding a preset signal amplitude threshold;
determining a command word set corresponding to the current working mode of the Bluetooth headset according to a corresponding relation between a preset working mode and the command word set, wherein the determining specifically comprises the following steps:
in response to determining that a current operating mode of the bluetooth headset is a standby mode, determining a set of command words corresponding to the current operating mode comprises: awakening the voice assistant application command word, starting the media playing command word and recovering the media playing command word;
in response to determining that the current operating mode of the bluetooth headset is an incoming call ringing mode, determining a set of command words corresponding to the current operating mode comprises: answering the incoming call command word and rejecting the incoming call command word;
in response to determining that the current operating mode of the bluetooth headset is a media play mode, determining a set of command words corresponding to the current operating mode comprises: the awakening voice assistant applies command words, stops playing command words, pauses playing command words, plays a previous command word, plays a next command word, increases the volume command words and decreases the volume command words;
matching the user command sentence with each command word in the determined command word set respectively;
in response to determining that the user command statement matches a target command word in the determined command word set, executing a command corresponding to the target command word, and setting a current operating mode of the bluetooth headset according to an operating mode of the bluetooth headset after the bluetooth headset executes the command corresponding to the target command word, specifically including:
in response to determining that the user command statement matches the wake voice assistant app command word, sending a start command to an electronic device currently connected with the bluetooth headset instructing the electronic device to start a voice assistant app installed on the electronic device;
in response to determining that the user command statement matches the media play starting command word, sending a media play starting command to an electronic device currently connected to the bluetooth headset, the media play starting command being used to instruct the electronic device to start a media play application, and setting a current operating mode of the bluetooth headset to a media play mode;
in response to determining that the user command statement matches the resume media play command word, sending a resume media play command to an electronic device currently connected to the bluetooth headset, the resume media play command instructing the electronic device to resume media play, and setting a current operating mode of the bluetooth headset to a media play mode;
in response to determining that the user command sentence is matched with the incoming call answering command word, sending an incoming call answering command for indicating the electronic equipment to answer an incoming call to the electronic equipment currently connected with the Bluetooth headset;
in response to determining that the user command statement matches the incoming call rejection command word, sending an incoming call rejection command for indicating that the electronic device rejects incoming calls to the electronic device currently connected to the Bluetooth headset, and setting a current working mode of the Bluetooth headset to a standby mode;
in response to determining that the user command statement matches the stop playing command word, sending a stop playing media command to an electronic device currently connected to the Bluetooth headset, the stop playing media command instructing the electronic device to stop playing media, and setting a current operating mode of the Bluetooth headset to a standby mode;
in response to determining that the user command statement matches the pause command word, sending a pause media command to an electronic device currently connected to the Bluetooth headset, the pause media command instructing the electronic device to pause playing media, and setting a current operating mode of the Bluetooth headset to a standby mode;
in response to determining that the user command statement matches the playing last command word, sending a playing last media command to an electronic device currently connected with the Bluetooth headset, the playing last media command instructing the electronic device to play a last media;
in response to determining that the user command statement matches the play next command word, sending a play next media command to an electronic device currently connected with the Bluetooth headset, the play next media command instructing the electronic device to play a next media;
in response to determining that the user command statement matches the volume up command word, increasing the volume of the Bluetooth headset by a preset volume, or sending a volume up command to an electronic device currently connected with the Bluetooth headset to instruct the electronic device to increase the volume;
in response to determining that the user command statement matches the volume-down command word, reducing the volume of the Bluetooth headset by the preset volume, or sending a volume-down command to an electronic device currently connected with the Bluetooth headset, the volume-down command instructing the electronic device to reduce the volume.
2. The method of claim 1, wherein the bluetooth headset further comprises a bluetooth protocol control processor.
3. An apparatus for controlling a bluetooth headset, applied to a low power processor in the bluetooth headset, the apparatus comprising:
the recognition unit is configured to recognize user input voice collected by the Bluetooth headset in real time to obtain a user command statement, wherein the user input voice is a voice data segment which is collected by the Bluetooth headset in real time and has a voice signal amplitude mean value exceeding a preset signal amplitude threshold value and is obtained by using a sliding window method;
the command word set determining unit is configured to determine a command word set corresponding to the current working mode of the bluetooth headset according to a preset corresponding relationship between the working mode and the command word set, and specifically includes:
in response to determining that a current operating mode of the bluetooth headset is a standby mode, determining a set of command words corresponding to the current operating mode comprises: awakening the voice assistant application command word, starting the media playing command word and recovering the media playing command word;
in response to determining that the current operating mode of the bluetooth headset is an incoming call ringing mode, determining a set of command words corresponding to the current operating mode comprises: answering the incoming call command word and rejecting the incoming call command word;
in response to determining that the current operating mode of the bluetooth headset is a media play mode, determining a set of command words corresponding to the current operating mode comprises: the awakening voice assistant applies command words, stops playing command words, pauses playing command words, plays a previous command word, plays a next command word, increases the volume command words and decreases the volume command words;
a matching unit configured to match the user command sentence with each command word in the determined command word set respectively;
an execution unit, configured to, in response to determining that the user command statement matches a target command word in the determined command word set, execute a command corresponding to the target command word, and set a current operating mode of the bluetooth headset according to an operating mode of the bluetooth headset after the bluetooth headset executes the command corresponding to the target command word, specifically including:
in response to determining that the user command statement matches the wake voice assistant app command word, sending a start command to an electronic device currently connected with the bluetooth headset instructing the electronic device to start a voice assistant app installed on the electronic device;
in response to determining that the user command statement matches the media play starting command word, sending a media play starting command to an electronic device currently connected to the bluetooth headset, the media play starting command being used to instruct the electronic device to start a media play application, and setting a current operating mode of the bluetooth headset to a media play mode;
in response to determining that the user command statement matches the resume media play command word, sending a resume media play command to an electronic device currently connected to the bluetooth headset, the resume media play command instructing the electronic device to resume media play, and setting a current operating mode of the bluetooth headset to a media play mode;
in response to determining that the user command sentence is matched with the incoming call answering command word, sending an incoming call answering command for indicating the electronic equipment to answer an incoming call to the electronic equipment currently connected with the Bluetooth headset;
in response to determining that the user command statement matches the incoming call rejection command word, sending an incoming call rejection command for indicating that the electronic device rejects incoming calls to the electronic device currently connected to the Bluetooth headset, and setting a current working mode of the Bluetooth headset to a standby mode;
in response to determining that the user command statement matches the stop playing command word, sending a stop playing media command to an electronic device currently connected to the Bluetooth headset, the stop playing media command instructing the electronic device to stop playing media, and setting a current operating mode of the Bluetooth headset to a standby mode;
in response to determining that the user command statement matches the pause command word, sending a pause media command to an electronic device currently connected to the Bluetooth headset, the pause media command instructing the electronic device to pause playing media, and setting a current operating mode of the Bluetooth headset to a standby mode;
in response to determining that the user command statement matches the playing last command word, sending a playing last media command to an electronic device currently connected with the Bluetooth headset, the playing last media command instructing the electronic device to play a last media;
in response to determining that the user command statement matches the play next command word, sending a play next media command to an electronic device currently connected with the Bluetooth headset, the play next media command instructing the electronic device to play a next media;
in response to determining that the user command statement matches the volume up command word, increasing the volume of the Bluetooth headset by a preset volume, or sending a volume up command to an electronic device currently connected with the Bluetooth headset to instruct the electronic device to increase the volume;
in response to determining that the user command statement matches the volume-down command word, reducing the volume of the Bluetooth headset by the preset volume, or sending a volume-down command to an electronic device currently connected with the Bluetooth headset, the volume-down command instructing the electronic device to reduce the volume.
4. A bluetooth headset, comprising:
an interface;
a memory having at least one program stored thereon; and
a low power processor operatively connected to the interface and the memory;
the at least one program, when executed by the low power processor, causes the low power processor to be configured to implement the method of any of claims 1-2.
5. The bluetooth headset of claim 4, wherein the bluetooth headset further comprises a bluetooth protocol control processor.
6. A computer-readable storage medium, having stored thereon a computer program, wherein the computer program, when executed by a low-power processor, causes the low-power processor to be configured to implement the method of any of claims 1-2.
CN202010199753.5A 2020-03-20 2020-03-20 Method and apparatus for controlling bluetooth headset, and storage medium Active CN111405105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010199753.5A CN111405105B (en) 2020-03-20 2020-03-20 Method and apparatus for controlling bluetooth headset, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010199753.5A CN111405105B (en) 2020-03-20 2020-03-20 Method and apparatus for controlling bluetooth headset, and storage medium

Publications (2)

Publication Number Publication Date
CN111405105A CN111405105A (en) 2020-07-10
CN111405105B true CN111405105B (en) 2022-03-29

Family

ID=71413924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010199753.5A Active CN111405105B (en) 2020-03-20 2020-03-20 Method and apparatus for controlling bluetooth headset, and storage medium

Country Status (1)

Country Link
CN (1) CN111405105B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111862975A (en) * 2020-07-15 2020-10-30 百度在线网络技术(北京)有限公司 Intelligent terminal control method, device, equipment, storage medium and system
CN112435663A (en) * 2020-11-11 2021-03-02 青岛歌尔智能传感器有限公司 Command voice management method, device, equipment and medium
CN115037831A (en) * 2021-03-05 2022-09-09 深圳市万普拉斯科技有限公司 Mode control method and device, electronic equipment and earphone
CN113810814B (en) * 2021-08-17 2023-12-01 百度在线网络技术(北京)有限公司 Earphone mode switching control method and device, electronic equipment and storage medium
CN113950037B (en) * 2021-12-10 2022-05-06 荣耀终端有限公司 Audio playing method and terminal equipment
CN116016750A (en) * 2022-12-13 2023-04-25 北京小米移动软件有限公司 Call control method and device, storage medium and chip
CN116390069A (en) * 2023-02-25 2023-07-04 荣耀终端有限公司 Bluetooth third party application call management method, electronic equipment and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277334A (en) * 2008-05-06 2008-10-01 宇龙计算机通信科技(深圳)有限公司 Mobile terminal with play mode and method for implementing play mode
CN103209246A (en) * 2012-01-16 2013-07-17 三星电子(中国)研发中心 Method for controlling handheld device through bluetooth headset and handheld device
CN104980839A (en) * 2015-07-08 2015-10-14 广东翼卡车联网服务有限公司 Vehicle-mounted intelligent Bluetooth handset and implementation method thereof
CN106530664A (en) * 2016-12-29 2017-03-22 深圳市秦通通讯有限公司 Intelligent-electric-apparatus data collecting system and method based on Bluetooth technology
CN108899025A (en) * 2018-07-24 2018-11-27 中国联合网络通信集团有限公司 Terminal equipment control method, equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102193699B1 (en) * 2014-12-31 2020-12-21 엘지전자 주식회사 Headset that is operated with mobile terminal using short range wireless communication
CN107785019A (en) * 2017-10-26 2018-03-09 西安Tcl软件开发有限公司 Mobile unit and its audio recognition method, readable storage medium storing program for executing
CN208227260U (en) * 2018-05-08 2018-12-11 国光电器股份有限公司 A kind of smart bluetooth earphone and bluetooth interactive system
CN109493849A (en) * 2018-12-29 2019-03-19 联想(北京)有限公司 Voice awakening method, device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277334A (en) * 2008-05-06 2008-10-01 宇龙计算机通信科技(深圳)有限公司 Mobile terminal with play mode and method for implementing play mode
CN103209246A (en) * 2012-01-16 2013-07-17 三星电子(中国)研发中心 Method for controlling handheld device through bluetooth headset and handheld device
CN104980839A (en) * 2015-07-08 2015-10-14 广东翼卡车联网服务有限公司 Vehicle-mounted intelligent Bluetooth handset and implementation method thereof
CN106530664A (en) * 2016-12-29 2017-03-22 深圳市秦通通讯有限公司 Intelligent-electric-apparatus data collecting system and method based on Bluetooth technology
CN108899025A (en) * 2018-07-24 2018-11-27 中国联合网络通信集团有限公司 Terminal equipment control method, equipment and storage medium

Also Published As

Publication number Publication date
CN111405105A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN111405105B (en) Method and apparatus for controlling bluetooth headset, and storage medium
US10824387B2 (en) Audio system with multi-screen application
US20230262605A1 (en) Method and system for operating a multi-function portable electronic device using voice-activation
US9509269B1 (en) Ambient sound responsive media player
US10681453B1 (en) Automatic active noise reduction (ANR) control to improve user interaction
CN107995360B (en) Call processing method and related product
JP2019117623A (en) Voice dialogue method, apparatus, device and storage medium
EP2760015A1 (en) Event-triggered hands-free multitasking for media playback
WO2015164047A1 (en) Method and apparatus for activating application by speech input
CN109473095A (en) A kind of intelligent home control system and control method
WO2021129262A1 (en) Server-side processing method and server for actively initiating conversation, and voice interaction system capable of actively initiating conversation
WO2018152679A1 (en) Audio file transmitting method and apparatus, audio file receiving method and apparatus, devices and system
JP2018185401A (en) Voice interactive system and voice interactive method
CN113573172A (en) Dual-device audio playing method and device, electronic device and storage medium
CN109686372B (en) Resource playing control method and device
KR20230133864A (en) Systems and methods for handling speech audio stream interruptions
CN110351419B (en) Intelligent voice system and voice processing method thereof
JP2015002394A (en) Information processing apparatus and computer program
CN112312368A (en) Data processing method, device, equipment and storage medium
KR20090027817A (en) Method for output background sound and mobile communication terminal using the same
US11924511B2 (en) Smart remote control for audio responsive media device
CN111128166B (en) Optimization method and device for continuous awakening recognition function
CN110351690B (en) Intelligent voice system and voice processing method thereof
EP2557763A1 (en) Remote control of a portable electronic device and method therefor
CN109243452A (en) A kind of method and system for sound control

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
CP02 Change in the address of a patent holder

Address after: 1211 Dongfang Science and Technology Building, No. 16 Keyuan Road, Science and Technology Park Community, Yuehai Street, Nanshan District, Shenzhen, Guangdong Province, 518000

Patentee after: Shenzhen weiai intelligent Co.,Ltd.

Address before: 518000 room 306, building 21, Xili Industrial Zone, No. 111, Xinguang Road, Xili community, Xili street, Nanshan District, Shenzhen, Guangdong

Patentee before: Shenzhen weiai intelligent Co.,Ltd.

CP02 Change in the address of a patent holder