Audio Control System
By disconnecting or disabling Bluetooth connection with the preempted device, it ensures that the Bluetooth headset can effectively handle the audio services of multiple devices while connecting multiple devices, and solves the problem of information loss caused by business conflicts.
Patent Information
- Application Number
- CN202011292453.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-09-10
- Filing Date
- 2020-11-18
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2040-11-18
AI Technical Summary
When Bluetooth headsets are connected to multiple electronic devices, when multiple devices initiate audio services at the same time, business conflicts are prone to occur, resulting in information loss.
By disconnecting the Bluetooth connection to the preempted electronic device when the Bluetooth headset establishes a Bluetooth connection with both electronic devices, or sending a message to the preempted electronic device instructing it to disable the Bluetooth headset, ensure that the preempted electronic device can output media audio streams through the Bluetooth headset.
It effectively avoids the concurrency of service on the Bluetooth headset side, ensures the normal output of the audio stream, and solves the problem of information loss.
Smart Images

Figure CN114173309B_ABST
Abstract
Description
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on September 10, 2020, with application number 202010950808.1 and application name “Audio Control System”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communication technology, and more specifically to an audio control method and an audio control system in the field of communication. Background Art
[0003] At present, some Bluetooth headsets can support simultaneous connection with multiple electronic devices (taking mobile phone 1 and mobile phone 2 as an example below), where the two mobile phones can be connected or not connected. When the Bluetooth headset is connected to two mobile phones, the Bluetooth headset needs to consider how to handle the service arbitration and preemption between the two mobile phones. In particular, when the Bluetooth headset is connected to two mobile phones and the two mobile phones are not connected, the Bluetooth headset is completely required to arbitrate.
[0004] At present, when mobile phone 1 and mobile phone 2 both initiate audio services, for example, mobile phone 1 initiates audio service 1 and mobile phone 2 initiates audio service 2, a service conflict may occur on the Bluetooth headset side. At this time, if the Bluetooth headset side currently processes audio service 1 but not audio service 2, the audio stream transmitted by mobile phone 2 may be discarded on the Bluetooth headset side; if the Bluetooth headset side currently processes audio service 2 but not audio service 1, the audio stream transmitted by mobile phone 1 may be discarded on the Bluetooth headset side. It can be seen that when multiple electronic devices connected to a Bluetooth device initiate audio services, information loss may occur. Summary of the invention
[0005] The present application provides an audio control system, which can solve the problem in the related art that when multiple electronic devices connected to a Bluetooth device initiate audio services, service conflicts occur and information is lost.
[0006] In a first aspect, the present application provides an audio control system, the system comprising a Bluetooth headset, a first electronic device, and a second electronic device, the Bluetooth headset establishing a first Bluetooth connection with the first electronic device, and establishing a second Bluetooth connection with the second electronic device, the first Bluetooth connection and the second Bluetooth connection supporting media audio stream transmission and call audio stream transmission;
[0007] The first electronic device is used to: send a first media audio stream to the Bluetooth headset in response to a first operation of a user;
[0008] The Bluetooth headset is used to: receive the first media audio stream sent by the first electronic device, and output the first media audio stream;
[0009] The second electronic device is used to: in response to a second operation of the user, output a second media audio stream through a first preset channel other than the Bluetooth headset;
[0010] The Bluetooth headset is also used to: when receiving the first operation of the user, the Bluetooth headset also performs at least one of the following actions: disconnecting the second Bluetooth connection between the Bluetooth headset and the second electronic device; sending a first message to the second electronic device, wherein the first message is used to indicate that the Bluetooth headset is occupied.
[0011] Through the above scheme, when the Bluetooth headset establishes Bluetooth connections with two electronic devices, when the Bluetooth headset transmits the media audio stream of a media service with one of the electronic devices, if the other electronic device initiates a media service again, for all devices that initiate media services, the service initiated first will first occupy the Bluetooth headset, and the media service initiated later will not occupy the Bluetooth headset, and by disconnecting the Bluetooth connection between the Bluetooth headset and the occupied electronic device or by sending a message to the occupied electronic device to instruct it to disable the Bluetooth headset, the occupying electronic device can output the media audio stream through the Bluetooth headset, and the occupied electronic device can output the media audio stream through the local device or other Bluetooth audio devices, thereby avoiding business concurrency on the Bluetooth headset side. Therefore, the problem of information loss caused by business conflicts when multiple electronic devices connected to the Bluetooth device initiate audio services in the related technology can be solved.
[0012] In a possible implementation manner, the second electronic device is further used for:
[0013] If it is detected that the second Bluetooth connection between the Bluetooth headset and the second electronic device is disconnected, switching the audio channel of the second electronic device from the Bluetooth headset to the first preset channel; or,
[0014] Receive the first message sent by the Bluetooth headset; and according to the first message, switch the audio channel of the second electronic device from the Bluetooth headset to the first preset channel.
[0015] In a possible implementation, the second electronic device is further used to: when the audio channel of the second electronic device is switched from the Bluetooth headset to the first preset channel, display a first prompt information for prompting that the audio channel has been switched from the Bluetooth headset to the first preset channel.
[0016] In a possible implementation, the Bluetooth headset is further used to: if the first media audio stream sent by the first electronic device is not received within a preset time period, perform a second action; the second action is any one of the following: when the second Bluetooth connection between the Bluetooth headset and the second electronic device is disconnected, reestablish the second Bluetooth connection and send a second message to the second electronic device; when the second Bluetooth connection is not disconnected, send a second message to the second electronic device, the second message being used to indicate that the Bluetooth headset is not occupied;
[0017] The second electronic device is also used to: receive the second message sent by the Bluetooth headset; and switch the audio channel of the second electronic device from the first preset channel to the Bluetooth headset according to the second message; or, in response to a user's confirmation operation on the second message, switch the audio channel of the second electronic device to the Bluetooth headset, and the confirmation operation is used to trigger the switching of the audio channel of the second electronic device to the Bluetooth headset.
[0018] In a possible implementation, the first electronic device is further used to: in response to the first operation, display a first audio switching interface, the first audio switching interface including at least two audio channel options and channel usage status information, the at least two audio channel options including the Bluetooth headset option, and the channel usage status information indicating that the Bluetooth headset is being used;
[0019] The second electronic device is also used to: display a second audio switching interface in response to the second operation, the second audio switching interface including at least two audio channel options and channel usage status information, the at least two audio channel options including an option for the Bluetooth headset and an option for the first preset channel, and the channel usage status information indicating that the first preset channel is being used.
[0020] In a possible implementation, the second electronic device is further used to: in response to a third operation of the user on the second audio switching interface, send the second media audio stream to the Bluetooth headset, wherein the third operation is used to trigger the second media audio stream to be output through the Bluetooth headset;
[0021] The Bluetooth headset is further used to: receive the second media audio stream sent by the second electronic device, output the second media audio stream, and send the first message to the first electronic device;
[0022] The first electronic device is further used to: receive the first message sent by the Bluetooth headset, and switch the audio channel of the first electronic device from the Bluetooth headset to a second preset channel according to the first message.
[0023] In a possible implementation manner, the first electronic device is further used to: receive the first message sent by the Bluetooth headset, determine the service type of the first media service currently being processed, and perform a third action according to the service type of the first media service;
[0024] The first media audio stream is the audio stream of the first media service, and the third action is any one of the following: suspending processing of the first media service, continuing processing of the first media service, continuing processing of the first media service and reducing the audio volume of the first media service, suspending processing of the first media service and displaying second prompt information, where the second prompt information is used to prompt whether to switch the audio channel from the Bluetooth headset to a second preset channel.
[0025] In a possible implementation manner, the first Bluetooth connection includes an Advanced Audio Distribution Profile A2DP connection, and the second Bluetooth connection includes the A2DP connection.
[0026] In a possible implementation, outputting the second media audio stream through a first preset channel other than the Bluetooth headset includes:
[0027] The second electronic device sends a second media audio stream to another Bluetooth device, wherein the other Bluetooth device has established a third Bluetooth connection with the second electronic device; or
[0028] The second electronic device plays the second media audio stream through a speaker or an earpiece.
[0029] In a second aspect, the present application further provides an audio control system, the system comprising a Bluetooth headset, a first electronic device, and a second electronic device, the Bluetooth headset establishing a first Bluetooth connection with the first electronic device, and establishing a second Bluetooth connection with the second electronic device, the first Bluetooth connection and the second Bluetooth connection supporting media audio stream transmission and call audio stream transmission;
[0030] The first electronic device is used to: send a first media audio stream to the Bluetooth headset in response to a first operation of a user;
[0031] The Bluetooth headset is used to: receive the first media audio stream sent by the first electronic device, output the first media audio stream, and perform a first action; the first action is any one of the following: disconnect the second Bluetooth connection between the Bluetooth headset and the second electronic device; send a first message to the second electronic device, the first message is used to indicate that the Bluetooth headset is occupied;
[0032] The second electronic device is used to: initiate a first call service, and send a first call audio stream of the first call service to the Bluetooth headset;
[0033] The Bluetooth headset is used to: receive the first call audio stream sent by the second electronic device, output the first call audio stream, and perform a second action; the second action is any one of the following: disconnect the first Bluetooth connection between the Bluetooth headset and the first electronic device; send the first message to the first electronic device.
[0034] Through the above scheme, when the Bluetooth headset establishes Bluetooth connections with two electronic devices, when the Bluetooth headset transmits the media audio stream of a media service with one electronic device, if the other electronic device initiates a call service, since the call service is set to have a higher priority than the media service, the call service can preempt the Bluetooth headset to output the call audio stream, and by disconnecting the Bluetooth connection between the Bluetooth headset and the other electronic device or by sending a message to the other electronic device instructing it to disable the Bluetooth headset, the electronic device of the preempting party can output the call audio stream through the Bluetooth headset, and the electronic device of the preempted party can output the media audio stream through the local device or other Bluetooth audio devices, thereby avoiding business concurrency on the Bluetooth headset side. Therefore, the problem of information loss caused by business conflicts when multiple electronic devices connected to the Bluetooth device initiate audio services in the related technology can be solved.
[0035] In a possible implementation manner, the first electronic device is further used for:
[0036] If it is detected that the first Bluetooth connection between the Bluetooth headset and the first electronic device is disconnected, switching the audio channel of the first electronic device from the Bluetooth headset to a first preset channel; or,
[0037] Receive the first message sent by the Bluetooth headset; and according to the first message, switch the audio channel of the first electronic device from the Bluetooth headset to the first preset channel.
[0038] In a possible implementation, the Bluetooth headset is further used to: if it is detected that the first call audio stream is a preset service prompt tone, mix the first media audio stream and the first call audio stream for output.
[0039] In a possible implementation, the first electronic device is further used to: receive the first message sent by the Bluetooth headset, determine the service type of the first media service currently being processed, and perform a third action according to the service type of the first media service;
[0040] The first media audio stream is the audio stream of the first media service, and the third action is any one of the following: suspending processing of the first media service, continuing processing of the first media service, continuing processing of the first media service and reducing the audio volume of the first media service, suspending processing of the first media service and displaying second prompt information, where the second prompt information is used to prompt whether to switch the audio channel from the Bluetooth headset to the first preset channel.
[0041] In a possible implementation, the Bluetooth headset is further used to: if the second call audio stream sent by the second electronic device is not received within a preset time period, perform a fourth action; the fourth action is any one of the following: when the first Bluetooth connection between the Bluetooth headset and the first electronic device is disconnected, reestablish the first Bluetooth connection and send a second message to the first electronic device; when the first Bluetooth connection is not disconnected, send the second message to the first electronic device, the second message being used to indicate that the Bluetooth headset is not occupied;
[0042] The first electronic device is also used to: receive the second message sent by the Bluetooth headset; and switch the audio channel of the first electronic device from the first preset channel to the Bluetooth headset according to the second message; or, in response to a user's confirmation operation on the second message, switch the audio channel of the first electronic device to the Bluetooth headset, and the confirmation operation is used to trigger the switching of the audio channel of the first electronic device to the Bluetooth headset.
[0043] In a possible implementation, the first electronic device is further used to: in response to the first operation, display a first audio switching interface, wherein the first audio switching interface includes at least two audio channel options and channel usage status information, and the at least two audio channel options include the Bluetooth headset option;
[0044] The second electronic device is also used to: display a second audio switching interface when initiating the first call service, the second audio switching interface including at least two audio channel options and channel usage status information, the at least two audio channel options including an option for the Bluetooth headset, and the channel usage status information indicating that the Bluetooth headset is being used.
[0045] In a possible implementation, the first electronic device is further used to: in response to a second operation of a user on the second audio switching interface, send the first media audio stream to the Bluetooth headset, where the second operation is used to trigger the first media audio stream to be output through the Bluetooth headset;
[0046] The Bluetooth headset is further used to: receive the first media audio stream sent by the first electronic device, output the first media audio stream, and send the first message to the second electronic device;
[0047] The second electronic device is further used to: receive the first message sent by the Bluetooth headset, and switch the audio channel of the second electronic device from the Bluetooth headset to a second preset channel according to the first message.
[0048] In a possible implementation manner, the first Bluetooth connection includes an Advanced Audio Distribution Profile A2DP connection and a Hands-Free Profile HFP connection; and the second Bluetooth connection includes the A2DP connection and the HFP connection.
[0049] In a possible implementation, the Bluetooth headset is further used to: identify whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset, and send the identification result to the first electronic device and / or the second electronic device;
[0050] The first electronic device and / or the second electronic device is also used for: when the wearer of the Bluetooth headset is the owner of the device, sending the call audio stream to the Bluetooth headset when executing a call service; when the wearer of the Bluetooth headset is not the owner of the device, not sending the call audio stream to the Bluetooth headset when executing a call service.
[0051] In a possible implementation, the Bluetooth headset is further used for:
[0052] Identify whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset;
[0053] When the wearer of the Bluetooth headset is the owner, after receiving the call audio stream, outputting the call audio stream;
[0054] When the wearer of the Bluetooth headset is not the owner of the device, after receiving the call audio stream, the call audio stream is not output.
[0055] Through the above solution, when a non-owner uses a Bluetooth headset and a first electronic device, and the owner uses a second electronic device, when the second electronic device has a call service (including incoming or outgoing calls), since the Bluetooth headset is not currently worn by the owner, the second electronic device will not use the Bluetooth headset for calls. This solution can prevent the owner's call privacy from being leaked to a certain extent, and can improve the user experience when a non-owner uses a Bluetooth headset.
[0056] In a possible implementation, the Bluetooth headset identifies whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset, including: the Bluetooth headset identifies whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset based on ear canal recognition, bone voiceprint recognition or voice recognition.
[0057] In a third aspect, the present application further provides an audio control system, the system comprising a Bluetooth headset, a first electronic device, and a second electronic device, the Bluetooth headset establishing a first Bluetooth connection with the first electronic device, and establishing a second Bluetooth connection with the second electronic device, the first Bluetooth connection and the second Bluetooth connection supporting media audio stream transmission and call audio stream transmission;
[0058] The first electronic device is used to: initiate a first call service, and send a first call audio stream of the first call service to the Bluetooth headset;
[0059] The Bluetooth headset is used to: receive the first call audio stream sent by the first electronic device, output the first call audio stream, and perform a first action; the first action is any one of the following: disconnect the second Bluetooth connection between the Bluetooth headset and the second electronic device; send a first message to the second electronic device, the first message is used to indicate that the Bluetooth headset is occupied;
[0060] The second electronic device is used to: initiate a first call service, and send a second call audio stream of the first call service to the Bluetooth headset;
[0061] The Bluetooth headset is used to: receive the second call audio stream sent by the second electronic device, output the second call audio stream, and perform a second action; the second action is any one of the following: disconnect the first Bluetooth connection between the Bluetooth headset and the first electronic device; send the first message to the first electronic device.
[0062] Through the above scheme, when the Bluetooth headset establishes Bluetooth connections with two electronic devices, when the Bluetooth headset transmits the call audio stream of the call service with one electronic device, if the other electronic device initiates the call service later, for both devices that initiate the call service, the latter call service can take precedence over the former call service to seize the Bluetooth headset, and by disconnecting the Bluetooth connection between the Bluetooth headset and the seized electronic device or by sending a message to the seized electronic device instructing it to disable the Bluetooth headset, the electronic device of the seizing party can output the call audio stream through the Bluetooth headset, and the electronic device of the seized party can output the call audio stream through the local device or other Bluetooth audio devices, thereby avoiding business concurrency on the Bluetooth headset side. Therefore, the problem of business conflict and information loss caused by multiple electronic devices connected to the Bluetooth device in the related technology can be solved.
[0063] In a possible implementation manner, the first electronic device is further used for:
[0064] If it is detected that the first Bluetooth connection between the Bluetooth headset and the first electronic device is disconnected, switching the audio channel of the first electronic device from the Bluetooth headset to a first preset channel; or,
[0065] Receive the first message sent by the Bluetooth headset; and according to the first message, switch the audio channel of the first electronic device from the Bluetooth headset to the first preset channel.
[0066] In a possible implementation, the first electronic device is further used to: receive the first message sent by the Bluetooth headset, determine the service type of the first call service currently being processed, and perform a third action according to the service type of the first call service;
[0067] Among them, the first call audio stream is the audio stream of the first call service, and the third action is any one of the following: switching the first call service to call hold, outputting the first call audio stream through the first preset channel, outputting the first call audio stream through the first preset channel and reducing the volume of the first call audio stream, switching the first call service to call hold and displaying prompt information, wherein the prompt information is used to prompt whether to switch the audio channel from the Bluetooth headset to the first preset channel.
[0068] In a possible implementation, the Bluetooth headset is further used to: if the first call audio stream sent by the second electronic device is not received within a preset time period, perform a fourth action; the fourth action is any one of the following: when the first Bluetooth connection between the Bluetooth headset and the first electronic device is disconnected, reestablish the first Bluetooth connection and send a second message to the first electronic device; when the first Bluetooth connection is not disconnected, send the second message to the first electronic device, the second message being used to indicate that the Bluetooth headset is not occupied;
[0069] The first electronic device is also used to: receive the second message sent by the Bluetooth headset; and switch the audio channel of the first electronic device from the first preset channel to the Bluetooth headset according to the second message; or, in response to a user's confirmation operation on the second message, switch the audio channel of the first electronic device to the Bluetooth headset, and the confirmation operation is used to trigger the switching of the audio channel of the first electronic device to the Bluetooth headset.
[0070] In a possible implementation, the first electronic device is further used to: when initiating the first call service, display a first audio switching interface, wherein the first audio switching interface includes at least two audio channel options and channel usage status information, and the at least two audio channel options include an option for the Bluetooth headset;
[0071] The second electronic device is also used to: display a second audio switching interface when initiating the second call service, the second audio switching interface including at least two audio channel options and channel usage status information, the at least two audio channel options including an option for the Bluetooth headset, and the channel usage status information indicating that the Bluetooth headset is being used.
[0072] In a possible implementation, the first electronic device is further used to: in response to a first operation of a user on the second audio switching interface, send the first call audio stream to the Bluetooth headset, wherein the first operation is used to trigger the first call audio stream to be output through the Bluetooth headset;
[0073] The Bluetooth headset is further used to: receive the first call audio stream sent by the first electronic device, output the first call audio stream, and send the first message to the second electronic device;
[0074] The second electronic device is further used to: receive the first message sent by the Bluetooth headset, and switch the audio channel of the second electronic device from the Bluetooth headset to a second preset channel according to the first message.
[0075] In a possible implementation manner, the first Bluetooth connection includes an Advanced Audio Distribution Profile A2DP connection and a Hands-Free Profile HFP connection; and the second Bluetooth connection includes the A2DP connection and the HFP connection.
[0076] In a possible implementation, the Bluetooth headset is further used to: identify whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset, and send the identification result to the first electronic device and / or the second electronic device;
[0077] The first electronic device and / or the second electronic device is also used for: when the wearer of the Bluetooth headset is the owner of the device, sending the call audio stream to the Bluetooth headset when executing a call service; when the wearer of the Bluetooth headset is not the owner of the device, not sending the call audio stream to the Bluetooth headset when executing a call service.
[0078] In a possible implementation, the Bluetooth headset is further used for:
[0079] Identify whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset;
[0080] When the wearer of the Bluetooth headset is the owner, after receiving the call audio stream, outputting the call audio stream;
[0081] When the wearer of the Bluetooth headset is not the owner of the device, after receiving the call audio stream, the call audio stream is not output.
[0082] Through the above solution, when a non-owner uses a Bluetooth headset and a first electronic device, and the owner uses a second electronic device, when the second electronic device has a call service (including incoming or outgoing calls), since the Bluetooth headset is not currently worn by the owner, the second electronic device will not use the Bluetooth headset for calls. This solution can prevent the owner's call privacy from being leaked to a certain extent, and can improve the user experience when a non-owner uses a Bluetooth headset.
[0083] In a possible implementation, the Bluetooth headset identifies whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset, including: the Bluetooth headset identifies whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset based on ear canal recognition, bone voiceprint recognition or voice recognition.
[0084] For different service concurrency scenarios, the embodiments of the present application can adopt different preemption strategies: for service concurrency scenarios where both devices initiate media services, a preemption strategy is adopted where the first initiated service uses the headset first and the later initiated service is processed on the local side; for service concurrency scenarios where both devices initiate media services and call services respectively, a preemption strategy is adopted where the service with higher priority uses the headset first; for service concurrency scenarios where both devices initiate call services, a preemption strategy is adopted where the latter incoming call uses the headset first and the former incoming call is kept on the local side, and each scenario follows the preemption strategy of the headset with the highest priority manually operated by the user. The present application scheme can avoid the problem of information loss caused by service conflicts when multiple electronic devices connected to a Bluetooth device initiate audio services. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] Figure 1 It is a schematic diagram of a system architecture provided in an embodiment of the present application.
[0086] Figure 2 It is a structural diagram of a wireless device provided in an embodiment of the present application.
[0087] Figure 3 It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which an audio control method provided in an embodiment of the present application is applied.
[0088] Figure 4 This is one of the flow charts of an audio control method provided in an embodiment of the present application.
[0089] Figure 5A It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which an audio control method provided in an embodiment of the present application is applied.
[0090] Figure 5B It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0091] Figure 5C This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0092] Figure 5D This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0093] Figure 5E This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method is applied provided in an embodiment of the present application.
[0094] Figure 6 This is the second flow chart of an audio control method provided in an embodiment of the present application.
[0095] Fig. 7A It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which an audio control method provided in an embodiment of the present application is applied.
[0096] Figure 7B It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0097] Figure 7C This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0098] Fig.7D This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0099] Figure 8 This is the third flow chart of an audio control method provided in an embodiment of the present application.
[0100] Fig.9A It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which an audio control method provided in an embodiment of the present application is applied.
[0101] Fig. 9B It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0102] Fig. 9C This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0103] Fig.9D This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0104] Fig.10 This is the fourth flow chart of an audio control method provided in an embodiment of the present application.
[0105] Fig.11A It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which an audio control method provided in an embodiment of the present application is applied.
[0106] Fig. 11B It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0107] Fig. 11C This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0108] Fig.11D This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0109] Fig.11E This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method is applied provided in an embodiment of the present application.
[0110] Fig.12 This is the fifth flow chart of an audio control method provided in an embodiment of the present application.
[0111] Fig.13A It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which an audio control method provided in an embodiment of the present application is applied.
[0112] Fig. 13B It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0113] Fig. 13C This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0114] Fig.13D This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0115] Fig.14 This is the sixth flow chart of an audio control method provided in an embodiment of the present application.
[0116] Fig.15A It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which an audio control method provided in an embodiment of the present application is applied.
[0117] Fig. 15B It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0118] Fig. 15C This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0119] Fig.15D This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0120] Fig.16 This is the seventh flow chart of an audio control method provided in an embodiment of the present application.
[0121] Fig.17A It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which an audio control method provided in an embodiment of the present application is applied.
[0122] Fig. 17B It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0123] Fig. 17C This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0124] Fig.17D This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0125] Fig.18 This is the eighth flow chart of an audio control method provided in an embodiment of the present application.
[0126] Fig.19A It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which an audio control method provided in an embodiment of the present application is applied.
[0127] Fig.19B It is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0128] Fig.19C This is a schematic diagram of the interaction between a Bluetooth headset and two electronic devices in an audio control system to which another audio control method provided in an embodiment of the present application is applied.
[0129] Fig. 20 This is the ninth flow chart of an audio control method provided in an embodiment of the present application.
[0130] Fig.21 This is the tenth flowchart of an audio control method provided in an embodiment of the present application.
[0131] Fig. 22 It is a schematic diagram of an application scenario of a Bluetooth headset provided by an embodiment of the present application.
[0132] Fig.23 It is a schematic diagram of the setting process of a Bluetooth headset provided by an embodiment of the present application.
[0133] Fig.24 It is a schematic diagram of the setting process of a Bluetooth headset provided in another embodiment of the present application.
[0134] Fig.25 It is a flowchart of a calling method provided by an embodiment of the present application.
[0135] Fig.26 This is a flowchart of a calling method provided by another embodiment of the present application.
[0136] Fig. 27 This is a schematic diagram of an application scenario of a Bluetooth headset provided in another embodiment of the present application.
[0137] Fig.28 This is a flowchart of a calling method provided by yet another embodiment of the present application.
[0138] Fig.29 This is a flowchart of a calling method provided by yet another embodiment of the present application.
[0139] Fig.30 It is a structural schematic diagram of an audio control system provided in an embodiment of the present application.
[0140] Fig.31 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0141] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0142] In the description of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. Also, in the description of the present application, unless otherwise specified, "multiple" means two or more than two. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, the "first" and "second" described in the embodiments of the present application are used to distinguish different objects, or to distinguish different treatments of the same object, rather than to describe the specific order of objects.
[0143] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0144] First, some nouns or terms involved in the claims and description of this application are explained below.
[0145] The Bluetooth baseband technology supports two connection types: an asynchronous connectionless (ACL) type and a synchronous connection oriented link (SCO) type, which are respectively called an ACL connection and a SCO connection.
[0146] (1) ACL connection: Also called ACL link, it can send data packets in a directional manner and supports both symmetric and asymmetric connections (one-to-one or one-to-many).
[0147] (2) SCO connection: Also known as a SCO link, a SCO connection is a symmetrical connection that uses reserved time slots to transmit data packets. SCO packets can transmit both voice and data. SCO packets are mainly used to transmit communication data that is very time-sensitive. In addition, extended SCO (eSCO) links can also be used to transmit communication data that is very time-sensitive.
[0148] Among them, the ACL link is mainly used for packet data transmission (such as media services), and the SCO link or eSCO link is mainly used for synchronous voice transmission (such as call services). It should be noted that the solution provided in the embodiment of the present application does not limit the SCO link or the eSCO link. For the sake of convenience, the following SCO link is used as an example to describe this solution.
[0149] In order to achieve interoperability between different devices on different platforms, corresponding specifications have been formulated for various possible application scenarios with general significance in the Bluetooth audio transmission protocol, such as the Advanced Audio Distribution Profile (A2DP) and the Hands-Free Profile (HFP).
[0150] (3) A2DP specification: supports the transmission of stereo audio streams. The A2DP specification is a high-quality audio protocol running on the ACL link. The A2DP specification defines the protocol and process for transmitting high-quality audio information such as mono or stereo on the ACL link. The connection between devices based on the A2DP specification can be called an A2DP service specification connection, or A2DP connection for short.
[0151] Exemplarily, if the Bluetooth headset and the electronic device activate the A2DP specification, that is, the Bluetooth headset and the electronic device establish an A2DP connection, the electronic device can transmit high-quality audio information to the Bluetooth headset through the ACL link based on the A2DP specification.
[0152] (4) HFP specification: stands for hands-free function, which mainly defines the implementation of some functions related to making / receiving calls. The connection between devices based on the HFP specification can be called an HFP service specification connection, or HFP connection for short.
[0153] For example, if the Bluetooth headset and the electronic device activate the HFP specification, that is, the Bluetooth headset and the electronic device establish an HFP connection, the electronic device can transmit call audio information to the Bluetooth headset through the SCO link based on the HFP specification, and the Bluetooth headset can control the telephone functions of the electronic device, such as answering, hanging up, rejecting, voice dialing and other functions.
[0154] It should be noted that the ACL connection and the SCO connection are connections on the physical layer of the Bluetooth audio output protocol, and the A2DP connection and the HFP connection are connections on the application layer of the Bluetooth audio output protocol.
[0155] At present, some Bluetooth headsets can support simultaneous connection with two electronic devices, where the two electronic devices can be connected or not. When the Bluetooth headset is connected to two electronic devices, it is necessary to consider how to handle the service arbitration and preemption between the two electronic devices. In particular, for the situation where the Bluetooth headset is connected to two electronic devices and the two electronic devices are not connected, the Bluetooth headset is completely required to arbitrate. In addition, when both electronic devices initiate audio services (i.e., business concurrency), a business conflict may occur on the Bluetooth headset side, resulting in the audio stream not being able to be output normally. The following takes the two electronic devices, namely mobile phone 1 and mobile phone 2, as an example to introduce the technical solutions used in the relevant technology.
[0156] In an existing solution, when a Bluetooth headset is connected to two mobile phones, the Bluetooth headset only establishes one type of service specification connection (such as A2DP connection or HFP connection) with one mobile phone, for example, the Bluetooth headset establishes an A2DP connection with mobile phone 1, and establishes an HFP connection with mobile phone 2. The two mobile phones distinguish different services, that is, under this solution, each mobile phone can only perform one type of service. For example, if mobile phone 1 establishes an A2DP connection with the Bluetooth headset, audio services such as music and prompt tones on mobile phone 2 cannot be heard on the Bluetooth headset; or, if the Bluetooth headset establishes an HFP connection with mobile phone 2, calls on mobile phone 1 cannot be heard on the Bluetooth headset.
[0157] The above solution has the following problems: (1) If two mobile phones need to switch services, the user needs to manually switch between A2DP connection and HFP connection in the Bluetooth settings of the electronic device. (2) When one mobile phone maintains HFP connection and A2DP connection with the Bluetooth headset, the other mobile phone can no longer actively connect to the Bluetooth headset.
[0158] In another existing solution, when the Bluetooth headset and mobile phone 1 are in a media audio service, when mobile phone 2 initiates a media audio service, the Bluetooth headset will first accept it and immediately initiate a pause of the media audio service of mobile phone 2. If the media audio service (such as a game service or a video service) does not support pause, the media audio stream of mobile phone 2 will be discarded by the Bluetooth headset, that is, the audio stream cannot be output normally.
[0159] When the Bluetooth headset and mobile phone 1 are in a media audio service, if mobile phone 2 comes to make an audio call, the media audio service of mobile phone 1 will be suspended. If the media audio service does not support suspension, the media audio stream of mobile phone 1 will be discarded on the headset, that is, the audio stream cannot be output normally; after mobile phone 2 refuses to answer or ends the call, the Bluetooth headset resumes the media audio service with mobile phone 1.
[0160] When the Bluetooth headset and mobile phone 1 are in a call audio service, mobile phone 2 initiates a call audio service. If the call voice of mobile phone 2 is answered on the Bluetooth headset, the call voice of mobile phone 1 is hung up; if the call voice is answered on mobile phone 2, the call voice of mobile phone 2 continues to be transmitted to the Bluetooth headset, but no sound can be made. Only the call voice of mobile phone 1 can be made on the Bluetooth headset.
[0161] The above solution has the following problems: if the audio service is a video service, for most applications, the pause initiated by the headset will not be effective, and the sound will continue to be sent to the Bluetooth headset, resulting in the concurrency of services of two mobile phones on the Bluetooth headset, affecting stability; at the same time, the sound of the mobile phone cannot be heard, and the sound can only be heard from the mobile phone after the Bluetooth connection is disconnected.
[0162] As mentioned above, when mobile phone 1 is using the Bluetooth headset voice call service, if mobile phone 2 receives a voice call and answers the call on the mobile phone, the mobile phone cannot make any sound, resulting in the inability to answer the call on mobile phone 2, and the call needs to be manually switched to the mobile phone to make any sound.
[0163] Figure 1 FIG. 1 is a schematic diagram showing the architecture of a communication system involved in various exemplary embodiments of the present application. Figure 1 As shown, the communication system 100 may include a wireless device 10 and at least two electronic devices (e.g., 1, 2, 3, 4). The wireless device 10 may simultaneously maintain wireless connection with at least two electronic devices through wireless communication technology. For example, the wireless communication technology may be Bluetooth (BT), traditional Bluetooth or low-power BLE Bluetooth, or general 2.4G / 5G frequency band wireless communication technology, etc.
[0164] The wireless device 10 may be: Figure 1 The Bluetooth headset shown can of course also be a wireless speaker, a wireless bracelet, a wireless car, wireless smart glasses, a wireless watch, an augmented reality (AR) / virtual reality (VR) device, etc. The electronic device can be a mobile phone, a media player (such as MP3, MP4, etc.), a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a personal digital assistant (PDA), a television or a smart watch, etc. The embodiment of the present application does not specifically limit the device types of the wireless device 10 and the at least two electronic devices.
[0165] The present application embodiment takes the wireless device as a Bluetooth headset as an example for explanation. The Bluetooth headset can be of various types, such as earplug type, in-ear type, head-mounted type, earmuff type or ear-hanging type Bluetooth headset. The Bluetooth headset can include a first part and a second part respectively worn on the left ear and right ear of the user, which can be connected by a connecting line, such as a neckband Bluetooth headset; or two independent parts, such as a true wireless stereo (TWS) headset.
[0166] For example, Figure 2 The schematic diagram of the structure of a Bluetooth headset 10 is shown. The Bluetooth headset 10 may include at least one processor 101, at least one memory 102, a wireless communication module 103, an audio module 104, a power module 105, and an input / output interface 106. The processor may include one or more interfaces for connecting to other components of the Bluetooth headset 10. The Bluetooth headset 10 is stored in an earphone box. Figure 2 The various components of the Bluetooth headset 10 are introduced in detail.
[0167] The memory 102 can be used to store program codes, such as program codes for physically connecting the Bluetooth headset 10 with multiple electronic devices, connecting with electronic devices in accordance with service specifications, processing audio services of electronic devices (such as music playback, answering / calling, etc.), charging the Bluetooth headset 10, and wirelessly pairing the Bluetooth headset 10 with other electronic devices. The memory 102 can also be used to store other information, such as the priority of electronic devices.
[0168] The processor 101 can be used to execute the above-mentioned application code and call related modules to implement the functions of the Bluetooth headset 10 in the embodiment of the present application. For example, the Bluetooth headset 10 can be physically connected to multiple electronic devices, service specification connection, audio playback, answering / making calls, switching service specification connections between different electronic devices according to device priority, and other functions. For another example, a service preemption function is supported. Exemplarily, when the Bluetooth headset establishes a service specification connection with the electronic device 1 and is processing the audio service 1 of the electronic device 1 (for example, playing music), if the Bluetooth headset receives the connection request information of the electronic device 2, the Bluetooth headset can process the audio service 2 of the electronic device 2 (for example, answering / making calls) based on the service specification connection with the electronic device 2, so as to implement the service preemption function of the audio service 2 of the electronic device 2.
[0169] The processor 101 may include one or more processing units, and different processing units may be independent devices or integrated into one or more processors 101. The processor 101 may specifically be an integrated control chip, or may be composed of a circuit including various active and / or passive components, and the circuit is configured to perform the functions of the processor 101 described in the embodiments of the present application.
[0170] The wireless communication module 103 can be used to support data exchange between the Bluetooth headset 10 and other electronic devices or earphone boxes through wireless communication technology, such as BT, WLAN (such as Wi-Fi), Zigbee, FM, NFC, IR, or general 2.4G / 5G wireless communication technology.
[0171] In some embodiments, the wireless communication module 103 may be a Bluetooth chip. The Bluetooth headset 10 may be paired with a Bluetooth chip of another electronic device through the Bluetooth chip and establish a wireless connection to achieve wireless communication and service processing between the Bluetooth headset 10 and the other electronic device through the wireless connection. Typically, a Bluetooth chip may support basic rate (BR) / enhanced data rate (EDR) Bluetooth and BLE, for example, it may receive / send paging information, receive / send BLE broadcast messages, etc.
[0172] In addition, the wireless communication module 103 may also include an antenna, and the wireless communication module 103 receives electromagnetic waves via the antenna, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 101. The wireless communication module 103 may also receive a signal to be sent from the processor 101, modulate the frequency of the signal, amplify the signal, and convert it into an electromagnetic wave for radiation through the antenna.
[0173] The audio module 104 can be used to manage audio data and implement the input and output audio streams of the Bluetooth headset 10. For example, the audio module 104 can obtain the audio stream from the wireless communication module 103, or transmit the audio stream to the wireless communication module 103, to implement functions such as making and receiving calls, playing music, starting / turning off the voice assistant of the electronic device connected to the headset, receiving / sending the user's voice data, etc. through the Bluetooth headset. The audio module 104 may include a speaker (or earpiece, receiver) component for outputting an audio stream, a microphone (or microphone, microphone), a microphone receiving circuit matched with the microphone, etc. The speaker can be used to convert an audio electrical signal into a sound signal and play it. The microphone can be used to convert a sound signal into an audio electrical signal.
[0174] The power module 105 can be used to provide system power for the Bluetooth headset 10, power each module of the Bluetooth headset 10, support the Bluetooth headset 10 to receive charging input, etc. The power module 105 may include a power management unit (PMU) and a battery. Among them, the power management unit can receive external charging input; transform the electrical signal input by the charging circuit and provide it to the battery for charging, and can also transform the electrical signal provided by the battery and provide it to other modules such as the audio module 104 and the wireless communication module 103; and prevent the battery from being overcharged, over-discharged, short-circuited or overcurrent, etc. In some embodiments, the power module 105 may also include a wireless charging coil for wirelessly charging the Bluetooth headset 10. In addition, the power management unit can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
[0175] The multiple input / output interfaces 106 can be used to provide a wired connection for charging or communication between the Bluetooth headset 10 and the headset box. In some embodiments, the input / output interface can be a USB interface. In other embodiments, the input / output interface 106 can be an earphone electrical connector. When the Bluetooth headset 10 is placed in the headset box, the Bluetooth headset 10 can establish an electrical connection with the electrical connector in the headset box through the earphone electrical connector, thereby charging the battery in the Bluetooth headset 10. In other embodiments, after the electrical connection is established, the Bluetooth headset 10 can also communicate data with the headset box, for example, it can receive a pairing instruction from the headset box.
[0176] In addition, the Bluetooth headset 10 may further include a sensor 107. For example, the sensor 107 may be a distance sensor or a proximity light sensor, which may be used to determine whether the Bluetooth headset 10 is worn by the user. Exemplarily, the Bluetooth headset 10 may use the distance sensor to detect whether there is an object near the Bluetooth headset 10, thereby determining whether the Bluetooth headset 10 is worn by the user. When it is determined that the Bluetooth headset 10 is worn, the Bluetooth headset 10 may turn on the speaker.
[0177] For another example, the sensor 107 may also include a bone conduction sensor, combined into a bone conduction headset. Using the bone conduction sensor, the Bluetooth headset 10 can obtain the vibration signal of the human vocal bone, parse the voice signal, implement the voice function, and thus receive the user's voice command. The Bluetooth headset 10 can also perform voice authentication based on the user's voice signal obtained by the bone conduction headset to authenticate the user's identity in business scenarios such as payment transactions.
[0178] For another example, the sensor 107 may also include: a touch sensor for detecting a user's touch operation; a fingerprint sensor for detecting a user's fingerprint and identifying the user's identity; an ambient light sensor that can adaptively adjust some parameters (such as volume) according to the perceived brightness of the ambient light; and other possible sensors.
[0179] In some embodiments, the touch sensor can detect the user's touch operations such as single click, double click, multiple clicks, long press, and heavy pressure, and can also perform user fingerprint recognition to authenticate the user's identity in business scenarios such as payment transactions.
[0180] It is understandable that the structure shown in the embodiment of the present application does not constitute a specific limitation on the Bluetooth headset 10. Figure 2 More or fewer components shown may be combined with two or more components, or may have different component configurations. For example, the outer surface of the Bluetooth headset 10 may also include a button 108, an indicator light (which may indicate battery level, incoming / outgoing call, pairing mode, etc.), a display screen (which may prompt the user with relevant information), a dust screen (which may be used in conjunction with a handset), and other components. The button 108 may be a physical button or a touch button (used in conjunction with a touch sensor), etc., which is used to trigger operations such as power on, power off, pause, play, record, start pairing, and reset.
[0181] Figure 2 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application-specific integrated circuits. Exemplarily, when the Bluetooth headset is a TWS headset, the Bluetooth headset 10 may include an earphone body 01 (also called the left earplug, or the first part) worn on the left ear and an earphone body 02 (also called the right earplug, or the second part) worn on the right ear. The earphone body may include a housing and internal components. The internal components are arranged in a cavity formed by the housing. The internal components may include devices in modules such as the above-mentioned audio module, power module, and wireless communication module.
[0182] When the Bluetooth headset is a TWS headset, the user can use the TWS headset in binaural mode or monaural mode. In monaural mode, the user wears the left earbud or the right earbud to listen to music or answer / make calls and other audio services. In binaural mode, the user can wear two earbuds to enjoy music or perform other audio services. In binaural mode, the two earbuds are divided into main earbuds and auxiliary earbuds. Moreover, during the use of TWS headsets, the main and auxiliary roles of the two earbuds can also be switched based on different conditions. For example, the earbud with higher power can be switched to the main earbud, and the earbud with lower power can be switched to the auxiliary earbud.
[0183] In some embodiments, the Bluetooth headset is usually stored in an earphone box. The earphone box may have one or more magnets inside to attract the earphone body into the cavity in the earphone box. The earphone box may include a battery and multiple input / output interfaces. In some embodiments, the input / output interface may be a box electrical connector. When a pair of box electrical connectors in the earphone box are electrically connected to two earphone electrical connectors in the earphone body, the earphone box can charge the battery in the earphone body through its own battery.
[0184] In other embodiments, the headset box may be provided with at least one touch control, which may be used to trigger the Bluetooth headset to perform pairing reset or charge the Bluetooth headset. The headset box may also be provided with one or more power indicator lights to prompt the user with the power level of the battery in the headset box and the power level of the battery in each headset body in the headset box.
[0185] In other embodiments, the earphone box may further include components such as a processor and a memory. The memory may be used to store application code, and the processor of the earphone box controls execution to implement various functions of the earphone box. For example, the processor of the earphone box executes the application code stored in the memory, and charges the Bluetooth headset after detecting that the Bluetooth headset is placed in the earphone box and the lid of the earphone box is closed.
[0186] In addition, the earphone box may be provided with a charging interface for charging the battery of the earphone box. The earphone box may also include a wireless charging coil for wirelessly charging the battery of the earphone box. It is understandable that the earphone box may also include other components, which will not be described one by one here.
[0187] Understandably, Figure 2 The components shown do not constitute a specific limitation on the Bluetooth headset 10 , and the Bluetooth headset 10 may also include more or fewer components than those shown in the figure, or combine or separate certain components, or arrange the components differently.
[0188] It should be noted that the electronic device in the embodiments of the present application may be a mobile terminal or a non-mobile terminal. For example, the mobile terminal may be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and the non-mobile terminal may be a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiments of the present application.
[0189] Based on the above application scenarios, system architecture and hardware configuration, an embodiment of the present application provides an audio control system and an audio control method. The audio control system includes a Bluetooth headset, a first electronic device (hereinafter referred to as electronic device 1) and a second electronic device (hereinafter referred to as electronic device 2). The Bluetooth headset establishes a first Bluetooth connection with the first electronic device and establishes a second Bluetooth connection with the second electronic device. The first Bluetooth connection and the second Bluetooth connection support media audio stream transmission and call audio stream transmission.
[0190] It should be noted that the execution subject of the audio control method provided in the embodiment of the present application can be a Bluetooth headset, or a functional module and / or functional entity in the Bluetooth headset that can implement the method, which can be determined according to actual use requirements and is not limited in the embodiment of the present application. The following takes the execution subject as a Bluetooth headset as an example to exemplarily illustrate the audio control method provided in the embodiment of the present application.
[0191] An audio control method provided in an embodiment of the present application is exemplarily described below with reference to the accompanying drawings.
[0192] In the embodiments of the present application, audio services may include multiple types, for example, audio services may include media services and call services (also called voice call services or voice services), etc. Among them, media services may include services such as playing music, recordings, sounds in video files, background music in games, incoming call prompts, information prompts, voice messages, navigation voice broadcasts, smart broadcasts, alarms, key tones, etc., and of course, any other possible services may also be included. The call service may include playing the voice data of the other end for the user in scenarios such as phone calls (including incoming and outgoing calls), video calls, audio calls, voice messages, games or voice assistants, or collecting the user's voice data and sending it to the other end. It should be noted that the audio stream corresponding to the media service is referred to as the media audio stream, and the audio stream corresponding to the call service is referred to as the call audio stream.
[0193] When electronic device 1 initiates an audio service, if an audio service connection (such as an A2DP connection) is established between electronic device 1 and the wireless device, the wireless device can automatically process the audio service of electronic device 1 based on the audio service connection; if the wireless device currently has an audio service connection with electronic device 2, the wireless device can disconnect the audio service connection with electronic device 2 and process the audio service of electronic device 1 based on the audio service with electronic device 1. Thus, the wireless device can automatically switch to process the audio services of multiple (may be greater than 2) electronic devices, and multiple electronic devices can share one wireless device.
[0194] In an embodiment of the present application, multiple electronic devices can share a Bluetooth headset. It is assumed that the Bluetooth headset and electronic devices 1 and 2 have activated the Bluetooth transmission protocol specifications A2DP and HFP, wherein A2DP is a transmission specification that supports audio services, and HFP is a hands-free specification that supports call services. In other words, the Bluetooth headset maintains an A2DP connection and an HFP connection (dual connection) with both electronic devices. In an embodiment of the present application, multiple electronic devices can be the same account based on security considerations; or they can be different accounts, and the accounts can be cloud accounts, mobile phone numbers, etc. That is, multiple electronic devices are trusted devices connected to the Bluetooth headset.
[0195] When the Bluetooth headset maintains dual connections with both electronic devices, when electronic device 1 initiates a media service and electronic device 2 does not initiate an audio service, electronic device 1 can transmit a media audio stream to the Bluetooth headset based on the A2DP connection between the electronic device 1 and the Bluetooth headset and the Bluetooth headset outputs the media audio stream; when electronic device 1 initiates a call service and electronic device 2 does not initiate an audio service, electronic device 1 can transmit a call audio stream to the Bluetooth headset based on the HFP connection between the electronic device 1 and the Bluetooth headset and the Bluetooth headset outputs the call audio stream, thereby achieving hands-free calling through the Bluetooth headset.
[0196] Alternatively, when the Bluetooth headset maintains dual connections with both electronic devices, when electronic device 2 initiates a media service and electronic device 1 does not initiate an audio service, electronic device 2 can transmit an audio stream to the Bluetooth headset based on the A2DP connection between the electronic device 2 and the Bluetooth headset, and the Bluetooth headset can output the media audio stream; when electronic device 2 initiates a call service and electronic device 1 does not initiate an audio service, it can transmit a call audio stream to the Bluetooth headset based on the HFP connection between the electronic device 2 and the Bluetooth headset, and the Bluetooth headset can output the call audio stream, thereby achieving hands-free calling through the Bluetooth headset.
[0197] However, in the scenario where both electronic device 1 and electronic device 2 initiate audio services, the Bluetooth headset may be occupied by the two electronic devices, resulting in a problem that the audio stream cannot be output normally due to concurrent audio services.
[0198] In view of this, an embodiment of the present application provides an audio control method. When a Bluetooth headset maintains dual connection with multiple electronic devices, the audio control method provided by the embodiment of the present application can enable the Bluetooth headset to automatically switch to process the audio services of multiple electronic devices, thereby avoiding the problem of normal output of the audio stream due to concurrent audio services.
[0199] The following describes in detail a specific implementation of how the Bluetooth headset switches and processes audio services of two electronic devices when the Bluetooth headset is connected to both of the two electronic devices.
[0200] First combine Figure 3 A schematic diagram illustrating an interface for audio switching when an electronic device remains connected to a Bluetooth headset. Figure 3 (a) is a schematic diagram of the Bluetooth setting interface of an electronic device, such as Figure 3 As shown in (a), the electronic device has turned on the Bluetooth function, and the electronic device is paired and connected with the Bluetooth headset, for example, the electronic device establishes an A2DP connection and an HFP connection with the Bluetooth headset; exemplarily, the electronic device is also paired and connected with a speaker, for example, the electronic device establishes an A2DP connection with the speaker. Figure 3 (b) is a schematic diagram of the sliding notification bar interface of the electronic device, such as Figure 3 As shown in (b) of FIG. 1 , the “audio switching” control 203 may be displayed in the sliding notification bar interface 202. If the user operates the “audio switching” control 203, Figure 3 As shown in (c), the electronic device can display an audio switching interface 204, which may include the name of the device that establishes an A2DP connection with the electronic device, and the name of the device that establishes an A2DP connection and an HFP connection with the electronic device. For example, the audio switching interface 204 may include a "local device" item, a "Bluetooth headset" item, and a "speaker" item. The electronic device can receive user operations on the above options and switch between different audio output modes.
[0201] Optionally, the audio sound output channel of the electronic device each time the audio service is initiated can be preset. For example, when the electronic device establishes a Bluetooth connection with a Bluetooth headset, the Bluetooth headset is used as the audio sound output channel of the electronic device when the audio service is initiated by the default. Of course, the user can select the audio sound output channel of the electronic device in the options of the audio switching interface according to the actual use requirements. Exemplarily, assuming that the electronic device 1 currently plays audio sound through the local machine, then the electronic device 1 can respond to the user's operation on the "Bluetooth headset" item, switch from the local channel to the Bluetooth headset channel, and output the audio sound through the Bluetooth headset channel. Exemplarily, the electronic device 2 currently plays audio sound through the Bluetooth headset, if the user needs to switch the audio sound to the local sound output channel, then the user can select the "local" item, at this time, the electronic device 2 can respond to the user operation, and output the audio sound through the local sound output channel (such as a speaker or a receiver). It should be noted that the audio switching option is exemplarily described here, and it can be understood that in actual implementation, the embodiment of the present application may not be limited to this, for example, the "local" item can be replaced by the "speaker" item and the "receiver" item, which can be determined according to the actual use requirements, and the embodiment of the present application is not limited.
[0202] It should also be noted that, for the sake of ease of explanation, the following takes the example of electronic device 1 and electronic device 2 being both configured to play audio sounds through Bluetooth headsets when initiating audio services to describe how the embodiment of the present application handles the concurrent audio services of multiple electronic devices.
[0203] In the embodiment of the present application, it is assumed that the Bluetooth headset maintains dual connection with both electronic device 1 and electronic device 2, and both electronic devices are configured to play audio sound through the Bluetooth headset when initiating an audio service. Figure 3 As shown, in the audio switching interface of electronic device 1 and electronic device 2, "Bluetooth headset" is selected as the sound output device, then the Bluetooth headset follows different preemption strategies in different situations:
[0204] (1) First come, first served
[0205] If the Bluetooth headset is not currently processing audio services, that is, the Bluetooth headset is in an idle state, the Bluetooth headset can support the output of the audio stream transmitted by any of the two electronic devices, and the Bluetooth headset can follow the first-initiated-first-served preemption strategy. It should be noted that when the Bluetooth headset is in an idle state, the Bluetooth headset and the electronic device are still connected, and no actual audio data is transmitted between the Bluetooth headset and the electronic device.
[0206] For example, when the Bluetooth headset is in an idle state, if electronic device 1 initiates a media service first (for example, receives an operation such as a user requesting a song or playing a video on electronic device 1), electronic device 1 plays the media sound through the Bluetooth headset, and the user can listen to the media sound through the Bluetooth headset accordingly.
[0207] As another example, when the Bluetooth headset is in an idle state, if electronic device 2 initiates a call service (such as an incoming call or an outgoing call), electronic device 2 plays the call voice through the Bluetooth headset, and the user wearing the Bluetooth headset can answer the call voice through the Bluetooth headset, thereby achieving hands-free calling.
[0208] (2) Priority is given to high-priority services
[0209] If the Bluetooth headset is currently processing an audio service initiated by an electronic device, that is, the Bluetooth headset is in working state, and another electronic device also initiates an audio service, it can be determined which of the two electronic devices occupies or uses the Bluetooth headset based on the priority of the audio service.
[0210] Optionally, the headset preemption strategy can be determined based on the processing priorities of the media service and the call service. For example, the service with a higher priority can preferentially preempt the sound output channel of the Bluetooth headset. The processing priorities of the media service and the call service can be preset, for example, they can be preset at the factory or set by the user. For example, the processing priority of the call service is higher than the processing priority of the media service. For the sake of convenience, the following is an exemplary explanation using the example that the priority of the call service is higher than the priority of the media service.
[0211] For different audio services, the Bluetooth headset can follow the preemption strategy of giving priority to the audio service with higher priority. For example, suppose that electronic device 1 is playing a song through the Bluetooth headset (i.e., initiating the media service first). During this process, if electronic device 2 receives an incoming call signal (i.e., initiating the call service later), and the priority of the call service is higher than the priority of the media service, the Bluetooth headset can automatically switch the processing, that is, stop processing the media service initiated by electronic device 1, and switch to processing the call service initiated by electronic device 2. In other words, electronic device 2 can preempt the Bluetooth headset and output the call voice through the Bluetooth headset, and accordingly, the user wearing the Bluetooth headset can make a hands-free call through the Bluetooth headset.
[0212] Optionally, when initiating an audio service, the Bluetooth headset can be automatically started or the A2DP connection can be started based on the priority of the audio service. For example, when the Bluetooth headset is processing a low-priority service 1 or the Bluetooth headset is in an idle state, if a high-priority service 2 is initiated, the Bluetooth headset can be automatically started to process the service 2; if the A2DP connection is not established or the A2DP connection has been disconnected when the high-priority service 2 is initiated, the service 2 can automatically start the A2DP connection reconstruction, and then start the Bluetooth headset to process the service 2.
[0213] Optionally, the audio services set to high priority may include services such as alarm reminders, meeting reminders, memo reminders, and of course any other possible services, which can be determined based on actual usage requirements and are not limited in the embodiments of this application. For example, assuming that the priority of the alarm reminder service is higher than the music service, when the electronic device plays music through a Bluetooth headset, if the electronic device initiates a high-priority alarm reminder service, the high-priority alarm reminder service can automatically pull up the Bluetooth headset and output the alarm reminder tone through the Bluetooth headset.
[0214] Optionally, for two electronic devices that both initiate media services, the Bluetooth headset can follow the first-initiated-first-served preemption strategy. For example, suppose that electronic device 1 is playing a song through a Bluetooth headset (i.e., it initiates the media service first). During this process, if electronic device 2 also initiates a media service (i.e., it initiates the media service later), and both electronic device 2 and electronic device 1 initiate media services, then electronic device 2 that initiates the media service later does not preempt the Bluetooth headset, but outputs the media audio stream through the electronic device 2 itself (such as a speaker or receiver); of course, the embodiment of the present application does not exclude the implementation method in which electronic device 2 outputs the media audio stream through other sound output channels other than the Bluetooth headset and the unit. In this way, the problem that the media audio stream of electronic device 2 cannot be output normally due to service concurrency can be avoided.
[0215] Optionally, if both electronic devices initiate a call service, the latter call can take precedence over the former call to seize the Bluetooth headset. Exemplarily, the electronic device of the seized party can switch the status of the current call service to phone call hold, or can switch the call voice to a sound channel other than the Bluetooth headset, or display a message prompt box to prompt the user that the call has been switched to the earpiece sound channel, or prompt the user whether to switch the current call voice from the headset channel to other sound channels for the user to choose.
[0216] Optionally, in the scheme where the audio services initiated by the two electronic devices above each seize the Bluetooth headset, the Bluetooth headset may output the audio streams corresponding to the two audio services in a mixed manner (i.e., mixing), or may not perform mixing. The specific method may be determined based on actual usage requirements and is not limited in the embodiments of the present application. For example, assuming that the Bluetooth headset currently outputs the media audio stream of electronic device 1, if there is an incoming call to electronic device 2, the Bluetooth headset may output both the media audio stream of electronic device 1 and the incoming call prompt tone of electronic device 2; or, the Bluetooth headset may only output the media audio stream of electronic device 1, but not the incoming call prompt tone of electronic device 2, and the incoming call prompt tone may be output on the local side of electronic device 2.
[0217] (3) Manual preemption, user operation takes priority
[0218] In the user operation priority preemption strategy, the priority of the audio service may not be distinguished, and the Bluetooth headset may give priority to processing the audio service of the electronic device selected by the user.
[0219] For example, assuming that the Bluetooth headset is processing the audio service initiated by the electronic device 1, if the electronic device 2 receives the user's operation of selecting the Bluetooth headset as the sound output device, the Bluetooth headset may not consider the priority of the audio service and follow the user operation priority preemption strategy, that is, the Bluetooth headset prioritizes the audio service initiated by the electronic device 2 and stops processing the audio service initiated by the electronic device 1. At this time, the electronic device 1 can output the audio stream through the electronic device 1 itself or other audio output channels.
[0220] As another example, suppose that the Bluetooth headset is processing an audio service (such as a media service or a call service) initiated by electronic device 1, and electronic device 2 is not initiating an audio service (i.e., it is in a no-service state). In this case, if the user selects to switch the audio to the Bluetooth headset on electronic device 2, the Bluetooth headset can follow the user operation priority preemption strategy, i.e., the Bluetooth headset is preempted by electronic device 2 and stops processing the audio service initiated by electronic device 1. At this time, electronic device 1 can output the audio stream through the local device or other audio output channels.
[0221] As another example, assume that electronic device 1 currently has not initiated an audio service (i.e., it is in a no-service state) and is set to play audio sounds through a Bluetooth headset when initiating an audio service, and at this time electronic device 2 has also not initiated an audio service and is set to play audio sounds through the local device when initiating an audio service. In this case, if the user chooses to switch the audio to the Bluetooth headset on electronic device 2, the Bluetooth headset can follow the preemption strategy of user operation priority, that is, the Bluetooth headset is preempted by electronic device 2.
[0222] Optionally, in a scenario where a Bluetooth headset is preempted due to business concurrency, the electronic device of the preempted party can perform at least one of the following operations: switch the currently playing audio sound to other sound output channels, such as the local speaker channel, the earpiece channel, or the sound output channel of a speaker in a Bluetooth connected state, etc., and the switching order can be determined specifically according to a preset priority; a pop-up box prompts that the currently playing audio sound has been switched to other sound output channels, or a pop-up box prompts whether to switch the currently playing audio sound to other sound output channels; stop or pause the current audio service; mute the currently playing audio sound; reduce the currently playing audio sound. It can be understood that the above operations are exemplary enumerations, and the embodiments of the present application include but are not limited to the operations enumerated above, which can be specifically determined according to actual usage requirements and are not limited to the embodiments of the present application.
[0223] Optionally, in a scenario where the Bluetooth headset is preempted due to service concurrency, the preempted electronic device may further perform the following operations: first determine the type of the currently processed audio service, and then determine whether to execute the following first processing strategy or second processing strategy according to the service type:
[0224] First processing strategy: If the electronic device determines that the currently processed audio service belongs to the first type of media service, such as video, game, etc., the electronic device 1 continues the audio service (for example, continues to display the game video) and automatically switches the audio sound to the local channel output. Optionally, the electronic device pops up a box to prompt the user that the current audio has been switched from the headphone channel to other channels (such as local) output.
[0225] Second processing strategy: If the electronic device determines that the currently processed audio service belongs to the second category of media services, such as music, alarm clock, etc., the electronic device 1 suspends the audio service (pauses playing music) and pops up a window to prompt the user whether to switch the current audio from the headphone channel to other channels (such as local output).
[0226] It should be noted that the media services in the audio services may include playing music, recording, video, background music of games, information prompts, voice messages, navigation voice broadcasts, smart broadcasts, alarm clocks, key sounds, etc., and of course may also include any other possible services. It is understood that the first type of media services and the second type of media services are not limited to the several services listed above, and the specific service type classification can be set according to actual usage requirements, and the embodiments of this application are not limited thereto.
[0227] In a possible implementation, in a scenario where a Bluetooth headset is preempted due to business concurrency, the preempted device can display a message prompt box 1 to prompt the user that the Bluetooth headset is occupied, or prompt the user to switch the current audio output channel to a preset secondary output channel (such as the local device). Optionally, the preempted electronic device can hide the message prompt box 1 after a preset time.
[0228] In another possible implementation, in a scenario where a Bluetooth headset is preempted due to business concurrency, the preempted electronic device may display a message prompt box 2 to prompt the user whether to switch the current audio output channel from the Bluetooth headset channel to a preset secondary output channel (such as this device). The user can operate on the message prompt box 2 to confirm the switch or cancel the switch. Optionally, if no user operation is received within a preset time, the preempted electronic device may hide the message prompt box 2. It should be noted that the above-mentioned message prompt box 2 requires user operation to trigger confirmation of the switch or cancellation of the switch, while the above-mentioned message prompt box 1 is only a prompt and does not require user operation.
[0229] Optionally, an electronic device initiates an audio service and first detects whether the audio service is a persistent audio service or a non-persistent audio service. For persistent audio such as music, video, or games initiated by the preempting device, the A2DP connection between the Bluetooth device and the preempted device is disconnected; for non-persistent audio such as message prompts and key sounds initiated by the preempting device, the A2DP connection between the Bluetooth device and the preempted device can be kept connected. Among them, the detection method for persistent audio services includes the preempting device actively notifying the Bluetooth headset whether the service initiated is persistent audio, or the Bluetooth headset determining whether the service initiated is a persistent audio service through delayed detection. For example, electronic device 1 emits a prompt tone, and the service lasts for a very short time, so there is no need to immediately disconnect the A2DP connection between the Bluetooth headset and electronic device 1. If it is detected that the initiated service ends within a preset time (for example, 5 seconds or 10 seconds), it can be determined that the service is a temporary short audio service, and therefore the A2DP connection between the Bluetooth headset and the electronic device 1 can be continued; if it is detected that the initiated service has not ended after the preset time, it can be determined that the service is a continuous audio service, and therefore the A2DP connection between the Bluetooth headset and the electronic device 1 is disconnected.
[0230] In the embodiment of the present application, when both electronic device 1 and electronic device 2 initiate audio services, there may be the following possible scenarios: the first scenario: the business concurrency scenario of [media services and media services]; the second scenario: the business concurrency scenario of [media services and call services]; the third scenario: the business concurrency scenario of [call services and call services]. In different business concurrency scenarios, the embodiment of the present application can adopt different preemption strategies. The specific implementation of the audio control method is described in detail below in combination with the above-mentioned possible scenarios and preemption strategies.
[0231] The first scenario: the business concurrency scenario of [media business and media business].
[0232] In the first scenario, it is assumed that electronic device 1 initiates a media service first, and electronic device 2 initiates a media service later. Since the media service and the media service have the same service priority, the preemption strategy is that the service initiated first will preempt the headphone channel first.
[0233] Figure 4 FIG. 2 shows a schematic diagram of a process of switching audio services of a Bluetooth headset when the Bluetooth headset is connected to both electronic device 1 and electronic device 2. Figure 4As shown, the Bluetooth headset has activated the A2DP specification with electronic device 1, and has activated the A2DP specification with electronic device 2. It should be noted that the Bluetooth headset can activate the A2DP specification with electronic device 1 and / or electronic device 2 when a trigger operation of the user is detected (for example, the user wears the headset). The initial state of the Bluetooth headset is the idle state. It should be noted that in the first scenario, since call services are not involved, it is not necessary to consider whether the HFP specification is activated between the Bluetooth headset and electronic devices 1 and 2.
[0234] Combine the following Figure 4 The audio control method provided in the embodiment of the present application is exemplarily described, such as Figure 4 As shown, the audio control method may include the following steps S201-S204.
[0235] S201. Electronic device 1 receives a first operation of a user, and transmits a first media audio stream to a Bluetooth headset in response to the first operation.
[0236] Optionally, the first operation may be an operation by which the user triggers the electronic device 1 to start an audio service, such as an operation (such as a click operation or a drag operation) by the user on a music play icon, a video play icon, a game application icon, etc. on the screen of the electronic device 1, or an operation by which the user wears a Bluetooth headset. Of course, the first operation may also be any other operation that meets actual usage requirements, which may be determined based on actual usage requirements and is not limited in the embodiments of the present application.
[0237] S202 : The Bluetooth headset receives and outputs a first media audio stream, and deactivates the A2DP specification between the Bluetooth headset and the electronic device 2 .
[0238] The above-mentioned deactivation of the A2DP specification between the Bluetooth headset and the electronic device 2 may include the following meanings: the A2DP connection between the Bluetooth headset and the electronic device 2 is disconnected; or the ACL connection between the Bluetooth headset and the electronic device 2 is disconnected. The specific meaning may be determined according to actual use requirements, and the embodiment of the present application is not limited thereto.
[0239] In the embodiment of the present application, when the electronic device 1 receives the first operation of the user, the electronic device 1 obtains the first media audio stream in response to the first operation, and transmits the first media audio stream to the Bluetooth headset through the ACL link based on the A2DP specification, that is, the electronic device 1 first initiates the media service and occupies the Bluetooth headset first. Correspondingly, after receiving the first media audio stream, the Bluetooth headset outputs the first media audio stream, such as playing music, and deactivates the A2DP specification between the Bluetooth headset and the electronic device 2.
[0240] It should be noted that the embodiments of the present application do not limit the execution order of the Bluetooth headset outputting the first media audio stream and deactivating the A2DP specification between the Bluetooth headset and the electronic device 2. The Bluetooth headset can first output the first media audio stream and then deactivate the A2DP specification between the electronic device 2; the Bluetooth headset can also first deactivate the A2DP specification between the electronic device 2 and then output the first media audio stream; or, the Bluetooth headset can also perform these two actions at the same time.
[0241] S203: When the A2DP between the Bluetooth headset and the electronic device 2 is deactivated, the electronic device 2 displays a first prompt message.
[0242] The first prompt message may be used to prompt that the Bluetooth headset sound output channel is occupied, or to prompt that the audio sound output channel of the electronic device 2 has been switched from the Bluetooth headset sound output channel to the secondary sound output channel. Optionally, the first prompt message may be hidden or undisplayed after a preset time.
[0243] In addition, the secondary sound output channel may be a sound output channel with a lower priority than the Bluetooth headset. For example, if the preset sound output channels are prioritized from high to low: Bluetooth headset, electronic device, and speaker, the secondary sound output channel is the electronic device.
[0244] It should be noted that, when the A2DP between the Bluetooth headset and the electronic device 2 is deactivated, the first prompt message may not be displayed. The specific information can be determined based on actual usage requirements and is not limited in the embodiment of the present application.
[0245] S204: The electronic device 2 receives a second operation of the user, and in response to the second operation, outputs a second media audio stream through the electronic device 2 or other sound output channels.
[0246] The second operation may be an operation by which the user triggers the electronic device 2 to start an audio service, such as an operation by the user on a music play icon, a video play icon, a game application icon, etc. on the screen of the electronic device 2. The second operation may be a click operation, a drag operation, or any other operation that meets actual usage requirements, which may be determined according to actual usage requirements and is not limited in the embodiments of the present application.
[0247] In an embodiment of the present application, when the Bluetooth headset is occupied by electronic device 1, if electronic device 2 receives a second operation from the user, electronic device 2 obtains a second media audio stream in response to the second operation, and outputs the second media audio stream (for example, playing video sound) through the local electronic device 2 (for example, a speaker or a handset). That is, in the case where the Bluetooth headset processes a media service initiated by electronic device 1, electronic device 2 later initiates a media service, and the media audio stream can be output by the local electronic device 2, and no service concurrency will occur on the Bluetooth headset side. Compared with the situation in the related art where the audio stream cannot be output normally during service concurrency, the embodiment of the present application can ensure that the audio stream will be output normally during service concurrency, thereby improving the audio playback effect during service concurrency when multiple electronic devices share the Bluetooth headset.
[0248] It should be noted that Figure 4 The example in which electronic device 2 switches from the Bluetooth headset channel to electronic device 2 itself and then plays the audio stream through electronic device 2 itself is used for illustration. If electronic device 2 switches from the Bluetooth headset channel to other possible sound output channels such as a speaker channel, electronic device 2 can respond to the second operation and play the audio stream through the other possible sound output channel.
[0249] Optionally, after the above step S204, the audio control method provided in the embodiment of the present application may further include the following steps S205-S208.
[0250] S205 : When the electronic device 1 stops transmitting the first media audio stream to the Bluetooth headset, the Bluetooth headset activates the A2DP specification between the Bluetooth headset and the electronic device 2 .
[0251] Optionally, the reason for triggering the electronic device 1 to stop transmitting the first media audio stream to the Bluetooth headset may include but is not limited to any of the following: the user triggers to stop playing music, or the music stops playing automatically after it ends, or the user takes off the Bluetooth headset.
[0252] When electronic device 1 stops transmitting the first media audio stream to the Bluetooth headset, the Bluetooth headset is in an idle state, and electronic device 2 currently has a media service and outputs a media audio stream. In this case, the Bluetooth headset can switch the audio service according to any of the following audio service switching strategies.
[0253] Strategy 1: Automatic switching. When the Bluetooth headset is in an idle state, the A2DP specification between the Bluetooth headset and the electronic device 2 is activated, and then the electronic device 2 transmits the second media audio stream to the Bluetooth headset through the ACL link based on the A2DP specification. In addition, the Bluetooth headset deactivates the A2DP specification between the Bluetooth headset and the electronic device 1. Correspondingly, after receiving the second media audio stream, the Bluetooth headset outputs the second media audio stream. In strategy one, the Bluetooth headset can intelligently switch to process the media services initiated by the two electronic devices, which can improve the audio playback effect when multiple electronic devices share the Bluetooth headset. In the case of automatic switching, the occupied electronic device can display a prompt message to prompt that the Bluetooth headset is occupied, or to prompt that the current audio output channel has been switched to a preset secondary output channel.
[0254] Strategy 2: Switching based on user needs. When the Bluetooth device is in an idle state, a second prompt message can be sent to the electronic device, and the second prompt message is used to prompt the user whether to switch the current audio output channel from the Bluetooth headset channel to the preset secondary output channel. The electronic device can receive and display the second prompt message for the user to view and select, and the user can operate on the second prompt message to confirm the switch or cancel the switch.
[0255] For example, when the Bluetooth headset is in an idle state, the Bluetooth headset can send a message to the electronic device 2, prompting whether to switch the audio to the Bluetooth headset. If the electronic device 2 can receive the user's confirmation operation to switch the audio to the Bluetooth headset, the A2DP specification between the Bluetooth headset and the electronic device 2 can be further activated. The following describes three possible implementations of how to activate the A2DP specification.
[0256] In a possible implementation, if the electronic device 2 receives the confirmation operation, the electronic device 2 feeds back to the Bluetooth headset that the electronic device 2 confirms that the audio is switched to the Bluetooth headset, and then the Bluetooth headset activates the A2DP specification between the Bluetooth headset and the electronic device 2, and deactivates the A2DP specification between the Bluetooth headset and the electronic device 1. Then, based on the A2DP specification, the electronic device 2 transmits the second media audio stream to the Bluetooth headset through the ACL link. Correspondingly, the Bluetooth headset outputs the second media audio stream after receiving the second media audio stream.
[0257] In another possible implementation, if the electronic device 2 receives the confirmation operation, the electronic device activates the A2DP specification between the Bluetooth headset and the electronic device 2, and then transmits the second media audio stream to the Bluetooth headset through the ACL link based on the A2DP specification. Accordingly, after receiving the second media audio stream, the Bluetooth headset outputs the second media audio stream, such as playing video sound, and deactivates the A2DP specification between the Bluetooth headset and the electronic device 1.
[0258] In another possible implementation, once the Bluetooth headset is in an idle state, the Bluetooth headset automatically activates the A2DP specification between the two electronic devices without the user confirming to switch the audio to the Bluetooth headset and then reactivate it. Therefore, the Bluetooth headset in the idle state maintains an A2DP connection with both electronic device 1 and electronic device 2, so that the Bluetooth headset can handle the audio service initiated by any electronic device in the Bluetooth connection state at any time. This method is used as an example in the context of this application for exemplary description.
[0259] In strategy 2, the Bluetooth headset can switch to process the media services initiated by the two electronic devices according to the actual needs of the user. Such an audio service switching strategy can meet the actual needs of users and improve user experience.
[0260] refer to Figure 4 , the above strategy 2 corresponds to Figure 4 Steps S206-S207 in the above strategy correspond to Figure 4 Steps S208-S209 in .
[0261] S206: The Bluetooth device sends a second prompt message to the electronic device 2, and the electronic device 2 receives and displays the second prompt message.
[0262] The second prompt message is used to prompt whether to switch the audio output channel to the Bluetooth headset. Exemplarily, the second prompt message is in the form of a prompt box, and the second prompt message may include a confirmation option for confirming the switch to the Bluetooth headset and a cancellation option for canceling the switch to the Bluetooth headset.
[0263] S207: Electronic device 2 receives a third operation of the user on the second prompt message.
[0264] The third operation is used to trigger the switching of the audio output channel to the Bluetooth headset. Exemplarily, the third operation may be an operation of the user to confirm the option.
[0265] S208: The electronic device 2 transmits a second media audio stream to the Bluetooth device.
[0266] S209 : The Bluetooth device receives and outputs the second media audio stream, and deactivates the A2DP specification between the Bluetooth device and the electronic device 1 .
[0267] It should be noted that the embodiment of the present application does not limit the execution order of the Bluetooth headset outputting the second media audio stream and deactivating the A2DP specification between the Bluetooth headset and the electronic device 1.
[0268] FIG. 5A to FIG. 5E Combined Figure 4 The following is a schematic diagram of an application scenario of the audio control method. Figure 4 as well as FIG. 5A to FIG. 5E, exemplarily describing the application scenario of the audio control method provided in the embodiment of the present application.
[0269] like Figure 5A As shown, if the user operates on electronic device 1 to trigger the playing of song 1, electronic device 1 initiates a media service in response to the user's operation, and transmits the media audio stream of song 1 to the Bluetooth headset through the ACL link based on the A2DP specification. The A2DP specification between the Bluetooth headset and electronic device 2 is deactivated. Figure 5A As shown, the electronic device 1 displays an audio control interface, which includes audio switching options such as the "Local" item, the "Bluetooth Headset" item, and the "Speaker" item, and may also include a volume adjustment control, a pause button, a "next song" control, etc. Among them, the "Bluetooth Headset" item is selected, so that the user can know that the audio stream of the electronic device 1 is currently output through the Bluetooth headset. In addition, the user can select another item from these options as needed to trigger the electronic device 1 to switch the output channel of the audio stream. For example, if the user selects the "Local" item, the electronic device 1 can switch the audio stream of the electronic device 1 to the local output; optionally, the media audio stream is usually played through the local speaker by default.
[0270] It should be noted that the above audio control interface can be an interface displayed when the screen of electronic device 1 is in a locked state, or it can be an interface displayed when the screen of electronic device 1 is in an unlocked state. It should also be noted that electronic device 2 currently has no audio service, and it can be in a screen-on state or a screen-off state. Electronic device 2 can display a prompt message at this time, indicating that the audio output channel has switched from the Bluetooth headset channel to the local output channel.
[0271] Further, such as Figure 5B As shown, if the electronic device 2 receives the user's operation to play song 2, the electronic device 2 responds to the user's operation and plays song 2 through the device (such as a speaker). Figure 5B As shown, the electronic device 2 can display an audio control interface, which includes audio switching options such as the "local" item and the "Bluetooth headset" item, as well as a volume adjustment control, a pause button, a "next song" control, etc. Among them, the "local" item is in a selected state, so that the user can know that the audio stream of the electronic device 2 is currently output through this machine. Since the A2DP specification between the current Bluetooth headset and the electronic device 2 is deactivated, it is impossible to switch the audio to the Bluetooth headset at this time, so the "Bluetooth headset" item may not be displayed in the audio control interface, or the "Bluetooth headset" item may be grayed out, that is, the "Bluetooth headset" item is not selectable. Specifically, whether to display the audio control interface can be determined according to actual use requirements, and the embodiments of the present application are not limited.
[0272] Further, such as Figure 5CAs shown in the figure, if the audio service of song 1 is finished on electronic device 1, electronic device 1 stops transmitting the media audio stream of song 1 to the Bluetooth headset in response to the user's operation. At this time, the Bluetooth headset is in an idle state and can send a prompt message to electronic device 2 to prompt whether to switch the currently playing media audio to the headset. Accordingly, electronic device 2 can display the prompt message, and if the user selects "Yes" to confirm switching the audio to the headset, as shown in the figure, Figure 5D As shown, in response to the user's operation, the A2DP specification between the electronic device 2 and the Bluetooth headset is activated, and then the electronic device 2 transmits the media audio stream of song 2 to the Bluetooth headset through the ACL link based on the A2DP specification. At this time, the A2DP specification between the Bluetooth headset and the electronic device 1 is deactivated, and the "Bluetooth headset" item may not be displayed in the audio control interface of the electronic device 1.
[0273] Further optional, such as Figure 5E As shown, if the media service of electronic device 2 ends, electronic device 2 stops transmitting the media audio stream to the Bluetooth headset. At this time, since both electronic device 1 and electronic device 2 have no audio service, the Bluetooth headset returns to the idle state. In this case, the Bluetooth headset can reactivate the A2DP specification between the electronic device 1 and the electronic device 2, and maintain the A2DP specification between the electronic device 2. That is, the Bluetooth headset in the idle state maintains the A2DP connection with both the electronic device 1 and the electronic device 2, so that the Bluetooth headset can handle the audio service initiated by any electronic device in the Bluetooth connection state at any time.
[0274] It should be noted that the above describes an implementation method of an audio control method provided by an embodiment of the present application. During the implementation process of this method, it is necessary to deactivate / reactivate the A2DP specification between the Bluetooth headset and the electronic device 1 or the electronic device 2, so that the Bluetooth headset can reasonably switch the audio services of different electronic devices when the services are concurrent and can ensure that the audio stream cannot be output normally. However, the embodiments of the present application are not limited to this. The following are two exemplary implementation schemes of the audio control method provided by the embodiments of the present application:
[0275] Solution 1: Activate / deactivate the A2DP profile
[0276] Assuming that the A2DP specification is activated for the Bluetooth headset and both electronic devices 1 and 2, when one electronic device (e.g., electronic device 1) initiates a media service and occupies the Bluetooth headset, the Bluetooth headset can deactivate the A2DP specification between the other electronic device (e.g., electronic device 2). Figure 4 , FIG. 5A to FIG. 5E And the corresponding specific scheme descriptions are all based on the first scheme.
[0277] In the first scheme, if electronic device 1 initiates an audio service, the headset will actively disconnect the A2DP connection with electronic device 2 after the service is started. After the headset disconnects the A2DP connection with electronic device 2, when electronic device 2 plays audio, the sound can be directly produced in electronic device 2. If electronic device 2 needs to produce sound in the headset, the service of electronic device 1 needs to be stopped first. When the audio service of electronic device 1 ends, the headset actively establishes an A2DP connection with electronic device 2. At this time, if electronic device 2 is in the audio service, it will be sent to the headset to produce sound, and similarly, the headset determines whether to disconnect the audio A2DP connection with electronic device 1. Compared with the above-mentioned related technologies that swallow the audio stream when the services are concurrent, through the scheme provided in the embodiment of the present application, when one mobile phone is in the service with the headset, another mobile phone initiates an audio service, and the sound can be produced normally in the mobile phone, and the sound of its service will not be swallowed by the headset (such as audio that cannot be paused, such as video, prompt sound, etc.).
[0278] Solution 2: Disable Bluetooth headset channel via notification
[0279] Assuming that the A2DP specification is activated for the Bluetooth headset and electronic devices 1 and 2, when one of the electronic devices (e.g., electronic device 1) initiates a media service first and occupies the Bluetooth headset, the Bluetooth headset can send a message to another electronic device (e.g., electronic device 2) to notify that the Bluetooth headset is occupied. The other electronic device disables the Bluetooth headset channel according to the notification message and automatically switches to the secondary sound output channel (e.g., the local device). In some embodiments, electronic device 2 can also actively query the current working status of the Bluetooth headset. When it is known that the current headset is in working state, it can automatically switch to the secondary sound output channel (e.g., the local device). It can be seen that in the second solution, the Bluetooth headset does not need to activate the A2DP specification between the Bluetooth headset and the electronic device.
[0280] Based on the above second solution, combined with Figure 6 The possible implementation of the audio control method provided in the embodiment of the present application is described exemplarily. Figure 6 The figure shows a schematic diagram of the process of switching audio services of a Bluetooth headset when the Bluetooth headset is connected to both electronic device 1 and electronic device 2. The A2DP specification is activated for both the Bluetooth headset and electronic device 1 and electronic device 2. Figure 6 As shown, the audio control method may include the following steps S210-S220.
[0281] S210: The electronic device 1 receives a first operation of a user, and transmits a first media audio stream to the Bluetooth headset in response to the first operation.
[0282] For the description of step S210, please refer to the above Figure 4 The description of step S201 in will not be repeated here.
[0283] S211. The Bluetooth headset receives and outputs a first media audio stream, and sends a first prompt message to the electronic device 2 to prompt that the Bluetooth headset is occupied.
[0284] Among them, the above step S211 and the above step S212 Figure 4 The difference from step S202 in the embodiment is that the Bluetooth headset does not need to activate the A2DP specification between the Bluetooth headset and the electronic device 2, but instead sends a message to the electronic device 2 to notify the electronic device 2 to switch the audio output channel to other output channels.
[0285] When the electronic device 1 receives the first operation of the user, the electronic device 1 responds to the first operation and transmits the first media audio stream to the Bluetooth headset through the ACL link based on the A2DP specification, that is, the electronic device 1 first initiates the media service and occupies the Bluetooth headset first. Correspondingly, the Bluetooth headset outputs the first media audio stream after receiving the first media audio stream.
[0286] S212: The electronic device 2 receives the first prompt message, and switches the audio channel from the earphone channel to the secondary sound output channel according to the first prompt message. Optionally, the electronic device 2 may display the first prompt message.
[0287] The Bluetooth headset sends a first prompt message to the electronic device 2, indicating that the Bluetooth headset is occupied. After receiving the prompt message, the electronic device 2 disables the Bluetooth headset channel and automatically switches to the secondary sound output channel (such as the local device). In this case, if the electronic device 2 initiates an audio service, the audio stream is not output through the Bluetooth headset, but through the secondary sound output channel.
[0288] S213: The electronic device 2 receives a second operation of the user, and in response to the second operation, outputs a second media audio stream through the electronic device 2 or other sound output channels.
[0289] For the description of step S213, please refer to the above Figure 4 The description of step S204 is not repeated here.
[0290] In the case where the Bluetooth headset is occupied by electronic device 1, if electronic device 2 receives a second operation from the user, such as the user clicking on a video play icon on the screen of electronic device 2, then electronic device 1 responds to the second operation, obtains a second media audio stream corresponding to the video play icon, and outputs the second media audio stream through electronic device 1 (speaker or receiver). That is, in the case where the Bluetooth headset processes a media service initiated by electronic device 1, electronic device 2 later initiates a media service and can output the media audio stream through the local device. Compared with the situation in the related art where the audio stream cannot be output normally when services are concurrent, the embodiment of the present application can ensure that the audio stream will be output when services are concurrent, thereby improving the audio playback effect when services are concurrent when multiple electronic devices share the Bluetooth headset.
[0291] S214: When the electronic device 1 stops transmitting the first media audio stream to the Bluetooth headset, the Bluetooth headset sends a second prompt message to the electronic device 2 to prompt whether to switch the audio to the Bluetooth headset.
[0292] Among them, the above step S214 and the above step S214 Figure 4 The difference of step S205 is that when the Bluetooth headset is in an idle state, there is no need to activate the A2DP specification between the Bluetooth headset and the electronic device 2, but a message is sent to the electronic device 2 to notify that the Bluetooth headset is available and whether the electronic device 2 switches the audio to the headset channel.
[0293] S215: Electronic device 2 receives and displays the second prompt message.
[0294] S216. Electronic device 2 receives a third operation of the user on the second prompt message, and switches the audio output channel to the headphone channel in response to the third operation.
[0295] When electronic device 1 stops transmitting the first media audio stream to the Bluetooth headset, for example, the user triggers to stop playing music, or the music stops playing automatically after it ends, or the user takes off the Bluetooth headset, the Bluetooth headset is in an idle state, and electronic device 2 currently has a media service and outputs a media audio stream. In this case, the Bluetooth headset can switch the audio service according to any of the following audio service switching strategies.
[0296] Strategy 1: Automatic switching. When the Bluetooth headset is in an idle state, the Bluetooth headset can notify electronic device 2 that the current Bluetooth headset is available. After receiving the notification, electronic device 1 can automatically enable the Bluetooth headset channel, and then transmit the second media audio stream to the Bluetooth headset through the ACL link based on the A2DP specification. Accordingly, after receiving the second media audio stream, the Bluetooth headset outputs the second media audio stream, such as playing video sound. In an embodiment of the present application, the Bluetooth headset can intelligently switch to process the media services initiated by the two electronic devices, which can improve the audio playback effect when multiple electronic devices share the Bluetooth headset.
[0297] Strategy 2: Switch according to user needs. Figure 6 As shown, when the Bluetooth headset is in an idle state, the Bluetooth headset can send a message to the electronic device 2, prompting whether to switch the audio to the Bluetooth headset. If the electronic device 2 receives the third operation of the user confirming to switch the audio to the Bluetooth headset, the electronic device 2 responds to the third operation, enables the Bluetooth headset channel, and based on the A2DP specification, transmits the second media audio stream to the Bluetooth headset through the ACL link. Correspondingly, after receiving the second media audio stream, the Bluetooth headset outputs the second media audio stream, such as playing video sound. In an embodiment of the present application, the Bluetooth headset can switch and process the media services initiated by the two electronic devices according to the actual needs of the user. Such an audio service switching strategy can meet the actual use needs of the user and improve the user experience.
[0298] S217: Electronic device 2 transmits a second media audio stream to the Bluetooth device.
[0299] For the description of the above steps S215-S217, please refer to the above Figure 4 The description of step S204 is not repeated here.
[0300] S218: The Bluetooth device receives and outputs the second media audio stream.
[0301] Among them, the above step S218 and the above step S218 Figure 4 The difference between step S205 in the embodiment is that after the Bluetooth headset is preempted by the media service of the electronic device 2, there is no need to activate the A2DP specification between the Bluetooth headset and the electronic device 1.
[0302] Optionally, after the above step S218, the audio service switching method provided in the embodiment of the present application may further include the following steps S219-S221.
[0303] S219: The Bluetooth headset sends a first prompt message to the electronic device 1 to prompt that the Bluetooth headset is occupied.
[0304] S220: The electronic device 1 receives the first prompt message, and switches the audio channel from the headphone channel to the secondary sound output channel according to the first prompt message.
[0305] Optionally, the electronic device 1 may display a first prompt message to facilitate the user to check and know that the audio output channel is occupied or has been switched.
[0306] S221: When the electronic device 2 stops transmitting the second media audio stream to the Bluetooth headset, the Bluetooth headset sends a second prompt message to the electronic device 1 to prompt whether to switch the audio output channel to the headphone channel.
[0307] The above steps S219-S221 are similar to the above steps S211-S214. The Bluetooth headset sends a prompt message to the electronic device 1, prompting that the Bluetooth headset is occupied. After receiving the prompt message, the electronic device 1 disables the Bluetooth headset channel and automatically switches to the secondary sound output channel (such as this device). In this case, if the electronic device 1 initiates an audio service, the audio stream is not output through the Bluetooth headset. Furthermore, when the electronic device 2 stops transmitting the second media audio stream to the Bluetooth headset, the Bluetooth headset is in an idle state. The Bluetooth headset can send a message to the electronic device 1, prompting that the Bluetooth headset is available, and then the electronic device 1 can enable the Bluetooth headset channel after receiving the message.
[0308] FIG. 7A to FIG. 7D Combined Figure 6 The following is a schematic diagram of an application scenario of the audio control method. Figure 6 as well as FIG. 7A to FIG. 7D , exemplarily describing the application scenario of the audio control method provided by the second scheme of the embodiment of the present application.
[0309] like Fig. 7A As shown, if the user operates on electronic device 1 to trigger the playing of song 1, electronic device 1 initiates a media service in response to the user's operation, and transmits the media audio stream of song 1 to the Bluetooth headset through the ACL link based on the A2DP specification. The Bluetooth headset and electronic devices 1 and 2 all maintain the activation state of the A2DP specification. Fig. 7A As shown, the electronic device 1 displays an audio control interface, which includes audio switching options such as "Local" item, "Bluetooth Headset" item and "Speaker" item, and may also include volume adjustment controls, pause keys, "Next Song" controls, etc. Among them, the "Bluetooth Headset" item is selected, so that the user can know that the audio stream of the electronic device 1 is currently output through the Bluetooth headset. In addition, the user can select another item from these options as needed to trigger the electronic device 1 to switch the output channel of the audio stream. For example, if the user selects the "Local" item, the electronic device 1 can switch the audio stream of the electronic device 1 to the local output; illustratively, the media audio stream is usually played through the local speaker by default.
[0310] It should be noted that the above-mentioned audio control interface can be an interface displayed when the screen of electronic device 1 is in a locked state, or it can be an interface displayed when the screen of electronic device 1 is in an unlocked state. It should also be noted that electronic device 2 currently has no audio service, and can be in a screen-on state or a screen-off state. Since electronic device 1 is occupying the Bluetooth headset, electronic device 2 is notified to disable the Bluetooth headset and automatically switches from the Bluetooth headset sound channel to the preset secondary sound channel (such as this machine). Electronic device 2 can display a prompt message to indicate that the audio sound channel has switched from the Bluetooth headset channel to the local sound channel.
[0311] Further, such as Figure 7B As shown, if the electronic device 2 receives the user's operation to play song 2, the electronic device 2 responds to the user's operation and plays song 2 through the electronic device 2 itself (e.g., a speaker). The electronic device 2 can display an audio control interface, in which the "Local" item is selected, so that the user can view and know that the audio stream of the electronic device 2 is currently output through the electronic device 2 itself.
[0312] In some embodiments, when the electronic device 2 receives an operation from the user to play voice or media services, the electronic device 2 pops up the above-mentioned audio control interface in response to the operation. The audio control interface includes audio channels currently available to the electronic device 2, such as audio channels including the "local" item and the "Bluetooth headset" item. In response to the user's selection operation of the above-mentioned audio channels, the electronic device 2 performs the operation of playing voice or media services.
[0313] Further, such as Figure 7C As shown, if electronic device 1 receives an operation from the user to pause playing song 1, then electronic device 1 stops transmitting the media audio stream of song 1 to the Bluetooth headset in response to the user's operation. At this time, the Bluetooth headset is in an idle state and can send a prompt message to electronic device 2 to prompt whether to switch the currently playing media audio to the headset. Accordingly, electronic device 2 can display the prompt message for the user to choose. If the user selects "Yes" to confirm switching the audio to the headset, as shown in FIG. Fig.7D As shown, in response to the user's operation, electronic device 2 transmits the media audio stream of song 2 to the Bluetooth headset through the ACL link based on the A2DP specification. The Bluetooth headset receives and outputs the media audio stream of song 2, and sends a message to electronic device 1 to notify that the Bluetooth headset is occupied. After receiving the message, electronic device 1 disables the Bluetooth headset channel and switches from the Bluetooth headset sound output channel to the preset secondary sound output channel (such as the local device). Fig.7DAs shown, electronic device 1 displays a prompt message, indicating that the audio output channel has switched from the Bluetooth headset channel to the local audio output channel. In this case, if the user operates on electronic device 1 to trigger the continuation of playing song 1, electronic device 1 plays song 1 through the local device. In this way, when electronic device 1 and electronic device 2 both initiate media services, there will be no conflict due to the occupation of the Bluetooth headset, and thus there will be no problem of audio stream not being able to be output normally.
[0314] Furthermore, if the audio service of electronic device 2 ends, electronic device 2 stops transmitting the media audio stream of song 2 to the Bluetooth headset. At this time, since both electronic device 1 and electronic device 2 have no audio service, the Bluetooth headset returns to the idle state.
[0315] In summary, in the first solution of the first scenario, when services are concurrent, it is necessary to deactivate the A2DP specification and reactivate the A2DP specification, that is, disconnect the A2DP connection and reestablish the A2DP connection; while in the second solution of the first scenario, when services are concurrent, it is not necessary to deactivate the A2DP specification, but to notify the occupied electronic device that the Bluetooth headset is occupied by sending a message. In the embodiment of the present application, the Bluetooth headset can intelligently switch to process the media services initiated by the two electronic devices, avoiding the problem that the audio stream cannot be output normally when services are concurrent, and can improve the audio playback effect when multiple electronic devices share the Bluetooth headset.
[0316] In addition, in the first scenario, a solution (called the third solution) in which the user manually seizes the headphone channel when services are concurrent can also be adopted. Figure 8 , Fig.9A and Fig. 9B The third scheme will be described as an example.
[0317] Figure 8 The figure shows a schematic diagram of the process of switching audio services of a Bluetooth headset when the Bluetooth headset is connected to both electronic device 1 and electronic device 2. The A2DP specification is activated for both the Bluetooth headset and electronic device 1 and electronic device 2. Figure 8 As shown, the audio control method may include the following steps S230-S240.
[0318] S230: The electronic device 1 receives a first operation of the user, and transmits a first media audio stream to the Bluetooth headset in response to the first operation.
[0319] S231. The Bluetooth headset receives and outputs a first media audio stream, and sends a first prompt message to the electronic device 2 to prompt that the Bluetooth headset is occupied.
[0320] S232: The electronic device 2 receives the first prompt message, and switches the audio channel from the earphone channel to the secondary sound output channel according to the first prompt message. Optionally, the secondary sound output channel may be a local channel, and the electronic device 2 may display the first prompt message.
[0321] S233: The electronic device 2 receives a second operation of the user, and in response to the second operation, outputs a second media audio stream through the electronic device 2 or other sound output channels.
[0322] For the description of the above steps S230-S233, please refer to the above Figure 6 The description of steps S210-S213 in will not be repeated here.
[0323] When the electronic device 1 can obtain the first media audio stream corresponding to the music play icon according to the received first operation of the user, such as the user clicking the music play icon on the screen of the electronic device 1, and transmit the first media audio stream to the Bluetooth headset through the ACL link based on the A2DP specification. Correspondingly, the Bluetooth headset outputs the first media audio stream after receiving the first media audio stream, such as playing music.
[0324] Furthermore, the Bluetooth headset sends a prompt message to the electronic device 2, indicating that the Bluetooth headset is occupied. After receiving the prompt message, the electronic device 2 disables the Bluetooth headset channel, for example, automatically switches from the Bluetooth headset channel to the secondary sound output channel (such as the local speaker). In this case, if the electronic device 2 initiates an audio service, the audio stream is not output through the Bluetooth headset, but through the secondary sound output channel.
[0325] Furthermore, when the Bluetooth headset is occupied by electronic device 1, if electronic device 2 receives a second operation from the user, such as the user clicking on a video play icon on the screen of electronic device 2, then electronic device 1 responds to the second operation, obtains a second media audio stream corresponding to the video play icon, and outputs the second media audio stream through electronic device 1 (speaker or receiver). That is, when the Bluetooth headset processes a media service initiated by electronic device 1, electronic device 2 later initiates a media service and can output the media audio stream through the local device. Compared with the situation in the related art where the audio stream cannot be output normally when services are concurrent, the embodiment of the present application can ensure that the audio stream will be output when services are concurrent, thereby improving the audio playback effect when services are concurrent when multiple electronic devices share the Bluetooth headset.
[0326] S234: The electronic device 2 receives a fourth operation from the user, and enables the Bluetooth headset channel in response to the fourth operation.
[0327] When the electronic device 2 has initiated the process of playing voice or media services, the electronic device 2 pops up an audio control interface in response to a user operation (such as a drop-down menu or a status bar); or the electronic device 2 can pop up an audio control interface in response to a user's operation of ordering audio or video services. The audio control interface includes audio channels currently available to the electronic device 2, such as audio channels including the "local" item and the "Bluetooth headset" item. If the electronic device 2 receives the user's selection operation for the "Bluetooth headset" (i.e., the fourth operation mentioned above), the electronic device 2 can enable the Bluetooth headset channel.
[0328] S235: Electronic device 2 sends a notification message to the Bluetooth headset to notify the user to manually seize the Bluetooth headset channel, and transmits a second media audio stream to the Bluetooth headset.
[0329] S236: The Bluetooth headset receives and outputs the second media audio stream, and sends a prompt message to the electronic device 1, indicating that the Bluetooth headset is occupied.
[0330] During the process of electronic device 2 outputting the second media audio stream through the secondary sound output channel, if the user chooses to switch to the Bluetooth headset channel, electronic device 2 enables the Bluetooth headset channel and notifies the Bluetooth headset that the Bluetooth headset channel has been manually seized by the user. Then electronic device 2 transmits the second media audio stream to the Bluetooth headset through the ACL link based on the A2DP specification. Accordingly, after receiving the second media audio stream, the Bluetooth headset outputs the second media audio stream, such as playing video sound, and the Bluetooth headset stops playing the first media audio stream. In an embodiment of the present application, the Bluetooth headset can intelligently switch to process the media services initiated by the two electronic devices, which can improve the audio playback effect when multiple electronic devices share the Bluetooth headset.
[0331] S237: The electronic device 1 receives the prompt message and determines the type of the audio service currently being processed.
[0332] S238A: If the currently processed audio service is a first-class service, the electronic device 1 continues to process the current audio service and automatically switches to the secondary sound output channel or plays in silence. Optionally, the electronic device 1 may display a prompt message at this time to prompt the user that the audio output channel has been switched to the secondary sound output channel (e.g., the local channel).
[0333] S238B: If the currently processed audio service is a second-category service, the electronic device 1 suspends processing of the current audio service and displays a message to prompt the user whether to switch to a secondary sound output channel (eg, a local sound channel).
[0334] It should be noted that the electronic device 1 selectively executes either step S238A or step S238B.
[0335] The Bluetooth headset sends a prompt message to the electronic device 1, indicating that the Bluetooth headset is occupied. Accordingly, after receiving the prompt message, the electronic device 2 can first determine the type of media service currently processed by the electronic device 1, and then determine whether to execute the following first processing strategy or second processing strategy according to the service type:
[0336] First treatment strategy: Figure 8 As shown in the dotted box in , if the electronic device 1 determines that the currently processed media service belongs to the first type of media service, such as video, game, etc., the electronic device 1 continues the audio service (for example, continues to display the game video) and automatically switches the audio sound to the local channel output. The first processing strategy corresponds to the above step S238A.
[0337] Second processing strategy: If the electronic device 1 determines that the currently processed media service belongs to the second type of media service, such as music, alarm clock, etc., the electronic device 1 pauses the audio service (pauses playing music) and pops up a dialog box to prompt the user whether to switch the current audio to the local channel output. The second processing strategy corresponds to the above step S238B.
[0338] S239A: The electronic device 1 receives a confirmation operation of the user triggering the switch to the secondary sound output channel, and switches the audio sound output channel to the secondary sound output channel. Then, the electronic device 1 outputs the first media audio stream through the secondary sound output channel.
[0339] S239B: the electronic device 1 receives a cancellation operation triggered by the user to cancel switching to the secondary sound output channel, sends a notification message to the Bluetooth headset to notify the user to manually seize the Bluetooth headset channel; and transmits the first media audio stream to the Bluetooth headset.
[0340] It should be noted that the electronic device 1 selectively executes either step S238A or step S238B.
[0341] S240: The Bluetooth headset receives and outputs the first media audio stream, and sends a prompt message to the electronic device 2 to prompt that the Bluetooth headset is occupied.
[0342] When the electronic device 1 executes the second processing strategy, if a confirmation switching operation is received from the user on the pop-up box, the electronic device 1 switches the current audio to the local channel output in response to the operation. If a negative switching operation is received from the user on the pop-up box, the electronic device 1 responds to the operation by notifying the Bluetooth headset that the Bluetooth headset channel is manually preempted by the user (i.e., re-preempted), and based on the A2DP specification, transmits the first media audio stream to the Bluetooth headset through the ACL link. Accordingly, after receiving the first media audio stream, the Bluetooth headset outputs the first media audio stream and stops outputting the second media audio stream, and similar to the above implementation, the Bluetooth headset sends a prompt message to the electronic device 1, prompting that the Bluetooth headset is occupied.
[0343] Fig.9A and Fig. 9B Combined Figure 8 The following is a schematic diagram of an application scenario of the audio control method. Figure 8 as well as Fig.9A and Fig. 9B , exemplarily describing the application scenario of the audio control method provided by the third scheme of the embodiment of the present application.
[0344] like Fig.9A As shown, electronic device 1 and electronic device 2 both establish connections with the Bluetooth headset. Among them, electronic device 1 initiates a media service, and based on the A2DP specification, transmits the media audio stream of song 1 to the Bluetooth headset through the ACL link, and outputs the media audio stream of song 1 through the Bluetooth headset. Electronic device 1 can display an audio control interface and the "Bluetooth headset" item is selected, indicating that the current media audio stream is output through the Bluetooth headset. In addition, electronic device 2 also initiates a media service and outputs the media audio stream of song 2 through this device. Electronic device 2 can display an audio control interface and the "Local" item is selected, indicating that the current media audio stream is output through this device.
[0345] Furthermore, if the user selects the "Bluetooth headset" item on the audio control interface of the electronic device 2, that is, the user manually seizes the Bluetooth headset channel, then Fig. 9B As shown, the Bluetooth headset is preempted by electronic device 2. Based on the A2DP specification, electronic device 2 transmits the media audio stream of song 2 to the Bluetooth headset through the ACL link, that is, song 2 can be played through the Bluetooth headset. At this time, in the audio control interface of electronic device 2, the "Bluetooth headset" item is selected, indicating that the current media audio stream is output through the Bluetooth headset. Since the Bluetooth headset is preempted by electronic device 2, electronic device 1, as the preempted party, determines that the current service is of the music type and pauses playing song 1. Accordingly, in the audio control interface of electronic device 1, the options of each audio output channel are not selected. In addition, electronic device 1 can display a prompt message to prompt the user to switch the currently playing media audio to the local device or speakers for the user to choose. If the user chooses to switch to the speakers, as shown in the following example. Fig. 9C As shown, the electronic device 1 as the seized party switches the audio output channel to the speaker and plays song 1 through the speaker.
[0346] Further, such as Fig. 9C As shown, if the user selects the "Bluetooth headset" item on the audio control interface of the electronic device 1, then Fig.9DAs shown, the Bluetooth headset is seized by electronic device 1 (i.e., retaken), and electronic device 1 transmits the media audio stream of song 1 to the Bluetooth headset through the ACL link based on the A2DP specification, and plays song 1 through the Bluetooth headset. At this time, since the Bluetooth headset is seized by electronic device 1, electronic device 2, as the seized party, judges that the current service is of music type and pauses playing song 2. Correspondingly, in the audio control interface of electronic device 2, the options of each audio output channel are not selected. In addition, electronic device 2 can display a prompt message to prompt the user whether to switch the currently playing media audio to this machine for the user to choose. If the user chooses to switch to this machine, electronic device 2 switches the audio output channel to this machine in response to the user operation, and plays song 2 through this machine. If the user cancels the switch to this machine, electronic device 2 switches the audio output channel back to the Bluetooth headset (i.e., retaken) in response to the user operation, and then song 2 can be played through the Bluetooth headset.
[0347] In the audio control interface of electronic device 1, the "Bluetooth headset" item is selected, indicating that the current song is played through the Bluetooth headset. In the audio control interface of electronic device 2, the "Local" item is selected, indicating that the current media audio stream is output through the local device. In this way, the user can manually seize the Bluetooth headset channel according to actual needs and trigger the Bluetooth headset to switch audio services. It can be seen from the third solution that the Bluetooth device follows the user operation priority preemption strategy.
[0348] Scenario 2: Concurrency of media services and call services
[0349] In the second scenario, it is assumed that electronic device 1 initiates the media service first, and electronic device 2 initiates the call service later. Since the priority of the call service is higher than that of the media service, the preemption strategy is that the call service preempts the headphone channel first. It should be noted that, similar to the description of the first scenario based on the first scheme, the second scheme, and the third scheme, the second scenario is also described exemplarily based on the first scheme, the second scheme, and the third scheme.
[0350] <First Solution> The following first describes the audio control method implemented based on the first solution in the second scenario. In the process of implementing the audio control method based on the first solution, the A2DP specification can be deactivated / reactivated, so that the Bluetooth headset can reasonably switch the audio services of different electronic devices when the services are concurrent and can ensure the normal output of the audio stream.
[0351] Fig.10 The figure shows a schematic diagram of a process of implementing a Bluetooth headset switching audio service based on the first solution when the Bluetooth headset is connected to both the electronic device 1 and the electronic device 2. Fig.10As shown, the Bluetooth headset has activated the A2DP specification and the HFP specification with the electronic device 1, and has activated the A2DP specification and the HFP specification with the electronic device 2. The initial state of the Bluetooth headset is the idle state. Fig.10 As shown, the audio control method may include the following steps S301-S304.
[0352] S301: Electronic device 1 receives a first operation from a user, and transmits a media audio stream to a Bluetooth headset in response to the first operation.
[0353] S302 : The Bluetooth headset receives and outputs a media audio stream, and deactivates the A2DP specification with the electronic device 2 .
[0354] For the description of the above steps S301-S302, please refer to the above Figure 4 The description of steps S201-S202 in will not be repeated here.
[0355] When the electronic device 1 receives the first operation of the user (for example, clicking the media application icon), the electronic device 1 initiates the media service in response to the first operation, and transmits the media audio stream of the media service to the Bluetooth headset through the ACL link based on the A2DP specification. Correspondingly, after receiving the media audio stream, the Bluetooth headset outputs the media audio stream, for example, plays music, and deactivates the A2DP specification between the Bluetooth headset and the electronic device 2.
[0356] S303: Electronic device 2 initiates a call service and transmits a call audio stream of the call service to the Bluetooth headset.
[0357] Optionally, the call service may include answering or making calls, or video calls, voice calls, etc., and may also include other possible call services.
[0358] S304 : The Bluetooth headset receives and outputs the call audio stream, and deactivates the A2DP specification with the electronic device 1 .
[0359] Optionally, after step S304, the audio control method further includes the following steps S305-S312.
[0360] S305: The electronic device 1 stops transmitting the media audio stream to the Bluetooth headset, and determines the type of the audio service currently being processed.
[0361] S306A: If the currently processed audio service is a first-class service, the electronic device 1 continues to process the current audio service and automatically switches to the secondary sound output channel or plays in silence. Optionally, the electronic device 1 may display a prompt message to prompt the user that the audio output channel has been switched to the secondary sound output channel (e.g., the local channel).
[0362] S306B: If the currently processed audio service is a second-type service, the electronic device 1 suspends processing of the current audio service and displays a message to prompt the user whether to switch to a secondary sound output channel (eg, a local channel).
[0363] It should be noted that the electronic device 1 selectively performs either step S306A or step S306B. Figure 8 The relevant description in will not be repeated here.
[0364] S307: The electronic device 1 receives the confirmation operation of the user triggering the switch to the secondary sound output channel, and switches the audio sound output channel to the secondary sound output channel. Then, the electronic device 1 outputs the first media audio stream through the secondary sound output channel.
[0365] In another possible case, the electronic device 1 receives a user-triggered cancellation operation to cancel switching to the secondary sound output channel, sends a notification message to the Bluetooth headset to notify the user to manually seize the Bluetooth headset channel; and transmits the first media audio stream to the Bluetooth headset.
[0366] In the case where the Bluetooth headset is occupied by the electronic device 1, if the electronic device 2 initiates a call service, the electronic device 2 transmits the call audio stream to the Bluetooth headset through the SCO link based on the HFP specification. That is, in the case where the Bluetooth headset processes the media service initiated by the electronic device 1, if the electronic device 2 initiates the call service later, the electronic device 2 can seize the Bluetooth headset. At this time, the Bluetooth headset can output the call audio stream and deactivate the A2DP specification between the Bluetooth headset and the electronic device 1. Correspondingly, the electronic device 1 stops transmitting the call audio stream to the Bluetooth headset, and determines the type of the currently processed media service, and then determines whether to continue the current service or suspend the current service according to the service type. As described in the first scenario above, the first processing strategy and the second processing strategy: for the first type of service, the audio service is continued, and the electronic device 1 automatically switches to the local channel or plays silently; for the second type of service, the electronic device 1 suspends the audio service and displays a prompt message to prompt whether to switch to the local channel. If the electronic device 1 receives the second operation of the user confirming to switch to the local channel, the electronic device 1 switches the audio to the local channel, and then the electronic device 1 outputs the media audio stream through the local. Compared with the situation in the related art where the audio stream cannot be output normally when services are concurrent, the embodiment of the present application can ensure that the audio stream will be output when services are concurrent, thereby improving the audio playback effect when services are concurrent when multiple electronic devices share Bluetooth headsets.
[0367] S308 . When the electronic device 2 ends the call service and stops transmitting the call audio stream to the Bluetooth headset, the Bluetooth headset activates the A2DP specification between the Bluetooth headset and the electronic device 1 .
[0368] S309: The Bluetooth device sends a prompt message to electronic device 1, and electronic device 2 receives and displays the prompt message.
[0369] The prompt message is used to prompt whether to switch the audio output channel to the Bluetooth headset. Exemplarily, the prompt message is in the form of a prompt box, and the prompt message may include a confirmation option for confirming the switch to the Bluetooth headset and a cancellation option for canceling the switch to the Bluetooth headset.
[0370] S310: The electronic device 1 receives a user's confirmation switching operation on the second prompt message, and in response to the operation, transmits a media audio stream to the Bluetooth headset.
[0371] The above-mentioned confirmation switching operation is used to trigger the switching of the audio output channel to the Bluetooth headset. Exemplarily, the confirmation switching operation can be an operation of the user to confirm the option.
[0372] S311. The Bluetooth device receives and outputs a second media audio stream.
[0373] S312: When electronic device 1 ends the media service and stops transmitting the call audio stream to the Bluetooth headset, the Bluetooth headset activates the A2DP specification between the Bluetooth headset and electronic device 2.
[0374] When the electronic device 2 ends the call service and stops transmitting the call audio stream to the Bluetooth headset, the Bluetooth headset is in an idle state, and the Bluetooth headset can perform audio service switching according to any of the following audio service switching strategies.
[0375] Strategy one: automatic switching. When the Bluetooth headset is in an idle state, the Bluetooth headset can ask the electronic device 1 whether it currently has an audio service. If the Bluetooth headset learns that the electronic device 1 currently has an audio service, the Bluetooth headset can reactivate the A2DP specification between the Bluetooth headset and the electronic device 1, and then the electronic device 1 transmits the media audio stream to the Bluetooth headset through the ACL link based on the A2DP specification. Correspondingly, after receiving the media audio stream, the Bluetooth headset outputs the media audio stream. In strategy one, the Bluetooth headset can intelligently switch and process the media services and call services respectively initiated by the two electronic devices, which can improve the audio playback effect when multiple electronic devices share the Bluetooth headset. Compared with the technical solution that requires the user to manually switch, the solution provided in the embodiment of the present application is in a normal headset idle state, and both mobile phones can freely initiate services without manual switching.
[0376] Strategy 2: Switching based on user needs. When the Bluetooth headset is in an idle state, the Bluetooth headset can send a message to the electronic device 1, prompting whether to switch the audio to the Bluetooth headset, and the electronic device 1 receives the user's confirmation switch operation. The A2DP specification between the Bluetooth headset and the electronic device 1 can be further reactivated. The following describes three possible implementations of how to activate the A2DP specification.
[0377] In a possible implementation, if the electronic device 1 receives the confirmation switching operation, the electronic device 1 feeds back to the Bluetooth headset that the electronic device 1 confirms switching the audio to the Bluetooth headset, and the Bluetooth headset activates the A2DP specification between the Bluetooth headset and the electronic device 1. Then, based on the A2DP specification, the electronic device 1 transmits the media audio stream to the Bluetooth headset through the ACL link. Correspondingly, the Bluetooth headset outputs the media audio stream after receiving the media audio stream.
[0378] In another possible implementation, if the electronic device 1 receives the confirmation switching operation, the electronic device activates the A2DP specification between the Bluetooth headset and the electronic device 1, and then transmits the media audio stream to the Bluetooth headset through the ACL link based on the A2DP specification. Correspondingly, the Bluetooth headset outputs the media audio stream after receiving the media audio stream.
[0379] In another possible implementation, once the Bluetooth headset is in an idle state, the Bluetooth headset automatically activates the A2DP specification between the Bluetooth headset and the electronic device 1, without the user confirming to switch the audio to the Bluetooth headset and then reactivate it. Therefore, the Bluetooth headset in the idle state maintains an A2DP connection with both the electronic device 1 and the electronic device 2, so that the Bluetooth headset can handle the audio service initiated by any electronic device in the Bluetooth connection state at any time. Fig.10 As shown, if the electronic device 1 stops transmitting the media audio stream to the Bluetooth headset, for example, the user clicks the pause control to trigger the music to stop playing, or the music stops playing automatically after it ends, or the user takes off the Bluetooth headset to trigger the Bluetooth headset to stop playing music, then the Bluetooth headset is in an idle state. Once the Bluetooth headset is in an idle state, the Bluetooth headset automatically activates the A2DP specification between the electronic device 2 without the user confirming to switch the audio to the Bluetooth headset and then activate it.
[0380] In strategy 2, the Bluetooth headset can switch to process the media service and call service initiated by the two electronic devices according to the actual needs of the user. Such an audio service switching strategy can meet the actual needs of users and improve user experience.
[0381] FIG. 11A to FIG. 11E Combined Fig.10 The following is a schematic diagram of an application scenario of the audio control method. Fig.10 as well as FIG. 11A to FIG. 11E, exemplarily describing the application scenario of the audio control method provided in the embodiment of the present application.
[0382] like Fig.11A As shown, if the user operates on electronic device 1 to trigger the playing of song 1, electronic device 1 initiates a media service in response to the user's operation, and transmits the media audio stream of song 1 to the Bluetooth headset through the ACL link based on the A2DP specification. The A2DP specification between the Bluetooth headset and electronic device 2 is deactivated. Fig.11A As shown, the electronic device 1 can display an audio control interface, in which the "Bluetooth headset" item is selected, so that the user can know that the audio stream of the electronic device 1 is currently output through the Bluetooth headset.
[0383] It should be noted that the above audio control interface can be an interface displayed when the screen of electronic device 1 is in a locked state, or it can be an interface displayed when the screen of electronic device 1 is in an unlocked state. It should also be noted that electronic device 2 currently has no audio service, and it can be in a screen-on state or a screen-off state. Electronic device 2 can then display a prompt message, indicating that the audio output channel has switched from the Bluetooth headset channel to the local output channel.
[0384] Further, such as Fig. 11B As shown, if the electronic device 2 initiates a call service, such as answering a call or making a call, the electronic device 2 seizes the Bluetooth headset and outputs the call audio stream through the Bluetooth headset. Fig. 11B As shown, the electronic device 2 can display a call control interface, which includes but is not limited to the "Bluetooth headset" item 30, and the "Bluetooth headset" item 30 is used to indicate that the call voice of the electronic device 2 is currently output through the Bluetooth headset. Accordingly, the electronic device 1 determines that the media service currently being processed is a second-class service, and therefore suspends the media service (pauses playing song 1). In addition, the electronic device 1 can display a prompt message to prompt the user whether to switch the currently playing media audio to the local machine or speakers for playback. If the user selects "speaker" to confirm switching the audio to the speaker for playback, the electronic device 1 can respond to the user's operation and play song 1 through the speaker.
[0385] Further, such as Fig. 11C As shown, if the call service of electronic device 2 ends, electronic device 2 stops transmitting the call audio stream to the Bluetooth headset. At this time, the Bluetooth headset is in an idle state and can reactivate the A2DP specification between the Bluetooth headset and electronic device 1. Further, the Bluetooth headset can send a message to electronic device 1 to prompt whether to switch the currently playing media audio to the headset. Accordingly, electronic device 1 can display the prompt message, and if the user selects "Yes" to confirm to switch the audio to the headset, as shown in FIG. Fig.11DAs shown, in response to the user's operation, the electronic device 1 transmits the media audio stream of song 1 to the Bluetooth headset through the ACL link based on the A2DP specification.
[0386] Further, such as Fig.11E As shown, if the media service of electronic device 1 ends, electronic device 1 stops transmitting the media audio stream to the Bluetooth headset. At this time, since both electronic device 1 and electronic device 2 have no audio service, the Bluetooth headset returns to the idle state. In this case, the Bluetooth headset can reactivate the A2DP specification between the Bluetooth headset and the electronic device 1. Therefore, the Bluetooth headset in the idle state maintains the A2DP connection and the HFP connection with both the electronic device 1 and the electronic device 2, so that the Bluetooth headset can handle the audio service initiated by any electronic device in the Bluetooth connection state at any time.
[0387] In summary, in the first solution, when electronic device 1 and the headset are in the audio service, and the headset disconnects the A2DP connection of electronic device 2, the headset can still receive a call reminder for an incoming call to electronic device 2, because the HFP connection between the headset and electronic device 2 is not disconnected. When the call is answered and the headset makes a sound, the A2DP connection between the headset and electronic device 1 is actively disconnected. After the call is over, the headset re-establishes the A2DP connection with electronic device 1 and resumes the audio service. Since most video applications and games will not pause after A2DP is disconnected, it is necessary to determine whether to initiate a play command after reestablishing A2DP. A feasible method is that after A2DP is successfully reestablished, the headset detects whether a mobile phone actively initiates A2DP. If the mobile phone does not actively initiate it, the headset initiates it again to avoid initiating a play command during the game, causing the music on the mobile phone to be played.
[0388] Compared with the above-mentioned related technologies that swallow the audio stream when services are concurrent, the solution provided by the embodiment of the present application allows one mobile phone to normally play audio when another mobile phone initiates an audio service while the other mobile phone is in a service with the headset, and the service sound will not be swallowed by the headset (such as videos, prompt sounds, and other audio that cannot be paused), which can solve the problem of being unable to start (such as music being transmitted to Bluetooth but being paused quickly). When a mobile phone's video or game service is preempted by voice, the music will not be called up when the voice ends and resumes.
[0389] <Second Solution> The following describes the audio control method implemented based on the second solution in the second scenario. In the process of implementing the audio control method based on the second solution, there is no need to deactivate / reactivate the A2DP specification. Instead, the Bluetooth headset sends a message to the preempted electronic device to notify the Bluetooth headset that it is preempted. Then the electronic device disables the Bluetooth headset channel according to the notification message and automatically switches to the secondary sound channel. In this way, the Bluetooth headset can reasonably switch the audio services of different electronic devices when the services are concurrent and can ensure the normal output of the audio stream.
[0390] Fig.12 FIG. 2 shows a flow chart of implementing a Bluetooth headset switching audio service based on the second solution when the Bluetooth headset is connected to both the electronic device 1 and the electronic device 2. Fig.12 As shown, the Bluetooth headset and the electronic device 1 and the electronic device 2 all activate the A2DP profile and the HFP profile. Fig.12 As shown, the audio control method may include the following steps S320-S324. For the description of the above steps S320-S321, please refer to the above Figure 8 The relevant description in will not be repeated here.
[0391] S322: The electronic device 2 receives the prompt message and disables the Bluetooth headset channel, or switches the audio channel from the headset channel to the secondary sound output channel. Optionally, the electronic device 2 may display the prompt message.
[0392] S323: Electronic device 2 initiates a call service and transmits a call audio stream of the call service to the Bluetooth headset.
[0393] S324. The Bluetooth headset receives and outputs the call audio stream.
[0394] Optionally, after step S324, the audio control method further includes the following steps S325-S332. It should be noted that the description of the above steps S325-S332 can refer to the above Figure 8 The relevant description in will not be repeated here.
[0395] It should be noted that Fig.10 The difference is that Fig.12 There is no need to deactivate the A2DP specification with the electronic device 1, nor is there any need to reactivate the deactivated A2DP specification. Fig.12 The preempted party is notified in the form of a notification message to disable the Bluetooth headset channel.
[0396] When the electronic device 1 receives the first operation of the user, the electronic device 1 obtains the media audio stream corresponding to the media application icon in response to the first operation, and transmits the media audio stream to the Bluetooth headset through the ACL link based on the A2DP specification. Correspondingly, the Bluetooth headset outputs the media audio stream after receiving the media audio stream.
[0397] The Bluetooth headset sends a prompt message to the electronic device 2, prompting that the Bluetooth headset is occupied. After receiving the prompt message, the electronic device 2 disables the Bluetooth headset channel and automatically switches to the secondary sound output channel (such as this machine). Further, in the case where the Bluetooth headset is occupied by the electronic device 1, if the electronic device 2 initiates a call service, such as answering a call or making a call, the electronic device 1 transmits the call audio stream to the Bluetooth headset through the SCO link based on the HFP specification. That is, in the case where the Bluetooth headset processes the media service initiated by the electronic device 1, if the electronic device 2 later initiates the call service, the electronic device 2 can seize the Bluetooth headset. At this time, the Bluetooth headset can output the call audio stream and send a prompt message to the electronic device 1, prompting that the Bluetooth headset is occupied. Correspondingly, the electronic device 1 receives the prompt message, disables the Bluetooth headset channel according to the prompt message, and stops transmitting the media audio stream to the Bluetooth headset. In this case, the electronic device 1 can determine the type of media service currently being processed, and then determine whether to continue the current service or suspend the current service according to the service type. As described in the first scenario above, the first processing strategy and the second processing strategy are as follows: for the first type of business, the electronic device 1 continues the audio business and automatically switches the audio to the local device or plays it in silence; for the second type of business, the electronic device 1 suspends the audio business and displays a prompt message to prompt whether to switch to the local channel. If the electronic device 1 receives the second operation of the user confirming to switch to the local channel, the electronic device 1 switches the audio to the local channel, and then the electronic device 1 outputs the media audio stream through the local device. Compared with the situation in the related art where the audio stream cannot be output normally when the business is concurrent, the embodiment of the present application can ensure that the audio stream will be output when the business is concurrent, thereby improving the audio playback effect when the business is concurrent when multiple electronic devices share Bluetooth headsets.
[0398] Further, such as Fig.12 As shown, when the electronic device 2 ends the call service and stops transmitting the call audio stream to the Bluetooth headset, the Bluetooth headset is in an idle state. At this time, the Bluetooth headset can switch the audio service according to any of the following audio service switching strategies.
[0399] Strategy 1: Automatic switching. When the Bluetooth headset is in an idle state, the Bluetooth headset can send a prompt message to electronic device 1, prompting that the Bluetooth headset is currently available. After receiving the notification message, electronic device 1 directly switches the audio to the Bluetooth headset channel, and based on the A2DP specification, transmits the media audio stream to the Bluetooth headset through the ACL link. Correspondingly, after receiving the media audio stream, the Bluetooth headset outputs the media audio stream. In strategy one, the Bluetooth headset can intelligently switch to process the media services and call services initiated by the two electronic devices respectively, which can improve the audio playback effect when multiple electronic devices share the Bluetooth headset.
[0400] Strategy 2: Switch according to user needs. When the Bluetooth headset is in an idle state, the Bluetooth headset can send a prompt message to electronic device 1, prompting whether to switch the audio to the Bluetooth headset. After receiving the reminder message, electronic device 1 displays the prompt message. If the user's confirmation switch operation is received, the audio is switched to the Bluetooth headset channel (i.e., the Bluetooth headset channel is enabled), and based on the A2DP specification, the media audio stream is transmitted to the Bluetooth headset through the ACL link. In strategy two, the Bluetooth headset can switch to process the media services and call services initiated by the two electronic devices respectively according to the actual needs of the user. Such an audio service switching strategy can meet the actual usage needs of users and improve the user experience.
[0401] FIG. 13A to FIG. 13D Combined Fig.12 The following is a schematic diagram of an application scenario of the audio control method. Fig.12 as well as FIG. 13A to FIG. 13D , exemplarily describing the application scenario of the audio control method provided in the embodiment of the present application.
[0402] like Fig.13A As shown, if the user clicks on the media application icon on the electronic device 1 to trigger the playing of song 1, the electronic device 1 responds to the user's operation and transmits the media audio stream of song 1 to the Bluetooth headset through the ACL link based on the A2DP specification. Among them, the A2DP specification between the Bluetooth headset and the electronic device 2 does not need to be deactivated. The electronic device 1 can display an audio control interface, in which the "Bluetooth headset" item is selected, so that the user can know that the audio stream of the electronic device 1 is currently output through the Bluetooth headset. In the case where the Bluetooth headset is occupied by the electronic device 1, the electronic device 2 is notified to disable the Bluetooth headset. For example, the electronic device 2 can switch the audio output channel to a preset secondary sound output channel. At this time, the electronic device 2 can currently be in a screen-on state or a screen-off state. At this time, the electronic device 2 can display a prompt message to prompt that the audio output channel has switched from the Bluetooth headset channel to the local sound output channel.
[0403] Further, such as Fig. 13BAs shown, if the electronic device 2 initiates a call service, such as answering a call or making a call, the electronic device 2 seizes the Bluetooth headset and outputs the call audio stream through the Bluetooth headset. Among them, the A2DP specification between the Bluetooth headset and the electronic device 1 does not need to be deactivated. The electronic device 2 can display a call control interface, which includes but is not limited to a headset identifier 40, which is used to indicate that the call voice of the electronic device 2 is currently output through the Bluetooth headset. Correspondingly, the electronic device 1 determines that the currently processed media service is a second-class service, so the media service is suspended (pause playing song 1). In addition, the electronic device 1 can display a prompt message to prompt the user whether to switch the currently playing media audio to the local machine or speaker for playback. If the user selects "speaker" to confirm that the audio is switched to the speaker for playback, the electronic device 1 can respond to the user operation and play song 1 through the speaker.
[0404] Further, such as Fig. 13C As shown in FIG. 1 , if the call service of electronic device 2 ends, electronic device 2 stops transmitting the call audio stream to the Bluetooth headset. At this time, the Bluetooth headset is in an idle state. The Bluetooth headset can prompt electronic device 1 whether to switch the currently playing media audio to the headset. Accordingly, electronic device 1 can display the prompt information. If the user selects "Yes" to confirm to switch the audio to the headset, Fig.13D As shown, in response to the user's operation, electronic device 1 transmits the media audio stream of song 1 to the Bluetooth headset through the ACL link based on the A2DP specification. Electronic device 2 can then display a prompt message to indicate that the audio output channel has switched from the Bluetooth headset channel to the local audio output channel.
[0405] Furthermore, if electronic device 1 stops the media service, electronic device 1 stops transmitting the media audio stream to the Bluetooth headset, and since both electronic device 1 and electronic device 2 have no audio service, the Bluetooth headset returns to the idle state. In this case, the Bluetooth headset in the idle state maintains the A2DP connection and the HFP connection with both electronic device 1 and electronic device 2.
[0406] <Third Solution> The following describes the audio control method implemented based on the third solution in the second scenario. In the process of implementing the audio control method based on the third solution, the Bluetooth headset can be "grabbed back" according to the user operation, so that the Bluetooth headset can reasonably switch the audio services of different electronic devices when the services are concurrent and can ensure the normal output of the audio stream.
[0407] Fig.14 The figure shows a schematic diagram of a process of switching audio services of a Bluetooth headset based on the third solution when the Bluetooth headset is connected to both the electronic device 1 and the electronic device 2. Fig.12 ,like Fig.14 As shown, the Bluetooth headset and the electronic device 1 and the electronic device 2 all activate the A2DP profile and the HFP profile. Fig.14 As shown, the audio control method may include the following steps S341-S351. For the description of the above steps S341-S346, please refer to the above Fig.12 The relevant description in will not be repeated here.
[0408] S347: The electronic device 1 receives a user operation, and in response to the user operation, enables a Bluetooth headset channel and transmits a media audio stream to the Bluetooth headset.
[0409] When the electronic device 1 has initiated the process of playing voice or media services, the electronic device 1 pops up an audio control interface in response to a user operation (such as a drop-down menu or a status bar); or the electronic device 1 can pop up an audio control interface in response to a user's operation of ordering audio or video services. The audio control interface includes audio channels currently available to the electronic device 1, such as audio channels including the "local" item and the "Bluetooth headset" item. If the electronic device 1 receives a user's selection operation for the "Bluetooth headset" (i.e., the above-mentioned user operation), the electronic device 1 can enable the Bluetooth headset channel.
[0410] S348: The Bluetooth headset receives and outputs the media audio stream, and sends a prompt message to the electronic device 2 to notify the user to manually seize the Bluetooth headset channel.
[0411] S349. Electronic device 2 displays a prompt message.
[0412] S350: The electronic device 2 receives a user operation, and in response to the user operation, switches the Bluetooth headset channel and transmits a call audio stream to the Bluetooth headset.
[0413] S351. The Bluetooth device receives and transmits the call audio stream, and sends a prompt message to the electronic device 1 to notify the user to manually seize the Bluetooth headset channel.
[0414] Similar to the second solution, electronic device 1 first initiates a media service and seizes the Bluetooth headset. Then, electronic device 2 initiates a call service and directly seizes the Bluetooth headset. In this case, electronic device 1 can determine the type of media service currently being processed, and then determine whether to continue or suspend the current service based on the service type.
[0415] In the third scheme, if the electronic device 1 receives the third operation of the user selecting the "Bluetooth headset item" in the audio control interface, the electronic device 1 can switch the audio to the Bluetooth headset channel, that is, "re-grab" the Bluetooth headset channel, and then the electronic device 1 can output the media audio stream through the Bluetooth headset. In addition, the Bluetooth headset sends a prompt message to the electronic device 2, prompting that the Bluetooth headset is manually seized by the user, and asking the user whether to agree to switch the audio to the local headset channel. Correspondingly, the electronic device 2 receives the prompt message and pops up a prompt, and stops outputting the call audio stream to the Bluetooth headset. Further optionally, if the electronic device 1 receives the fourth operation that the user does not agree to switch the audio to the local channel, the electronic device 2 can switch the audio to the Bluetooth headset channel, that is, "re-grab" the Bluetooth headset channel, and then the electronic device 2 transmits the call audio stream to the Bluetooth headset through the SCO link based on the HFP specification. In this way, similar to the above implementation, the Bluetooth headset sends a prompt message to the electronic device 1, prompting that the Bluetooth headset is manually seized by the user, and asking the user whether to agree to switch the audio to the local headset channel.
[0416] Figures 15A-15D Combined Fig.14 The following is a schematic diagram of an application scenario of the audio control method. Fig.14 as well as Figures 15A-15D , exemplarily describing the application scenario of the audio control method provided by the third scheme of the embodiment of the present application.
[0417] like Fig.15A As shown, electronic device 1 and electronic device 2 are both connected to the Bluetooth headset. It is assumed that electronic device 1 plays song 1 through the local device, and electronic device 2 initiates a call service and occupies the Bluetooth headset. The headset logo 30 in the call control interface displayed by electronic device 2 is used to indicate that the current media audio stream is output through the headset. If electronic device 1 receives the user's operation on the "Bluetooth headset" item in the audio management interface, electronic device 1 can seize the Bluetooth headset and play song 1 through the Bluetooth headset. At this time Fig. 15B As shown, the electronic device 2 may display a prompt message 31, or Fig. 15C As shown, the call control interface displayed by the electronic device 2 may pop up a box to display an audio switching interface 33, prompting the electronic device 2 to switch the call voice from the Bluetooth headset to the earpiece sound channel. Exemplarily, the audio switching interface 33 may include but is not limited to the "speaker" item, the "earpiece" item, and the "Bluetooth headset" item. Among them, the "earpiece" item is selected to prompt that the call voice of the electronic device 2 is currently sounding through the earpiece. Correspondingly, the call control interface can also display the earpiece logo 32 to prompt that the call voice is currently sounding from the earpiece. If no user operation is received within a preset time, the electronic device 2 can hide the audio switching interface 33.
[0418] In one possible implementation, Fig. 15C As shown, the user can directly select other options in the audio switching interface 33. For example, if the user selects the "speaker" item, the electronic device 2 can switch the call voice to the speaker; if the user selects the "Bluetooth headset" item, the electronic device 2 can switch the call voice to the Bluetooth headset, that is, grab the Bluetooth headset.
[0419] In another possible implementation, when the audio switching interface 33 is hidden, the user can click the handset icon 32 on the call control interface of the electronic device 2 to call out the audio switching interface 33. Fig. 15C As shown, if the user selects the "Bluetooth headset" item, electronic device 2 seizes the Bluetooth headset channel, transmits the media audio stream of song 2 to the Bluetooth headset through the ACL link based on the A2DP specification, and outputs the media audio stream of song 2 through the Bluetooth headset. Fig.15D As shown, the call control interface of electronic device 2 is switched to display the headset logo 30, which is used to indicate that the current media audio stream is output through the Bluetooth headset; electronic device 1 can then display a prompt message, prompting the user to switch the currently playing media audio to the local device or the speaker for the user to choose. In this way, the user can manually seize the Bluetooth headset channel according to actual needs and trigger the Bluetooth headset to switch audio services. It can be seen from the third solution that the Bluetooth device follows the user operation priority preemption strategy.
[0420] In the third solution, the Bluetooth headset can intelligently switch and process the media services and call services respectively initiated by the two electronic devices according to user operations, thereby improving the audio playback effect when multiple electronic devices share the Bluetooth headset.
[0421] The third scenario: the concurrent business scenario of [call business + call business].
[0422] In the third scenario, it is assumed that electronic device 1 initiates a call service first, and electronic device 2 initiates a call service later. For call services of the same priority, the preemption strategy is that the latter call can take precedence over the former call to preempt the earphone channel. It should be noted that, similar to the description of the first scenario based on the first scheme, the second scheme, and the third scheme, the third scenario is also described exemplarily based on the first scheme, the second scheme, and the third scheme.
[0423] <First Solution> The following first describes the audio control method implemented based on the first solution in the third scenario. In the process of implementing the audio control method based on the first solution, the A2DP specification can be deactivated / reactivated, so that the Bluetooth headset can reasonably switch the audio services of different electronic devices when the services are concurrent and can ensure the normal output of the audio stream.
[0424] Fig.16The figure shows a schematic diagram of a process of implementing a Bluetooth headset switching audio service based on the first solution when the Bluetooth headset is connected to both the electronic device 1 and the electronic device 2. Fig.16 As shown, the Bluetooth headset has activated the A2DP specification and the HFP specification with the electronic device 1, and has activated the A2DP specification and the HFP specification with the electronic device 2. The initial state of the Bluetooth headset is the idle state.
[0425] like Fig.16 As shown, if the electronic device 1 initiates a call service, such as answering a call or making a call, the electronic device 1 transmits the first call audio stream to the Bluetooth headset through the SCO link based on the HFP specification. Accordingly, the Bluetooth headset can output the first call audio stream and deactivate the A2DP specification between the Bluetooth headset and the electronic device 1.
[0426] Furthermore, if electronic device 2 receives an incoming call signal, electronic device 2 displays an incoming call interface and sends the incoming call prompt tone to the Bluetooth headset, at which time the Bluetooth headset can output the first call audio stream and the incoming call prompt tone, that is, mixing occurs. The user can choose to answer or reject the incoming call interface of electronic device 2, wherein rejection does not affect the call service status of electronic device 1.
[0427] Further, if the user chooses to answer the incoming call of electronic device 2, electronic device 2 can transmit the second call audio stream to the Bluetooth headset and output it through the Bluetooth headset, and the Bluetooth headset can deactivate the A2DP specification between the Bluetooth headset and electronic device 1. In this case, electronic device 1 can switch the state of the current call service to the phone call hold, and after the call service of electronic device 2 ends (for example, the user hangs up the phone), electronic device 2 stops transmitting the call audio stream to the Bluetooth headset, and the Bluetooth headset is in an idle state. The Bluetooth headset can send a prompt message to electronic device 1, prompting that the Bluetooth headset channel is available. Electronic device 1 can directly switch the phone call hold state to the phone answering state according to the received prompt message, and transmit the first call audio stream to the Bluetooth headset through the SCO link, so the Bluetooth headset can continue to process the call service of electronic device 1, that is, electronic device 1 can continue to output the first call audio stream through the Bluetooth headset. If the call service of electronic device 1 ends, electronic device 1 stops transmitting the call audio stream to the Bluetooth headset. At this time, the Bluetooth headset is in an idle state, and the Bluetooth headset can reactivate the A2DP specification between electronic device 1 and electronic device 2, so that the Bluetooth headset can handle the audio service initiated by any electronic device in the Bluetooth connection state at any time.
[0428] 17A to 17D Combined Fig.16 The following is a schematic diagram of an application scenario of the audio control method. Fig.16 as well as 17A to 17D, exemplarily describing the application scenario of the audio control method provided in the embodiment of the present application.
[0429] like Fig.17A As shown, electronic device 1 initiates a call service and outputs the call voice through the Bluetooth headset. Among them, the A2DP specification between the Bluetooth headset and electronic device 2 is deactivated. Electronic device 1 can display a call control interface, which includes but is not limited to a headset identifier 40, which is used to indicate that the call voice of electronic device 1 is currently output through the Bluetooth headset. At this time, the Bluetooth headset is preempted by electronic device 1, and electronic device 2 can display a message prompt box to prompt the user that the audio output channel has been switched from the Bluetooth channel to the local output channel.
[0430] Further, such as Fig. 17B As shown, if electronic device 2 receives a call, electronic device 2 notifies the Bluetooth headset of an incoming call, and electronic device 2 displays an incoming call interface. At this time, the Bluetooth headset can output the call voice of electronic device 1 and the phone prompt tone of electronic device 2 at the same time.
[0431] Furthermore, if the user chooses to answer the call, Fig. 17C As shown, the electronic device 2 displays a call control interface, which includes but is not limited to a headset logo 40, and the headset logo 40 is used to indicate that the call voice of the electronic device 2 is currently output through the Bluetooth headset. Fig. 17B As shown, the call service of the electronic device 1 is switched to the call holding state or the waiting state. Alternatively, the call voice of the electronic device 1 is automatically switched to the local sound output channel (such as the handset) for output, such as Fig. 17C As shown in the middle earpiece mark 41, the earpiece mark 41 is used to indicate that the call voice of the electronic device 1 is currently output through the earpiece.
[0432] Further, such as Fig.17D As shown, if the call service of electronic device 2 ends, the Bluetooth headset will automatically switch to handle the call service of electronic device 1, and prompt electronic device 1 that the current call voice has been switched to the headset for playback. Alternatively, the Bluetooth headset can send a prompt message to electronic device 1, prompting whether to switch the current call voice to the headset for playback; accordingly, electronic device 1 can display the prompt message, and if the user selects "Yes" to confirm switching the audio to the headset for playback, electronic device 1 outputs the call voice through the Bluetooth headset.
[0433] Furthermore, when there is no audio service on the electronic device 1 and the electronic device 2, the Bluetooth headset returns to the idle state. In this case, the Bluetooth headset can reactivate the A2DP specification between the electronic device 1 and the electronic device 2. The Bluetooth headset maintains an A2DP connection and an HFP connection with both the electronic device 1 and the electronic device 2, so that the Bluetooth headset can handle the audio service initiated by any electronic device in the Bluetooth connection state at any time.
[0434] In the first solution, once electronic device 1 establishes a voice call service with the headset, the A2DP connection of electronic device 2 is immediately disconnected, and the audio playback service of electronic device 2 is played on the mobile phone. When electronic device 2 receives an incoming call, a call reminder can still be received on the headset, and the call can be answered on electronic device 2 or the headset. After answering, the call is played on the headset, and the call of electronic device 1 is transferred to electronic device 1 for holding. When the call of electronic device 2 ends, the call of electronic device 1 can be restored to the headset. Compared with the situation where the audio stream cannot be output normally when related services are concurrent, the solution provided in the embodiment of the present application can ensure that the calls of two mobile phones are not missed at the same time.
[0435] <Second Solution> The following describes the audio control method implemented based on the second solution in the third scenario. In the process of implementing the audio control method based on the second solution, there is no need to deactivate / reactivate the A2DP specification. Instead, the Bluetooth headset sends a message to the preempted electronic device to notify the Bluetooth headset that it is preempted. Then the electronic device disables the Bluetooth headset channel according to the notification message and automatically switches to the secondary sound channel. In this way, the Bluetooth headset can reasonably switch the audio services of different electronic devices when the services are concurrent and can ensure the normal output of the audio stream.
[0436] Fig.18 FIG. 2 shows a flow chart of implementing a Bluetooth headset switching audio service based on the second solution when the Bluetooth headset is connected to both the electronic device 1 and the electronic device 2. Fig.18 As shown, the Bluetooth headset has activated the A2DP specification and the HFP specification with the electronic device 1, and has activated the A2DP specification and the HFP specification with the electronic device 2. The initial state of the Bluetooth headset is the idle state.
[0437] like Fig.18 As shown, if the electronic device 1 initiates a call service, the electronic device 1 can transmit the first call audio stream to the Bluetooth headset and output it through the Bluetooth headset. Fig.16 The difference from the process shown is that there is no need to activate the A2DP specification between the Bluetooth headset and the electronic device 1.
[0438] Furthermore, if the electronic device 2 receives an incoming call, the electronic device 2 sends the incoming call prompt tone to the Bluetooth headset, or the electronic device 2 notifies the Bluetooth headset of an incoming call, triggering the Bluetooth headset to call and play the locally stored incoming call prompt tone. At this time, the Bluetooth headset can output the first call audio stream and the incoming call prompt tone, that is, mixing occurs.
[0439] Furthermore, if the user chooses to answer the incoming call of the electronic device 2, the electronic device 2 can transmit the second call audio stream to the Bluetooth headset and output it through the Bluetooth headset. Fig.16The difference from the process shown is that here the Bluetooth headset does not need to activate the A2DP specification between the Bluetooth headset and the electronic device 1. In this case, the electronic device 1 can switch the state of the current call service to the phone call hold, or can switch the call voice to the sound output channel other than the Bluetooth headset, or display a message prompt box to prompt the user that the sound output channel has been switched to the earpiece, or prompt the user whether to switch the current call voice from the headset channel to other sound output channels.
[0440] Furthermore, after the call service of electronic device 2 ends (for example, the user hangs up the phone), electronic device 2 stops transmitting the call audio stream to the Bluetooth headset, and the Bluetooth headset is in an idle state. The Bluetooth headset can send a prompt message to electronic device 1, prompting that the Bluetooth headset channel is available. Electronic device 1 can directly switch the phone call holding state to the phone answering state according to the received prompt message, and continue to output the first call audio stream through the Bluetooth headset. If the call service of electronic device 1 ends, electronic device 1 stops transmitting the call audio stream to the Bluetooth headset. At this time, the Bluetooth headset is in an idle state, and the Bluetooth headset can maintain the A2DP connection between electronic device 1 and electronic device 2, so that the Bluetooth headset can handle the audio service initiated by any electronic device in the Bluetooth connection state at any time.
[0441] <Third Solution> The following describes the audio control method implemented based on the third solution in the third scenario. In the process of implementing the audio control method based on the third solution, the Bluetooth headset can be "grabbed back" according to the user operation, so that the Bluetooth headset can reasonably switch the audio services of different electronic devices when the services are concurrent and can ensure the normal output of the audio stream.
[0442] In the third solution, the A2DP specification and the HFP specification are activated for the Bluetooth headset, the electronic device 1, and the electronic device 2. Similar to the second solution, the electronic device 1 first initiates a call service to seize the Bluetooth headset. Then, the electronic device 2 initiates a call service to directly seize the Bluetooth headset.
[0443] Optionally, the electronic device 1 as the preempted party can determine the type of service currently being processed, and then determine whether to continue the current service or suspend the current service according to the service type. For example, if the preempted party device detects that the current service is a call service, it can maintain the call according to the preset strategy, and the sound channel can be switched to the local sound channel. Alternatively, the preempted party device can switch the sound channel to the local sound channel, and then output the call voice through the local sound channel. Optionally, the preempted party device can also display a message prompt box, prompting that the current audio sound channel has been switched from the earphone channel to the earpiece sound channel. Alternatively, the preempted party device can also display an audio switching interface to prompt the user whether to agree to switch the current audio sound channel to the earpiece sound channel. Alternatively, the user can operate in the call control interface to trigger the device to display the audio switching interface, and then the user can operate on the audio switching interface to trigger the switching of the audio sound channel.
[0444] For example, Fig.19A As shown, the electronic device 1 as the preempted party can display a prompt box 42, prompting that the audio output channel has been switched from the Bluetooth headset channel to the local output channel. The handset mark 41 in the call control interface displayed by the electronic device 1 is used to indicate that the current call audio stream is output through the headset. The headset mark 40 in the call control interface displayed by the electronic device 2 is used to indicate that the current call audio stream is output through the headset. At this time, the electronic device 1 can display a prompt message 42, prompting that the audio output channel has been switched from the Bluetooth headset channel to the local output channel.
[0445] For example, Fig.19B As shown in FIG. 1 , the call service of the electronic device 1 as the preempted party is switched to the call holding state. The user can select the handset icon 41 in the call control interface to trigger the device 1 to display the audio switching interface 43. If the user selects the "Bluetooth headset" item in the audio switching interface 43, as shown in FIG. Fig.19C As shown, the electronic device 1 can switch the audio to the Bluetooth headset channel in response to the user's operation, that is, "take back" the Bluetooth headset channel, and then the electronic device 1 can output the call voice through the Bluetooth headset. Fig.19C As shown, the call service of the electronic device 2, which is the preempted party, is switched to the telephone call holding state. The user can select the handset logo 41 in the call control interface to trigger the device 2 to display the audio switching interface 43. If the user selects the "Bluetooth headset" item in the audio switching interface 43, the electronic device 2 can respond to the user's operation and switch the audio to the Bluetooth headset channel, that is, "re-take back" the Bluetooth headset channel, and then the electronic device 2 can output the call voice through the Bluetooth headset. In this way, similar to the above implementation, the user can trigger the electronic device to preempt the Bluetooth headset channel through operation according to actual usage needs.
[0446] Optionally, in the related art, Bluetooth headsets do not yet support mixing of two A2DP audios or mixing of phone calls and A2DP audios. In the embodiment of the present application, mixing of A2DP audio streams and local prompt sounds can be achieved. Two implementation methods provided by the embodiment of the present application are described below.
[0447] This solution supports mixing audio from two mobile phones. The Bluetooth headset and the mobile phone must first negotiate the capabilities of mixing support, including confirming signaling interaction capabilities, decoding capabilities, and the way to support mixing. It should be noted that the type or application of the prompt tone notification can be configured for the Bluetooth headset on the mobile phone.
[0448] Sub-scheme 1: Use the reminder sound pre-stored locally in the Bluetooth headset for mixing. Fig. 20 As shown, when the Bluetooth headset and electronic device 1 are in an audio service and the Bluetooth headset disconnects the A2DP connection with electronic device 2, if electronic device 2 initiates an audio service, such as a prompt tone, electronic device 2 can notify the Bluetooth headset through a prompt tone message, and the Bluetooth headset can call the prompt tone locally and mix it with the current audio service.
[0449] Sub-scheme 2: Transmit the prompt sound of the electronic device to the Bluetooth headset for mixing. Fig.21 As shown, when the Bluetooth headset and the electronic device 1 are in the audio service, if the electronic device 2 supports the interactive capability of audio mixing signaling, then the A2DP connection between the Bluetooth headset and the electronic device 2 can be kept connected. Among them, the Bluetooth headset can notify the electronic device of the mixed audio type supported by the Bluetooth headset, or the electronic device can be configured as the mixed audio type supported by the Bluetooth headset. If the electronic device 2 has an audio service that meets the support conditions, then the electronic device 2 can send the audio stream to the Bluetooth headset and perform mixing processing on the Bluetooth headset side.
[0450] Optionally, if electronic device 1 is in a call with a Bluetooth headset, and the incoming call to electronic device 2 is a virtual call type, such as a voice call, video call, etc., the Bluetooth headset can treat the audio voice as a special voice after identifying the virtual call type, and control the incoming call not to be audible on the Bluetooth headset side, but to be transferred to electronic device 2 for answering.
[0451] In an embodiment of the present application, an audio control method under multiple connections provided by an embodiment of the present application, when the Bluetooth headset establishes a first type of audio service with the electronic device 1, determines the audio service strategy with the electronic device 2:
[0452] 1. If the Bluetooth headset and electronic device 1 are in a voice call service, or in a continuous service such as music, video, or game, the A2DP audio preemption of electronic device 2 may not be accepted, and the Bluetooth headset actively disconnects the A2DP connection with electronic device 2. At this time, the voice call service of electronic device 2 may be accepted.
[0453] 2. The method for detecting the audio service type may include: the electronic device actively notifies the Bluetooth headset of the audio service type, and the Bluetooth headset determines whether to disconnect the second audio channel; the Bluetooth headset determines whether the second audio channel is a continuous audio service through delay.
[0454] 3. When the service of electronic device 1 ends, the Bluetooth headset can actively reestablish the A2DP connection with electronic device 2.
[0455] 4. The method for restoring the audio service of the Bluetooth headset includes: the Bluetooth headset records the previous audio status, and after restoring the A2DP connection, the Bluetooth headset can first wait for the electronic device to actively initiate the service. If the electronic device does not initiate the service, the Bluetooth headset will actively initiate the service.
[0456] 5. When the Bluetooth headset and the electronic device support negotiation and signaling interaction about audio capabilities, the operation can be extended to support the operation without disconnecting A2DP, and multiple audio mixing can be performed on the Bluetooth headset side.
[0457] When electronic device 1 and electronic device 2 share the same Bluetooth headset, the Bluetooth headset can not only play the audio information in electronic device 1, but also play the audio information in electronic device 2. Therefore, based on the consideration of protecting their own and others' privacy, users usually do not use Bluetooth headsets to connect other people's electronic devices. That is to say, electronic device 1, electronic device 2 and Bluetooth headset usually belong to the same user, and this embodiment refers to the user as the owner. However, in actual use, the owner may lend the electronic device 1 and the Bluetooth headset to other people (referred to as non-owners in this embodiment) for use, and only use electronic device 2. In this scenario, when electronic device 2 receives a call service (such as incoming / outgoing calls), electronic device 2 will notify the Bluetooth headset of this call service. Since non-owners can answer calls through the Bluetooth headset, this may cause the owner's call privacy to be leaked.
[0458] The following takes the electronic device 1 as a tablet computer and the electronic device 2 as a mobile phone as an example, and specifically describes the process in combination with the concurrent service scenario of [media service and call service]. It should be understood that the above problem may also exist in the concurrent scenario of [call service and call service] and when the Bluetooth headset is in an idle state.
[0459] Fig. 22 Schematic diagram of an application scenario of a Bluetooth headset provided by an embodiment of the present application. Fig. 22As shown, the Bluetooth headset is connected to the tablet computer and the mobile phone via Bluetooth at the same time, that is, the tablet computer and the mobile phone share the Bluetooth headset. Among them, the tablet computer is currently playing a video, and based on the A2DP connection with the Bluetooth headset, the sound in the video is played through the Bluetooth headset. At this time, when the mobile phone receives an incoming / outgoing call, since the priority of the call service is higher than the priority of the media service, the mobile phone will preempt the Bluetooth headset to perform the call service. Specifically, the Bluetooth headset can disconnect the A2DP connection or ACL link with the tablet computer, and establish an HFP connection with the mobile phone to cooperate with the mobile phone to make a call.
[0460] Regarding the use of Bluetooth headsets in conjunction with mobile phones for calls, specifically, when a call comes in, the mobile phone will locally remind the caller, establish an HFP connection with the Bluetooth headset, and control the Bluetooth headset to remind the caller. Among them, the mobile phone can remind the caller by displaying the incoming call interface, playing the incoming call reminder tone (also called ringing), vibrating, etc., and the Bluetooth headset can remind the caller by ringing, flashing indicator light, etc. After the call reminder, the user can answer / reject the call through the mobile phone, or answer / reject the call through the Bluetooth headset. When the call is connected, the call will be made through the Bluetooth headset by default.
[0461] When a mobile phone makes an outgoing call, the mobile phone will remind the caller locally and establish an HFP connection with the Bluetooth headset to control the Bluetooth headset to remind the caller. The mobile phone can remind the caller by displaying the outgoing call interface, playing the outgoing call reminder tone (such as "beep~beep~beep~", etc.). The Bluetooth headset can remind the caller by playing the outgoing call reminder tone. When the call is connected, the call will be heard through the Bluetooth headset by default.
[0462] based on Fig. 22 In the scenario shown, it is assumed that the owners of the Bluetooth headset, tablet computer, and mobile phone are all user A, and user A lends the Bluetooth headset and tablet computer to user B to watch videos, while he only uses the mobile phone. Then, when user B uses the Bluetooth headset to watch videos, when the mobile phone calls / outgoing calls, the Bluetooth headset is preempted by the mobile phone. The Bluetooth headset will not only issue call reminders (including incoming call reminders and outgoing call reminders), but also fail to play the sound in the video, causing user B to be unable to watch the video normally, resulting in a poor user experience.
[0463] In addition, for the scenario of incoming calls, the Bluetooth headset has the ability to answer / reject calls based on user operations after the ringing. If user B answers user A's call through the Bluetooth headset, since the call will be played through the Bluetooth headset by default, user A's privacy may be leaked. For the scenario of outgoing calls, when the Bluetooth headset is playing the outgoing call prompt tone, after the call is answered by the other party, since the call will be played through the Bluetooth headset by default, user B is actually talking to the other party through the Bluetooth headset, which may also leak user A's privacy.
[0464] To this end, an embodiment of the present application provides a calling method, which involves a mobile phone determining whether to use a Bluetooth headset to cooperate in executing a calling service according to whether the user (i.e., the wearer) of the Bluetooth headset is the owner. When multiple devices share a Bluetooth headset, the calling method provided by this embodiment can protect the calling privacy of the owner to a certain extent, and improve the user experience when a non-owner uses the Bluetooth headset.
[0465] The calling method provided in this embodiment is based on the Bluetooth headset having turned on the person-recognition calling function (i.e., having the person-recognition calling function). After the Bluetooth headset is bound to the owner, the person-recognition calling function may be turned on by default, or the person-recognition calling function may be turned on according to user instructions. In this embodiment, the person-recognition calling function includes the phone recognition answering function and the phone recognition calling function. It should be noted that in this embodiment, if the mobile phone itself supports person-recognition calling, but the person-recognition calling is not turned on, it is considered that the mobile phone does not have the person-recognition calling function. If the Bluetooth headset itself supports person-recognition calling, but the person-recognition calling is not turned on, it is considered that the Bluetooth headset does not have the person-recognition calling function.
[0466] The following is an explanation of the process of enabling the Bluetooth headset recognition call function according to user instructions.
[0467] Fig.23 It is a schematic diagram of the setting process of a Bluetooth headset provided by an embodiment of the present application, which involves the process of a user operating a mobile phone to turn on the person-recognition call function of the Bluetooth headset.
[0468] For example Fig.23 As shown in (a) in the figure, the desktop of the mobile phone displays icons of various applications (applications, Apps), including icons such as "clock", "calendar", "gallery", "settings", "browser", "smart life", etc. When the mobile phone detects that the user operates the "settings" icon on the mobile phone desktop, the setting interface is displayed.
[0469] For example Fig.23 As shown in (b) of FIG. 1 , the setting interface includes "account" setting items, "wireless local area network (WLAN)" setting items, "Bluetooth" setting items, "mobile network" setting items, "desktop and wallpaper" setting items, and "display and brightness" setting items. When the mobile phone detects that the user operates the "Bluetooth" setting item, the Bluetooth setting interface is displayed.
[0470] For example Fig.23As shown in (c) in the figure, the Bluetooth setting interface includes the Bluetooth on control icon, the name of the mobile phone (such as HUAWEI P40), basic information of the electronic devices that the mobile phone has paired with (i.e., paired devices) (such as Bluetooth headset FreeBuds3, mobile phone 1, mobile phone 2, etc.), and basic information of electronic devices that the mobile phone can search for but has not yet paired (i.e., available devices, such as smart watches and Bluetooth speakers). When the mobile phone detects the user's operation on the setting icon of the Bluetooth headset, the headset setting interface is displayed.
[0471] For example Fig.23 As shown in (d) in FIG. 1 , the headset setting interface includes a “person-based call” setting item, a “rename” setting item, a “call audio” setting item, a “media audio” setting item, a “shared contact” setting item, etc. When the mobile phone detects that the user operates the “person-based call” setting item, the person-based call setting interface is displayed.
[0472] For example Fig.23 As shown in (e) in the figure, the person-recognition call setting interface includes the "ear canal recognition" setting item, the "bone voiceprint recognition" setting item and the "person-recognition call" setting item. When the mobile phone detects that the user has turned on the person-recognition call operation, the person-recognition call function of the Bluetooth headset is enabled.
[0473] In this embodiment, the user's operations on icons, options, setting items and other controls include single-clicking, double-clicking, multiple clicks, long pressing, heavy pressing, dragging the target to slide and other touch operations.
[0474] In some other embodiments, the setting interface of the mobile phone may also include a "headset recognition call" setting item, which is used to control all Bluetooth headsets connected to the mobile phone and having the recognition call function to turn on / off the recognition call function. In this way, when the mobile phone is connected to different Bluetooth headsets, there is no need to turn on / off the recognition call function for each Bluetooth headset separately.
[0475] Fig.24 It is a schematic diagram of the setting process of a Bluetooth headset provided by another embodiment of the present application, which involves a process in which a mobile phone sets an owner identification method of the Bluetooth headset according to user operations.
[0476] In the call recognition settings interface, users can choose to set the Bluetooth headset to recognize the owner by ear canal recognition, bone voiceprint recognition, voice password recognition ( Fig.24(not shown) etc. Among them, ear canal recognition means that every time a user wears a Bluetooth headset, the Bluetooth headset will automatically recognize the user's ear canal characteristics through sound waves to determine whether the user is the owner of the device. Bone voiceprint recognition means that every time a user wears a Bluetooth headset, the Bluetooth headset will obtain the bone voiceprint information of the verification voice (such as "my headset") input by the user to identify whether the user is the owner of the device. Voice password recognition means that every time a user wears a Bluetooth headset, the Bluetooth headset will obtain the voice password (such as "123456") input by the user to identify whether the user is the owner of the device.
[0477] Taking ear canal recognition as an example, Fig.24 As shown in (a) of FIG. 1 , after the mobile phone detects that the user has turned on the ear canal recognition operation, it displays, for example, Fig.24 The ear canal feature acquisition interface shown in (b) includes a "start recording" icon. When the mobile phone detects that the user operates the "start recording" icon, it controls the Bluetooth headset to obtain and store the user's ear canal feature information. After the Bluetooth headset successfully records the ear canal feature information, it notifies the mobile phone that the recording is completed. For example Fig.24 As shown in (c) in FIG. 1 , after the mobile phone determines that the Bluetooth headset has completed the ear canal information entry, it displays a prompt message "Entry Completed" and an "OK" icon. When the mobile phone detects that the user operates the "OK" icon, the ear canal information entry is completed.
[0478] In addition, the mobile phone can also control the Bluetooth headset to record the user's bone voiceprint information, voice password information, etc. according to the user's instructions. For specific recording methods, please refer to Fig.24 The process of inputting the ear canal features shown in the figure will not be described in detail in this embodiment.
[0479] The person-recognition call function is usually implemented through the private protocols of the mobile phone and the Bluetooth headset supplier. Therefore, among the mobile phones connected to the Bluetooth headset, some have the person-recognition call function and support related settings, while some mobile phones may not have the person-recognition call function and do not support related settings. Based on this, optionally, users can also manage and set up Bluetooth headsets through the smart life application installed on the mobile phone, including device connection management for Bluetooth headsets (such as establishing / disconnecting Bluetooth connections with electronic devices), quick operation settings (such as selecting the control instructions corresponding to double-clicking the left / right earphone), and turning on / off the Bluetooth headset's person-recognition call function, selecting the owner identification method, etc. It can be understood that through the smart life application, even a mobile phone that does not have the person-recognition call function can make settings related to person-recognition calls for the Bluetooth headset.
[0480] After the person-recognition call function of the Bluetooth headset is turned on, when the mobile phone connected to the Bluetooth headset receives an incoming call / outgoing call, the mobile phone and the Bluetooth headset can execute the call method provided by this embodiment. The following describes the call method provided by this embodiment in conjunction with a mobile phone with the person-recognition call function and a mobile phone without the person-recognition call function.
[0481] Fig.25 It is a flowchart of a calling method provided by an embodiment of the present application, which involves a process of how to use a Bluetooth headset when a mobile phone with a person recognition calling function is connected to the Bluetooth headset via Bluetooth.
[0482] S2501, the mobile phone and the Bluetooth headset establish a Bluetooth connection.
[0483] The process of establishing a Bluetooth connection between a mobile phone and a Bluetooth headset includes the following:
[0484] (1) The mobile phone, as the master device (i.e., the device initiating the connection), pages the Bluetooth headset, as the slave device (i.e., the device receiving the connection). Specifically, after the mobile phone scans the basic information broadcast by the Bluetooth headset (such as the headset address, headset model, etc.), it pages the Bluetooth headset according to the headset address in a frequency hopping manner according to the user's instructions. The Bluetooth headset scans for external paging at fixed carrier frequency intervals and responds after scanning the paging of the mobile phone.
[0485] (2) An asynchronous connectionless ACL link is established between the mobile phone and the Bluetooth headset based on the Link Manager Protocol (LMP).
[0486] (3) The mobile phone and the Bluetooth headset establish a channel link according to the Link Control and Adaptation Protocol (L2CAP).
[0487] (4) The mobile phone uses the session description protocol (SDP) to query the profiles supported by the Bluetooth headset, such as A2DP, HFP, etc., to establish an application connection.
[0488] S2502, the Bluetooth headset identifies whether the user of the Bluetooth headset is the owner.
[0489] In some embodiments, when a Bluetooth headset and a mobile phone are associated with the same account, the Bluetooth headset identifies whether the user of the Bluetooth headset is the owner. This is because when multiple electronic devices share a Bluetooth headset, although the owner will usually only use the Bluetooth headset to connect his own electronic devices, the possibility of connecting electronic devices that are not the owner of the device cannot be ruled out. Therefore, the Bluetooth headset needs to judge whether the electronic device it is connected to is the electronic device of the owner. Specifically, when the mobile phone and the Bluetooth headset are associated with the same account, the mobile phone is considered to belong to the owner, and the calling method provided in this embodiment is executed. When the mobile phone and the Bluetooth headset are associated with different accounts, the mobile phone is considered not to belong to the owner, and the Bluetooth headset will control the electronic devices that are not the owner of the device, so the calling method provided in this embodiment is not executed.
[0490] In other embodiments, it is not necessary to determine whether the Bluetooth headset and the mobile phone are associated with the same account. In other words, the calling method provided in this embodiment is executed regardless of whether the mobile phone is the owner's mobile phone.
[0491] For a Bluetooth headset, the mode of identifying the owner of the device is different according to different user settings. For example, the mode of identifying the owner of the device may be ear canal recognition, bone voiceprint recognition, voice password recognition, etc., and this embodiment does not limit the specific implementation mode thereof.
[0492] Ear canal recognition determines whether the user is the owner of the device based on the user's ear canal characteristics. Specifically, after the user wears the Bluetooth headset, the Bluetooth headset sends a sound wave to the user's ear canal. The sound wave passes through the eardrum of the external auditory canal to the middle ear and inner ear, and then reflects back to the eardrum to form an acoustic resonance spectrum. Since each person's ear canal characteristics are different, the acoustic resonance spectrum formed when the same sound wave propagates in different ear canals has individual differences. The Bluetooth headset collects the acoustic resonance spectrum and analyzes it. When the user's acoustic resonance spectrum matches the acoustic resonance spectrum of the owner pre-stored in the Bluetooth headset, it is confirmed that the user is the owner. When the user's ear canal feature information does not match the acoustic resonance spectrum of the owner pre-stored in the Bluetooth headset, it is confirmed that the user is not the owner. Ear canal recognition technology is not affected by the body's motion state, and the user's identity can be accurately identified even if the user is active.
[0493] Bone voiceprint recognition uses bone conduction technology to determine whether the user is the owner of the device. Specifically, after the user wears a Bluetooth headset, the Bluetooth headset can collect bone voiceprint information when the user speaks a specific term (such as "my headphones") through a bone conduction sensor (voice pick-up unit, VPU) and the sound waves are conducted through the bones. At the same time, the Bluetooth headset captures the term information through a microphone, determines the target operation corresponding to the term, and controls the Bluetooth headset in combination with the bone voiceprint information and the target operation. For example, when the Bluetooth headset determines that the term information spoken by the user is "my headphones", the bone voiceprint information of the term captured by the VPU is matched with the bone voiceprint information when the preset owner speaks the term. If the two match, it is determined that the user is the owner of the device. If they do not match, it is determined that the user is not the owner of the device.
[0494] Voice password recognition is to determine whether the user is the owner of the device through the entry information corresponding to the voice. Specifically, after the user wears the Bluetooth headset, the Bluetooth headset can capture the entry spoken by the user through the microphone and recognize it. If the entry is the same as the preset entry (such as "123456") stored locally in the Bluetooth headset, the user is determined to be the owner of the device; if the entry is different from the preset entry stored locally in the Bluetooth headset, the user is determined not to be the owner of the device.
[0495] Every time the user wears the headset, it will trigger the Bluetooth headset to identify the owner. If the Bluetooth headset fails to correctly identify the owner (referring to the recognition failure, rather than recognizing that the user of the Bluetooth headset is not the owner), a pop-up reminder can be sent on the phone or a prompt sound can be sent in the headset to remind the user of the recognition failure and suggest the user to try again. For example, if the Bluetooth headset currently uses ear canal recognition, the user can be reminded to adjust the wearing position of the Bluetooth headset and try again after the recognition fails. If the Bluetooth headset currently uses bone voiceprint recognition or voice recognition, the user can be reminded to say the recognition password again and try again after the recognition fails.
[0496] S2503, the Bluetooth headset sends a person recognition function notification to the mobile phone, which includes an indication that the Bluetooth headset has turned on the person recognition call function and the owner's recognition result.
[0497] In some embodiments, after completing the owner identification, the Bluetooth headset can actively send a person recognition function notification to the mobile phone through the Bluetooth link.
[0498] In other embodiments, since the person-recognition call function of the Bluetooth headset is usually implemented through a preset person-recognition call specification, the mobile phone can also query whether the Bluetooth headset has the person-recognition call function through the SDP service. After receiving the query message sent by the mobile phone, the Bluetooth headset can send a response message to the mobile phone, and the response message includes the above-mentioned person-recognition function notification.
[0499] S2504, the mobile phone sends a first response message to the Bluetooth headset, where the first response message is used to indicate that the mobile phone has a person-recognition call function.
[0500] For the Bluetooth headset, it is not certain whether the connected mobile phone has the function of recognizing people for calling. Therefore, the mobile phone needs to respond after receiving the notification of the recognizing people function. Specifically, when the mobile phone has the function of recognizing people for calling, the mobile phone sends a first response message to the Bluetooth headset to indicate that the mobile phone has the function of recognizing people for calling. When the mobile phone does not have the function of recognizing people for calling, the mobile phone will not be able to recognize the notification of the recognizing people function, so the mobile phone sends a second response message to the Bluetooth headset to indicate that the mobile phone does not have the function of recognizing people for calling.
[0501] S2505, the mobile phone enters the calling state and a call reminder is made locally.
[0502] The call status includes incoming calls or outgoing calls, and call reminders include incoming call reminders and outgoing call reminders. When a call comes in, the phone will remind the incoming call locally and display the incoming call interface. In addition, if the silent mode is not turned on, the phone will also ring to remind the incoming call. If the vibration mode is turned on, the phone will also vibrate to remind the incoming call. When the phone outgoing call, the phone will display the outgoing call interface locally to remind the outgoing call. It should be understood that regardless of whether the phone eventually notifies the Bluetooth headset for call reminders, the phone will remind the user locally that there is an incoming / outgoing call.
[0503] After S2505, when the current user of the Bluetooth headset is not the owner of the device, S2506 is executed, and S2507 to S2511 are not executed. When the current user of the Bluetooth headset is the owner of the device, S2506 is not executed, and S2507 to S2511 are executed.
[0504] S2506, when the user of the Bluetooth headset is not the owner of the phone, the phone makes a sound locally after the call is connected.
[0505] When a call is received from the mobile phone, after the other party answers the call, the call is made locally.
[0506] When a call comes in, the mobile phone can answer the call according to the first answering operation of the mobile phone user, and the mobile phone makes a sound after the call is connected. In this embodiment, the first answering operation includes sliding (including sliding up, sliding down, sliding left, and sliding right) the answering icon on the incoming call interface of the mobile phone, clicking the answering icon, bringing the mobile phone close to the ear, and long pressing the fingerprint sensor. When the call is connected, the local receiver of the mobile phone plays the other party's call sound, and the local microphone of the mobile phone collects the user's voice.
[0507] In addition, the mobile phone user can also reject the call locally by operating the mobile phone. For example, the user can reject the call by clicking or sliding (including sliding up, sliding down, sliding left, and sliding right) the call rejection icon, or by pressing the power button set on the side wall of the mobile phone.
[0508] In some embodiments, if the user wants the call to be heard on the Bluetooth headset, for example Fig. 22 In the scenario shown, the owner (ie user A) wants user B to answer the call. After the call is connected, the user can manually choose to switch the call to the Bluetooth headset on the call interface, otherwise the Bluetooth headset will not make any sound.
[0509] In summary, when the mobile phone has the function of identifying people for calling, when the user of the Bluetooth headset is not the owner of the phone, when the phone receives / outgoing calls, only the call reminder is made locally, and the Bluetooth headset is not notified to perform the call service. This method can improve the user experience when non-owners use Bluetooth headsets, and to a certain extent avoid the problem of privacy leakage of the owner's call caused by the non-owner answering the call.
[0510] Based on this, combined Fig. 22 From the Bluetooth headset application scenario shown, it can be seen that when user B uses the Bluetooth headset, even if user A's mobile phone calls / outgoing calls will not affect user B's headset usage experience, and user B will not be able to answer / receive calls on the mobile phone through the Bluetooth headset, which to a certain extent guarantees user A's call privacy.
[0511] S2507, when the user of the Bluetooth headset is the owner of the phone, the mobile phone sends a call message to the Bluetooth headset.
[0512] In this embodiment, the mobile phone sends a call message to the Bluetooth headset according to the Attention (AT) command in the HFP protocol, and the call message includes an incoming call message or an outgoing call message. When the mobile phone receives an incoming call, the mobile phone sends an incoming call message to the Bluetooth headset to prompt the user. When the mobile phone receives an outgoing call, the mobile phone sends an outgoing call message to the Bluetooth headset to prompt the user. In addition, the call message also includes the call reminder method of the Bluetooth headset, for example, playing the audio information carried by the incoming call message for call reminder, or playing the local preset audio of the Bluetooth headset for call reminder.
[0513] S2508: The mobile phone sends an eSCO link establishment request to the Bluetooth headset.
[0514] It should be noted that the solution provided in the embodiment of the present application does not limit whether the link for conducting the voice call is a SCO link or an eSCO link. For the sake of convenience, the eSCO link is used as an example to exemplarily describe the solution below.
[0515] The eSCO link is used to transmit the call audio stream. The Bluetooth headset can only transmit the audio information during the call after establishing the eSCO link with the mobile phone. It should be understood that whether it is an incoming call or an outgoing call, the mobile phone needs to establish an eSCO link with Bluetooth to transmit the call audio stream. Therefore, when the mobile phone receives an incoming call or an outgoing call, it needs to actively request the Bluetooth headset to establish an eSCO link.
[0516] S2509, the Bluetooth headset accepts the eSCO link establishment request and locally issues a call reminder.
[0517] After the Bluetooth headset receives the eSCO link establishment request from the mobile phone, the eSCO link is established successfully, and the Bluetooth headset and the mobile phone successfully establish an HFP connection. Based on the HFP connection with the mobile phone, the Bluetooth headset can play the incoming call prompt tone or outgoing call prompt tone of the current call, and the Bluetooth headset can also control the phone's telephone functions, such as answering, hanging up, rejecting, voice dialing, etc.
[0518] S2510, after the call is connected, the Bluetooth headset makes a sound.
[0519] When a call comes in, if the Bluetooth headset is currently worn by the owner, the phone can answer the call according to the user's first answering operation on the phone, or according to the user's second answering operation on the Bluetooth headset. After the call is connected, the Bluetooth headset will make the sound by default, and the Bluetooth headset and the phone will transmit the call audio stream through the eSCO link. However, if the Bluetooth headset is not currently worn, the phone will make the sound after the call is connected.
[0520] In this embodiment, the second answering operation can be double-clicking the left earphone, double-clicking the right earphone, issuing a voice answering command (such as voice "answer the call"), pressing the call answering button of the Bluetooth headset, etc. After the call is connected, the receiver of the Bluetooth headset plays the other party's call audio, and the microphone of the Bluetooth headset collects the voice of the user on this side and sends it to the other end of the call through the mobile phone.
[0521] In addition, the call audio stream includes the voice data of the other end of the call, the voice data of the local user collected by the Bluetooth headset, and other call audio, such as incoming call messages during the call.
[0522] When the mobile phone makes a call, if the Bluetooth headset is currently worn by the user, when the other party answers the call, the call is played by default on the Bluetooth headset side, and the Bluetooth headset and the mobile phone transmit the audio information during the call through the eSCO link. However, if the Bluetooth headset is not currently worn, the call is played locally by the mobile phone after the call is connected.
[0523] S2511, the call audio stream is transmitted between the mobile phone and the Bluetooth headset through the eSCO link.
[0524] When the call is over, the user can hang up the call locally on the mobile phone or on the Bluetooth headset, or wait for the other party to hang up the call without performing any operation. This embodiment does not limit this.
[0525] Based on the above, if the mobile phone has the function of identifying people for calls, when the current user of the Bluetooth headset is the owner of the phone, when the phone receives / outgoing calls, the Bluetooth headset can be notified through normal processes to cooperate in executing call services. Since the current user of the Bluetooth headset is the owner of the phone, the user will not cause the owner's privacy to be leaked after answering the call with the Bluetooth headset.
[0526] In summary, it can be seen that in Fig.25 In the embodiment shown, both the mobile phone and the Bluetooth headset have the function of identifying the person for calling. After the mobile phone enters the calling state, it is entirely up to the mobile phone to decide whether to notify the Bluetooth headset of the call so as to use the Bluetooth headset for the call. The following describes how to use the Bluetooth headset during a call when a mobile phone without the function of identifying the person for calling is connected to the Bluetooth headset via Bluetooth.
[0527] Fig.26 It is a flow chart of a calling method provided by another embodiment of the present application, which involves a process of how to use a Bluetooth headset when a mobile phone that does not have a person-recognition calling function is connected to the Bluetooth headset via Bluetooth.
[0528] S2601, the mobile phone establishes a Bluetooth connection with the Bluetooth headset.
[0529] S2602, the Bluetooth headset identifies whether the user is the owner.
[0530] S2603, the Bluetooth headset sends a person recognition function notification to the mobile phone, which includes an indication that the Bluetooth headset has turned on the person recognition call function and the owner's recognition result.
[0531] For S2601 to S2603, please refer to the description of S2501 to S2503 above, which will not be repeated here in this embodiment.
[0532] S2604, the mobile phone sends a second response message to the Bluetooth headset, where the second response message is used to indicate that the mobile phone does not have a person-recognition call function.
[0533] The call recognition function of the mobile phone and the Bluetooth headset is usually implemented through a private protocol. When the mobile phone and the Bluetooth headset are not from the same supplier, the mobile phone may not have the call recognition function and cannot recognize the call recognition notification sent by the Bluetooth headset. Therefore, the mobile phone needs to send a second response message to the Bluetooth headset to notify the Bluetooth headset that the mobile phone does not have the call recognition function.
[0534] S2605, the mobile phone enters the calling state, and the mobile phone locally issues a call reminder.
[0535] In this embodiment, for details of S2605, please refer to the description of S2505, which will not be repeated here in this embodiment.
[0536] S2606, the mobile phone sends a call message to the Bluetooth headset.
[0537] In this embodiment, since the mobile phone does not have the ability to identify the person making the call, it will not actively choose whether to use the Bluetooth headset for the call based on whether the current user of the Bluetooth headset is the owner of the phone. Instead, it will actively choose to use the Bluetooth headset for the call after entering the call state according to the conventional method, and send a call message to the Bluetooth headset. For the specific content of the call message, please refer to S2507, which will not be repeated in this embodiment.
[0538] S2607: The mobile phone sends an eSCO link establishment request to the Bluetooth headset.
[0539] In this embodiment, please refer to the description of S2508 for details of S2607, which will not be repeated here in this embodiment.
[0540] After S2607, when the current user of the Bluetooth headset is not the owner, S2608 to S2609 are executed, and S2610 to S2612 are not executed. When the current user of the Bluetooth headset is the owner, S2608 to S2609 are not executed, and S2610 to S2612 are directly executed.
[0541] S2608: When the mobile phone does not have the person-recognition call function and the user of the Bluetooth headset is not the owner of the phone, the Bluetooth headset rejects the eSCO link establishment request of the mobile phone.
[0542] After the Bluetooth headset rejects the eSCO link establishment request of the mobile phone, the eSCO link establishment between the mobile phone and the Bluetooth headset fails, and the HFP connection establishment also fails. When the mobile phone receives an incoming / outgoing call, the Bluetooth headset will not remind the caller, and the user cannot answer, reject or hang up the call through the Bluetooth headset, and can only answer, reject or hang up the call on the mobile phone.
[0543] S2609, after the call is connected, the mobile phone makes a sound locally.
[0544] In this embodiment, please refer to S2506 for details of S2609, which will not be described in detail in this embodiment.
[0545] Based on the above content, it can be seen that although the mobile phone does not have the function of identifying people for calls, the method provided in this embodiment can also be implemented. When the headset user is not the owner of the phone, the phone only makes a call reminder locally when a call is incoming / outgoing, while the Bluetooth headset does not make a call reminder. This method not only improves the user experience of non-owners using Bluetooth headsets, but also avoids the problem of privacy leakage of the owner's call caused by the non-owner answering the call to a certain extent.
[0546] Based on this, combined Fig. 22 From the Bluetooth headset application scenario shown, it can be seen that when user B uses the Bluetooth headset, even if user A's mobile phone calls / outgoing calls will not affect user B's headset usage experience, and user B will not be able to answer mobile phone calls through the Bluetooth headset, which to a certain extent guarantees user A's call privacy.
[0547] S2610, when the mobile phone does not have a call recognition function and the headset user is the owner of the phone, the Bluetooth headset accepts the eSCO link establishment request and the Bluetooth headset locally performs a call reminder.
[0548] In S2610, the Bluetooth headset accepts the eSCO link establishment request and performs a call reminder locally. For details, please refer to S2509, which will not be described in detail in this embodiment.
[0549] S2611, after the call is connected, the Bluetooth headset makes a sound.
[0550] S2612, Bluetooth headset and mobile phone transmit call audio stream through eSCO link.
[0551] Specifically, S2611 to S2612 refer to S2510 to S2511, which will not be described in detail in this embodiment.
[0552] Based on the above content, through the method provided by this embodiment, when the mobile phone does not have the function of identifying people for calls, the mobile phone adopts a conventional method to automatically choose to use a Bluetooth headset for calls after entering the call state, and the Bluetooth headset decides whether to establish an HFP connection based on whether the headset user is the owner of the phone, and cooperates with the mobile phone to make calls. This includes, when the user of the Bluetooth headset is the owner of the phone, using the Bluetooth headset to cooperate with the call. And, when the wearer of the Bluetooth headset is not the owner of the phone, the HFP specification is not activated, and the Bluetooth headset is not used to cooperate with the call. At the same time, the user cannot operate the current call on the Bluetooth headset side to avoid the user answering the call of the owner of the phone and causing the owner's call privacy to be leaked.
[0553] In summary, it can be seen that Fig.26In the embodiment shown, when the mobile phone does not have the function of identifying the person for making calls, but the Bluetooth headset has this function, the mobile phone uses the headset according to the normal headset usage process after entering the call state, and the Bluetooth headset decides whether to make a call reminder locally and whether to cooperate with the mobile phone to make the call based on the owner recognition result.
[0554] In some embodiments, the Bluetooth headset can independently determine whether to cooperate with the mobile phone to perform the call service. Fig.26 In the provided technical solution, S2603 and S2604 may not be executed respectively. After entering the call state, the mobile phone requests the Bluetooth headset to establish an eSCO link according to the normal call process, and regardless of whether the mobile phone has the ability to recognize people for calls, the Bluetooth headset completely independently decides whether to accept the request to cooperate with the mobile phone for calls.
[0555] In addition, in some other embodiments, based on the mobile phone's own support for call recognition, the user can also set whether to turn on the call recognition function of the mobile phone. If the user turns on the call recognition function of the mobile phone, it means that the user wants to have a privacy reminder for calls, and the mobile phone's incoming / outgoing calls will not notify the Bluetooth headset worn by non-users. Specifically, when the mobile phone turns on the call recognition function and the Bluetooth headset also turns on the call recognition function, the execution Fig.25 The calling method is shown.
[0556] If the user turns off the phone's call recognition function, it means that the user does not want to receive privacy reminders for the phone's calls. Specifically, when the phone turns off the call recognition function, regardless of whether the Bluetooth headset has the call recognition function turned on, the phone controls the Bluetooth headset to make call reminders normally. It can be understood that when the phone turns off the call recognition function, even if the Bluetooth headset has the call recognition function turned on and sends a call recognition notification to the phone, the phone will ignore the notification and use the Bluetooth headset normally.
[0557] When electronic device 1 and electronic device 2 share the same Bluetooth headset, the Bluetooth headset maintains Bluetooth connection with the two electronic devices at the same time, the power consumption of the Bluetooth headset is relatively large, and the usage time after charging is relatively short. To this end, in a possible implementation, when multiple electronic devices share the same Bluetooth headset, the Bluetooth headset can only establish a Bluetooth connection with the electronic device that initiates the service (including media service or call service), and connect with the remaining electronic devices through broadcasting. Since the energy consumption of the broadcast connection is relatively small, this method can reduce the power consumption of Bluetooth.
[0558] In this embodiment, the broadcast connection between the Bluetooth headset and the electronic device means that, on the basis that the Bluetooth headset and the electronic device have been paired, the Bluetooth headset broadcasts the status information of the headset (such as the service status), and the electronic device receives the status information broadcast by the Bluetooth headset, and understands the current working status of the Bluetooth headset through the status information. When the electronic device has an audio service to initiate to the Bluetooth headset, it establishes a connection with the Bluetooth headset according to the working status of the Bluetooth headset, and transmits the audio information through the ACL link or the SCO link. For example, the electronic device can establish a connection with the Bluetooth headset when the Bluetooth headset is in an idle state or processing a low-priority service, and preempt the Bluetooth headset.
[0559] Fig. 27 Schematic diagram of an application scenario of a Bluetooth headset provided by another embodiment of the present application. Fig. 27 As shown, the Bluetooth headset is connected to the tablet computer via Bluetooth, and to the mobile phone via broadcast. Among them, the tablet computer is currently playing a video, and based on the A2DP connection with the Bluetooth headset, the sound in the video is played through the Bluetooth headset. At this time, when the mobile phone receives an incoming call / outgoing call, since the priority of the call service is higher than the priority of the media service, the mobile phone first establishes a Bluetooth connection with the Bluetooth headset. Subsequently, the Bluetooth headset is automatically or according to user instructions to perform the call service. Specifically, the Bluetooth headset can disconnect the A2DP connection or ACL link with the tablet computer, and establish an HFP connection with the mobile phone to cooperate with the mobile phone to make a call.
[0560] See About Fig. 22 Description of the scenario shown, based on Fig. 27 In the scenario shown, when a call comes in or goes out, the mobile phone will also seize the Bluetooth headset, which may lead to the leakage of the owner's privacy and affect the headset experience of non-owners. To this end, the embodiment of the present application can use the following call method to determine whether to use the Bluetooth headset for the call.
[0561] Fig.28 This is a flow chart of a calling method provided by another embodiment of the present application, which involves a process of how a mobile phone with a person-recognition calling function uses a Bluetooth headset during a call when the mobile phone is connected to the Bluetooth headset via broadcast.
[0562] S2801, the Bluetooth headset identifies whether the user is the owner.
[0563] Specifically, for S2801, please refer to the above S2502, which will not be described in detail in this embodiment.
[0564] S2802, the Bluetooth headset broadcasts status information to the mobile phone, where the status information includes the service status of the Bluetooth headset and the owner identification result.
[0565] In some embodiments, the Bluetooth headset can broadcast the status information of the Bluetooth headset to the mobile phone through HiBeacon broadcast. For example, as shown in Table 1, the HiBeacon broadcast may include the broadcast address, length, type, Universally Unique Identifier (UUID), device information, and device status. In this embodiment, the status information of the headset can be added to the device status, so that the status information of the Bluetooth headset is sent to the mobile phone through HiBeacon broadcast.
[0566] Table 1 HiBeacon broadcast format
[0567]
[0568] Specifically, on the basis that the Bluetooth headset and the mobile phone have been paired, the Bluetooth headset broadcasts the status information of the Bluetooth headset to the mobile phone according to the mobile phone address at preset intervals. The status information at least includes the service status and the owner identification result. Among them, the service status includes idle state, media service or call service, etc. Different services can correspond to different priorities, and services with higher priorities can be processed by the Bluetooth headset first. The owner identification result is used to indicate whether the current user of the Bluetooth headset is the owner, including two situations: the current user is the owner or not the owner.
[0569] Optionally, the status information of the Bluetooth headset also includes the wearing status. The wearing status is used to indicate whether the Bluetooth headset is currently worn by the user, including both the worn and not worn situations. The mobile phone determines whether to use the Bluetooth headset based on whether the Bluetooth headset is in the wearing state. When the mobile phone is the owner's electronic device, the Bluetooth headset identifies whether the current user of the headset is the owner, so that when the mobile phone receives / outgoing calls, it is determined whether to use the Bluetooth headset for the call based on the owner identification result.
[0570] Optionally, the status information of the Bluetooth headset also includes power information, device model, device name, connection status, etc. Among them, the connection status includes discoverable, pairable or connectable, etc.
[0571] S2803, the mobile phone enters the calling state and a call reminder is issued locally.
[0572] Specifically, for S2803, please refer to S2505, which will not be described in detail in this embodiment.
[0573] After S2803, when the user of the Bluetooth headset is not the owner of the device, S2804 is executed instead of S2805 to S2809. When the user of the Bluetooth headset is the owner of the device, S2804 is not executed but S2805 to S2809 are directly executed.
[0574] S2804, when the user of the Bluetooth headset is not the owner of the phone, the mobile phone does not establish a Bluetooth connection with the Bluetooth headset, and the mobile phone makes a sound locally after the call is connected.
[0575] Specifically, in S2804, the specific content of the local sound of the mobile phone after the call is connected can be found in S2506, which will not be repeated here in this embodiment.
[0576] S2805, when the user of the Bluetooth headset is the phone owner, the mobile phone and the Bluetooth headset establish a Bluetooth connection.
[0577] In this embodiment, on the basis that the current user of the Bluetooth headset is the owner of the phone, if the current service level of the Bluetooth headset is lower than the call service level, the mobile phone seizes the Bluetooth headset and establishes a Bluetooth connection with the Bluetooth headset. If the current service level is equal to or higher than the call service level, the Bluetooth connection with the Bluetooth headset will not be established, and only a call reminder will be made locally.
[0578] Optionally, the mobile phone determines whether to use the Bluetooth headset according to whether the Bluetooth headset is in a wearing state. Specifically, when the current user of the Bluetooth headset is the owner of the device and the current service level of the Bluetooth headset is lower than the call service level, if the Bluetooth headset is in a wearing state, the mobile phone and the Bluetooth headset establish a Bluetooth connection. If the Bluetooth headset is not in a wearing state, the mobile phone and the Bluetooth headset do not establish a Bluetooth connection.
[0579] It should be noted that when the mobile phone and the Bluetooth headset are connected through broadcasting, the mobile phone and the Bluetooth headset have been paired and a shared link key (linkkey) has been created. The link key can be used for authentication when the two devices establish a Bluetooth connection. Specifically, the mobile phone and the Bluetooth headset quickly verify whether the other party has a matching link key by using characters derived from the Bluetooth key. If the link keys match, the mobile phone and the Bluetooth headset can continue to create a session password and establish a Bluetooth connection.
[0580] S2806, the mobile phone sends a call message to the Bluetooth headset.
[0581] S2807: The mobile phone sends an eSCO link establishment request to the Bluetooth headset.
[0582] S2808: The Bluetooth headset accepts the eSCO link establishment request and performs a call reminder locally.
[0583] S2809, after the call is connected, the Bluetooth headset makes a sound.
[0584] S2810, mobile phone and Bluetooth headset transmit call audio stream through eSCO link.
[0585] Specifically, for S2806 to S2810, please refer to the above S2507 to S2511, which will not be described in detail in this embodiment.
[0586] Based on the above content, when the current user of the Bluetooth headset is not the owner of the device, the mobile phone only makes a call reminder locally, but does not establish a Bluetooth connection with the Bluetooth headset, nor does it notify the Bluetooth headset to make a call reminder. This method can improve the user experience when a non-owner uses a Bluetooth headset, and to a certain extent avoid the problem of the owner's call privacy being leaked due to the non-owner answering the call.
[0587] Combination Fig. 27 From the Bluetooth headset application scenario shown, it can be seen that when user B uses the Bluetooth headset, even if the mobile phone calls / outgoing calls will not affect user B's headset usage experience, and user B will not be able to answer the phone call, which to a certain extent guarantees user A's call privacy.
[0588] Since the identification call function of the mobile phone and the Bluetooth headset is usually implemented through a private identification call protocol, when the mobile phone and the Bluetooth headset are not from the same supplier, the mobile phone may not have the identification call function. Therefore, in this embodiment, when the mobile phone does not have the identification call function, but the Bluetooth headset has turned on the function, the mobile phone and the Bluetooth headset can use the following method: Fig.29 Use the calling method shown to make a call reminder.
[0589] Fig.29 This is a flowchart of a calling method provided by another embodiment of the present application, which involves a process of how a mobile phone that does not have a person-recognition calling function uses a Bluetooth headset during a call when the mobile phone is connected to the Bluetooth headset through broadcasting.
[0590] S2901, the Bluetooth headset identifies whether the user of the Bluetooth headset is the owner of the device.
[0591] S2902, the Bluetooth headset broadcasts status information to the mobile phone, where the status information includes the service status of the Bluetooth headset and the owner identification result.
[0592] S2903, the mobile phone enters the calling state and makes a call reminder locally.
[0593] S2904, the mobile phone and the Bluetooth headset establish a Bluetooth connection.
[0594] When the mobile phone is connected to the Bluetooth headset via broadcast, the mobile phone does not have the function of identifying the caller, that is, the mobile phone cannot locally determine whether to use the Bluetooth headset based on whether the headset user is the owner. Therefore, when the mobile phone enters the calling state, the Bluetooth headset will be used by default and S2904 to S2906 will be executed.
[0595] S2905, the mobile phone sends a call message to the Bluetooth headset.
[0596] S2906: The mobile phone sends an eSCO link establishment request to the Bluetooth headset.
[0597] For the specific content of S2901 to S2906, please refer to the above S2801 to S2803 and S2805 to S2807, which will not be repeated here in this embodiment.
[0598] When the mobile phone does not have the call recognition function, but the Bluetooth headset has the call recognition function turned on, after receiving the call message sent by the mobile phone, the Bluetooth headset determines whether to cooperate with the mobile phone to make a call based on whether the headset user is the owner of the phone. Specifically, after S2906, when the current user of the Bluetooth headset is not the owner of the phone, S2907 to S2908 are executed, and S2909 to S2911 are not executed. When the current user of the Bluetooth headset is the owner of the phone, S2907 to S2908 are not executed, and S2909 to S2911 are directly executed.
[0599] S2907: When the headset user is not the phone owner, the Bluetooth headset rejects the eSCO link establishment request of the mobile phone.
[0600] S2908, after the call is connected, the phone makes a sound locally.
[0601] Specifically, for S2907 to S2908, please refer to S2608 to S2609, which will not be described in detail in this embodiment.
[0602] S2909: When the headset user is the owner of the device, the Bluetooth headset accepts the eSCO link establishment request and performs a call reminder locally.
[0603] S2910, after the call is connected, the Bluetooth headset makes a sound.
[0604] S2911, mobile phone and Bluetooth headset transmit call audio stream through eSCO link.
[0605] Specifically, for S2909 to S2911, please refer to S2610 to S2612, which will not be described in detail in this embodiment.
[0606] Through the calling method provided by the embodiment of the present application, when the mobile phone and the Bluetooth headset are connected through broadcasting, even if the mobile phone and the Bluetooth headset are not from the same supplier and the mobile phone does not have the calling function of recognizing people, the mobile phone can also realize the calling function of recognizing people during the calling process. That is, when the owner of the phone uses the Bluetooth headset, the Bluetooth headset will remind the call and cooperate with the mobile phone to make a call; when the non-owner of the phone uses the Bluetooth headset, the Bluetooth headset will not remind the call and will not cooperate with the mobile phone to make a voice call.
[0607] Based on this, combined Fig. 27From the Bluetooth headset application scenario shown, it can be seen that when user B uses the Bluetooth headset, even if the mobile phone calls / outgoing calls will not affect user B's headset usage experience, and user B will not be able to answer the phone call, which to a certain extent guarantees user A's call privacy.
[0608] In addition, the mobile phone may be provided with a privacy call, that is, a call that is not convenient for non-users to answer. Based on this, when the mobile phone is connected to a Bluetooth headset via Bluetooth or broadcast, the mobile phone can choose different ways to use the Bluetooth headset.
[0609] In some embodiments, when a private call is incoming / outgoing, the mobile phone executes the calling method provided by the present application, that is, whether to use the Bluetooth headset to cooperate with the mobile phone to perform this private call is determined according to whether the headset user is the owner of the phone. For other non-private calls, regardless of whether the headset user is the owner of the phone, the call is notified to the Bluetooth headset, so that the Bluetooth headset can be used to cooperate with the mobile phone to make the call.
[0610] In other embodiments, when a private call is incoming / outgoing on a mobile phone, no matter whether the headset user is the owner of the phone or not, the Bluetooth headset is not used to cooperate with the call, so as to ensure the privacy of the user as much as possible. In addition, this embodiment is also extended to the case where the mobile phone is connected to other electronic devices (such as car call devices, Bluetooth speakers, etc.).
[0611] In summary, when multiple electronic devices share a Bluetooth headset, the calling method provided in this embodiment can protect the calling privacy of the owner to a certain extent and improve the user experience when non-owners use the Bluetooth headset.
[0612] The various embodiments described in this document may be independent solutions or may be combined according to internal logic to achieve different technical effects, and these solutions all fall within the protection scope of this application.
[0613] The embodiment of the present application does not specifically limit the specific structure of the execution subject of the method provided by the embodiment of the present application, as long as it can be implemented according to the method provided by the embodiment of the present application by running a program that records the code of the method provided by the embodiment of the present application. In order to realize the various functions in the method provided by the above-mentioned embodiment of the present application, the Bluetooth headset may include a hardware structure and / or a software module, and the above-mentioned functions are realized in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a certain function of the above-mentioned functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
[0614] Fig.30A schematic block diagram of an audio control system 800 provided in an embodiment of the present application. The system 800 includes a Bluetooth headset 810, a first electronic device 820, and a second electronic device 830. The Bluetooth headset 810 establishes a first Bluetooth connection with the first electronic device 820 and a second Bluetooth connection with the second electronic device 830. The first Bluetooth connection and the second Bluetooth connection support media audio stream transmission and call audio stream transmission.
[0615] In a feasible embodiment, the system 800 provided in the embodiment of the present application may correspond to the audio control method corresponding to the first scheme, the second scheme and the third scheme in the above-mentioned first scenario described in the embodiment of the present application. Through the above-mentioned system 800, when the Bluetooth headset establishes a Bluetooth connection with both electronic devices, when the Bluetooth headset transmits the media audio stream of the media service with one of the electronic devices, if the other electronic device initiates the media service again, for the devices that initiate the media service, the service initiated first will first occupy the Bluetooth headset, and the media service initiated later will not occupy the Bluetooth headset, and by disconnecting the Bluetooth connection between the Bluetooth headset and the electronic device being occupied or by sending a message to the electronic device being occupied to instruct it to disable the Bluetooth headset, the electronic device being occupied can output the media audio stream through the Bluetooth headset, and the electronic device being occupied can output the media audio stream through the local machine or other Bluetooth audio devices, thereby avoiding the situation of business concurrency on the Bluetooth headset side, and thus can solve the problem of information loss caused by business conflicts when multiple electronic devices connected to the Bluetooth device initiate audio services in the related technology.
[0616] In a feasible embodiment, the system 800 provided in the embodiment of the present application may correspond to the audio control method corresponding to the first scheme, the second scheme and the third scheme in the above-mentioned second scenario described in the embodiment of the present application. Through the above-mentioned system 800, when the Bluetooth headset establishes Bluetooth connection with both electronic devices, when the Bluetooth headset transmits the media audio stream of the media service with one electronic device, if another electronic device initiates a call service, since the call service is set to have a higher priority than the media service, the call service can seize the Bluetooth headset to output the call audio stream, and by disconnecting the Bluetooth connection between the Bluetooth headset and the other electronic device or by sending a message to the other electronic device to instruct it to disable the Bluetooth headset, the electronic device of the seizing party can output the call audio stream through the Bluetooth headset, and the electronic device of the seized party can output the media audio stream through the local machine or other Bluetooth audio devices, thereby avoiding the situation of business concurrency on the Bluetooth headset side, and thus can solve the problem of information loss caused by business conflict when multiple electronic devices connected to the Bluetooth device initiate audio services in the related technology.
[0617] In a feasible embodiment, the system 800 provided in the embodiment of the present application may correspond to the audio control method corresponding to the first scheme, the second scheme and the third scheme in the third scenario described in the embodiment of the present application. Through the above system 800, when the Bluetooth headset establishes a Bluetooth connection with both electronic devices, when the Bluetooth headset transmits a call audio stream of a call service with one electronic device, if another electronic device initiates a call service later, for both devices to initiate a call service, the latter call service can take precedence over the former call service to seize the Bluetooth headset, and by disconnecting the Bluetooth connection between the Bluetooth headset and the seized electronic device or by sending a message to the seized electronic device to instruct it to disable the Bluetooth headset, the electronic device of the seizing party can output the call audio stream through the Bluetooth headset, and the electronic device of the seized party can output the call audio stream through the local machine or other Bluetooth audio devices, thereby avoiding the situation of business concurrency on the Bluetooth headset side, and thus can solve the problem of information loss caused by business conflicts when multiple electronic devices connected to the Bluetooth device initiate audio services in the related technology.
[0618] In a feasible embodiment, the system 800 provided in the embodiment of the present application may correspond to executing the calling method described in the embodiment of the present application. Through the above system 800, when a mobile phone is on a call, it can determine whether to use a Bluetooth headset to cooperate with the call according to whether the user of the Bluetooth headset is the owner of the phone. Among them, when the user of the Bluetooth headset is the owner of the phone, the Bluetooth headset is used to cooperate with the call, and when the user of the Bluetooth headset is not the owner of the phone, the call is made audibly on the local mobile phone. When multiple devices share a Bluetooth headset, the calling method provided in this embodiment can protect the call privacy of the owner to a certain extent, and improve the user experience when non-owners use Bluetooth headsets.
[0619] The system 800 provided in the embodiment of the present application may correspond to executing the audio control method described in the embodiment of the present application, and the above and other operations and / or functions of the modules in the system 800 are respectively the corresponding processes of the implementation method, which will not be repeated here for the sake of brevity.
[0620] Fig.31 9 is a schematic structural diagram of an electronic device 900 provided in an embodiment of the present application. The electronic device 900 includes: a processor 910 , a memory 920 , a communication interface 930 , and a bus 940 .
[0621] The processor 910 may be connected to a memory 920. The memory 920 may be used to store the program code and data. Therefore, the memory 920 may be a storage unit inside the processor 910, or an external storage unit independent of the processor 910, or a component including a storage unit inside the processor 910 and an external storage unit independent of the processor 910.
[0622] Optionally, the electronic device 900 may further include a bus 940. The memory 920 and the communication interface 930 may be connected to the processor 910 via the bus 940. The bus 940 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus 940 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.31 The fact that only one line is used in the diagram does not mean that there is only one bus or only one type of bus.
[0623] It should be understood that in the embodiment of the present application, the processor 910 may adopt a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. Alternatively, the processor 910 may adopt one or more integrated circuits to execute relevant programs to implement the technical solutions provided in the embodiment of the present application.
[0624] The memory 920 may include a read-only memory and a random access memory, and provides instructions and data to the processor 910. A portion of the processor 910 may also include a nonvolatile random access memory. For example, the processor 910 may also store information on the device type.
[0625] When the electronic device 900 is running, the processor 910 executes the computer-executable instructions in the memory 920 to perform the operating steps of the above method through the system 800.
[0626] It should be understood that the electronic device 900 according to the embodiment of the present application may correspond to the first electronic device or the second electronic device in the system 800 in the embodiment of the present application, and the above-mentioned and other operations and / or functions of each unit in the system 800 are respectively the corresponding processes of the implementation method, and for the sake of brevity, they will not be repeated here.
[0627] Optionally, in some embodiments, the embodiments of the present application further provide a computer-readable medium, which stores program code. When the computer program code runs on a computer, the computer executes the methods in the above aspects.
[0628] Optionally, in some embodiments, the embodiments of the present application further provide a computer program product, which includes: a computer program code, and when the computer program code runs on a computer, the computer executes the methods in the above aspects.
[0629] In an embodiment of the present application, the electronic device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. Among them, the hardware layer may include hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also called main memory). The operating system of the operating system layer can be any one or more computer operating systems that implement business processing through processes, such as Linux operating system, Unix operating system, Android operating system, iOS operating system, or Windows operating system. The application layer may include applications such as browsers, address books, word processing software, and instant messaging software.
[0630] Various aspects or features of the present application may be implemented as a method, apparatus, or article of manufacture using standard programming and / or engineering techniques. The term "article of manufacture" as used herein may encompass a computer program accessible from any computer-readable device, carrier, or medium. For example, a computer-readable medium may include, but is not limited to, a magnetic storage device (e.g., a hard disk, a floppy disk, or a magnetic tape, etc.), an optical disk (e.g., a compact disc (CD), a digital versatile disc (DVD), etc.), a smart card, and a flash memory device (e.g., an erasable programmable read-only memory (EPROM), a card, a stick, or a key drive, etc.).
[0631] The various storage media described herein may represent one or more devices and / or other machine-readable media for storing information. The term "machine-readable medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing and / or carrying instructions and / or data.
[0632] It should be understood that the processor mentioned in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0633] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory RAM. For example, a RAM may be used as an external cache. By way of example and not limitation, RAM may include the following forms: static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0634] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) can be integrated into the processor.
[0635] It should also be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0636] Those of ordinary skill in the art will appreciate that the units and steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of protection of this application.
[0637] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0638] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units or modules is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0639] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0640] In addition, each functional unit in each embodiment of the present application may be integrated into one unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0641] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a computer software product, which is stored in a storage medium. The computer software product includes several instructions, which are used to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium may include, but is not limited to: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0642] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0643] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An audio control system, characterized in that: The device comprises a Bluetooth headset, a first electronic device and a second electronic device, wherein the Bluetooth headset establishes a first Bluetooth connection with the first electronic device and a second Bluetooth connection with the second electronic device, wherein the first Bluetooth connection and the second Bluetooth connection support media audio stream transmission and call audio stream transmission; The first electronic device is used to: send a first media audio stream to the Bluetooth headset in response to a first operation of a user; The Bluetooth headset is used to: receive the first media audio stream sent by the first electronic device, and output the first media audio stream; And, when receiving the first operation of the user, the Bluetooth headset further performs at least one of the following actions: disconnecting the second Bluetooth connection between the Bluetooth headset and the second electronic device; sending a first message to the second electronic device, where the first message is used to indicate that the Bluetooth headset is occupied; The second electronic device is used for: in response to a second operation of the user, outputting a second media audio stream through a first preset channel other than the Bluetooth headset.
2. The system according to claim 1, characterized in that The second electronic device is further used for: If it is detected that the second Bluetooth connection between the Bluetooth headset and the second electronic device is disconnected, switching the audio channel of the second electronic device from the Bluetooth headset to the first preset channel; or, Receive the first message sent by the Bluetooth headset; and according to the first message, switch the audio channel of the second electronic device from the Bluetooth headset to the first preset channel.
3. The system according to claim 1 or 2, characterized in that: The second electronic device is further used to: when the audio channel of the second electronic device is switched from the Bluetooth headset to the first preset channel, display first prompt information, wherein the first prompt information is used to prompt that the audio channel has been switched from the Bluetooth headset to the first preset channel.
4. The system according to claim 1 or 2, characterized in that: The Bluetooth headset is further configured to: if the first media audio stream sent by the first electronic device is not received within a preset time period, perform a second action; the second action is any one of the following: when the second Bluetooth connection between the Bluetooth headset and the second electronic device is disconnected, reestablish the second Bluetooth connection and send a second message to the second electronic device; When the second Bluetooth connection is not disconnected, sending a second message to the second electronic device, where the second message is used to indicate that the Bluetooth headset is not occupied; The second electronic device is further used to: receive the second message sent by the Bluetooth headset; and according to the second message, switching the audio channel of the second electronic device from the first preset channel to the Bluetooth headset; Alternatively, in response to a user's confirmation operation on the second message, the audio channel of the second electronic device is switched to the Bluetooth headset, and the confirmation operation is used to trigger switching of the audio channel of the second electronic device to the Bluetooth headset.
5. The system according to claim 1 or 2, characterized in that: The first electronic device is further configured to: in response to the first operation, display a first audio switching interface, wherein the first audio switching interface includes at least two audio channel options and channel usage status information, wherein the at least two audio channel options include the Bluetooth headset option, and the channel usage status information indicates that the Bluetooth headset is being used; The second electronic device is also used to: display a second audio switching interface in response to the second operation, the second audio switching interface including at least two audio channel options and channel usage status information, the at least two audio channel options including an option for the Bluetooth headset and an option for the first preset channel, and the channel usage status information indicating that the first preset channel is being used.
6. The system according to claim 5, characterized in that The second electronic device is further used to: send the second media audio stream to the Bluetooth headset in response to a third operation of the user on the second audio switching interface, wherein the third operation is used to trigger the second media audio stream to be output through the Bluetooth headset; The Bluetooth headset is further used to: receive the second media audio stream sent by the second electronic device, output the second media audio stream, and send the first message to the first electronic device; The first electronic device is further used to: receive the first message sent by the Bluetooth headset, and switch the audio channel of the first electronic device from the Bluetooth headset to a second preset channel according to the first message.
7. The system according to claim 6, characterized in that The first electronic device is further used to: receive the first message sent by the Bluetooth headset, determine the service type of the first media service currently being processed, and perform a third action according to the service type of the first media service; The first media audio stream is the audio stream of the first media service, and the third action is any one of the following: suspending processing of the first media service, continuing processing of the first media service, continuing processing of the first media service and reducing the audio volume of the first media service, suspending processing of the first media service and displaying second prompt information, where the second prompt information is used to prompt whether to switch the audio channel from the Bluetooth headset to a second preset channel.
8. The system according to claim 1 or 2, characterized in that: The first Bluetooth connection includes an Advanced Audio Distribution Profile A2DP connection, and the second Bluetooth connection includes the A2DP connection.
9. The system according to claim 1 or 2, characterized in that: The outputting the second media audio stream through the first preset channel other than the Bluetooth headset includes: The second electronic device sends a second media audio stream to another Bluetooth device, wherein the other Bluetooth device has established a third Bluetooth connection with the second electronic device; or The second electronic device plays the second media audio stream through a speaker or an earpiece.
10. An audio control system, characterized in that: The device comprises a Bluetooth headset, a first electronic device and a second electronic device, wherein the Bluetooth headset establishes a first Bluetooth connection with the first electronic device and a second Bluetooth connection with the second electronic device, wherein the first Bluetooth connection and the second Bluetooth connection support media audio stream transmission and call audio stream transmission; The first electronic device is used to: send a first media audio stream to the Bluetooth headset in response to a first operation of a user; The Bluetooth headset is used to: receive the first media audio stream sent by the first electronic device, output the first media audio stream, and perform a first action; the first action is any one of the following: disconnect the second Bluetooth connection between the Bluetooth headset and the second electronic device; send a first message to the second electronic device, the first message is used to indicate that the Bluetooth headset is occupied; The second electronic device is used to: initiate a first call service, and send a first call audio stream of the first call service to the Bluetooth headset; The Bluetooth headset is used to: receive the first call audio stream sent by the second electronic device, output the first call audio stream, and perform a second action; the second action is any one of the following: disconnect the first Bluetooth connection between the Bluetooth headset and the first electronic device; send the first message to the first electronic device; The first electronic device is further configured to output the first media audio stream through a first preset channel other than the Bluetooth headset.
11. The system according to claim 10, characterized in that The first electronic device is also used for: If it is detected that the first Bluetooth connection between the Bluetooth headset and the first electronic device is disconnected, switching the audio channel of the first electronic device from the Bluetooth headset to the first preset channel; or, Receive the first message sent by the Bluetooth headset; and according to the first message, switch the audio channel of the first electronic device from the Bluetooth headset to the first preset channel.
12. The system according to claim 10 or 11, characterized in that The Bluetooth headset is further used for: if it is detected that the first call audio stream is a preset service prompt tone, mixing the first media audio stream and the first call audio stream for output.
13. The system according to claim 10 or 11, characterized in that: The first electronic device is further used to: receive the first message sent by the Bluetooth headset, determine the service type of the first media service currently being processed, and perform a third action according to the service type of the first media service; The first media audio stream is the audio stream of the first media service, and the third action is any one of the following: suspending processing of the first media service, continuing processing of the first media service, continuing processing of the first media service and reducing the audio volume of the first media service, suspending processing of the first media service and displaying second prompt information, where the second prompt information is used to prompt whether to switch the audio channel from the Bluetooth headset to the first preset channel.
14. The system according to claim 10 or 11, characterized in that The Bluetooth headset is further configured to: if the second call audio stream sent by the second electronic device is not received within a preset time period, perform a fourth action; the fourth action is any one of the following: when the first Bluetooth connection between the Bluetooth headset and the first electronic device is disconnected, reestablish the first Bluetooth connection and send a second message to the first electronic device; When the first Bluetooth connection is not disconnected, sending the second message to the first electronic device, where the second message is used to indicate that the Bluetooth headset is not occupied; The first electronic device is further used to: receive the second message sent by the Bluetooth headset; and according to the second message, switching the audio channel of the first electronic device from the first preset channel to the Bluetooth headset; Alternatively, in response to a user's confirmation operation on the second message, the audio channel of the first electronic device is switched to the Bluetooth headset, and the confirmation operation is used to trigger switching of the audio channel of the first electronic device to the Bluetooth headset.
15. The system according to claim 10 or 11, characterized in that The first electronic device is further configured to: in response to the first operation, display a first audio switching interface, wherein the first audio switching interface includes at least two audio channel options and channel usage status information, wherein the at least two audio channel options include the Bluetooth headset option; The second electronic device is also used to: display a second audio switching interface when initiating the first call service, the second audio switching interface including at least two audio channel options and channel usage status information, the at least two audio channel options including an option for the Bluetooth headset, and the channel usage status information indicating that the Bluetooth headset is being used.
16. The system according to claim 15, characterized in that The first electronic device is further used to: send the first media audio stream to the Bluetooth headset in response to a second operation of the user on the first audio switching interface, wherein the second operation is used to trigger the first media audio stream to be output through the Bluetooth headset; The Bluetooth headset is further used to: receive the first media audio stream sent by the first electronic device, output the first media audio stream, and send the first message to the second electronic device; The second electronic device is further used to: receive the first message sent by the Bluetooth headset, and switch the audio channel of the second electronic device from the Bluetooth headset to a second preset channel according to the first message.
17. The system according to claim 10 or 11, characterized in that The first Bluetooth connection includes an Advanced Audio Distribution Profile A2DP connection and a Hands-Free Profile HFP connection; and the second Bluetooth connection includes the A2DP connection and the HFP connection.
18. The system according to claim 10 or 11, characterized in that The Bluetooth headset is also used for: Identify whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset, and send the identification result to the first electronic device and / or the second electronic device; The first electronic device and / or the second electronic device is further configured to: When the wearer of the Bluetooth headset is the device owner, when executing a call service, sending a call audio stream to the Bluetooth headset; When the wearer of the Bluetooth headset is not the owner of the device, the call audio stream is not sent to the Bluetooth headset when the call service is executed.
19. The system according to claim 10 or 11, characterized in that The Bluetooth headset is also used for: Identify whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset; When the wearer of the Bluetooth headset is the owner, after receiving the call audio stream, outputting the call audio stream; When the wearer of the Bluetooth headset is not the owner of the device, after receiving the call audio stream, the call audio stream is not output.
20. The system according to claim 18, characterized in that The Bluetooth headset identifies whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset, including: The Bluetooth headset identifies whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset according to ear canal recognition, bone voiceprint recognition or voice recognition.
21. An audio control system, characterized in that: The device comprises a Bluetooth headset, a first electronic device and a second electronic device, wherein the Bluetooth headset establishes a first Bluetooth connection with the first electronic device and a second Bluetooth connection with the second electronic device, wherein the first Bluetooth connection and the second Bluetooth connection support media audio stream transmission and call audio stream transmission; The first electronic device is used to: initiate a first call service, and send a first call audio stream of the first call service to the Bluetooth headset; The Bluetooth headset is used to: receive the first call audio stream sent by the first electronic device, output the first call audio stream, and perform a first action; the first action is any one of the following: disconnect the second Bluetooth connection between the Bluetooth headset and the second electronic device; send a first message to the second electronic device, the first message is used to indicate that the Bluetooth headset is occupied; The second electronic device is used to: initiate a second call service, and send a second call audio stream of the second call service to the Bluetooth headset; The Bluetooth headset is used to: receive the second call audio stream sent by the second electronic device, output the second call audio stream, and perform a second action; the second action is any one of the following: disconnect the first Bluetooth connection between the Bluetooth headset and the first electronic device; send the first message to the first electronic device; The first electronic device is further used to output the first call audio stream through a first preset channel other than the Bluetooth headset.
22. The system according to claim 21, characterized in that The first electronic device is also used for: If it is detected that the first Bluetooth connection between the Bluetooth headset and the first electronic device is disconnected, switching the audio channel of the first electronic device from the Bluetooth headset to the first preset channel; or, Receive the first message sent by the Bluetooth headset; and according to the first message, switch the audio channel of the first electronic device from the Bluetooth headset to the first preset channel.
23. The system according to claim 21 or 22, characterized in that The first electronic device is further used to: receive the first message sent by the Bluetooth headset, determine the service type of the first call service currently being processed, and perform a third action according to the service type of the first call service; Among them, the first call audio stream is the audio stream of the first call service, and the third action is any one of the following: switching the first call service to call hold, outputting the first call audio stream through the first preset channel, outputting the first call audio stream through the first preset channel and reducing the volume of the first call audio stream, switching the first call service to call hold and displaying prompt information, wherein the prompt information is used to prompt whether to switch the audio channel from the Bluetooth headset to the first preset channel.
24. The system according to claim 21 or 22, characterized in that The Bluetooth headset is further configured to: if the second call audio stream sent by the second electronic device is not received within a preset time period, perform a fourth action; the fourth action is any one of the following: when the first Bluetooth connection between the Bluetooth headset and the first electronic device is disconnected, reestablish the first Bluetooth connection and send a second message to the first electronic device; When the first Bluetooth connection is not disconnected, sending the second message to the first electronic device, where the second message is used to indicate that the Bluetooth headset is not occupied; The first electronic device is further used to: receive the second message sent by the Bluetooth headset; and according to the second message, switching the audio channel of the first electronic device from the first preset channel to the Bluetooth headset; Alternatively, in response to a user's confirmation operation on the second message, the audio channel of the first electronic device is switched to the Bluetooth headset, and the confirmation operation is used to trigger switching of the audio channel of the first electronic device to the Bluetooth headset.
25. The system according to claim 21 or 22, characterized in that The first electronic device is further configured to: display a first audio switching interface when initiating the first call service, wherein the first audio switching interface includes at least two audio channel options and channel usage status information, wherein the at least two audio channel options include an option for the Bluetooth headset; The second electronic device is also used to: display a second audio switching interface when initiating the second call service, the second audio switching interface including at least two audio channel options and channel usage status information, the at least two audio channel options including an option for the Bluetooth headset, and the channel usage status information indicating that the Bluetooth headset is being used.
26. The system according to claim 25, characterized in that The first electronic device is further used to: send the first call audio stream to the Bluetooth headset in response to a first operation of the user on the first audio switching interface, wherein the first operation is used to trigger the first call audio stream to be output through the Bluetooth headset; The Bluetooth headset is further used to: receive the first call audio stream sent by the first electronic device, output the first call audio stream, and send the first message to the second electronic device; The second electronic device is further used to: receive the first message sent by the Bluetooth headset, and switch the audio channel of the second electronic device from the Bluetooth headset to a second preset channel according to the first message.
27. The system according to claim 21 or 22, characterized in that The first Bluetooth connection includes an Advanced Audio Distribution Profile A2DP connection and a Hands-Free Profile HFP connection; and the second Bluetooth connection includes the A2DP connection and the HFP connection.
28. The system according to claim 21 or 22, characterized in that The Bluetooth headset is also used for: Identify whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset, and send the identification result to the first electronic device and / or the second electronic device; The first electronic device and / or the second electronic device is further configured to: When the wearer of the Bluetooth headset is the device owner, when executing a call service, sending a call audio stream to the Bluetooth headset; When the wearer of the Bluetooth headset is not the owner of the device, the call audio stream is not sent to the Bluetooth headset when the call service is executed.
29. The system according to claim 21 or 22, characterized in that The Bluetooth headset is also used for: Identify whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset; When the wearer of the Bluetooth headset is the owner, after receiving the call audio stream, outputting the call audio stream; When the wearer of the Bluetooth headset is not the owner of the device, after receiving the call audio stream, the call audio stream is not output.
30. The system according to claim 28, characterized in that The Bluetooth headset identifies whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset, including: The Bluetooth headset identifies whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset according to ear canal recognition, bone voiceprint recognition or voice recognition.
Citation Information
Patent Citations
Bluetooth connection method, device and system
CN110191442A
Earphone playing control method and earphone
CN111372159A
Augmented reality enhancements for financial activities
US10510054B1