Audio control method and system

By implementing a preemption strategy between Bluetooth headsets and multiple electronic devices, the problem of audio service conflicts when Bluetooth headsets are connected to multiple devices is resolved, ensuring normal audio stream output and user experience.

CN120640262BActive Publication Date: 2026-03-27HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-18
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

When Bluetooth headsets are connected to multiple electronic devices at the same time, audio service conflicts may occur, leading to information loss. This is especially true when two electronic devices initiate audio services, in which case the Bluetooth headset cannot effectively arbitrate, resulting in the audio stream not being output normally.

Method used

By implementing a preemption strategy between the Bluetooth headset and two electronic devices, the service that initiates first has priority to use the Bluetooth headset, while the service that initiates later disconnects or sends a message to disable the Bluetooth headset, ensuring that the service that initiates first can output normally, while the service that initiates later outputs through other channels, thus avoiding service concurrency.

Benefits of technology

This effectively avoids concurrent business operations on the Bluetooth headset side, ensures normal audio stream output, solves the problem of information loss, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120640262B_ABST
    Figure CN120640262B_ABST
Patent Text Reader

Abstract

The application provides an audio control system, and relates to the technical field of communication. The system comprises a Bluetooth earphone, a first electronic device and a second electronic device. The first electronic device is used for sending a first media audio stream to the Bluetooth earphone in response to a first operation of a user. The Bluetooth earphone is used for receiving the first media audio stream sent by the first electronic device and outputting the first media audio stream. The second electronic device is used for outputting a second media audio stream through a first preset sound channel other than the Bluetooth earphone in response to a second operation of the user. The Bluetooth earphone is further used for performing at least one of the following actions when the first operation of the user is received: disconnecting a second Bluetooth connection between the Bluetooth earphone and the second electronic device; and sending a first message to the second electronic device, wherein the first message is used for indicating that the Bluetooth earphone is occupied. The application can avoid the problem of information loss caused by service conflict when multiple electronic devices connected with the Bluetooth device all initiate audio services.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to the Chinese Patent Application No. 202010950808.1, filed on September 10, 2020, and entitled "Audio Control System", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the field of communication technology, and more particularly to an audio control method and an audio control system in the field of communication. BACKGROUND

[0003] Currently, some Bluetooth earphones can support simultaneous connection with multiple electronic devices (hereinafter referred to as mobile phone 1 and mobile phone 2), and the two mobile phones can be connected or not connected. In the case where the Bluetooth earphone is connected with the two mobile phones, the Bluetooth earphone needs to consider how to handle the business arbitration and preemption between the two mobile phones. Especially for the case where the Bluetooth earphone is connected with the two mobile phones and the two mobile phones are not connected, the Bluetooth earphone is completely needed to arbitrate.

[0004] Currently, 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 business conflict can occur at the Bluetooth earphone side. At this time, if the Bluetooth earphone side currently processes audio service 1 and does not process audio service 2, the audio stream transmitted by mobile phone 2 can be discarded at the Bluetooth earphone side; if the Bluetooth earphone side currently processes audio service 2 and does not process audio service 1, the audio stream transmitted by mobile phone 1 can be discarded at the Bluetooth earphone side. As can be seen, when multiple electronic devices connected with the Bluetooth device all initiate audio services, the problem of information loss occurs. SUMMARY

[0005] The present application provides an audio control system, which can solve the problem of information loss caused by business conflict when multiple electronic devices connected with the Bluetooth device all initiate audio services in the related art.

[0006] In a first aspect, the present application provides an audio control system, which comprises a Bluetooth earphone, a first electronic device and a second electronic device, the Bluetooth earphone establishes a first Bluetooth connection with the first electronic device and 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;

[0007] The first electronic device is configured to: in response to a first operation of a user, send a first media audio stream to the Bluetooth earphone;

[0008] The Bluetooth earphone is configured 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 configured to, in response to a second operation of the user, output a second media audio stream through a first preset sound channel other than the Bluetooth earphone.

[0010] The Bluetooth earphone is further configured to, when the first operation of the user is received, perform at least one of the following actions: disconnect the second Bluetooth connection between the Bluetooth earphone and the second electronic device; and send a first message to the second electronic device, the first message being used to indicate that the Bluetooth earphone is occupied.

[0011] With the above solution, in the case where the Bluetooth earphone establishes Bluetooth connections with two electronic devices, when the Bluetooth earphone transmits a media audio stream of a media service with one of the electronic devices, if the other electronic device initiates a media service, for the devices that both initiate the media service, the first-initiated service occupies the Bluetooth earphone first, the second-initiated media service does not occupy the Bluetooth earphone, and the Bluetooth connection between the Bluetooth earphone and the occupied electronic device is disconnected or a message is sent to the occupied electronic device to indicate that the Bluetooth earphone is disabled, so that the occupying electronic device can output the media audio stream through the Bluetooth earphone, and the occupied electronic device can output the media audio stream through a local device or another Bluetooth audio device, thereby avoiding the situation of concurrent services on the Bluetooth earphone side, and thus the problem of information loss caused by service conflict in the related art when multiple electronic devices connected with the Bluetooth device both initiate audio services can be solved.

[0012] In a possible implementation, the second electronic device is further configured to:

[0013] If it is detected that the second Bluetooth connection between the Bluetooth earphone and the second electronic device is disconnected, switch the audio sound channel of the second electronic device from the Bluetooth earphone to the first preset sound channel; or

[0014] receive the first message sent by the Bluetooth earphone; and switch the audio sound channel of the second electronic device from the Bluetooth earphone to the first preset sound channel according to the first message.

[0015] In a possible implementation, the second electronic device is further configured to, in the case where the audio sound channel of the second electronic device is switched from the Bluetooth earphone to the first preset sound channel, display first prompt information, the first prompt information being used to prompt that the audio sound channel has been switched from the Bluetooth earphone to the first preset sound channel.

[0016] In a possible implementation, the Bluetooth earphone is further configured to: perform a second action if the first media audio stream sent by the first electronic device is not received within a preset time length; the second action is any one of the following: in a case where the second Bluetooth connection between the Bluetooth earphone and the second electronic device is disconnected, reestablishing the second Bluetooth connection and sending a second message to the second electronic device; in a case where the second Bluetooth connection is not disconnected, sending a second message to the second electronic device, the second message being used to indicate that the Bluetooth earphone is not occupied.

[0017] The second electronic device is further configured to: receive the second message sent by the Bluetooth earphone; and switch an audio channel of the second electronic device from the first preset channel to the Bluetooth earphone according to the second message; or, in response to a confirmation operation of a user on the second message, switch the audio channel of the second electronic device to the Bluetooth earphone, the confirmation operation being used to trigger the switching of the audio channel of the second electronic device to the Bluetooth earphone.

[0018] In a possible implementation, the first electronic device is further configured 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 state information, the Bluetooth earphone option being included in the at least two audio channel options, and the channel usage state information indicating that the Bluetooth earphone is being used.

[0019] The second electronic device is further configured to: in response to the second operation, display a second audio switching interface, the second audio switching interface including at least two audio channel options and channel usage state information, the Bluetooth earphone option and the first preset channel option being included in the at least two audio channel options, and the channel usage state information indicating that the first preset channel is being used.

[0020] In a possible implementation, the second electronic device is further configured to: in response to a third operation of a user on the second audio switching interface, send the second media audio stream to the Bluetooth earphone, the third operation being used to trigger the second media audio stream to be output through the Bluetooth earphone.

[0021] The Bluetooth earphone is further configured 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 configured to: receive the first message sent by the Bluetooth earphone, and switch an audio channel of the first electronic device from the Bluetooth earphone to a second preset channel according to the first message.

[0023] In a possible implementation, the first electronic device further includes: receiving the first message sent by the Bluetooth earphone, determining a service type of the first media service currently processed, and performing a third action according to the service type of the first media service.

[0024] The first media audio stream is an 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, the second prompt information being used to prompt whether to switch the audio channel from the Bluetooth earphone to a second preset channel.

[0025] In a possible implementation, the first Bluetooth connection includes an advanced audio distribution specification (A2DP) connection, and the second Bluetooth connection includes the A2DP connection.

[0026] In a possible implementation, the outputting of the second media audio stream through the first preset channel other than the Bluetooth earphone includes:

[0027] The second electronic device sends a second media audio stream to another Bluetooth device, where 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 loudspeaker or an earpiece.

[0029] In a second aspect, the present application further provides an audio control system, which includes a Bluetooth earphone, a first electronic device, and a second electronic device, the Bluetooth earphone establishes a first Bluetooth connection with the first electronic device and a second Bluetooth connection with the second electronic device, and the first Bluetooth connection and the second Bluetooth connection support media audio stream transmission and call audio stream transmission.

[0030] The first electronic device is configured to: in response to a first operation of a user, send a first media audio stream to the Bluetooth earphone.

[0031] The Bluetooth earphone is configured 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: disconnecting the second Bluetooth connection between the Bluetooth earphone and the second electronic device; sending a first message to the second electronic device, the first message being used to indicate that the Bluetooth earphone is occupied.

[0032] The second electronic device is configured 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 configured 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: disconnecting the first Bluetooth connection between the Bluetooth headset and the first electronic device; sending the first message to the first electronic device.

[0034] According to the above scheme, in the case where the Bluetooth headset establishes Bluetooth connections with two electronic devices, when the Bluetooth headset transmits a media audio stream of a media service with one of the electronic devices, 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 to instruct it to disable the Bluetooth headset, the electronic device of the preemption party can output the call audio stream through the Bluetooth headset, and the electronic device of the preemption party can output the media audio stream through a local device or other Bluetooth audio device, thereby avoiding the situation of service concurrency on the Bluetooth headset side, and thus the problem of information loss caused by service conflict in the related art when multiple electronic devices connected with the Bluetooth device all initiate audio services can be solved.

[0035] In a possible implementation, the first electronic device is further configured to:

[0036] If it is detected that the first Bluetooth connection between the Bluetooth headset and the first electronic device is disconnected, the audio channel of the first electronic device is switched from the Bluetooth headset to a first preset channel; or

[0037] The first message sent by the Bluetooth headset is received, and the audio channel of the first electronic device is switched from the Bluetooth headset to the first preset channel according to the first message.

[0038] In a possible implementation, the Bluetooth headset is further configured to: if it is detected that the first call audio stream is a preset service prompt tone, the first media audio stream and the first call audio stream are mixed and output.

[0039] In a possible implementation, the first electronic device is further configured to: receive the first message sent by the Bluetooth headset, determine the service type of the first media service currently processed, and perform a third action according to the service type of the first media service;

[0040] The first media audio stream is an 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, the second prompt information being used to prompt whether to switch the audio channel from the Bluetooth earphone to the first preset channel.

[0041] In a possible implementation, the Bluetooth earphone is further configured to: if the second call audio stream sent by the second electronic device is not received within a preset time length, perform a fourth action; the fourth action is any one of the following: in a case where the first Bluetooth connection between the Bluetooth earphone and the first electronic device is disconnected, reestablishing the first Bluetooth connection and sending a second message to the first electronic device; in a case where the first Bluetooth connection is not disconnected, sending the second message to the first electronic device, the second message being used to indicate that the Bluetooth earphone is not occupied.

[0042] The first electronic device is further configured to: receive the second message sent by the Bluetooth earphone; and according to the second message, switch the audio channel of the first electronic device from the first preset channel to the Bluetooth earphone; or, in response to a confirmation operation of a user on the second message, switch the audio channel of the first electronic device to the Bluetooth earphone, the confirmation operation being used to trigger the switching of the audio channel of the first electronic device to the Bluetooth earphone.

[0043] In a possible implementation, the first electronic device is further configured 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 state information, the Bluetooth earphone option being included in the at least two audio channel options.

[0044] The second electronic device is further configured to: when initiating the first call service, display a second audio switching interface, the second audio switching interface including at least two audio channel options and channel usage state information, the Bluetooth earphone option being included in the at least two audio channel options, and the channel usage state information indicating that the Bluetooth earphone is being used.

[0045] In a possible implementation, the first electronic device is further configured 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 earphone, the second operation being used to trigger the first media audio stream to be output through the Bluetooth earphone.

[0046] The Bluetooth earphone is further configured 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 configured to receive the first message sent by the Bluetooth earphone, and switch an audio channel of the second electronic device from the Bluetooth earphone to a second preset channel according to the first message.

[0048] In a possible implementation, the first Bluetooth connection includes an advanced audio distribution specification (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 earphone is further configured to identify whether a wearer of the Bluetooth earphone is an owner of the Bluetooth earphone, and send an identification result to the first electronic device and / or the second electronic device.

[0050] The first electronic device and / or the second electronic device are further configured to, when the wearer of the Bluetooth earphone is the owner, send a call audio stream to the Bluetooth earphone when a call service is performed; and when the wearer of the Bluetooth earphone is not the owner, not send the call audio stream to the Bluetooth earphone when the call service is performed.

[0051] In a possible implementation, the Bluetooth earphone is further configured to:

[0052] identify whether a wearer of the Bluetooth earphone is an owner of the Bluetooth earphone;

[0053] when the wearer of the Bluetooth earphone is the owner, output a call audio stream after receiving the call audio stream;

[0054] when the wearer of the Bluetooth earphone is not the owner, not output a call audio stream after receiving the call audio stream.

[0055] Through the above scheme, when a non-owner uses the Bluetooth earphone and the first electronic device, and the owner uses the second electronic device, when the second electronic device has a call service (including an incoming call or an outgoing call), the Bluetooth earphone is not currently worn by the owner, and therefore the second electronic device does not use the Bluetooth earphone for the call. Through the scheme, the call privacy of the owner can be avoided from being leaked to a certain extent, and the user experience of the non-owner when using the Bluetooth earphone can be improved.

[0056] In one possible implementation, the Bluetooth headset identifies whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset by means of ear canal recognition, bone conduction recognition, or voice recognition.

[0057] Thirdly, this application also provides an audio control system, which includes a Bluetooth headset, a first electronic device, and a second electronic device. The Bluetooth headset establishes a first Bluetooth connection with the first electronic device and 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.

[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 Bluetooth headset from the second Bluetooth connection of the second electronic device; send a first message to the second electronic device, the first message being 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: disconnecting the first Bluetooth connection between the Bluetooth headset and the first electronic device; sending the first message to the first electronic device.

[0062] Through the above scheme, in a case that the Bluetooth earphone establishes Bluetooth connections with two electronic devices, when the Bluetooth earphone transmits a call audio stream of a call service with one electronic device, if the other electronic device initiates a call service later, for the two devices both initiating call services, the latter call service can preempt the Bluetooth earphone in priority to the former call service, and by disconnecting the Bluetooth connection between the Bluetooth earphone and the pre-empted electronic device or by sending a message to the pre-empted electronic device to instruct it to disable the Bluetooth earphone, the electronic device of the pre-empting party can output the call audio stream through the Bluetooth earphone, and the electronic device of the pre-empted party can output the call audio stream through a local device or other Bluetooth audio device, so that the service concurrency on the Bluetooth earphone side is avoided, and therefore the problem of information loss caused by service conflict in the related art when multiple electronic devices connected with the Bluetooth device both initiate audio services can be solved.

[0063] In a possible implementation, the first electronic device is further configured to:

[0064] if it is detected that the first Bluetooth connection between the Bluetooth earphone and the first electronic device is disconnected, switch the audio channel of the first electronic device from the Bluetooth earphone to a first preset channel; or

[0065] receive the first message sent by the Bluetooth earphone, and switch the audio channel of the first electronic device from the Bluetooth earphone to the first preset channel according to the first message.

[0066] In a possible implementation, the first electronic device is further configured to: receive the first message sent by the Bluetooth earphone, and determine a service type of a first call service currently processed, and perform a third action according to the service type of the first call service;

[0067] wherein the first call audio stream is an 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 a first preset channel, outputting the first call audio stream through a 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, the prompt information being used to prompt whether to switch the audio channel from the Bluetooth earphone to the first preset channel.

[0068] In a possible implementation, the Bluetooth earphone is further configured to: if the first call audio stream sent by the second electronic device is not received within a preset time length, perform a fourth action; the fourth action is any one of the following: in a case where the first Bluetooth connection between the Bluetooth earphone and the first electronic device is disconnected, reestablishing the first Bluetooth connection and sending a second message to the first electronic device; in a case where the first Bluetooth connection is not disconnected, sending the second message to the first electronic device, the second message being used to indicate that the Bluetooth earphone is not occupied.

[0069] The first electronic device is further configured to: receive the second message sent by the Bluetooth earphone; and switch an audio channel of the first electronic device from the first preset channel to the Bluetooth earphone according to the second message; or, in response to a confirmation operation of a user on the second message, switch the audio channel of the first electronic device to the Bluetooth earphone, the confirmation operation being used to trigger the switching of the audio channel of the first electronic device to the Bluetooth earphone.

[0070] In a possible implementation, the first electronic device is further configured to: when initiating the first call service, display a first audio switching interface, the first audio switching interface including at least two audio channel options and channel usage state information, the at least two audio channel options including an option of the Bluetooth earphone.

[0071] The second electronic device is further configured to: when initiating the second call service, display a second audio switching interface, the second audio switching interface including at least two audio channel options and channel usage state information, the at least two audio channel options including an option of the Bluetooth earphone, and the channel usage state information indicating that the Bluetooth earphone is being used.

[0072] In a possible implementation, the first electronic device is further configured 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 earphone, the first operation being used to trigger the first call audio stream to be output through the Bluetooth earphone.

[0073] The Bluetooth earphone is further configured 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 configured to: receive the first message sent by the Bluetooth earphone, and switch an audio channel of the second electronic device from the Bluetooth earphone to a second preset channel according to the first message.

[0075] In a possible implementation, 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 earphone is further configured to: identify whether a wearer of the Bluetooth earphone is an owner of the Bluetooth earphone, and send an identification result to the first electronic device and / or the second electronic device.

[0077] The first electronic device and / or the second electronic device are further configured to: when the wearer of the Bluetooth earphone is the owner, send a call audio stream to the Bluetooth earphone when a call service is performed; and when the wearer of the Bluetooth earphone is not the owner, not send the call audio stream to the Bluetooth earphone when the call service is performed.

[0078] In a possible implementation, the Bluetooth earphone is further configured to:

[0079] identify whether a wearer of the Bluetooth earphone is an owner of the Bluetooth earphone;

[0080] when the wearer of the Bluetooth earphone is the owner, output a call audio stream after the call audio stream is received;

[0081] when the wearer of the Bluetooth earphone is not the owner, not output a call audio stream after the call audio stream is received.

[0082] By the foregoing scheme, when a non-owner uses the Bluetooth earphone and the first electronic device, and the owner uses the second electronic device, when the second electronic device has a call service (including an incoming call or an outgoing call), the Bluetooth earphone is not currently worn by the owner, and therefore the second electronic device does not use the Bluetooth earphone for the call. This scheme can avoid, to some extent, the call privacy of the owner being leaked, and can improve the user experience when the non-owner uses the Bluetooth earphone.

[0083] In a possible implementation, the Bluetooth earphone identifying whether a wearer of the Bluetooth earphone is an owner of the Bluetooth earphone includes: the Bluetooth earphone identifying whether a wearer of the Bluetooth earphone is an owner of the Bluetooth earphone according to an ear canal recognition, a bone voiceprint recognition, or a voice recognition manner.

[0084] For different service concurrent scenarios, the embodiments of the present application can adopt different preemption strategies: for the service concurrent scenario in which two devices both initiate media services, the preemption strategy of using the earphone first and processing the service on the local side second is adopted; for the service concurrent scenario in which two devices initiate media services and call services respectively, the preemption strategy of using the earphone by the service with a higher priority first is adopted; for the service concurrent scenario in which two devices both initiate call services, the preemption strategy of using the earphone by the second incoming call first and keeping the first incoming call on the local side is adopted, and the earphone preemption strategy of the user manual operation has the highest priority in each scenario. The scheme of the present application can avoid the problem of information loss caused by service conflict when multiple electronic devices connected with the Bluetooth device all initiate audio services. BRIEF DESCRIPTION OF DRAWINGS

[0085] Figure 1 is a system architecture schematic diagram provided by the embodiments of the present application.

[0086] Figure 2 is a structure schematic diagram of a wireless device provided by the embodiments of the present application.

[0087] Figure 3 is an interaction schematic diagram between a Bluetooth earphone and two electronic devices in an audio control system to which an audio control method provided by the embodiments of the present application is applied.

[0088] Figure 4 is one of flow schematic diagrams of an audio control method provided by the embodiments of the present application.

[0089] Figure 5A is an interaction schematic diagram between a Bluetooth earphone and two electronic devices in an audio control system to which an audio control method provided by the embodiments of the present application is applied.

[0090] Figure 5B is an interaction schematic diagram between a Bluetooth earphone and two electronic devices in an audio control system to which another audio control method provided by the embodiments of the present application is applied.

[0091] Figure 5C is an interaction schematic diagram between a Bluetooth earphone and two electronic devices in an audio control system to which still another audio control method provided by the embodiments of the present application is applied.

[0092] Figure 5D is an interaction schematic diagram between a Bluetooth earphone and two electronic devices in an audio control system to which still another audio control method provided by the embodiments of the present application is applied.

[0093] Figure 5E is an interaction schematic diagram between a Bluetooth earphone and two electronic devices in an audio control system to which still another audio control method provided by the embodiments of the present application is applied.

[0094] Figure 6 Figure 2 is a flowchart of another embodiment of the audio control method.

[0095] Figure 7A Figure 3 is an interaction diagram between the Bluetooth earphone and the two electronic devices in the audio control system to which the audio control method is applied.

[0096] Figure 7B Figure 4 is an interaction diagram between the Bluetooth earphone and the two electronic devices in the audio control system to which the audio control method is applied.

[0097] Figure 7C Figure 5 is an interaction diagram between the Bluetooth earphone and the two electronic devices in the audio control system to which the audio control method is applied.

[0098] Figure 7D Figure 6 is an interaction diagram between the Bluetooth earphone and the two electronic devices in the audio control system to which the audio control method is applied.

[0099] Figure 8 Figure 7 is a flowchart of another embodiment of the audio control method.

[0100] Figure 9A Figure 8 is an interaction diagram between the Bluetooth earphone and the two electronic devices in the audio control system to which the audio control method is applied.

[0101] Figure 9B Figure 9 is an interaction diagram between the Bluetooth earphone and the two electronic devices in the audio control system to which the audio control method is applied.

[0102] Figure 9C Figure 10 is an interaction diagram between the Bluetooth earphone and the two electronic devices in the audio control system to which the audio control method is applied.

[0103] Figure 9D Figure 11 is an interaction diagram between the Bluetooth earphone and the two electronic devices in the audio control system to which the audio control method is applied.

[0104] Figure 10 Figure 12 is a flowchart of another embodiment of the audio control method.

[0105] Figure 11A Figure 13 is an interaction diagram between the Bluetooth earphone and the two electronic devices in the audio control system to which the audio control method is applied.

[0106] Figure 11B is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which another audio control method provided by the embodiments of the present application is applied.

[0107] Figure 11C is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which another audio control method provided by the embodiments of the present application is applied.

[0108] Figure 11D is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which another audio control method provided by the embodiments of the present application is applied.

[0109] Figure 11E is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which another audio control method provided by the embodiments of the present application is applied.

[0110] Figure 12 is a fifth schematic diagram of a flow of an audio control method provided by the embodiments of the present application.

[0111] Figure 13A is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which another audio control method provided by the embodiments of the present application is applied.

[0112] Figure 13B is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which another audio control method provided by the embodiments of the present application is applied.

[0113] Figure 13C is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which another audio control method provided by the embodiments of the present application is applied.

[0114] Figure 13D is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which another audio control method provided by the embodiments of the present application is applied.

[0115] Figure 14 is a sixth schematic diagram of a flow of an audio control method provided by the embodiments of the present application.

[0116] Figure 15A is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which another audio control method provided by the embodiments of the present application is applied.

[0117] Figure 15B is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which another audio control method provided by the embodiments of the present application is applied.

[0118] Figure 15C is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which a yet another audio control method provided by embodiments of the present application is applied.

[0119] Figure 15D is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which a still another audio control method provided by embodiments of the present application is applied.

[0120] Figure 16 is a seventh schematic diagram of a flow of an audio control method provided by embodiments of the present application.

[0121] Figure 17A is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which an audio control method provided by embodiments of the present application is applied.

[0122] Figure 17B is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which another audio control method provided by embodiments of the present application is applied.

[0123] Figure 17C is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which a yet another audio control method provided by embodiments of the present application is applied.

[0124] Figure 17D is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which a still another audio control method provided by embodiments of the present application is applied.

[0125] Figure 18 is an eighth schematic diagram of a flow of an audio control method provided by embodiments of the present application.

[0126] Figure 19A is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which an audio control method provided by embodiments of the present application is applied.

[0127] Figure 19B is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which another audio control method provided by embodiments of the present application is applied.

[0128] Figure 19C is a schematic diagram of interaction between a Bluetooth earphone and two electronic devices in an audio control system to which a yet another audio control method provided by embodiments of the present application is applied.

[0129] Figure 20 is a ninth schematic diagram of a flow of an audio control method provided by embodiments of the present application.

[0130] Figure 21 This is the tenth flowchart of an audio control method provided in the embodiments of this application.

[0131] Figure 22 This is a schematic diagram illustrating an application scenario of a Bluetooth headset provided in one embodiment of this application.

[0132] Figure 23 This is a schematic diagram illustrating the setup process of a Bluetooth headset provided in one embodiment of this application.

[0133] Figure 24 This is a schematic diagram of the setup process of a Bluetooth headset provided in another embodiment of this application.

[0134] Figure 25 This is a flowchart of a call method provided in one embodiment of this application.

[0135] Figure 26 This is a flowchart of a call method provided in another embodiment of this application.

[0136] Figure 27 This is a schematic diagram illustrating an application scenario of a Bluetooth headset provided in another embodiment of this application.

[0137] Figure 28 This is a flowchart of a call method provided in another embodiment of this application.

[0138] Figure 29 This is a flowchart of a call method provided in another embodiment of this application.

[0139] Figure 30 This is a schematic diagram of the structure of an audio control system provided in an embodiment of this application.

[0140] Figure 31 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0141] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0142] In the description of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" herein is only a description of the relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which can mean: A exists alone, A and B exist together, and B exists alone. And in the description of the present application, unless otherwise specified, "multiple" means two or more than two. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, "first" and "second" and the like in the embodiments of the present application are used to distinguish different objects or to distinguish different processing of the same object, rather than to describe the specific order of the object.

[0143] In the description of the present application, the reference "one embodiment" or "some embodiments" means that the specific features, structures or characteristics described in connection with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in other some embodiments" and the like appearing in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "include", "contain", "have" and their variants mean "include but not limited to", unless otherwise specifically emphasized.

[0144] First, the following explains some nouns or terms involved in the claims and the specification of the present application.

[0145] The Bluetooth baseband technology supports two connection types: asynchronous connectionless (ACL) type and synchronous connection oriented link (SCO) type, which are referred to as ACL connection and SCO connection respectively.

[0146] (1) ACL connection: also referred to as ACL link, which can send data packets in a directed manner, supporting both symmetric connection and asymmetric connection (both one-to-one and one-to-many).

[0147] (2) SCO connection: also referred to as SCO link, which is a symmetric connection and uses reserved time slots to transmit data packets. SCO data packets can transmit voice or data. SCO data packets are mainly used to transmit communication data with high time requirements. In addition, extended SCO (eSCO) link can also be used to transmit communication data with high time requirements.

[0148] Among them, the ACL link is mainly used for packet data transmission (such as media service), and the SCO link or eSCO link is mainly used for synchronous voice transmission (such as call service). It should be noted that the scheme provided in the embodiments of the present application does not limit the SCO link or the eSCO link, and in order to facilitate the description, the SCO link is taken as an example to exemplarily describe the scheme hereinafter.

[0149] In order to realize the interconnection and interworking of different devices under different platforms, in the aspect of the Bluetooth audio transmission protocol, corresponding specifications are formulated for various possible application scenarios with general significance, such as the advanced audio distribution profile (A2DP) and the hands-free profile (HFP).

[0150] (3) A2DP specification: supporting transmission of stereo audio stream. The A2DP specification is a high-quality audio protocol running on the ACL link. The A2DP specification defines the protocol and process of 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 referred to as an A2DP service specification connection, simply referred to as an A2DP connection.

[0151] For example, if the Bluetooth earphone and the electronic device activate the A2DP specification, that is, the Bluetooth earphone and the electronic device establish an A2DP connection, the electronic device can transmit high-quality audio information to the Bluetooth earphone through the ACL link based on the A2DP specification.

[0152] (4) HFP specification: representing the hands-free function, mainly defining the implementation of some functions related to making and receiving calls. The connection between devices based on the HFP specification can be referred to as an HFP service specification connection, simply referred to as an HFP connection.

[0153] For example, if the Bluetooth earphone and the electronic device activate the HFP specification, that is, the Bluetooth earphone and the electronic device establish an HFP connection, the electronic device can transmit call audio information to the Bluetooth earphone through the SCO link based on the HFP specification, and the Bluetooth earphone can control the phone function of the electronic device, such as answering, hanging up, rejecting, voice dialing, etc.

[0154] It should be noted that the ACL connection and the SCO connection are respectively the connection on the physical layer of the Bluetooth audio output protocol, and the A2DP connection and the HFP connection are respectively the connection on the application layer of the Bluetooth audio output protocol.

[0155] Currently, some Bluetooth earphones can support simultaneous connection with two electronic devices, wherein the two electronic devices can be connected or not. In the case that the Bluetooth earphone is connected with two electronic devices, how to handle the traffic arbitration and preemption between the two electronic devices needs to be considered. Especially for the case that the Bluetooth earphone is connected with two electronic devices and the two electronic devices are not connected, the Bluetooth earphone is completely needed to arbitrate. And when the two electronic devices both initiate audio traffic (i.e., traffic concurrency), traffic conflicts can occur on the Bluetooth earphone side, resulting in the case that the audio stream cannot be normally output. The following takes two electronic devices as mobile phone 1 and mobile phone 2 as examples to introduce the technical solutions adopted in related technologies.

[0156] In one existing solution, when the Bluetooth earphone is connected with two mobile phones, the Bluetooth earphone only establishes one type of traffic specification connection (such as A2DP connection or HFP connection) with one mobile phone, for example, the Bluetooth earphone establishes A2DP connection with mobile phone 1 and establishes HFP connection with mobile phone 2. The two mobile phones distinguish different traffic, that is, under this solution, each mobile phone can only perform one type of traffic, for example, if mobile phone 1 establishes A2DP connection with the Bluetooth earphone, the audio traffic such as music and prompt tone on mobile phone 2 cannot be sounded on the Bluetooth earphone; or in the case that the Bluetooth earphone establishes HFP connection with mobile phone 2, the phone on mobile phone 1 cannot be sounded on the Bluetooth earphone.

[0157] The above solution has the following problems: (1) If the two mobile phones need to switch traffic, the user needs to manually switch A2DP connection or HFP connection in the Bluetooth settings of the electronic device. (2) When one mobile phone maintains HFP connection and A2DP connection with the Bluetooth earphone, the other mobile phone cannot actively connect the Bluetooth earphone.

[0158] In another existing solution, when the Bluetooth earphone is in media audio traffic with mobile phone 1, if mobile phone 2 initiates media audio traffic, the Bluetooth earphone will first accept and immediately initiate the suspension of the media audio traffic of mobile phone 2. If the media audio traffic (such as game traffic or video traffic) does not support suspension, the media audio stream of mobile phone 2 will be discarded by the Bluetooth earphone, i.e., the audio stream cannot be normally output.

[0159] When the Bluetooth earphone is in media audio traffic with mobile phone 1, if mobile phone 2 comes to voice traffic, the media audio traffic of mobile phone 1 is suspended, and if the media audio traffic does not support suspension, the media audio stream of mobile phone 1 will be discarded on the earphone, i.e., the audio stream cannot be normally output; after mobile phone 2 refuses or finishes answering, the Bluetooth earphone resumes the media audio traffic with mobile phone 1.

[0160] When the Bluetooth headset is in a voice call service with the mobile phone 1, the mobile phone 2 initiates a voice call service. If the voice call of the mobile phone 2 is received on the Bluetooth headset, the voice call of the mobile phone 1 is hung up. If the voice call is received on the mobile phone 2, the voice call of the mobile phone 2 continues to be transmitted to the Bluetooth headset, but cannot be heard, and only the voice call of the mobile phone 1 can be heard on the Bluetooth headset.

[0161] The above scheme has the following problems: If the audio service is a video service, for most applications, the headset cannot initiate a pause, and the Bluetooth headset will continue to hear the voice of the two mobile phones, affecting stability. At the same time, the voice of the mobile phone cannot be heard, and only by disconnecting the Bluetooth connection can the voice be heard from the mobile phone.

[0162] As described above, if the mobile phone 2 initiates a voice call service while the mobile phone 1 is in a voice call service with the Bluetooth headset, the voice of the mobile phone 2 cannot be heard from the mobile phone, and the phone of the mobile phone 2 cannot be answered. The phone of the mobile phone 2 cannot be answered, and the phone of the mobile phone 2 cannot be answered.

[0163] Figure 1 A schematic diagram of the architecture of a communication system related to various exemplary embodiments of the present application is shown. As shown in Figure 1 , the communication system 100 can include a wireless device 10 and at least two electronic devices (e.g., 1, 2, 3, 4). The wireless device 10 can simultaneously maintain wireless connections with at least two electronic devices through wireless communication technology. For example, the wireless communication technology can be Bluetooth (BT), which can be traditional Bluetooth or low-power BLE Bluetooth, or general 2.4G / 5G band wireless communication technology, etc.

[0164] The wireless device 10 can be a Bluetooth headset as shown in Figure 1 , of course, it can also be a wireless sound box, a wireless bracelet, a wireless car, a 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 (e.g., MP3, MP4, etc.), a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a personal digital assistant (PDA), a television or a smart watch, etc. The device type of the wireless device 10 and the at least two electronic devices is not limited in the embodiments of the present application.

[0165] Embodiments of the present application take a wireless device as an example to illustrate a Bluetooth earphone. The Bluetooth earphone can have various types, for example, it can be an earplug type, an in-ear type, a head-mounted type, an ear muff type, or a hanging ear type Bluetooth earphone, etc. The Bluetooth earphone can include a first part and a second part respectively worn on the left ear and the right ear of a user, and can be connected through a connecting line, for example, a neckband type Bluetooth earphone; or can be two independent parts, for example, a true wireless stereo (TWS) earphone.

[0166] Exemplarily, Figure 2 A structural schematic diagram of a Bluetooth earphone 10 is shown. The Bluetooth earphone 10 can 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, etc. The processor can include one or more interfaces for connecting with other components of the Bluetooth earphone 10. The Bluetooth earphone 10 is stored in an earphone box. The following will be described in combination with Figure 2 The components of the Bluetooth earphone 10 will be specifically introduced.

[0167] The memory 102 can be used to store program codes, such as program codes for physical connection between the Bluetooth earphone 10 and multiple electronic devices, service specification connection with the electronic devices, processing of audio services (such as music playing, call receiving / making, etc.) of the electronic devices, charging of the Bluetooth earphone 10, and wireless pairing connection between the Bluetooth earphone 10 and other electronic devices, etc. The memory 102 can also be used to store other information, such as priority of the electronic devices.

[0168] The processor 101 can be used to execute the above-mentioned application program codes, and call related modules to realize the functions of the Bluetooth earphone 10 in the embodiments of the present application. For example, to realize the functions of physical connection between the Bluetooth earphone 10 and multiple electronic devices, service specification connection, audio playing, call receiving / making, switching of service specification connection between different electronic devices according to device priority, etc. For another example, to support service preemption function. Exemplarily, in the case that the Bluetooth earphone establishes a service specification connection with an electronic device 1 and is processing an audio service 1 (such as playing music) of the electronic device 1, if the Bluetooth earphone receives connection request information of an electronic device 2, the Bluetooth earphone can process an audio service 2 (such as call receiving / making) of the electronic device 2 based on the service specification connection with the electronic device 2, to realize the service preemption function of the audio service 2 of the electronic device 2.

[0169] The processor 101 can include one or more processing units, which can be independent devices or integrated in one or more processors 101. The processor 101 can be an integrated control chip, or can be composed of a circuit including various active and / or passive components, and the circuit is configured to perform the functions 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 the headset case through wireless communication technologies such as BT, WLAN (such as Wi-Fi), Zigbee, FM, NFC, IR, or general 2.4G / 5G wireless communication technology, etc.

[0171] In some embodiments, the wireless communication module 103 can be a Bluetooth chip. The Bluetooth headset 10 can pair with and establish a wireless connection with the Bluetooth chip of other electronic devices through the Bluetooth chip, so as to realize wireless communication and service processing between the Bluetooth headset 10 and other electronic devices through the wireless connection. Generally, the Bluetooth chip can support basic rate (BR) / enhanced data rate (EDR) Bluetooth and BLE, such as receiving / transmitting paging information, receiving / transmitting BLE broadcast messages, etc.

[0172] In addition, the wireless communication module 103 can also include an antenna, and the wireless communication module 103 receives electromagnetic waves via the antenna, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 101. The wireless communication module 103 can also receive signals to be sent from the processor 101, frequency modulate them, amplify them, and convert them into electromagnetic wave radiation via the antenna.

[0173] The audio module 104 can be used to manage audio data and realize input and output of audio streams of the Bluetooth headset 10. For example, the audio module 104 can obtain audio streams from the wireless communication module 103, or deliver audio streams to the wireless communication module 103, to realize functions such as making and receiving calls, playing music, starting / closing a voice assistant of an electronic device connected with the headset, receiving / sending voice data of a user, etc. The audio module 104 can include a speaker (or earpiece, receiver) component for outputting audio streams, a microphone (or microphone, microphone), a microphone sound receiving circuit cooperating with the microphone, etc. The speaker can be used to convert audio electrical signals into sound signals and play them. The microphone can be used to convert sound signals into audio electrical signals.

[0174] The power module 105 can be used to provide system power to the Bluetooth headset 10, powering each module of the Bluetooth headset 10; and supporting the Bluetooth headset 10 to receive charging input, etc. The power module 105 may include a power management unit (PMU) and a battery. The PMU can receive external charging input; transform the electrical signal input from the charging circuit and provide it to the battery for charging; it 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 overcharging, over-discharging, short-circuiting, or experiencing overcurrent. In some embodiments, the power module 105 may also include a wireless charging coil for wirelessly charging the Bluetooth headset 10. Additionally, the power management unit can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance).

[0175] Multiple input / output interfaces 106 can be used to provide a wired connection for charging or communication between the Bluetooth headset 10 and the earphone case. In some embodiments, the input / output interface can be a USB interface. In other embodiments, the input / output interface 106 can be a headphone electrical connector, which allows the Bluetooth headset 10 to establish an electrical connection with the electrical connector in the earphone case when the Bluetooth headset 10 is placed in the earphone case, 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 earphone case, for example, it can receive pairing commands from the earphone case.

[0176] Additionally, the Bluetooth headset 10 may also include a sensor 107. For example, the sensor 107 may be a distance sensor or a proximity light sensor, which can be used to determine whether the Bluetooth headset 10 is being worn by a user. Exemplarily, the Bluetooth headset 10 may use the distance sensor to detect whether there is an object nearby, thereby determining whether the Bluetooth headset 10 is being worn by a user. Upon determining that the Bluetooth headset 10 is being worn, the Bluetooth headset 10 may turn on its speaker.

[0177] For example, the sensor 107 may also include a bone conduction sensor, integrated into a bone conduction headset. Using this bone conduction sensor, the Bluetooth headset 10 can acquire vibration signals from the vibrating bone fragments of the human vocal cords, analyze the voice signals, and realize voice functionality, thereby receiving user voice commands. The Bluetooth headset 10 can also perform voice authentication based on the user's voice signals acquired by the bone conduction headset, for example, to authenticate the user's identity in business scenarios such as payment transactions.

[0178] For another example, the sensor 107 can further include a touch sensor for detecting a touch operation of a user, a fingerprint sensor for detecting a user's fingerprint to identify the user's identity, an ambient light sensor for adaptively adjusting some parameters (e.g., volume) according to the brightness of the sensed ambient light, and other possible sensors.

[0179] In some embodiments, the touch sensor can detect a single click, double click, multi-click, long press, heavy press, and other touch operations of a user, and can also perform user fingerprint identification to authenticate the user's identity in a business scenario such as a payment transaction.

[0180] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the Bluetooth earphone 10. It can have more or fewer components than those shown, two or more components can be combined, or it can have a different component configuration. For example, the outer surface of the Bluetooth earphone 10 can further include a button 108, an indicator light (which can indicate the status of the power, incoming / outgoing calls, pairing mode, etc.), a display screen (which can prompt the user with relevant information), a dust screen (which can be used in conjunction with the earpiece), and other components. The button 108 can be a physical button or a touch button (used in conjunction with the touch sensor), and can be used to trigger operations such as turning on / off, pausing, playing, recording, starting pairing, and resetting. Figure 2

[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. For example, when the Bluetooth earphone is a TWS earphone, the Bluetooth earphone 10 can include an earphone body 01 (also referred to as a left earbud or a first part) worn on the left ear and an earphone body 02 (also referred to as a right earbud or a second part) worn on the right ear. The earphone body can include a housing and internal components. The internal components are disposed in a cavity formed by the housing. The internal components can include devices in the above-mentioned audio module, power module, and wireless communication module.

[0182] When the Bluetooth earphone is a TWS earphone, the user can use the TWS earphone in a dual-ear mode or a single-ear mode. In the single-ear mode, the user wears the left earbud or the right earbud to listen to music or perform audio services such as making / receiving a call. In the dual-ear mode, the user can wear both earbuds to enjoy music or perform other audio services. In the dual-ear mode, the two earbuds have a primary earbud and a secondary earbud. Moreover, the primary and secondary roles of the two earbuds can be switched based on different conditions during use of the TWS earphone, for example, the earbud with a higher power level can be switched to the primary earbud, and the earbud with a lower power level can be switched to the secondary earbud.

[0183] ​In some embodiments, Bluetooth earphones are typically housed within an earphone case. The earphone case may contain one or more magnets to attract the earphones into a cavity within the case. The earphone case may include a battery and multiple input / output ports. In some embodiments, the input / output ports may be in-car electrical connectors. Once a pair of in-car electrical connectors in the earphone case establishes an electrical connection with two earphone electrical connectors in the earphones, the earphone case can charge the battery in the earphones using its own battery.

[0184] In other embodiments, the earphone case may be equipped with at least one touch control, which can be used to trigger functions such as pairing reset of the Bluetooth earphones or charging the Bluetooth earphones. The earphone case may also be equipped with one or more power indicator lights to indicate to the user the battery level in the earphone case and the battery level in each earphone.

[0185] In other embodiments, the earphone case may also include components such as a processor and a memory. The memory can be used to store application code, which is controlled by the processor of the earphone case to execute and implement various functions of the earphone case. For example, the processor of the earphone case executes the application code stored in the memory to charge the Bluetooth earphone after detecting that it has been placed in the earphone case and that the lid of the earphone case has been closed.

[0186] In addition, the earphone case may also have a charging port for charging its own battery. The case may also include a wireless charging coil for wirelessly charging its own battery. It is understood that the earphone case may also include other components, which will not be detailed here.

[0187] Understandable. Figure 2 The components shown do not constitute a specific limitation on the Bluetooth headset 10. The Bluetooth headset 10 may also include more or fewer components than shown, or combine some components, or separate some components, or have different component arrangements.

[0188] It should be noted that the electronic device in this application embodiment can be a mobile terminal or a non-mobile terminal. For example, a mobile terminal can be a mobile phone, tablet computer, laptop computer, handheld computer, vehicle terminal, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc., while a non-mobile terminal can be a personal computer (PC), television (TV), ATM, or self-service machine, etc., and this application embodiment does not make specific limitations.

[0189] Based on the above application scenarios, system architecture and hardware configuration, the embodiment of the present application provides an audio control system and an audio control method. The audio control system comprises a Bluetooth earphone, 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 earphone establishes a first Bluetooth connection with the first electronic device and 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 by the embodiment of the present application can be the Bluetooth earphone, or a functional module and / or functional entity in the Bluetooth earphone capable of implementing the method. The specific execution subject can be determined according to actual use requirements, which is not limited in the embodiment of the present application. The audio control method provided by the embodiment of the present application will be exemplarily described below with the execution subject being the Bluetooth earphone.

[0191] The audio control method provided by the embodiment of the present application will be exemplarily described below with reference to the accompanying drawings.

[0192] In the embodiment of the present application, the audio service can include multiple types. For example, the audio service can include media service and call service (also referred to as voice call service or voice service), etc. The media service can include playing music, recording, sound in a video file, background music in a game, incoming call prompt sound, information prompt sound, voice message, navigation voice broadcast, intelligent broadcast, alarm, key sound, etc. Of course, the media service can also include other arbitrary possible services. The call service can include playing voice data of a peer for a user, or collecting voice data of the user and sending the voice data to the peer, etc. in scenarios such as telephone call (including incoming call and outgoing call), video call, audio call, voice message, game or voice assistant. It should be noted that the audio stream corresponding to the media service is referred to as media audio stream, and the audio stream corresponding to the call service is referred to as call audio stream.

[0193] When the electronic device 1 initiates an audio service, if an audio service connection (for example, an A2DP connection) is established between the electronic device 1 and the wireless device, the wireless device can automatically process the audio service of the electronic device 1 based on the audio service connection. If the wireless device currently also establishes an audio service connection with the electronic device 2, the wireless device can disconnect the audio service connection between the wireless device and the electronic device 2, and process the audio service of the electronic device 1 based on the audio service connection between the wireless device and the electronic device 1. Thus, the wireless device can automatically switch to process the audio services of multiple (which can be greater than 2) electronic devices, and the multiple electronic devices can share one wireless device.

[0194] In the embodiments of the present application, multiple electronic devices can share one Bluetooth headset. It is assumed that the Bluetooth headset and the electronic device 1 and the electronic device 2 both activate the Bluetooth transmission protocol specification A2DP and HFP, wherein A2DP is a transmission specification supporting audio service, and HFP is a hands-free specification supporting call service. That is, the Bluetooth headset maintains A2DP connection and HFP connection (double connection) with the two electronic devices. In the embodiments of the present application, multiple electronic devices can be the same account based on security considerations, or can be different accounts, which can be a cloud account, a mobile phone number, etc. That is, multiple electronic devices are trusted devices connected to the Bluetooth headset.

[0195] In the case where the Bluetooth headset maintains double connection with the two electronic devices, when the electronic device 1 initiates a media service and the electronic device 2 does not initiate an audio service, the electronic device 1 can transmit a media audio stream to the Bluetooth headset based on the A2DP connection between the Bluetooth headset and the electronic device 1, and output the media audio stream by the Bluetooth headset; when the electronic device 1 initiates a call service and the electronic device 2 does not initiate an audio service, the electronic device 1 can transmit a call audio stream to the Bluetooth headset based on the HFP connection between the Bluetooth headset and the electronic device 1, and output the call audio stream by the Bluetooth headset, thereby realizing hands-free call through the Bluetooth headset.

[0196] Alternatively, in the case where the Bluetooth headset maintains double connection with the two electronic devices, when the electronic device 2 initiates a media service and the electronic device 1 does not initiate an audio service, the electronic device 2 can transmit an audio stream to the Bluetooth headset based on the A2DP connection between the Bluetooth headset and the electronic device 2, and output the media audio stream by the Bluetooth headset; when the electronic device 2 initiates a call service and the electronic device 1 does not initiate an audio service, the electronic device 2 can transmit a call audio stream to the Bluetooth headset based on the HFP connection between the Bluetooth headset and the electronic device 2, and output the call audio stream by the Bluetooth headset, thereby realizing hands-free call through the Bluetooth headset.

[0197] However, for the scenario where the electronic device 1 and the electronic device 2 both initiate an audio service, the Bluetooth headset will be occupied by the two electronic devices at this time, and the problem of audio stream not being normally output due to audio service concurrency will occur.

[0198] In view of this, the embodiments of the present application provide an audio control method. In the case where the Bluetooth headset maintains double connection with multiple electronic devices, the audio control method provided by the embodiments of the present application can make the Bluetooth headset automatically switch to process the audio service of multiple electronic devices, thereby avoiding the problem of audio stream not being normally output due to audio service concurrency.

[0199] The specific implementation manner in which the Bluetooth headset switches to process the audio service of two electronic devices in the case where the Bluetooth headset is connected to the two electronic devices will be described in detail below.

[0200] Firstly, the interface diagram for audio switching when the electronic device is connected with the Bluetooth earphone is described. Figure 3 The interface diagram for the Bluetooth setting of the electronic device is shown in (a) of FIG. 1. Figure 3 As shown in (a) of FIG. 1, the Bluetooth function of the electronic device is turned on, and the electronic device is connected with the Bluetooth earphone in pairing mode, for example, the electronic device establishes A2DP connection and HFP connection with the Bluetooth earphone; for example, the electronic device is also connected with the sound box in pairing mode, for example, the electronic device establishes A2DP connection with the sound box. Figure 3 The interface diagram for the notification bar of the electronic device is shown in (b) of FIG. 1. Figure 3 As shown in (b) of FIG. 1, the "audio switching" control 203 can be displayed in the notification bar interface 202, and if the operation of the "audio switching" control 203 is received, the electronic device can display the audio switching interface 204 as shown in (c) of FIG. 1. Figure 3 The audio switching interface 204 can include the name of the device that establishes A2DP connection with the electronic device, and the name of the device that establishes A2DP connection and HFP connection with the electronic device, for example, the audio switching interface 204 can include the "local" item, the "Bluetooth earphone" item and the "sound box" item, and the electronic device can receive the operation of the above-mentioned items to switch between different audio output modes. Figure 3 Optionally, the sound output channel of the audio sound of the electronic device can be pre-set each time the audio service is initiated. For example, when the electronic device establishes Bluetooth connection with the Bluetooth earphone, the Bluetooth earphone is set as the sound output channel of the audio sound of the electronic device by default each time the audio service is initiated. Of course, the user can select the sound output channel of the audio sound of the electronic device according to the actual use demand in the options of the audio switching interface. For example, it is assumed that the electronic device 1 currently plays audio sound through the local device, and the electronic device 1 can switch from the local channel to the Bluetooth earphone channel to output audio sound through the Bluetooth earphone channel in response to the operation of the "Bluetooth earphone" item. For another example, the electronic device 2 currently plays audio sound through the Bluetooth earphone, and if the user needs to switch the audio sound to the local sound output channel, the user can select the "local" item, and the electronic device 2 can output audio sound through the sound output channel (for example, the loudspeaker or the earpiece) of the local device in response to the operation of the user. It should be noted that the options for audio switching are exemplarily described herein, and it can be understood that the embodiments of the present application are not limited thereto, for example, the "local" item can be replaced by the "loudspeaker" item and the "earpiece" item, and the specific selection can be determined according to the actual use demand, and the embodiments of the present application are not limited thereto.

[0201]

[0202] ​It should be noted that, in order to facilitate the description, the electronic device 1 and the electronic device 2 are both set to play audio sound through the Bluetooth headset when initiating the audio service, and the application embodiment is described as how to handle the concurrent situation of multiple electronic device audio services.

[0203] In the application embodiment, it is assumed that the Bluetooth headset maintains a dual connection with the electronic device 1 and the electronic device 2, and both of the electronic devices are set to play audio sound through the Bluetooth headset when initiating the audio service, as shown in the audio switching interface of the electronic device 1 and the electronic device 2, the Bluetooth headset is selected as the sound output device, and the Bluetooth headset follows different preemption strategies in different situations: Figure 3

[0204] (1) First initiation first use

[0205] If the Bluetooth headset is currently not processing an audio service, that is, the Bluetooth headset is in an idle state, the Bluetooth headset can support output of the audio stream transmitted by any of the two electronic devices, at this time, the Bluetooth headset can follow the preemption strategy of first initiation first use. It should be noted that when the Bluetooth headset is in an idle state, the Bluetooth headset still maintains a connection with the electronic device, at this time, there is no actual audio data transmission between the Bluetooth headset and the electronic device.

[0206] For example, when the Bluetooth headset is in an idle state, if the electronic device 1 initiates a media service first (for example, receiving a user operation of playing a song or playing a video on the electronic device 1), the electronic device 1 plays media sound through the Bluetooth headset, and correspondingly, the user can listen to the media sound through the Bluetooth headset.

[0207] For another example, when the Bluetooth headset is in an idle state, if the electronic device 2 initiates a call service first (for example, a telephone call incoming or outgoing), the electronic device 2 plays call voice through the Bluetooth headset, and correspondingly, the user wearing the Bluetooth headset can answer the call voice through the Bluetooth headset, thereby realizing hands-free call.

[0208] (2) High-priority service first

[0209] If the Bluetooth headset is currently processing an audio service initiated by an electronic device, that is, the Bluetooth headset is in a working state, at this time, another electronic device also initiates an audio service, then it can be determined which of the two electronic devices occupies or uses the Bluetooth headset according to the priority of the audio service.

[0210] ​Optionally, the earphone preemption strategy can be determined according to the processing priorities of the media service and the call service, for example, the service with high priority can preempt the sound output channel of the Bluetooth earphone. The processing priorities of the media service and the call service can be pre-set, for example, pre-set at factory or set by the user. For example, the processing priority of the call service is higher than that of the media service. For the convenience of description, the processing priority of the call service is higher than that of the media service is exemplarily described below.

[0211] For different audio services, the Bluetooth earphone can follow the preemption strategy that the audio service with high priority is given priority. Exemplarily, assuming that the electronic device 1 is playing a song through the Bluetooth earphone (i.e., the media service is initiated first), during this process, if the electronic device 2 receives an incoming call signal (i.e., the call service is initiated later), and the processing priority of the call service is higher than that of the media service, the Bluetooth earphone can automatically switch the processing, i.e., stop processing the media service initiated by the electronic device 1 and switch to processing the call service initiated by the electronic device 2. That is, the electronic device 2 can preempt the Bluetooth earphone and output the call voice through the Bluetooth earphone, and accordingly, the user wearing the Bluetooth earphone can make a hands-free call through the Bluetooth earphone.

[0212] Optionally, when an audio service is initiated, the Bluetooth earphone can be automatically started or the A2DP connection can be automatically established based on the priority of the audio service. For example, when the Bluetooth earphone is processing a low-priority service 1 or the Bluetooth earphone is in an idle state, if a high-priority service 2 is initiated, the Bluetooth earphone 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 establish the A2DP connection to start the Bluetooth earphone to process the service 2.

[0213] Optionally, the audio service set to high priority can include a reminder of an alarm clock, a reminder of a conference, a reminder of a memo, etc., and of course, can also include any other possible service, which can be determined according to actual use requirements, and the embodiments of the present application are not limited in this regard. Exemplarily, assuming that the priority of the alarm clock reminder service is higher than that of the music service, when the electronic device plays music through the Bluetooth earphone, if the electronic device initiates the high-priority alarm clock reminder service, the high-priority alarm clock reminder service can automatically start the Bluetooth earphone and output the prompt sound of the alarm clock reminder through the Bluetooth earphone.

[0214] Optionally, for both electronic devices initiating media service, the Bluetooth headset can follow the preemption strategy of first initiating first using. For example, assuming that electronic device 1 is playing a song through the Bluetooth headset (i.e., first initiating media service), during which, if electronic device 2 also initiates media service (i.e., second initiating media service), both electronic device 2 and electronic device 1 initiate media service, then the second initiating media service electronic device 2 does not preempt the Bluetooth headset, but outputs the media audio stream through the electronic device 2 itself (e.g., speaker or earpiece); of course, the present application does not exclude the implementation mode that the electronic device 2 outputs the media audio stream through other sound output channels other than the Bluetooth headset and the local device. In this way, the problem that the media audio stream of electronic device 2 cannot be normally output due to concurrent service can be avoided.

[0215] Optionally, for both electronic devices initiating call service, the latter call can preempt the Bluetooth headset in priority to the former call. For example, the electronic device of the preempted party can switch the state of the current call service to telephone call hold, or can switch the call voice to a sound output channel other than the Bluetooth headset, or can display a message prompt box, prompting the user that the earpiece sound output channel has been switched to the earpiece, or prompting the user whether to switch the current call voice from the earpiece channel to other sound output channel for user selection.

[0216] Optionally, in the above scheme that both electronic devices initiate audio service to preempt the Bluetooth headset, the Bluetooth headset can mix the audio streams corresponding to the two audio services (i.e., mixing), or can not mix, which can be determined according to actual use requirements, and the present application does not limit it. For example, assuming that the Bluetooth headset currently outputs the media audio stream of electronic device 1, if electronic device 2 has an incoming call, the Bluetooth headset can output both the media audio stream of electronic device 1 and the incoming call prompt sound of electronic device 2; or the Bluetooth headset can only output the media audio stream of electronic device 1, and does not output the incoming call prompt sound of electronic device 2, which can be output on the local side of electronic device 2.

[0217] (3) Manual preemption, user operation priority

[0218] In the preemption strategy of user operation priority, the priority of the audio service can not be distinguished, and the Bluetooth headset preferentially processes the audio service of the electronic device selected by the user.

[0219] For example, assuming that the Bluetooth earphone is processing the audio service initiated by the electronic device 1, if the electronic device 2 receives the operation of the user selecting the Bluetooth earphone as the sound output device, the Bluetooth earphone can follow the preemption strategy of giving priority to the user operation, that is, the Bluetooth earphone preferentially processes 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 local or other audio sound output channel of the electronic device 1.

[0220] For another example, assuming that the Bluetooth earphone is processing the audio service (for example, a media service or a call service) initiated by the electronic device 1, and at this time the electronic device 2 does not initiate the audio service (that is, in a no-service state), in this case, if the user selects the audio to be switched to the Bluetooth earphone on the electronic device 2, the Bluetooth earphone can follow the preemption strategy of giving priority to the user operation, that is, the Bluetooth earphone is preempted 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 local or other audio sound output channel.

[0221] For another example, assuming that the electronic device 1 does not currently initiate the audio service (that is, in a no-service state) and is set to play audio sound through the Bluetooth earphone when the audio service is initiated, and at this time the electronic device 2 also does not initiate the audio service and is set to play audio sound through the local when the audio service is initiated, in this case, if the user selects the audio to be switched to the Bluetooth earphone on the electronic device 2, the Bluetooth earphone can follow the preemption strategy of giving priority to the user operation, that is, the Bluetooth earphone is preempted by the electronic device 2.

[0222] Optionally, in the scenario of service concurrency causing the Bluetooth earphone to be preempted, the electronic device of the preempted party can perform at least one of the following operations: switching the currently played audio sound to other sound output channels, for example, the speaker channel of the local, the earpiece channel, or the sound output channel of the sound box in the Bluetooth connection state, and the switching order can be determined according to the preset priority; prompting that the currently played audio sound has been switched to other sound output channels through a pop-up window, or prompting whether to switch the currently played audio sound to other sound output channels through a pop-up window; stopping or pausing playing the current audio service; muting the currently played audio sound; and reducing the currently played audio sound. It can be understood that the above operations are exemplary enumeration, and the embodiments of the present application include but are not limited to the above enumerated operations, and the specific operations can be determined according to actual use requirements, and the embodiments of the present application are not limited.

[0223] Optionally, in the scenario of service concurrency causing the Bluetooth earphone to be preempted, the electronic device of the preempted party can also perform the following operation: first judging the type of the currently processed audio service, and then determining whether to perform the first processing strategy or the second processing strategy according to the type of the service.

[0224] The first processing strategy: if the electronic device determines that the current 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 prompts the user that the current audio has been switched from the earphone channel to the output of other channels (for example, the local).

[0225] The second processing strategy: if the electronic device determines that the current audio service belongs to the second type of media service, such as music, alarm clock, etc., the electronic device 1 suspends the audio service (suspends playing music), and prompts the user whether to switch the current audio from the earphone channel to the output of other channels (for example, the local).

[0226] It should be noted that the media service in the audio service can include playing music, recording, video, game background music, information prompt sound, voice message, navigation voice broadcast, intelligent broadcast, alarm clock, key sound, etc., and of course can also include other any possible service. It can be understood that the first type of media service and the second type of media service are not limited to the above-mentioned several services, and the specific service type division can be set according to the actual use demand, and the embodiments of the application are not limited.

[0227] In a possible implementation, in the scenario of service concurrency causing the Bluetooth earphone to be preempted, the pre-empted device can display a message prompt box 1 to prompt the user that the Bluetooth earphone is occupied, or prompt the user to switch the current audio sound channel to the preset secondary sound output channel (for example, the local). Optionally, the pre-empted electronic device can hide the message prompt box 1 after a preset time period.

[0228] In another possible implementation, in the scenario of service concurrency causing the Bluetooth earphone to be preempted, the pre-empted electronic device can display a message prompt box 2 to prompt the user whether to switch the current audio sound channel from the Bluetooth earphone channel to the preset secondary sound output channel (for example, the local). The user can operate on the message prompt box 2 to confirm the switching or cancel the switching. Optionally, if no user operation is received within a preset time period, the pre-empted electronic device can hide the message prompt box 2. It should be noted that the above-mentioned message prompt box 2 needs to be operated by the user to trigger the confirmation of switching or the cancellation of switching, and the above-mentioned message prompt box 1 is only used as a prompt and does not need to be operated by the user.

[0229] Optionally, the electronic device initiates the audio service, and detects whether the audio service is a persistent audio service or a non-persistent audio service. For the persistent audio initiated by the preemption device, such as music, video, game, etc., the A2DP connection between the Bluetooth device and the preoccupied device is disconnected; for the non-persistent audio initiated by the preemption device, such as message prompt sound, key sound, etc., the A2DP connection between the Bluetooth device and the preoccupied device is not disconnected. The detection method of the persistent audio service includes that the preemption device actively informs the Bluetooth headset whether the initiated service is a persistent audio, or the Bluetooth headset judges whether the initiated service is a persistent audio service through delay detection. For example, the electronic device 1 is a prompt sound, and the service lasts for a very short time, so it is not necessary to immediately disconnect the A2DP connection between the Bluetooth headset and the 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 judged that the service is a temporary short audio service, so the A2DP connection between the Bluetooth headset and the electronic device 1 can be not disconnected; if it is detected that the initiated service has not ended after the preset time, it can be judged that the service is a persistent audio service, so the A2DP connection between the Bluetooth headset and the electronic device 1 is disconnected.

[0230] In the embodiment of the application, when the electronic device 1 and the electronic device 2 both initiate the audio service, the following possible scenarios may exist: the first scenario:

media service and media service

media service and call service

call service and call service

[0231] The first scenario:

media service and media service

[0232] In the first scenario, it is assumed that the electronic device 1 initiates the media service first, and the electronic device 2 initiates the media service later. Since the service priorities of the media service and the media service are the same, the preemption strategy is to give priority to the preemption of the earphone channel to the first initiated service.

[0233] Figure 4 The flowchart of the Bluetooth headset switching the audio service when the Bluetooth headset is connected with the electronic device 1 and the electronic device 2 is shown. As shown in FIG. 2, the Bluetooth headset is connected with the electronic device 1 and the electronic device 2, and the electronic device 1 initiates the media service first, and the electronic device 2 initiates the media service later. Figure 4As shown, the Bluetooth headset activates the A2DP specification with the electronic device 1, and activates the A2DP specification with the electronic device 2. It should be noted that the Bluetooth headset can activate the A2DP specification with the electronic device 1 and / or the electronic device 2 upon detecting a trigger operation of the user (for example, the user wearing the headset). The initial state of the Bluetooth headset is an idle state. It should be noted that in the first scenario, since no call service is involved, whether the Bluetooth headset activates the HFP specification with the electronic device 1 and the electronic device 2 can not be considered.

[0234] The audio control method provided by the embodiments of the present application will be described below. Figure 4 The audio control method provided by the embodiments of the present application will be described below. Figure 4 As shown, the audio control method can include the following steps S201-S204.

[0235] S201, the electronic device 1 receives a first operation of the user, and in response to the first operation, transmits a first media audio stream to the Bluetooth headset.

[0236] Optionally, the first operation can be an operation of the user triggering the electronic device 1 to start an audio service, for example, an operation (for example, a click operation or a drag operation) of the user on a music playing icon, a video playing icon, a game application icon, etc. on the screen of the electronic device 1, and again for example, an operation of the user wearing the Bluetooth headset. Of course, the first operation can also be any other operation that meets the actual use requirements, and the specific operation can be determined according to the actual use requirements, and the embodiments of the present application are not limited.

[0237] S202, the Bluetooth headset receives and outputs the first media audio stream, and deactivates the A2DP specification with the electronic device 2.

[0238] Wherein, the Bluetooth headset deactivating the A2DP specification with the electronic device 2 can 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 operation can be determined according to the actual use requirements, and the embodiments of the present application are not limited.

[0239] In the embodiments 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 based on the A2DP specification through the ACL link, that is, the electronic device 1 initiates the media service first and occupies the Bluetooth headset first. Correspondingly, the Bluetooth headset outputs the first media audio stream after receiving the first media audio stream, for example, plays 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 Bluetooth headset and the electronic device 2. The Bluetooth headset can also first deactivate the A2DP specification between the Bluetooth headset and the electronic device 2 and then output the first media audio stream. Alternatively, the Bluetooth headset can also simultaneously perform the two actions.

[0241] S203, in the case of A2DP deactivation between the Bluetooth headset and the electronic device 2, the electronic device 2 displays a first prompt message.

[0242] The first prompt message can be used to prompt that the Bluetooth headset sound channel has been occupied, or to prompt that the audio sound channel of the electronic device 2 has been switched from the Bluetooth headset sound channel to the secondary sound channel. Optionally, the first prompt message described above can be hidden or canceled after a preset time period.

[0243] In addition, the secondary sound channel described above can be a sound channel with a lower priority than the Bluetooth headset. For example, the preset sound channels are in order of priority from high to low: Bluetooth headset, electronic device native, sound box, and the secondary sound channel is the electronic device native.

[0244] It should be noted that in the case of A2DP deactivation between the Bluetooth headset and the electronic device 2, the first prompt message can also not be displayed. The specific determination can be made according to actual use requirements, and the embodiments of the present application are not limited.

[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 native or other sound channels.

[0246] The second operation described above can be an operation of the user triggering the electronic device 2 to start an audio service, such as an operation of the user on a music playing icon, a video playing icon, a game application icon, etc. on the screen of the electronic device 2. The second operation can be a click operation, a drag operation, or any other operation that meets the actual use requirements, and the specific determination can be made according to actual use requirements, and the embodiments of the present application are not limited.

[0247] In the embodiment of the present application, in the case that the Bluetooth headset is occupied by the electronic device 1, if the electronic device 2 receives a second operation of the user, the electronic device 2 acquires a second media audio stream in response to the second operation, and outputs the second media audio stream (for example, plays the sound of a video) through the local speaker or earpiece of the electronic device 2. That is, in the case that the Bluetooth headset processes the media service initiated by the electronic device 1, the electronic device 2 initiates the media service afterwards, and the media audio stream can be output through the local speaker or earpiece of the electronic device 2, and no service concurrency occurs on the Bluetooth headset side. Compared with the case that the audio stream cannot be normally output in the related art when service concurrency occurs, the embodiment of the present application can ensure that the audio stream will be normally output when service concurrency occurs, thereby improving the audio playing effect when service concurrency occurs in the case that multiple electronic devices share the Bluetooth headset.

[0248] It should be noted that, Figure 4 The case that the electronic device 2 switches from the Bluetooth headset channel to the local speaker or earpiece of the electronic device 2, and then plays the audio stream through the local speaker or earpiece of the electronic device 2 is exemplarily described, if the electronic device 2 switches from the Bluetooth headset channel to other possible sound output channels such as a sound box channel, the electronic device 2 can play the audio stream through the other possible sound output channel in response to the second operation.

[0249] Optionally, after the step S204, the audio control method provided by the embodiment of the present application can further include the following steps S205-S208.

[0250] S205, in the case that the electronic device 1 stops transmitting the first media audio stream to the Bluetooth headset, the Bluetooth headset activates the A2DP specification between 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 can include but is not limited to any one of the following: the user triggers to stop playing music, or automatically stops playing after the music ends, or the user takes off the Bluetooth headset.

[0252] In the case that the electronic device 1 stops transmitting the first media audio stream to the Bluetooth headset, the Bluetooth headset is in an idle state, and at this time the electronic device 2 currently has a media service and outputs a media audio stream through the local speaker or earpiece, in this case, the Bluetooth headset can perform audio service switching according to any one of the following audio service switching strategies.

[0253] Strategy one: automatic switching. When the Bluetooth earphone is in the idle state, the A2DP specification between the Bluetooth earphone and the electronic device 2 is activated, and then the electronic device 2 transmits the second media audio stream to the Bluetooth earphone through the ACL link based on the A2DP specification. And the Bluetooth earphone deactivates the A2DP specification between the Bluetooth earphone and the electronic device 1. Correspondingly, the Bluetooth earphone outputs the second media audio stream after receiving the second media audio stream. In strategy one, the Bluetooth earphone can intelligently switch the media services initiated by the two electronic devices, which can improve the audio playing effect when multiple electronic devices share the Bluetooth earphone. In the case of automatic switching, the pre-empted electronic device can display a prompt message to prompt that the Bluetooth earphone is occupied, or that the current audio sound channel has been switched to the preset secondary sound channel.

[0254] Strategy two: switching according to user demand. When the Bluetooth device is in the idle state, a second prompt message can be sent to the electronic device, which is used to prompt the user whether to switch the current audio sound channel from the Bluetooth earphone channel to the preset secondary sound 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 switching or cancel the switching.

[0255] For example, when the Bluetooth earphone is in the idle state, the Bluetooth earphone can send a message to the electronic device 2 to prompt whether to switch the audio to the Bluetooth earphone. If the electronic device 2 can receive a user confirmation operation confirming to switch the audio to the Bluetooth earphone, it can further activate the A2DP specification between the Bluetooth earphone and the electronic device 2. The following describes three possible implementation ways of how to activate the A2DP specification.

[0256] In one possible implementation, if the electronic device 2 receives the confirmation operation, the electronic device 2 feeds back to the Bluetooth earphone that the electronic device 2 confirms to switch the audio to the Bluetooth earphone, and then the Bluetooth earphone activates the A2DP specification between the Bluetooth earphone and the electronic device 2, and deactivates the A2DP specification between the Bluetooth earphone and the electronic device 1. Then, the electronic device 2 transmits the second media audio stream to the Bluetooth earphone through the ACL link based on the A2DP specification. Correspondingly, the Bluetooth earphone 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 earphone and the electronic device 2, and then transmits the second media audio stream to the Bluetooth earphone through the ACL link based on the A2DP specification. Correspondingly, the Bluetooth earphone outputs the second media audio stream, for example, plays the video sound, after receiving the second media audio stream, and deactivates the A2DP specification between the Bluetooth earphone and the electronic device 1.

[0258] In another possible implementation, once the Bluetooth earphone is in the idle state, the Bluetooth earphone automatically activates the A2DP specification with the two electronic devices without the user confirming the switching of the audio to the Bluetooth earphone to be reactivated, so that the Bluetooth earphone in the idle state maintains the A2DP connection with the electronic device 1 and the electronic device 2, and the Bluetooth earphone can process the audio service initiated by any electronic device in the Bluetooth connection state at any time. In the context of the present application, this is exemplarily illustrated by way of example.

[0259] In the second strategy, the Bluetooth earphone can switch to process the media 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 use needs of the user and improve the user experience.

[0260] Reference Figure 4 The above-mentioned second strategy corresponds to steps S206-S207 in Figure 4 The above-mentioned first strategy corresponds to steps S208-S209 in Figure 4 .

[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 sound channel to the Bluetooth earphone. Exemplarily, the second prompt message is in the form of a prompt box, and the second prompt message can include a confirmation option for confirming the switching to the Bluetooth earphone and a cancel option for canceling the switching to the Bluetooth earphone.

[0263] S207, the 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 sound channel to the Bluetooth earphone. Exemplarily, the third operation can be the operation of the user on the confirmation 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 with the electronic device 1.

[0267] It should be noted that the present application does not limit the execution order of the Bluetooth earphone outputting the second media audio stream and deactivating the A2DP specification with the electronic device 1.

[0268] Figure 5A to 5E are respectively schematic diagrams of application scenarios of the audio control method shown in Figure 4 , and Figure 4 , and Figure 5A to 5EThe application further provides an audio control method.

[0269] As shown in FIG. 1, if a user operates the electronic device 1 to trigger playing of a song 1, the electronic device 1 initiates a media service in response to the operation of the user, and transmits a media audio stream of the song 1 to the Bluetooth headset through an ACL link based on an A2DP specification. The A2DP specification between the Bluetooth headset and the electronic device 2 is deactivated. Figure 5A As shown in FIG. 2, the electronic device 1 displays an audio control interface, which includes audio switching options such as a "local" item, a "Bluetooth headset" item, and a "sound box" item, and can further include a volume adjustment control, a pause key, a "next song" control, and the like. The "Bluetooth headset" item is in a selected state, so that the user can know that the audio stream of the electronic device 1 is currently output through the Bluetooth headset. The user can select another item in the options according to a requirement to trigger the electronic device 1 to switch an 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 a local output. Optionally, the media audio stream is usually played by default through a speaker of the local device. Figure 5A It should be noted that the audio control interface described above can be an interface displayed when the screen of the electronic device 1 is in a locked state, or can be an interface displayed when the screen of the electronic device 1 is in an unlocked state. It should be further noted that the electronic device 2 currently has no audio service, and can be in a screen-on state or a screen-off state. The electronic device 2 can display a prompt message at this time, prompting that the audio output channel has been switched from the Bluetooth headset channel to the local output channel.

[0270] Further, as shown in FIG. 3, if the electronic device 2 receives an operation of the user to play a song 2, the electronic device 2 plays the song 2 through the local device (for example, a speaker) in response to the operation of the user.

[0271] As shown in FIG. 4, the electronic device 2 can display an audio control interface, which includes audio switching options such as a "local" item and a "Bluetooth headset" item, and further includes a volume adjustment control, a pause key, a "next song" control, and the like. 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 the local device. Since the A2DP specification between the Bluetooth headset and the electronic device 2 is deactivated at present, it is not possible to switch the audio to the Bluetooth headset, so the "Bluetooth headset" item can not be displayed in the audio control interface, or the "Bluetooth headset" item can be displayed in a grayed-out state, 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 application embodiments do not limit this. Figure 5B Figure 5B Further, as shown in FIG. 5, if the electronic device 2 receives an operation of the user to play a song 2, the electronic device 2 plays the song 2 through the local device (for example, a speaker) in response to the operation of the user.

[0272] Further, as shown in FIG. 6, if the electronic device 2 receives an operation of the user to play a song 2, the electronic device 2 plays the song 2 through the local device (for example, a speaker) in response to the operation of the user. Figure 5C ​As shown, if the audio service of song 1 played on electronic device 1 ends, electronic device 1 stops transmitting the media audio stream of song 1 to the Bluetooth headset in response to the operation of the user. At this time, the Bluetooth headset is in the idle state and can send a prompt message to electronic device 2 to prompt whether to switch the currently played media audio to the headset for playing. Correspondingly, electronic device 2 can display the prompt message, and if the user selects "Yes" to confirm the switching of the audio to the headset for playing, as shown, Figure 5D As shown, in response to the operation of the user, the A2DP specification between electronic device 2 and the Bluetooth headset is activated, and then 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 electronic device 1 is deactivated, and the "Bluetooth headset" item can not be displayed in the audio control interface of electronic device 1.

[0273] Further optionally, as shown, 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, and at this time, since neither electronic device 1 nor electronic device 2 has an audio service, the Bluetooth headset returns to the idle state. In this case, the Bluetooth headset can reactivate the A2DP specification with electronic device 1 and maintain the A2DP specification with electronic device 2, that is, the Bluetooth headset in the idle state maintains the A2DP connection with electronic device 1 and electronic device 2, so that the Bluetooth headset can process 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 manner of the audio control method provided by the embodiment of the present application, which needs to deactivate / reactivate the A2DP specification between the Bluetooth headset and electronic device 1 or electronic device 2 in the implementation process, so that the Bluetooth headset can reasonably switch the audio service of different electronic devices when the services are concurrent and can ensure that the audio stream is normally output. However, the embodiment of the present application is not limited thereto, and two implementation schemes of the audio control method provided by the embodiment of the present application are exemplarily given below:

[0275] First scheme: activating / deactivating the A2DP specification

[0276] It is assumed that the Bluetooth headset and electronic device 1 and electronic device 2 both activate the A2DP specification, and in the case that one of the electronic devices (for example, electronic device 1) initiates a media service and occupies the Bluetooth headset, the Bluetooth headset can deactivate the A2DP specification with the other electronic device (for example, electronic device 2). It should be noted that the above Figure 4 , Figure 5A to 5E and the corresponding specific scheme description are all based on the first scheme.

[0277] In the first scheme, if the electronic device 1 initiates an audio service, the earphone actively disconnects the A2DP connection with the electronic device 2 after the service is initiated. After the earphone disconnects the A2DP connection with the electronic device 2, when the electronic device 2 plays audio, the audio can be directly output from the electronic device 2, and if the electronic device 2 needs to be output from the earphone, the service of the electronic device 1 needs to be stopped first. When the audio service of the electronic device 1 ends, the earphone actively establishes the A2DP connection with the electronic device 2, and at this time, if the electronic device 2 is in an audio service, the audio is sent to the earphone for output, and similarly, the earphone judges whether to disconnect the audio A2DP connection with the electronic device 1. Compared with the case that the related art described above swallows the audio stream when services are concurrent, when one mobile phone is in a service with the earphone, another mobile phone initiates an audio service, the audio of the service can be normally output from the mobile phone, and the audio of the service cannot be swallowed by the earphone (such as video, prompt sound and the like that cannot be paused).

[0278] Second scheme: notification of disabling the Bluetooth earphone channel

[0279] Suppose that the Bluetooth earphone activates the A2DP specification with the electronic device 1 and the electronic device 2, and in the case that one of the electronic devices (for example, the electronic device 1) initiates a media service and occupies the Bluetooth earphone, the Bluetooth earphone can send a message to the other electronic device (for example, the electronic device 2) to notify that the Bluetooth earphone is occupied, and the other electronic device disables the Bluetooth earphone channel according to the notification message and automatically switches to a secondary sound output channel (for example, the local device). In some embodiments, the electronic device 2 can also actively query the current working state of the Bluetooth earphone, and when it is learned that the earphone is in a working state, the electronic device 2 can automatically switch to a secondary sound output channel (for example, the local device). It can be seen that in the second scheme, the Bluetooth earphone does not need to activate the A2DP specification with the electronic device.

[0280] The following is based on the second scheme described above, and in combination with Figure 6 The possible implementation manner of the audio control method provided by the embodiments of the present application is described exemplarily. Figure 6 A flowchart of switching an audio service by a Bluetooth earphone when the Bluetooth earphone is connected with the electronic device 1 and the electronic device 2 is shown. The Bluetooth earphone activates the A2DP specification with the electronic device 1 and the electronic device 2. As Figure 6 shown, the audio control method can include the following steps S210-S220.

[0281] S210, the electronic device 1 receives a first operation of a user, and in response to the first operation, transmits a first media audio stream to the Bluetooth earphone.

[0282] For the description of step S210, reference can be made to the description of step S201 in the above Figure 4 embodiment, which will not be described herein again.

[0283] S211, the Bluetooth headset receives and outputs the first media audio stream, and sends a first prompt message to the electronic device 2 to prompt that the Bluetooth headset is occupied.

[0284] The difference between the step S211 and the step S202 in the above Figure 4 is that the Bluetooth headset does not need to deactivate the A2DP specification with the electronic device 2, but sends a message to the electronic device 2 to indicate the electronic device 2 to switch the audio output channel to other output channel.

[0285] When the electronic device 1 receives the first operation of the user, the electronic device 1 transmits the first media audio stream to the Bluetooth headset through the ACL link based on the A2DP specification in response to the first operation, that is, the electronic device 1 initiates the media service first 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 headset channel to the secondary output channel according to the first prompt message. Optionally, the electronic device 2 can display the first prompt message.

[0287] The Bluetooth headset sends a first prompt message to the electronic device 2 to prompt 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 output channel (such as the local machine). In this case, if the electronic device 2 initiates the audio service, the audio stream is not output through the Bluetooth headset, but through the secondary output channel.

[0288] S213, the electronic device 2 receives the second operation of the user, and outputs the second media audio stream through the local machine or other output channel of the electronic device 2 in response to the second operation.

[0289] The description of the step S213 can refer to the description of the step S204 in the above Figure 4 , which will not be described here.

[0290] In the case that the Bluetooth headset is occupied by the electronic device 1, if the electronic device 2 receives a second operation of the user, for example, the user clicks a video play icon on the screen of the electronic device 2, the electronic device 1 acquires a second media audio stream corresponding to the video play icon in response to the second operation, and outputs the second media audio stream through the local speaker or earpiece of the electronic device 1. That is, in the case that the Bluetooth headset processes the media service initiated by the electronic device 1, the electronic device 2 initiates the media service later, and the media audio stream can be output through the local speaker or earpiece. Compared with the case that the audio stream cannot be normally output in the related art 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 play effect when services are concurrent in the case that multiple electronic devices share the Bluetooth headset.

[0291] S214, in the case that 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] The difference between the step S214 and the step S205 in the above Figure 4 is that, when the Bluetooth headset is in the idle state, the Bluetooth headset does not need to activate the A2DP specification with the electronic device 2, but sends a message to the electronic device 2 to prompt whether the audio is switched to the earphone channel.

[0293] S215, the electronic device 2 receives and displays the second prompt message.

[0294] S216, the electronic device 2 receives a third operation of the user on the second prompt message, and switches the audio output channel to the earphone channel in response to the third operation.

[0295] When the 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 is automatically stopped after being played, or the user takes off the Bluetooth headset, at this time, the Bluetooth headset is in the idle state, and at this time, the electronic device 2 currently has a media service and outputs the media audio stream through the local speaker or earpiece, in this case, the Bluetooth headset can perform audio service switching according to any one of the following audio service switching strategies.

[0296] Strategy one: automatic switching. When the Bluetooth headset is in the idle state, the Bluetooth headset can notify the electronic device 2 that the Bluetooth headset is currently available, and the electronic device 1 can automatically enable the Bluetooth headset channel after receiving the notification, and then transmit the second media audio stream to the Bluetooth headset based on the A2DP specification through the ACL link. Correspondingly, the Bluetooth headset outputs the second media audio stream after receiving the second media audio stream, for example, plays the video sound. In the embodiment of the present application, the Bluetooth headset can intelligently switch the media services initiated by the two electronic devices, and the audio playing effect can be improved when multiple electronic devices share the Bluetooth headset.

[0297] Strategy two: switching according to user demand. As shown in Figure 6 , when the Bluetooth headset is in the idle state, the Bluetooth headset can send a message to the electronic device 2 to prompt whether to switch the audio to the Bluetooth headset. If the electronic device 2 receives a 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 transmits the second media audio stream to the Bluetooth headset based on the A2DP specification through the ACL link. Correspondingly, the Bluetooth headset outputs the second media audio stream after receiving the second media audio stream, for example, plays the video sound. In the embodiment of the present application, the Bluetooth headset can switch the media services initiated by the two electronic devices according to the actual demand of the user. Such an audio service switching strategy can meet the actual use demand of the user and improve the user experience.

[0298] S217, the electronic device 2 transmits the second media audio stream to the Bluetooth device.

[0299] For the description of steps S215-S217 described above, reference can be made to the description of step S204 in the above Figure 4 , which will not be repeated here.

[0300] S218, the Bluetooth device receives and outputs the second media audio stream.

[0301] Wherein, the difference between the above step S218 and the step S205 in the above Figure 4 is that the Bluetooth headset is preempted by the media service of the electronic device 2, and there is no need to deactivate the A2DP specification with the electronic device 1.

[0302] Optionally, after the above step S218, the audio service switching method provided by the embodiment of the present application can 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 earphone channel to the secondary sound output channel according to the first prompt message.

[0305] Optionally, the electronic device 1 can display the first prompt message, so as to facilitate the user to view and know that the audio sound output channel is occupied or has been switched.

[0306] S221, in the case that the electronic device 2 stops transmitting the second media audio stream to the Bluetooth earphone, the Bluetooth earphone sends a second prompt message to the electronic device 1 to prompt whether to switch the audio sound output channel to the earphone channel.

[0307] The steps S219-S221 are similar to the steps S211-S214, the Bluetooth earphone sends a prompt message to the electronic device 1 to prompt that the Bluetooth earphone is occupied. After receiving the prompt message, the electronic device 1 disables the Bluetooth earphone channel and automatically switches to the secondary sound output channel (for example, the local machine), and in this case, if the electronic device 1 initiates an audio service, the audio stream is not output through the Bluetooth earphone. Further, when the electronic device 2 stops transmitting the second media audio stream to the Bluetooth earphone, the Bluetooth earphone is in an idle state, and the Bluetooth earphone can send a message to the electronic device 1 to prompt that the Bluetooth earphone is available, and then the electronic device 1 can enable the Bluetooth earphone channel after receiving the message.

[0308] Figure 7A to 7D respectively, the application scenarios of the audio control method shown in Figure 6 . The application scenarios of the audio control method provided by the second scheme of the embodiments of the present application will be described exemplarily below in combination with Figure 6 and Figure 7A to 7D .

[0309] As shown in Figure 7A , if the user operates on the electronic device 1 to trigger playing of the song 1, the electronic device 1 initiates a media service in response to the operation of the user and transmits the media audio stream of the song 1 to the Bluetooth earphone through the ACL link based on the A2DP specification. Wherein, the Bluetooth earphone maintains an activated state of the A2DP specification with the electronic device 1 and the electronic device 2. As shown in Figure 7A , the electronic device 1 displays an audio control interface, which includes audio switching options such as the "local machine" item, the "Bluetooth earphone" item and the "sound box" item, and can also include a volume adjustment control, a pause key, a "next" control and the like. Wherein, the "Bluetooth earphone" item is in a selected state, so that the user can know that the audio stream of the electronic device 1 is currently output through the Bluetooth earphone. And the user can select another item in these options according to the needs to trigger the electronic device 1 to switch the output channel of the audio stream, for example, if the user selects the "local machine" item, the electronic device 1 can switch the audio stream of the electronic device 1 to the local machine output; exemplarily, the media audio stream is usually played through the speaker of the local machine by default.

[0310] It should be noted that the audio control interface described above can be an interface displayed when the screen of the electronic device 1 is in a locked state, or can be an interface displayed when the screen of the electronic device 1 is in an unlocked state. It should also be noted that the electronic device 2 currently has no audio service, and can be in a screen-on state or a screen-off state. Since the electronic device 1 is currently occupying the Bluetooth headset, the electronic device 2 is notified to disable the Bluetooth headset, and automatically switches from the Bluetooth headset sound output channel to a preset secondary sound output channel (for example, the local device). The electronic device 2 can display a prompt message prompting that the audio sound output channel has been switched from the Bluetooth headset channel to the local device sound output channel.

[0311] Further, as shown in Figure 7B if the electronic device 2 receives a user operation of playing song 2, the electronic device 2 plays song 2 through the local device (for example, a loudspeaker) of the electronic device 2 in response to the operation of the user. The electronic device 2 can display an audio control interface in which the "local device" item is in a selected state, so that the user can view and know that the audio stream of the electronic device 2 is currently output through the local device of the electronic device 2.

[0312] In some embodiments, when the electronic device 2 receives a user operation of playing a voice or media service, the electronic device 2 pops up the above-mentioned audio control interface in response to the operation, the audio control interface including audio channels currently available to the electronic device 2, such as the "local device" item and the "Bluetooth headset" item, and the electronic device 2 performs the operation of playing the voice or media service in response to a selection operation of the user on the above-mentioned audio channels.

[0313] Further, as shown in Figure 7C if the electronic device 1 receives a user operation of pausing the playing of song 1, the electronic device 1 stops transmitting the media audio stream of song 1 to the Bluetooth headset in response to the operation of the user. At this time, the Bluetooth headset is in an idle state and can send a prompt message to the electronic device 2 prompting whether to switch the currently played media audio to the Bluetooth headset for playing. Correspondingly, the electronic device 2 can display the prompt message for the user to select, and if the user selects "Yes" to confirm switching the audio to the Bluetooth headset for playing, as shown in Figure 7D in response to the operation of the user, 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. The Bluetooth headset receives and outputs the media audio stream of song 2, and sends a message to the electronic device 1 notifying that the Bluetooth headset has been occupied. After receiving the message, the electronic device 1 disables the Bluetooth headset channel and switches from the Bluetooth headset sound output channel to a preset secondary sound output channel (for example, the local device). As shown in Figure 7DAs shown, the electronic device 1 displays a prompt message, prompting that the audio sound channel has been switched from the Bluetooth headset channel to the local sound channel. In this case, if the user operates on the electronic device 1 to trigger the continuous playing of the song 1, the electronic device 1 plays the song 1 through the local. In this way, the electronic device 1 and the electronic device 2 do not conflict with each other due to the occupation of the Bluetooth headset when both of them initiate the media service, and thus the problem of the audio stream not being normally output is avoided.

[0314] Further, if the audio service of the electronic device 2 ends, the electronic device 2 stops transmitting the media audio stream of the song 2 to the Bluetooth headset. At this time, since both the electronic device 1 and the 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, the A2DP specification needs to be deactivated and reactivated when the services are concurrent, that is, the A2DP connection is disconnected and re-established. In the second solution of the first scenario, the A2DP specification does not need to be deactivated when the services are concurrent, but the Bluetooth headset occupied by the electronic device 1 is informed to the electronic device 2 by sending a message. In the embodiments of the present application, the Bluetooth headset can intelligently switch the media services initiated by the two electronic devices, and avoid the problem that the audio stream cannot be normally output when the services are concurrent, and the audio playing effect when multiple electronic devices share the Bluetooth headset can be improved.

[0316] In addition, in the first scenario, a solution in which the user manually occupies the headset channel when the services are concurrent (referred to as a third solution) can also be used. The third solution will be described below in combination with Figure 8 , Figure 9A and Figure 9B .

[0317] Figure 8 A flowchart of switching the audio service by the Bluetooth headset when the Bluetooth headset is connected with the electronic device 1 and the electronic device 2 is shown. The Bluetooth headset and the electronic device 1 and the electronic device 2 both activate the A2DP specification. As shown in Figure 8 , the audio control method can include the following steps S230-S240.

[0318] S230, the electronic device 1 receives a first operation of the user, and in response to the first operation, transmits a first media audio stream to the Bluetooth headset.

[0319] S231, the Bluetooth headset receives and outputs the 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 can be the local channel, and the electronic device 2 can display the first prompt message.

[0321] S233, the electronic device 2 receives the second operation of the user, and in response to the second operation, outputs the second media audio stream through the local or other sound output channel of the electronic device 2.

[0322] The description of steps S230-S233 can refer to the description of steps S210-S213 in the foregoing Figure 6 , and details are not described herein.

[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, for example, the user clicks the music play icon on the screen of the electronic device 1, and transmit the first media audio stream to the Bluetooth earphone through the ACL link based on the A2DP specification. Correspondingly, the Bluetooth earphone outputs the first media audio stream after receiving the first media audio stream, for example, plays music.

[0324] Further, the Bluetooth earphone sends a prompt message to the electronic device 2, prompting that the Bluetooth earphone is occupied. After receiving the prompt message, the electronic device 2 disables the Bluetooth earphone channel, for example, automatically switches to the secondary sound output channel (such as the local loudspeaker), in this case, if the electronic device 2 initiates an audio service, the audio stream is not output through the Bluetooth earphone, but through the secondary sound output channel.

[0325] Further, in the case that the Bluetooth earphone is occupied by the electronic device 1, if the electronic device 2 receives the second operation of the user, for example, the user clicks the video play icon on the screen of the electronic device 2, the electronic device 1 obtains the second media audio stream corresponding to the video play icon in response to the second operation, and outputs the second media audio stream through the local (loudspeaker or earpiece) of the electronic device 1. That is, in the case that the Bluetooth earphone processes the media service initiated by the electronic device 1, the electronic device 2 initiates the media service, which can output the media audio stream through the local. Compared with the case that the audio stream cannot be normally output in the related art when the services are concurrent, the embodiments of the present application can ensure that the audio stream will be output when the services are concurrent, thereby improving the audio playing effect when the services are concurrent in the case that multiple electronic devices share the Bluetooth earphone.

[0326] S234, the electronic device 2 receives the fourth operation of the user, and in response to the fourth operation, enables the Bluetooth earphone channel.

[0327] In the process that the electronic device 2 has initiated playing the voice or the media service, the electronic device 2 pops up the audio control interface in response to the user operation (such as the pull-down menu or the status bar); or the electronic device 2 can pop up the audio control interface in response to the user operation of ordering the audio or the video service. The audio control interface includes the audio channel available to the electronic device 2 currently, such as the audio channel including the "local" item and the "Bluetooth earphone" item, and if the electronic device 2 receives the user selection operation of the "Bluetooth earphone" (i.e. the fourth operation described above), the electronic device 2 can enable the Bluetooth earphone channel.

[0328] S235, the electronic device 2 sends a notification message to the Bluetooth earphone, notifies the user to manually preempt the Bluetooth earphone channel, and transmits the second media audio stream to the Bluetooth earphone.

[0329] S236, the Bluetooth earphone receives and outputs the second media audio stream, and sends a prompt message to the electronic device 1 that the Bluetooth earphone has been occupied.

[0330] In the process that the electronic device 2 outputs the second media audio stream through the secondary sound output channel, if the user selects to switch to the Bluetooth earphone channel, the electronic device 2 enables the Bluetooth earphone channel, notifies the Bluetooth earphone that the Bluetooth earphone channel is manually preempted by the user, and then the electronic device 2 transmits the second media audio stream to the Bluetooth earphone based on the A2DP specification through the ACL link. Correspondingly, the Bluetooth earphone outputs the second media audio stream after receiving the second media audio stream, such as playing the video sound, at which time the Bluetooth earphone stops playing the first media audio stream. In the embodiment of the present application, the Bluetooth earphone can intelligently switch the media services initiated by the two electronic devices, which can improve the audio playing effect when multiple electronic devices share the Bluetooth earphone.

[0331] S237, the electronic device 1 receives the prompt message and judges the type of the audio service currently processed.

[0332] S238A, if the audio service currently processed is the first type of service, the electronic device 1 continues to process the current audio service and automatically switches to the secondary sound output channel or mute playing. Optionally, the electronic device 1 can display a prompt message to prompt the user that the audio sound output channel has been switched to the secondary sound output channel (such as the local channel).

[0333] S238B, if the audio service currently processed is the second type of service, the electronic device 1 suspends processing the current audio service and displays a message to prompt the user whether to switch to the secondary sound output channel (such as the local channel).

[0334] It should be noted that the electronic device 1 executes the steps S238A and S238B alternatively.

[0335] The Bluetooth headset sends a notification message to electronic device 1, indicating that the Bluetooth headset is in use. Correspondingly, upon receiving the notification message, electronic device 2 can first determine the type of media service currently being processed by electronic device 1, and then determine whether to execute the first or second processing strategy based on the service type:

[0336] First processing strategy: such as Figure 8 As shown in the dashed box, if electronic device 1 determines that the media service being processed belongs to the first type of media service, such as video or games, then electronic device 1 continues the audio service (e.g., continues to display game videos) and automatically switches the audio sound to the local channel output. The first processing strategy corresponds to step S238A above.

[0337] Second processing strategy: If electronic device 1 determines that the currently processed media service belongs to the second type of media service, such as music, alarm clock, etc., then electronic device 1 pauses the audio service (pauses music playback) and pops up a prompt to the user whether to switch the current audio to the local channel output. The second processing strategy corresponds to step S238B above.

[0338] S239A, Electronic device 1 receives confirmation from the user that it has triggered a switch to the secondary output channel, and switches the audio output channel to the secondary output channel. Then, electronic device 1 outputs the first media audio stream through the secondary output channel.

[0339] S239B, when the electronic device 1 receives the user's trigger to cancel switching to the secondary sound output channel, it sends a notification message to the Bluetooth headset, notifying the user to manually preempt the Bluetooth headset channel; and transmits the first media audio stream to the Bluetooth headset.

[0340] It should be noted that electronic device 1 may choose to perform either step S238A or S238B.

[0341] S240, the Bluetooth headset receives and outputs a first media audio stream, and sends a notification message to the electronic device 2 to indicate that the Bluetooth headset is in use.

[0342] When electronic device 1 executes the second processing strategy, if it receives a confirmation switch operation from the user in the pop-up window, electronic device 1 responds by switching the current audio to its own channel output. If it receives a negative switch operation from the user in the pop-up window, electronic device 1 responds by notifying the Bluetooth headset that the Bluetooth headset channel has been manually preempted by the user (i.e., reclaimed), and transmits the first media audio stream to the Bluetooth headset via the ACL link based on the A2DP specification. 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. Similar to the above implementation, the Bluetooth headset sends a notification message to electronic device 1, indicating that the Bluetooth headset is occupied.

[0343] Figure 9A and Figure 9B are respectively a schematic diagram of an application scenario of the audio control method shown in Figure 8 The following will exemplarily describe the application scenario of the audio control method provided by the third solution of the present application in combination with Figure 8 and Figure 9A and Figure 9B The following will exemplarily describe the application scenario of the audio control method provided by the third solution of the present application in combination with

[0344] As shown in Figure 9A , the electronic device 1 and the electronic device 2 are both connected with the Bluetooth headset. The electronic device 1 initiates a media service, and transmits a media audio stream of a song 1 to the Bluetooth headset through an ACL link based on an A2DP specification, and outputs the media audio stream of the song 1 through the Bluetooth headset. The electronic device 1 can display an audio control interface, and the item of "Bluetooth headset" is in a selected state, indicating that the current media audio stream is output through the Bluetooth headset. In addition, the electronic device 2 also initiates a media service, and outputs a media audio stream of a song 2 through a local device. The electronic device 2 can display an audio control interface, and the item of "local device" is in a selected state, indicating that the current media audio stream is output through the local device.

[0345] Further, if the user selects the item of "Bluetooth headset" on the audio control interface of the electronic device 2, that is, the user manually preoccupies the Bluetooth headset channel, as shown in Figure 9B , the Bluetooth headset is preoccupied by the electronic device 2, and the electronic device 2 transmits a media audio stream of the song 2 to the Bluetooth headset through an ACL link based on an A2DP specification, that is, the song 2 can be played through the Bluetooth headset. At this time, in the audio control interface of the electronic device 2, the item of "Bluetooth headset" is in a selected state, indicating that the current media audio stream is output through the Bluetooth headset. Since the Bluetooth headset is preoccupied by the electronic device 2, after the electronic device 1 as the preoccupied party judges that the current service is of a music type, the song 1 is paused, and accordingly, in the audio control interface of the electronic device 1, the items of all audio output channels are not selected. In addition, the electronic device 1 can display a prompt information to prompt the user to switch the currently played media audio to the local device or a sound box, for the user to select. If the user selects to switch to the sound box, as shown in Figure 9C , the electronic device 1 as the preoccupied party switches the audio output channel to the sound box and plays the song 1 through the sound box.

[0346] Further, as shown in Figure 9C , if the user selects the item of "Bluetooth headset" on the audio control interface of the electronic device 1, as shown in Figure 9DAs shown, the Bluetooth headset is preempted (i.e., preempted back) by the electronic device 1, the electronic device 1 transmits the media audio stream of the song 1 to the Bluetooth headset through the ACL link based on the A2DP specification, and the song 1 is played through the Bluetooth headset. At this time, since the Bluetooth headset is preempted by the electronic device 1, the electronic device 2 as the preempted party judges that the current service is of the music type, and the playing of the song 2 is paused. Correspondingly, in the audio control interface of the electronic device 2, the options of each audio sound channel are not selected. In addition, the electronic device 2 can display prompt information to prompt the user whether to switch the currently played media audio to the local device for the user to select. If the user selects to switch to the local device, the electronic device 2 switches the audio output channel to the local device in response to the user operation, and plays the song 2 through the local device. If the user cancels the switch to the local device, the electronic device 2 switches the audio output channel back to the Bluetooth headset (i.e., preempted back) in response to the user operation, and then can play the song 2 through the Bluetooth headset.

[0347] In the audio control interface of the electronic device 1, the "Bluetooth headset" item is in the selected state, indicating that the current song is played through the Bluetooth headset. In the audio control interface of the electronic device 2, the "local device" item is in the selected state, indicating that the current media audio stream is output through the local device. In this way, the user can manually preempt the Bluetooth headset channel according to actual needs to trigger the Bluetooth headset to switch the audio service. It can be seen from the third scheme that the Bluetooth device follows a preemption strategy that gives priority to user operations.

[0348] Second scenario: service concurrency scenario of

media service and call service

[0349] In the second scenario, it is assumed that the electronic device 1 initiates the media service first, and the 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 preempt the headset 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 respectively, the second scenario is also described exemplarily based on the first scheme, the second scheme and the third scheme respectively below.

[0350] <First scheme> The audio control method based on the first scheme implemented in the second scenario is described first below. In the process of implementing the audio control method based on the first scheme, the A2DP specification can be deactivated / reactivated, so that the Bluetooth headset can reasonably switch the audio service of different electronic devices when services are concurrent and the audio stream can be normally output.

[0351] Figure 10 A flowchart of implementing the Bluetooth headset to switch the audio service based on the first scheme when the Bluetooth headset is connected with the electronic device 1 and the electronic device 2 is shown. As shown in the figure, the electronic device 1 initiates the media service first, and the electronic device 2 initiates the call service later. Since the priority of the call service is higher than that of the media service, the call service preempt the headset channel first. In the audio control interface of the electronic device 1, the "Bluetooth headset" item is in the selected state, indicating that the current song is played through the Bluetooth headset. In the audio control interface of the electronic device 2, the "local device" item is in the selected state, indicating that the current media audio stream is output through the local device. In this way, the user can manually preempt the Bluetooth headset channel according to actual needs to trigger the Bluetooth headset to switch the audio service. It can be seen from the third scheme that the Bluetooth device follows a preemption strategy that gives priority to user operations. Figure 10As shown, the Bluetooth earphone activates A2DP profile and HFP profile with the electronic device 1, and activates A2DP profile and HFP profile with the electronic device 2. The initial state of the Bluetooth earphone is idle state. As shown, the electronic device 1 activates A2DP profile with the Bluetooth earphone, and activates HFP profile with the Bluetooth earphone. Figure 10 As shown, the audio control method can include steps S301-S304.

[0352] S301, the electronic device 1 receives a first operation of a user, and in response to the first operation, transmits a media audio stream to the Bluetooth earphone.

[0353] S302, the Bluetooth earphone receives and outputs the media audio stream, and deactivates the A2DP profile with the electronic device 2.

[0354] The description of steps S301-S302 above can refer to the description of steps S201-S202 above, and will not be repeated here. Figure 4

[0355] When the electronic device 1 receives a first operation of a user (e.g. clicking a media application icon), the electronic device 1 initiates a media service in response to the first operation, and transmits a media audio stream of the media service to the Bluetooth earphone based on A2DP profile through an ACL link. Accordingly, the Bluetooth earphone outputs the media audio stream after receiving the media audio stream, e.g. playing music, and deactivates the A2DP profile between the Bluetooth earphone and the electronic device 2.

[0356] S303, the electronic device 2 initiates a call service, and transmits a call audio stream of the call service to the Bluetooth earphone.

[0357] Optionally, the call service can include answering a call or making a call, or video call, voice call, etc., and can also include other possible call services.

[0358] S304, the Bluetooth earphone receives and outputs the call audio stream, and deactivates the A2DP profile with the electronic device 1.

[0359] Optionally, after step S304, the audio control method further includes steps S305-S312.

[0360] S305, the electronic device 1 stops transmitting the media audio stream to the Bluetooth earphone, and determines the type of the current audio service being processed.

[0361] S306A, if the current audio service being processed is a first type of service, the electronic device 1 continues to process the current audio service, and automatically switches to a secondary sound output channel or mute playing. Optionally, the electronic device 1 can display a prompt message at this time, prompting the user that the audio sound output channel has been switched to a secondary sound output channel (e.g. local channel).

[0362] ​S306B, if the current audio service is the second type of service, the electronic device 1 suspends processing the current audio service, and displays a message to prompt the user whether to switch to the secondary sound output channel (for example, the local channel).

[0363] It should be noted that for the above steps S306A and S306B, the electronic device 1 executes alternatively. For the description of the above steps S305-S306B, please refer to the related description in the above Figure 8 , which will not be repeated here.

[0364] S307, the electronic device 1 receives a user triggered confirmation operation of switching 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 cancel operation of canceling the switching to the secondary sound output channel, sends a notification message to the Bluetooth earphone to notify the user to manually preempt the Bluetooth earphone channel; and transmits the first media audio stream to the Bluetooth earphone.

[0366] In the case that the Bluetooth earphone is occupied by the electronic device 1, if the electronic device 2 initiates a call service, the electronic device 2 transmits a call audio stream to the Bluetooth earphone through the SCO link based on the HFP specification. That is, in the case that the Bluetooth earphone processes the media service initiated by the electronic device 1, if the electronic device 2 initiates a call service later, the electronic device 2 can preempt the Bluetooth earphone. At this time, the Bluetooth earphone can output the call audio stream, and deactivate the A2DP specification between the Bluetooth earphone and the electronic device 1. Correspondingly, the electronic device 1 stops transmitting the call audio stream to the Bluetooth earphone, and determines the type of the current 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 processing strategy and the second processing strategy in the above first scenario: for the first type of service, continue the audio service, and the electronic device 1 automatically switches to the local channel or mute playback; for the second type of service, the electronic device 1 suspends the audio service, and displays a prompt information to prompt whether to switch to the local channel, if the electronic device 1 receives a second operation of the user confirming the switching 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 case that the audio stream cannot be normally output in the related art when services are concurrent, the embodiments of the present application can ensure that the audio stream will be output when services are concurrent, so as to improve the audio playback effect when services are concurrent in the case that multiple electronic devices share the Bluetooth earphone.

[0367] S308, in the case that the electronic device 2 ends the call service and stops transmitting the call audio stream to the Bluetooth earphone, the Bluetooth earphone activates the A2DP specification between the electronic device 1.

[0368] S309, the Bluetooth device sends a prompt message to the electronic device 1, and the electronic device 2 receives and displays the prompt message.

[0369] The prompt message is used to prompt whether to switch the audio sound channel to the Bluetooth headset. For example, the prompt message is in the form of a prompt box, and the prompt message can include a confirmation option for confirming switching to the Bluetooth headset and a cancel option for canceling switching to the Bluetooth headset.

[0370] S310, the electronic device 1 receives a user 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 confirmation switching operation is used to trigger switching of the audio sound channel to the Bluetooth headset. For example, the confirmation switching operation can be an operation of the user on the confirmation option.

[0372] S311, the Bluetooth device receives and outputs the second media audio stream.

[0373] S312, in the case where the 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 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 one 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 inquire whether the electronic device 1 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 a media audio stream to the Bluetooth headset based on the A2DP specification through an ACL link. Correspondingly, the Bluetooth headset outputs the media audio stream after receiving the media audio stream. In strategy one, the Bluetooth headset can intelligently switch the media service and the call service initiated by the two electronic devices respectively, which can improve the audio playing effect when multiple electronic devices share the Bluetooth headset. Compared with the scheme in which the user needs to manually switch, the scheme provided in the embodiment of the application allows both mobile phones to freely initiate services in the normal headset idle state, without the need for manual switching.

[0376] Strategy two: switching according to user demand. When the Bluetooth earphone is in the idle state, the Bluetooth earphone can send a message to the electronic device 1, prompting whether to switch the audio to the Bluetooth earphone, and the electronic device 1 receives the user's confirmation switching operation. Further, the A2DP specification between the Bluetooth earphone and the electronic device 1 can be reactivated, and three possible implementation ways of how to activate the A2DP specification are described below.

[0377] In one possible implementation, if the electronic device 1 receives the confirmation switching operation, the electronic device 1 feeds back to the Bluetooth earphone that the electronic device 1 confirms to switch the audio to the Bluetooth earphone, and then the Bluetooth earphone activates the A2DP specification between the Bluetooth earphone and the electronic device 1. Then, the electronic device 1 transmits the media audio stream to the Bluetooth earphone through the ACL link based on the A2DP specification. Correspondingly, the Bluetooth earphone 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 earphone and the electronic device 1, and then transmits the media audio stream to the Bluetooth earphone through the ACL link based on the A2DP specification. Correspondingly, the Bluetooth earphone outputs the media audio stream after receiving the media audio stream.

[0379] In yet another possible implementation, once the Bluetooth earphone is in the idle state, the Bluetooth earphone automatically activates the A2DP specification with the electronic device 1 without the user confirming to switch the audio to the Bluetooth earphone to reactivate, so that the Bluetooth earphone in the idle state maintains the A2DP connection with the electronic device 1 and the electronic device 2, so that the Bluetooth earphone can process the audio service initiated by any electronic device in the Bluetooth connection state at any time. Further, as shown in Figure 10 if the electronic device 1 stops transmitting the media audio stream to the Bluetooth earphone, for example, the user clicks the pause control to trigger the stop playing music, or the music is automatically stopped after the music ends, or the user takes off the Bluetooth earphone to trigger the Bluetooth earphone to stop playing music, at this time the Bluetooth earphone is in the idle state. Once the Bluetooth earphone is in the idle state, the Bluetooth earphone automatically activates the A2DP specification with the electronic device 2 without the user confirming to switch the audio to the Bluetooth earphone to reactivate.

[0380] In strategy two, the Bluetooth earphone can switch to process the media service and the call service initiated by the two electronic devices according to the actual demand of the user. Such an audio service switching strategy can meet the actual use demand of the user and improve the user experience.

[0381] Figure 11A to 11E are respectively the application scenarios of the audio control method shown in Figure 10 Figure 10 and Figure 11A to 11E ​The following describes, exemplarily, the application scenarios of the audio control method provided in the embodiments of this application.

[0382] like Figure 11A As shown, if a user operates on electronic device 1 to trigger the playback of song 1, electronic device 1 responds to the user's operation by initiating a media service and transmitting the media audio stream of song 1 to the Bluetooth headset via the ACL link based on the A2DP specification. The A2DP specification between the Bluetooth headset and electronic device 2 is deactivated. Figure 11A As shown, electronic device 1 can display an audio control interface, in which the "Bluetooth Headset" item is selected, so the user can know that the audio stream of electronic device 1 is currently being output through Bluetooth headphones.

[0383] It should be noted that the aforementioned audio control interface can be displayed when the screen of electronic device 1 is locked or unlocked. It should also be noted that electronic device 2 is currently not performing any audio services; its screen can be either on or off. In this case, electronic device 2 can display a notification message indicating that the audio output channel has been switched from the Bluetooth headset channel to the device's own audio output channel.

[0384] Furthermore, such as Figure 11B As shown, if electronic device 2 initiates a call, such as answering or making a call, then electronic device 2 will seize the Bluetooth headset and output the call audio stream through the Bluetooth headset. Figure 11B As shown, electronic device 2 can display a call control interface, including but not limited to a "Bluetooth headset" item 30, which indicates that the call voice of electronic device 2 is currently output through a Bluetooth headset. Correspondingly, electronic device 1 determines that the currently processed media service is a second-type service, and therefore pauses the media service (pauses playback of song 1). Furthermore, electronic device 1 can display a prompt message asking the user whether to switch the currently playing media audio to playback on the device itself or a speaker. If the user selects "speaker" to confirm switching the audio to speaker playback, electronic device 1 can respond to the user's operation and play song 1 through the speaker.

[0385] Furthermore, such as Figure 11C As shown, if the call on 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 protocol with electronic device 1. Furthermore, the Bluetooth headset can send a message to electronic device 1 prompting whether to switch the currently playing media audio to headset playback. Correspondingly, electronic device 1 can display this prompt message. If the user selects "Yes" to confirm switching the audio to headset playback, then... Figure 11DAs shown, in response to the operation of the user, the electronic device 1 transmits the media audio stream of the song 1 to the Bluetooth headset through the ACL link based on the A2DP specification.

[0386] Further, as Figure 11E As shown, if the media service of the electronic device 1 ends, the electronic device 1 stops transmitting the media audio stream to the Bluetooth headset, at this time, since neither the electronic device 1 nor the electronic device 2 has an audio service, the Bluetooth headset returns to the idle state. In this case, the Bluetooth headset can reactivate the A2DP specification with the electronic device 1. Therefore, the Bluetooth headset in the idle state maintains the A2DP connection and the HFP connection with the electronic device 1 and the electronic device 2, so that the Bluetooth headset can process the audio service initiated by any electronic device in the Bluetooth connection state at any time.

[0387] In summary, in the first scheme, when the electronic device 1 is in the audio service with the headset, and the headset disconnects the A2DP connection with the electronic device 2, the incoming call of the electronic device 2 can still have a call reminder in the headset, because the HFP connection between the headset and the electronic device 2 is not disconnected. When the call is answered in the headset, the A2DP connection between the headset and the electronic device 1 is actively disconnected. After the call ends, the A2DP connection between the headset and the electronic device 1 is re-established, and the audio service is resumed. Since most video applications and games will not be paused after the A2DP is disconnected, after the A2DP is re-established, it is necessary to determine whether to initiate a play instruction. A feasible method is that after the A2DP is successfully re-established, the headset detects whether the mobile phone initiates the A2DP, and if the mobile phone does not initiate the A2DP, the headset initiates it again to avoid initiating the play instruction in the game, which causes the music of the mobile phone to be played.

[0388] With respect to the related art described above, in the case of service concurrency, the audio stream is swallowed. Through the scheme provided in the embodiments of the present application, when one mobile phone is in service with the headset, the other mobile phone initiates an audio service, which can normally be heard in the mobile phone, and the service sound will not be swallowed by the headset (such as video, prompt sound, etc. which cannot be paused), which can solve the problem of not being able to play (such as music being transmitted to Bluetooth but being paused soon). When the video and game service of one mobile phone is preempted by voice, when the voice ends and is restored, it will not cause the music to be played.

[0389] <Second Scheme> The audio control method based on the second scheme in the second scenario is described below. In the process of implementing the audio control method based on the second scheme, the A2DP specification can not be deactivated / reactivated, but the Bluetooth headset sends a message to the preempted electronic device to inform the Bluetooth headset that it is preempted, and then the electronic device disables the Bluetooth headset channel according to the notification message and automatically switches to the secondary sound channel, so that the Bluetooth headset can reasonably switch the audio service of different electronic devices in service concurrency and can ensure that the audio stream is normally output.

[0390] Figure 12 A flowchart of implementing the audio service switching of the Bluetooth headset based on the second scheme when the Bluetooth headset is connected with both the electronic device 1 and the electronic device 2 is shown. As shown in Figure 12 , the Bluetooth headset activates the A2DP specification and the HFP specification with both the electronic device 1 and the electronic device 2. As shown in Figure 12 , the audio control method can include the following steps S320-S324. For the description of the steps S320-S321, please refer to the related description in the above Figure 8 , which 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 can display the prompt message.

[0392] S323, the electronic device 2 initiates the call service and transmits the 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 for the description of the steps S325-S332, please refer to the related description in the above Figure 8 , which will not be repeated here.

[0395] It should be noted that, unlike Figure 10 , in Figure 12 , there is no need to deactivate the A2DP specification with the electronic device 1, nor to activate the A2DP specification again. Figure 12 In , the preempted party is notified to disable the Bluetooth headset channel in the form of a notification message.

[0396] When the electronic device 1 receives the first operation of the user, the electronic device 1 acquires 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. Accordingly, 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 (for example, the local device). Further, in the case that the Bluetooth headset is occupied by the electronic device 1, if the electronic device 2 initiates a call service, for example, answers a call or makes a call, the electronic device 1 transmits a call audio stream to the Bluetooth headset through the SCO link based on the HFP specification. That is, in the case that the Bluetooth headset processes a media service initiated by the electronic device 1, if the electronic device 2 subsequently initiates a call service, the electronic device 2 can preempt 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. Accordingly, the electronic device 1 receives the prompt message, and 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 the currently processed media service, and then determine whether to continue the current service or pause the current service according to the service type. As described in the first processing strategy and the second processing strategy in the first scenario described above: for the first type of service, the electronic device 1 continues the audio service, and automatically switches the audio to the local device or plays the audio in silence; for the second type of service, the electronic device 1 pauses the audio service, and displays a prompt message to prompt whether to switch to the local channel, if the electronic device 1 receives a 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 case that the audio stream cannot be normally output in the related art when services are concurrent, the embodiments of the present application can ensure that the audio stream will be output when services are concurrent, thereby improving the audio playing effect when services are concurrent in the case that multiple electronic devices share the Bluetooth headset.

[0398] Further, as shown in FIG. 6, 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 perform audio service switching according to any one of the following audio service switching strategies. Figure 12

[0399] Strategy one: automatic switching. In the case that the Bluetooth headset is in the idle state, the Bluetooth headset can send a prompt message to the electronic device 1, prompting that the Bluetooth headset is currently available, and then the electronic device 1 receives the prompt message, and directly switches the audio to the Bluetooth headset channel, and transmits the media audio stream to the Bluetooth headset through the ACL link based on the A2DP specification. Accordingly, the Bluetooth headset receives the media audio stream and outputs the media audio stream. In strategy one, the Bluetooth headset can intelligently switch the media service and the call service initiated by the two electronic devices, and can improve the audio playing effect when multiple electronic devices share the Bluetooth headset.

[0400] ​Strategy two: switching according to user demand. When the Bluetooth headset is in the idle state, the Bluetooth headset can send a prompt message to the electronic device 1, prompting whether to switch the audio to the Bluetooth headset. After receiving the prompt message, the electronic device 1 displays the prompt message, and if a user's confirmation switching operation is received, the audio is switched to the Bluetooth headset channel (i.e., the Bluetooth headset channel is enabled), and the media audio stream is transmitted to the Bluetooth headset through the ACL link based on the A2DP specification. In strategy two, the Bluetooth headset can switch the media service and the call service initiated by the two electronic devices according to the actual demand of the user. Such an audio service switching strategy can meet the actual use demand of the user and improve the user experience.

[0401] Figure 13A to 13D respectively, the application scenarios of the audio control method shown in Figure 12 The application scenarios of the audio control method shown in Figure 12 and Figure 13A to 13D The application scenarios of the audio control method shown in

[0402] As shown in Figure 13A If a user clicks a media application icon on the electronic device 1 to trigger the playing of song 1, 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 in response to the operation of the user. 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 in the selected state, 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 that 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 be in a bright screen state or a dark screen state. The electronic device 2 can display a prompt message at this time, prompting that the audio sound output channel has been switched from the Bluetooth headset channel to the local sound output channel.

[0403] Further, as shown in Figure 13BAs shown, if electronic device 2 initiates a call, such as answering or making a call, it will seize the Bluetooth headset and output the call audio stream through the headset. The A2DP specification between the Bluetooth headset and electronic device 1 does not need to be deactivated. Electronic device 2 can display a call control interface, including but not limited to a headset icon 40, which indicates that the call audio is currently being output through the Bluetooth headset. Correspondingly, electronic device 1 determines that the currently processed media service is a type 2 service and therefore pauses the media service (pauses playback of song 1). Furthermore, electronic device 1 can display a prompt asking the user whether to switch the currently playing media audio to playback on the device itself or through a speaker. If the user selects "speaker" to confirm switching the audio to speaker playback, electronic device 1 can respond to the user's action and play song 1 through the speaker.

[0404] Furthermore, such as Figure 13C As shown, if the call on 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 headset playback. Accordingly, electronic device 1 can display this prompt message, and if the user selects "Yes" to confirm switching the audio to headset playback, then... Figure 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 via the ACL link based on the A2DP specification. Electronic device 2 can then display a notification message indicating that the audio output channel has been switched from the Bluetooth headset channel to its own output channel.

[0405] Furthermore, if electronic device 1 stops media services, it will stop transmitting media audio streams to the Bluetooth headset. Since neither electronic device 1 nor electronic device 2 has audio services, the Bluetooth headset returns to an idle state. In this case, the Bluetooth headset in the idle state maintains both A2DP and HFP connections with both electronic devices 1 and 2.

[0406] <Third Solution> The audio control method based on the third solution in the second scenario is described below. In the process of implementing the audio control method based on the third solution, the Bluetooth headset can be "reclaimed" according to the user's operation. In this way, the Bluetooth headset can reasonably switch the audio services of different electronic devices during business concurrency and ensure normal audio stream output.

[0407] Figure 14 This diagram illustrates a process for switching audio services using a Bluetooth headset based on a third-party solution when the headset is connected to both electronic device 1 and electronic device 2. Figure 12 ,like Figure 14 As shown, both the Bluetooth headset and electronic devices 1 and 2 have activated the A2DP and HFP specifications.Figure 14 As shown, the audio control method can include the following steps S341-S351. For the description of steps S341-S346, please refer to the description of the above-mentioned Figure 12

[0408] S347, the electronic device 1 receives a user operation, and in response to the user operation, enables the Bluetooth headset channel and transmits the media audio stream to the Bluetooth headset.

[0409] In the process that the electronic device 1 has initiated the playing of the voice or media service, the electronic device 1 pops up the audio control interface in response to a user operation (e.g. a pull-down menu or a status bar); or the electronic device 1 can pop up the audio control interface in response to a user operation of ordering an audio or video service. The audio control interface includes the audio channels available to the electronic device 1, such as the "local" item and the "Bluetooth headset" item, etc. If the electronic device 1 receives a user selection operation of 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, notifying the user to manually seize the Bluetooth headset channel.

[0411] S349, the electronic device 2 displays the 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 the 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, notifying the user to manually seize the Bluetooth headset channel.

[0414] Similar to the second scheme, the electronic device 1 first initiates the media service and seizes the Bluetooth headset. Then, the electronic device 2 initiates the call service and directly seizes the Bluetooth headset. In this case, the electronic device 1 can determine the type of the media service currently being processed, and then determine whether to continue the current service or pause the current service according to the type of the service.

[0415] ​In the third scheme, if the electronic device 1 receives a third operation of the user selecting the "Bluetooth earphone item" in the audio control interface, the electronic device 1 can switch the audio to the Bluetooth earphone channel, i.e., "reoccupy" the Bluetooth earphone channel, and then the electronic device 1 can output the media audio stream through the Bluetooth earphone. Moreover, the Bluetooth earphone sends a prompt message to the electronic device 2, prompting that the Bluetooth earphone is manually occupied by the user, and asking whether the user agrees to switch the audio to the local earphone 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 earphone. Further optionally, if the electronic device 1 receives a fourth operation of the user disagreeing to switch the audio to the local channel, the electronic device 2 can switch the audio to the Bluetooth earphone channel, i.e., "reoccupy" the Bluetooth earphone channel, and then the electronic device 2 transmits the call audio stream to the Bluetooth earphone through the SCO link based on the HFP specification. In this way, similarly to the above implementation manner, the Bluetooth earphone sends a prompt message to the electronic device 1, prompting that the Bluetooth earphone is manually occupied by the user, and asking whether the user agrees to switch the audio to the local earphone channel.

[0416] Figure 15A-15D are respectively combined with the application scenarios of the audio control method shown in Figure 14 . The application scenarios of the audio control method provided in the third scheme of the embodiments of the present application are described exemplarily below in combination with Figure 14 and Figure 15A-15D .

[0417] As shown in Figure 15A , the electronic device 1 and the electronic device 2 are both connected with the Bluetooth earphone. It is assumed that the electronic device 1 plays song 1 through the local device, and the electronic device 2 initiates a call service and occupies the Bluetooth earphone. The earphone identifier 30 in the call control interface displayed by the electronic device 2 is used to indicate that the current media audio stream is output through the earphone. If the electronic device 1 receives an operation of the user on the "Bluetooth earphone" item in the audio management interface, the electronic device 1 can occupy the Bluetooth earphone and play song 1 through the Bluetooth earphone. At this time, as shown in Figure 15B , the electronic device 2 can display a prompt message 31, or as shown in Figure 15C , the call control interface displayed by the electronic device 2 can display an audio switching interface 33 in a pop-up manner, prompting that the call voice of the electronic device 2 is switched from the Bluetooth earphone to the earpiece sound channel. Exemplarily, the audio switching interface 33 can include but is not limited to a "loudspeaker" item, an "earpiece" item and a "Bluetooth earphone" item. The "earpiece" item is in a selected state, used to prompt that the call voice of the electronic device 2 is currently output through the earpiece. Correspondingly, the call control interface can also display an earpiece identifier 32, used to prompt that the call voice is currently output from the earpiece. If no operation of the user is received within a preset time length, the electronic device 2 can hide the audio switching interface 33.

[0418] In a possible implementation, as shown in Figure 15C 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, to seize the Bluetooth headset channel.

[0419] In another possible implementation, in the case of hiding the audio switching interface 33, the user can click the earpiece icon 32 on the call control interface of the electronic device 2 to call out the audio switching interface 33. As shown in Figure 15C if the user selects the "Bluetooth headset" item, the electronic device 2 seizes the Bluetooth headset channel, transmits the media audio stream of the song 2 to the Bluetooth headset based on the A2DP specification through the ACL link, and outputs the media audio stream of the song 2 through the Bluetooth headset. Further, as shown in Figure 15D the earphone icon 30 is switched to display in the call control interface of the electronic device 2, indicating that the current media audio stream is output through the Bluetooth headset; the electronic device 1 can display a prompt message at this time, prompting to switch the currently played media audio to the local or sound box for the user to select. In this way, the user can manually seize the Bluetooth headset channel according to actual needs, and trigger the Bluetooth headset to switch the audio service. As can be seen from the third scheme, the Bluetooth device follows a seizure strategy that gives priority to user operations.

[0420] In the third scheme, the Bluetooth headset can intelligently switch the media service and the call service initiated by the two electronic devices according to user operations, which can improve the audio playing effect when multiple electronic devices share the Bluetooth headset.

[0421] The third scenario: the service concurrency scenario of

call service + call service

[0422] In the third scenario, it is assumed that the electronic device 1 initiates the call service first, and the electronic device 2 initiates the call service later. For call services of the same priority, the latter call service can have priority over the former call service to seize the headset 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 respectively, the third scenario is also described exemplarily based on the first scheme, the second scheme and the third scheme respectively below.

[0423] The first scheme is described below. The audio control method based on the first scheme in the third scenario can deactivate / reactivate the A2DP specification during the process of implementing the audio control method, so that the Bluetooth headset can reasonably switch the audio services of different electronic devices in service concurrency and can ensure normal output of the audio stream.

[0424] Figure 16A flowchart for implementing the Bluetooth headset switching audio service based on the first scheme when the Bluetooth headset is connected with both the electronic device 1 and the electronic device 2 is shown. As shown in Figure 16 , the Bluetooth headset activates the A2DP specification and the HFP specification with the electronic device 1, and activates the A2DP specification and the HFP specification with the electronic device 2. The initial state of the Bluetooth headset is the idle state.

[0425] As shown in Figure 16 , if the electronic device 1 initiates a call service, such as answering a call or making a call, the electronic device 1 transmits a 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] Further, if the electronic device 2 receives an incoming call signal, the electronic device 2 displays an incoming call interface and sends an incoming call prompt tone to the Bluetooth headset. At this time, the Bluetooth headset can output the first call audio stream and the incoming call prompt tone, i.e., a mixed sound occurs. The user can select to answer or reject the incoming call on the incoming call interface of the electronic device 2, wherein the rejection does not affect the call service state of the electronic device 1.

[0427] Further, if the user selects to answer the incoming call of the electronic device 2, the electronic device 2 can transmit a 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 the electronic device 1. In this case, the electronic device 1 can switch the state of the current call service to a call on-hold, and after the call service of the electronic device 2 ends (e.g., the user hangs up the call), the electronic device 2 stops transmitting the call audio stream to the Bluetooth headset, and the Bluetooth headset is in the idle state. The Bluetooth headset can send a prompt message to the electronic device 1, prompting that the Bluetooth headset channel is available. The electronic device 1 can directly switch the call on-hold state to the call answering state according to the received prompt message, and transmit the first call audio stream to the Bluetooth headset through the SCO link, so that the Bluetooth headset can continue to process the call service of the electronic device 1, i.e., the electronic device 1 can continue to output the first call audio stream through the Bluetooth headset. If the call service of the electronic device 1 ends, the electronic device 1 stops transmitting the call audio stream to the Bluetooth headset. At this time, the Bluetooth headset is in the idle state, and the Bluetooth headset can reactivate the A2DP specification with the electronic device 1 and the electronic device 2, so that the Bluetooth headset can process the audio service initiated by any electronic device in the Bluetooth connection state at any time.

[0428] Figure 17A to 17D are respectively schematic diagrams of application scenarios of the audio control method shown in Figure 16 . The following describes the application scenarios of the audio control method shown in Figure 16 and Figure 17A to 17DThe following describes, exemplarily, the application scenarios of the audio control method provided in the embodiments of this application.

[0429] like Figure 17A As shown, electronic device 1 initiates a call and outputs voice communication via a Bluetooth headset. The A2DP specification between the Bluetooth headset and electronic device 2 is deactivated. Electronic device 1 can display a call control interface, including but not limited to a headset icon 40, which indicates that the voice communication of electronic device 1 is currently being output via the Bluetooth headset. At this time, the Bluetooth headset is preempted by electronic device 1, and electronic device 2 can display a message prompt indicating to the user that the audio output channel has been switched from the Bluetooth channel to the device's own output channel.

[0430] Furthermore, such as Figure 17B As shown, if electronic device 2 receives a call, it notifies the Bluetooth headset of the incoming call and displays the caller ID. At this time, the Bluetooth headset can simultaneously output the voice recording from electronic device 1 and the call notification tone from electronic device 2.

[0431] Furthermore, if the user chooses to answer the call, then... Figure 17C As shown, electronic device 2 displays a call control interface, including but not limited to a headset icon 40, which indicates that the call voice of electronic device 2 is currently being output via a Bluetooth headset. Accordingly, as... Figure 17B As shown, the call service of electronic device 1 is switched to a call hold or waiting state. Alternatively, the call audio of electronic device 1 is automatically switched to the local output channel (e.g., handset) for output, such as... Figure 17C As shown in the earpiece identifier 41, the earpiece identifier 41 is used to indicate that the voice of the electronic device 1 is currently being output through the earpiece.

[0432] Furthermore, such as Figure 17D As shown, if the call on electronic device 2 ends, the Bluetooth headset will automatically switch to handle the call on electronic device 1 and notify electronic device 1 that the current call audio has been switched to the headset. Alternatively, the Bluetooth headset can send a prompt message to electronic device 1, asking whether to switch the current call audio to the headset; correspondingly, electronic device 1 can display this prompt message, and if the user selects "yes" to confirm switching the audio to the headset, electronic device 1 will output the call audio through the Bluetooth headset.

[0433] Furthermore, when neither electronic device 1 nor electronic device 2 has any audio service, the Bluetooth headset returns to the idle state. In this case, the Bluetooth headset can reactivate the A2DP connection with both electronic device 1 and electronic device 2. The Bluetooth headset maintains both A2DP and HFP connections with both electronic device 1 and electronic device 2, allowing the Bluetooth headset to handle audio services initiated by either electronic device in Bluetooth-connected mode at any time.

[0434] In the first scheme, as soon as the electronic device 1 establishes a voice call service with the earphone, the A2DP connection of the electronic device 2 is disconnected, and at this time, the audio playing service of the electronic device 2 is output through the earphone. When the electronic device 2 has an incoming call, the incoming call reminder can still be received on the earphone, and the call can be answered on the electronic device 2 or the earphone. After the call of the electronic device 2 is ended, the call of the electronic device 1 can be restored to be output through the earphone. Compared with the case that the audio stream cannot be normally output when the related services are concurrent, the scheme provided in the embodiment of the application can ensure that the incoming calls of the two mobile phones are not missed.

[0435] <Second scheme> The audio control method based on the second scheme in the third scenario is described below. In the process of implementing the audio control method based on the second scheme, the A2DP specification does not need to be deactivated / reactivated. Instead, the Bluetooth earphone sends a message to the preempted electronic device to inform that the Bluetooth earphone is preempted, and then the electronic device disables the Bluetooth earphone channel according to the notification message and automatically switches to the secondary sound output channel. In this way, the Bluetooth earphone can reasonably switch the audio services of different electronic devices when the services are concurrent, and can ensure that the audio stream is normally output.

[0436] Figure 18 A flowchart of switching the audio service of the Bluetooth earphone based on the second scheme when the Bluetooth earphone is connected with the electronic device 1 and the electronic device 2 is shown. As shown in Figure 18 , the Bluetooth earphone activates the A2DP specification and the HFP specification with the electronic device 1, and activates the A2DP specification and the HFP specification with the electronic device 2. The initial state of the Bluetooth earphone is an idle state.

[0437] As shown in Figure 18 , if the electronic device 1 initiates a call service, the electronic device 1 can transmit a first call audio stream to the Bluetooth earphone and output the first call audio stream through the Bluetooth earphone. Different from the flowchart shown in Figure 16 , the A2DP specification between the Bluetooth earphone and the electronic device 1 does not need to be deactivated.

[0438] Further, if the electronic device 2 receives an incoming call, the electronic device 2 sends an incoming call prompt tone to the Bluetooth earphone, or the electronic device 2 notifies the Bluetooth earphone of the incoming call, triggering the Bluetooth earphone to call and play a locally pre-stored incoming call prompt tone. At this time, the Bluetooth earphone can output the first call audio stream and the incoming call prompt tone, that is, the mixing of the audio streams occurs.

[0439] Further, if the user selects to answer the incoming call of the electronic device 2, the electronic device 2 can transmit a second call audio stream to the Bluetooth earphone and output the second call audio stream through the Bluetooth earphone. Different from the flowchart shown in Figure 16The difference between the shown flow is that the Bluetooth headset does not need to deactivate the A2DP profile 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 a telephone 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 voice 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.

[0440] Further, after the call service of the electronic device 2 ends (for example, the user hangs up the phone), the 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 the electronic device 1 to prompt that the Bluetooth headset channel is available. The electronic device 1 can switch the telephone call hold state to the telephone call receiving 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 the electronic device 1 ends, the 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 the electronic device 1 and the electronic device 2, so that the Bluetooth headset can process the audio service initiated by any electronic device in the Bluetooth connection state at any time.

[0441] The third scenario is described below. In the third scenario, the audio control method is implemented based on a third scheme. In the process of implementing the audio control method based on the third scheme, the Bluetooth headset can be "reclaimed" according to user operations, so that the Bluetooth headset can reasonably switch the audio service of different electronic devices when the services are concurrent and can ensure that the audio stream is normally output.

[0442] In the third scheme, the Bluetooth headset activates the A2DP profile and the HFP profile with the electronic device 1 and the electronic device 2. Similar to the second scheme, the electronic device 1 initiates a call service and occupies the Bluetooth headset. Then, the electronic device 2 initiates a call service and directly occupies the Bluetooth headset.

[0443] Optionally, the electronic device 1 as the pre-empted party can determine the type of the current service, and then determine whether to continue the current service or suspend the current service according to the type of the service. For example, if the pre-empted party device detects that the current service is a call service, the pre-empted party device can maintain the call according to a preset strategy, and switch the outgoing sound channel to the local outgoing channel. Alternatively, the pre-empted party device can switch the outgoing sound channel to the local outgoing channel, and then output the call voice through the local outgoing channel. Optionally, the pre-empted party device can also display a message prompt box to prompt that the current audio outgoing channel has been switched from the earphone channel to the earpiece outgoing channel. Alternatively, the pre-empted party device can also display an audio switching interface to prompt the user whether to agree to switch the current audio outgoing channel to the earpiece outgoing 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 outgoing channel.

[0444] As shown in Figure 19A , the electronic device 1 as the pre-empted party can display a prompt box 42 to prompt that the audio outgoing channel has been switched from the Bluetooth earphone channel to the local outgoing channel. The earpiece identifier 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 earphone. The earphone identifier 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 earphone. At this time, the electronic device 1 can display a prompt message 42 to prompt that the audio outgoing channel has been switched from the Bluetooth earphone channel to the local outgoing channel.

[0445] As shown in Figure 19B , the call service of the electronic device 1 as the pre-empted party is switched to a telephone call hold state. The user can select the earpiece identifier 41 in the call control interface to trigger the device 1 to display an audio switching interface 43, and then if the user selects the "Bluetooth earphone" item in the audio switching interface 43, the electronic device 1 can switch the audio to the Bluetooth earphone channel, i.e., "reclaim" the Bluetooth earphone channel, and then the electronic device 1 can output the call voice through the Bluetooth earphone. As shown in Figure 19C , the call service of the electronic device 2 as the pre-empted party is switched to a telephone call hold state. The user can select the earpiece identifier 41 in the call control interface to trigger the device 2 to display an audio switching interface 43, and then if the user selects the "Bluetooth earphone" item in the audio switching interface 43, the electronic device 2 can switch the audio to the Bluetooth earphone channel, i.e., "reclaim" the Bluetooth earphone channel, and then the electronic device 2 can output the call voice through the Bluetooth earphone. In this way, similar to the above implementation manner, the user can trigger the pre-emption of the Bluetooth earphone channel by the electronic device according to actual use requirements. Figure 19C

[0446] ​Optionally, the related art Bluetooth headset does not support mixing of two A2DP audios or mixing of a telephone and A2DP audio, and the embodiment of the present application can realize mixing of A2DP audio stream and local prompt tone. The following describes two implementation manners provided by the embodiment of the present application.

[0447] The scheme supports mixing of audios of two mobile phones, and requires that the Bluetooth headset and the mobile phone first negotiate the capability of supporting mixing, including confirming signaling interaction capability, decoding capability, and mixing manner supported. It should be noted that the mobile phone can be configured with the type or application of prompt tone notification for the Bluetooth headset.

[0448] Sub-scheme 1: mixing using a locally pre-stored prompt tone of the Bluetooth headset. As shown in Figure 20 When the Bluetooth headset and the electronic device 1 are in an audio service and the Bluetooth headset disconnects the A2DP connection with the electronic device 2, if the electronic device 2 initiates an audio service, for example, a prompt tone, the electronic device 2 can notify the Bluetooth headset through a prompt tone message, and the Bluetooth headset can locally call the prompt tone and mix it with the current audio service.

[0449] Sub-scheme 2: transmitting a prompt tone of the electronic device to the Bluetooth headset for mixing. As shown in Figure 21 When the Bluetooth headset and the electronic device 1 are in an audio service, if the electronic device 2 supports the interaction capability of audio mixing signaling, the A2DP connection between the Bluetooth headset and the electronic device 2 can be continuously connected. The Bluetooth headset can notify the electronic device of the mixing audio type supported by the Bluetooth headset, or the electronic device can be configured as the mixing audio type supported by the Bluetooth headset. If the electronic device 2 has an audio service that meets the support condition, 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 the electronic device 1 and the Bluetooth headset are in a call, the incoming call of the electronic device 2 is a virtual call type, such as a voice call, a 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 sound on the Bluetooth headset side, but to be answered on the electronic device 2.

[0451] In the embodiment of the present application, the audio control method under multiple connections provided by the embodiment of the present application is used when the Bluetooth headset and the electronic device 1 establish a first type of audio service, and the audio service strategy with the electronic device 2 is determined.

[0452] 1. If the Bluetooth headset and the electronic device 1 are in a voice call service or in a music, video, or game type continuous service, the Bluetooth headset can not accept A2DP audio preemption of the electronic device 2, and actively disconnects the A2DP connection with the electronic device 2. At this time, the Bluetooth headset can accept voice call services of the electronic device 2.

[0453] 2、The audio service type detection method can include: the electronic device actively informs the Bluetooth earphone of the audio service type, the Bluetooth earphone determines whether to disconnect the second audio; and the Bluetooth earphone determines whether the second audio is a continuous audio service through delay.

[0454] 3、When the service of the electronic device 1 ends, the Bluetooth earphone can actively reestablish the A2DP connection with the electronic device 2.

[0455] 4、The Bluetooth earphone recovery audio service method includes: the Bluetooth earphone records the previous audio state, and after the A2DP connection is recovered, the Bluetooth earphone can first wait for the electronic device to actively initiate the service, and if the electronic device does not initiate, the Bluetooth earphone initiates actively.

[0456] 5、In the case that the Bluetooth earphone and the electronic device support negotiation and signaling interaction about audio capability, the operation of continuously playing A2DP can be extended, and multiple audio mixing can be performed on the Bluetooth earphone side.

[0457] When the electronic device 1 and the electronic device 2 share the same Bluetooth earphone, the Bluetooth earphone can not only play audio information in the electronic device 1, but also play audio information in the electronic device 2. Therefore, the user usually does not use the Bluetooth earphone to connect the electronic device of others based on the consideration of protecting his own and others' privacy. That is, the electronic device 1, the electronic device 2 and the Bluetooth earphone usually belong to the same user, which is referred to as the machine owner in the embodiment. However, in actual use, the machine owner can lend the electronic device 1 and the Bluetooth earphone to others (referred to as non-machine owner in the embodiment) for use, and only use the electronic device 2. In this scenario, when the electronic device 2 receives a call service (such as incoming call / outgoing call), the electronic device 2 will inform the Bluetooth earphone of the call service, and since the non-machine owner can listen to the phone through the Bluetooth earphone, it may cause the call privacy of the machine owner to be leaked.

[0458] The following will be described in detail in the case that the electronic device 1 is a tablet computer and the electronic device 2 is a mobile phone, in the concurrent scenario of

media service and call service

[0459] Figure 22 is a schematic diagram of an application scenario of the Bluetooth earphone provided by an embodiment of the present application. As shown in Figure 22As shown, the Bluetooth earphone is connected with the tablet computer and the mobile phone through Bluetooth at the same time, that is, the tablet computer and the mobile phone share the Bluetooth earphone. At present, the tablet computer is playing a video, and based on the A2DP connection with the Bluetooth earphone, the sound in the video is played through the Bluetooth earphone. At this time, when the mobile phone is incoming / outgoing, the mobile phone will preempt the Bluetooth earphone to perform the call service because the priority of the call service is higher than the priority of the media service. Specifically, the Bluetooth earphone can disconnect the A2DP connection or the ACL link with the tablet computer, and establish the HFP connection with the mobile phone to cooperate with the mobile phone to perform the call.

[0460] Regarding the Bluetooth earphone cooperating with the mobile phone to perform the call, specifically, when the mobile phone is incoming, the mobile phone performs the incoming call reminder locally, and establishes the HFP connection with the Bluetooth earphone to control the Bluetooth earphone to perform the incoming call reminder. The way in which the mobile phone performs the incoming call reminder can be displaying the incoming call interface, playing the incoming call prompt sound (also called ringing), vibrating, etc., and the way in which the Bluetooth earphone performs the incoming call reminder can be ringing, flashing the indicator light, etc. After the incoming call reminder, the user can answer / reject the call through the mobile phone, or can answer / reject the call through the Bluetooth earphone. After the call is connected, the current call is defaulted to be performed through the Bluetooth earphone.

[0461] When the mobile phone is outgoing, the mobile phone performs the outgoing call reminder locally, and establishes the HFP connection with the Bluetooth earphone to control the Bluetooth earphone to perform the outgoing call reminder. The way in which the mobile phone performs the outgoing call reminder can be displaying the outgoing call interface, playing the outgoing call prompt sound (for example, “Ding~Ding~Ding~”, etc.), etc. The way in which the Bluetooth earphone performs the outgoing call reminder is playing the outgoing call prompt sound. After the call is connected, the current call is defaulted to be performed through the Bluetooth earphone.

[0462] Based on Figure 22 As shown in the scenario, it is assumed that the owners of the Bluetooth earphone, the tablet computer and the mobile phone are all user A, and user A lends the Bluetooth earphone and the tablet computer to user B to watch a video, and only uses the mobile phone. Then, during the process in which user B watches the video through the Bluetooth earphone, after the Bluetooth earphone is preempted by the mobile phone when the mobile phone is incoming / outgoing, the Bluetooth earphone not only performs the call reminder (including the incoming call reminder and the outgoing call reminder), but also cannot play the sound in the video, which causes user B to be unable to normally watch the video, and the user experience is poor.

[0463] In addition, for the scenario of the mobile phone being incoming, the Bluetooth earphone has the capability of answering / rejecting the call according to the user operation after ringing. If user B answers the call of user A through the Bluetooth earphone, the privacy of user A can be leaked because the current call is defaulted to be performed through the Bluetooth earphone. For the scenario of the mobile phone being outgoing, during the process in which the Bluetooth earphone plays the outgoing call prompt sound, after the call is answered by the other party, the privacy of user A can also be leaked because the current call is defaulted to be performed through the Bluetooth earphone, and actually user B communicates with the other party through the Bluetooth earphone.

[0464] Therefore, this application provides a call method in which a mobile phone determines whether to use a Bluetooth headset to perform a call based on whether the user (i.e., the wearer) of the Bluetooth headset is the owner of the phone. When multiple devices share a single Bluetooth headset, the call method provided in this embodiment can protect the owner's call privacy to a certain extent and improve the user experience when non-owners use the Bluetooth headset.

[0465] The call method provided in this embodiment is based on the Bluetooth headset having its person recognition call function enabled (i.e., possessing the person recognition call function). After the Bluetooth headset is bound to the owner, the person recognition call function can be enabled by default, or it can be enabled according to user instructions. In this embodiment, the person recognition call function includes a call answering function and a call dialing function. It should be noted that in this embodiment, if the mobile phone itself supports person recognition call but is not enabled, it is considered that the mobile phone does not have the person recognition call function. If the Bluetooth headset itself supports person recognition call but is not enabled, it is considered that the Bluetooth headset does not have the person recognition call function.

[0466] The following explains the process of enabling the Bluetooth headset's person recognition call function based on user instructions.

[0467] Figure 23 This is a schematic diagram of the setup process of a Bluetooth headset provided in one embodiment of this application, involving the process of a user operating a mobile phone to enable the person recognition call function of the Bluetooth headset.

[0468] For example Figure 23 As shown in (a), the phone's home screen displays icons for various applications (Apps), including "Clock," "Calendar," "Gallery," "Settings," "Browser," and "Smart Life." When the phone detects a user's interaction with the "Settings" icon on the home screen, it displays the settings interface.

[0469] For example Figure 23 As shown in (b), the settings interface includes "Account" settings, "Wireless Local Area Network (WLAN)" settings, "Bluetooth" settings, "Mobile Network" settings, "Desktop and Wallpaper" settings, and "Display and Brightness" settings. The Bluetooth settings interface is displayed when the phone detects user interaction with the "Bluetooth" settings.

[0470] For example Figure 23As shown in (c) of FIG. 1, the Bluetooth setting interface includes an on control icon of the Bluetooth, a name of the mobile phone (such as HUAWEI P40), basic information of the electronic devices (i.e. paired devices) that have been paired with the mobile phone (such as Bluetooth earphone FreeBuds3, mobile phone 1, mobile phone 2, etc.), and basic information of the electronic devices (i.e. available devices, such as smart watch, Bluetooth speaker) that can be searched by the mobile phone but have not been paired. When the mobile phone detects the operation of the user on the setting icon of the Bluetooth earphone, the earphone setting interface is displayed.

[0471] For example Figure 23 As shown in (d) of FIG. 1, the earphone setting interface includes a "person identification 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 the operation of the user on the "person identification call" setting item, the person identification call setting interface is displayed.

[0472] For example Figure 23 As shown in (e) of FIG. 1, the person identification call setting interface includes an "ear canal identification" setting item, a "bone voiceprint identification" setting item, and a "person identification call" setting item. When the mobile phone detects the operation of the user to turn on the person identification call, the person identification call function of the Bluetooth earphone is enabled.

[0473] In the embodiments, the operation of the user on the icons, options, setting items, etc. includes touch operations such as single click, double click, multiple clicks, long press, heavy press, drag target sliding, etc.

[0474] In some other embodiments, the setting interface of the mobile phone can also include a "earphone person identification call" setting item, which is used to control the Bluetooth earphones connected with the mobile phone and having the person identification call function to turn on / off the person identification call function. In this way, when the mobile phone connects with different Bluetooth earphones, it is not necessary to turn on / off the person identification call function for each Bluetooth earphone.

[0475] Figure 24 FIG. 2 is a schematic diagram of a setting process of the Bluetooth earphone according to another embodiment of the present application, which relates to a process of setting the owner identification mode of the Bluetooth earphone by the mobile phone according to the operation of the user.

[0476] In the person identification call setting interface, the user can set the mode of identifying the owner of the Bluetooth earphone as the ear canal identification, the bone voiceprint identification, the voice password identification (e.g. "123456") Figure 24The ear canal recognition refers to that the Bluetooth earphone automatically recognizes the ear canal feature of the user through sound waves each time the user wears the Bluetooth earphone, so as to determine whether the user is the owner. The bone voiceprint recognition refers to that the Bluetooth earphone acquires the bone voiceprint information of the verification voice (such as "my earphone") input by the user each time the user wears the Bluetooth earphone, so as to recognize whether the user is the owner. The voice password recognition refers to that the Bluetooth earphone acquires the voice password (such as "123456") input by the user each time the user wears the Bluetooth earphone, so as to recognize whether the user is the owner.

[0477] Taking the ear canal recognition as an example, as shown in (a) of FIG. 13, after the mobile phone detects the operation of the user starting the ear canal recognition, the mobile phone displays an ear canal feature acquisition interface as shown in (b) of FIG. 13, which includes a "start recording" icon. After the mobile phone detects the operation of the user on the "start recording" icon, the mobile phone controls the Bluetooth earphone to acquire and store the ear canal feature information of the user. After the Bluetooth earphone successfully records the ear canal feature information, the Bluetooth earphone notifies the mobile phone of the completion of the recording. For example, as shown in (c) of FIG. 13, after the mobile phone determines that the Bluetooth earphone completes the recording of the ear canal information, the mobile phone displays prompt information "recording completed" and a "confirm" icon. After the mobile phone detects the operation of the user on the "confirm" icon, the recording of the ear canal information ends. Figure 24 Figure 24 Figure 24

[0478] In addition, the mobile phone can also control the Bluetooth earphone to record the bone voiceprint information, voice password information and the like of the user according to the user's instruction. The specific recording method can refer to the recording process of the ear canal feature shown in FIG. 13, and details are not described herein. Figure 24

[0479] The person recognition call function is usually realized through the private protocol of the supplier of the mobile phone and the Bluetooth earphone. Therefore, among the mobile phones connected with the Bluetooth earphone, some have the person recognition call function and support the related settings, and some mobile phones can not have the person recognition call function and do not support the related settings. Based on this, optionally, the user can also manage and set the Bluetooth earphone through the smart life application installed on the mobile phone, which includes the device connection management (such as establishing / disconnecting the Bluetooth connection with the electronic device) of the Bluetooth earphone, the shortcut operation setting (such as selecting the control instruction corresponding to the left / right Bluetooth earphone by double-clicking), and the starting / closing of the person recognition call function of the Bluetooth earphone, the selection of the owner recognition mode and the like. It can be understood that through the smart life application, even the mobile phone without the person recognition call function can also make the related settings of the Bluetooth earphone.

[0480] ​​​​After the person-recognizing call function of the Bluetooth earphone is opened, when the Bluetooth earphone is connected with the mobile phone and the mobile phone receives or sends a call, the mobile phone and the Bluetooth earphone can execute the call method provided by the embodiment. The call method provided by the embodiment will be described below in combination with the mobile phone with and without the person-recognizing call function.

[0481] Figure 25 The flowchart of the call method provided by the embodiment is related to the process of how the mobile phone with the person-recognizing call function uses the Bluetooth earphone when calling in the case that the mobile phone is connected with the Bluetooth earphone through Bluetooth.

[0482] S2501, the mobile phone and the Bluetooth earphone establish Bluetooth connection.

[0483] The process of establishing Bluetooth connection by the mobile phone and the Bluetooth earphone specifically includes the following contents:

[0484] (1) The mobile phone acts as a master (initiating connection device) to page the Bluetooth earphone as a slave (receiving connection device). Specifically, after the mobile phone scans the basic information (such as earphone address, earphone model, etc.) broadcasted by the Bluetooth earphone, the mobile phone pages the Bluetooth earphone according to the earphone address in a frequency hopping manner according to the user's instruction. The Bluetooth earphone scans externally at a fixed carrier frequency interval and responds after scanning the paging of the mobile phone.

[0485] (2) The asynchronous connectionless ACL link between the mobile phone and the Bluetooth earphone is established according to the link management protocol (LMP).

[0486] (3) The mobile phone and the Bluetooth earphone establish channel connection (channel link) according to the logical link control and adaptation protocol (L2CAP).

[0487] (4) The mobile phone queries the supported profiles (such as A2DP, HFP, etc.) of the Bluetooth earphone by using the session description protocol (SDP), so as to establish application connection.

[0488] S2502, the Bluetooth earphone identifies whether the user of the Bluetooth earphone is the owner.

[0489] In some embodiments, when the Bluetooth earphone and the mobile phone are associated with the same account, the Bluetooth earphone identifies whether the user of the Bluetooth earphone is the owner. This is because when multiple electronic devices share one Bluetooth earphone, although the owner usually only uses the Bluetooth earphone to connect his own electronic device, it cannot be ruled out that the Bluetooth earphone is connected to the electronic device of a non-owner. Therefore, the Bluetooth earphone needs to determine whether the electronic device connected to it is the electronic device of the owner. Specifically, when the mobile phone and the Bluetooth earphone are associated with the same account, the mobile phone is considered to belong to the owner, and the call method provided in this embodiment is executed. When the mobile phone and the Bluetooth earphone are associated with different accounts, the mobile phone is considered not to belong to the owner, and the Bluetooth earphone will control the electronic device of the non-owner, so the call method provided in this embodiment is not executed.

[0490] In other embodiments, it can also be determined whether the Bluetooth earphone and the mobile phone are associated with the same account, that is, whether the mobile phone is the mobile phone of the owner, the call method provided in this embodiment is executed.

[0491] For the Bluetooth earphone, the Bluetooth earphone performs owner identification in different ways according to different user settings. For example, the owner identification method can be ear canal recognition, bone voiceprint recognition, voice password recognition, etc., and the specific implementation of this embodiment is not limited.

[0492] Ear canal recognition is based on the ear canal characteristics of the user to determine whether the user is the owner. Specifically, after the user wears the Bluetooth earphone, the Bluetooth earphone sends a sound wave to the user's ear canal, which passes through the tympanic membrane of the external ear canal to the middle ear, the inner ear, and then reflects back to the tympanic membrane, forming an acoustic resonance spectrum. Since the ear canal characteristics of each person are different, when the same sound wave propagates in different ear canals, the acoustic resonance spectrum formed by the sound wave has individual differences. The Bluetooth earphone collects the acoustic resonance spectrum and analyzes it. When the acoustic resonance spectrum of the user matches the acoustic resonance spectrum of the owner pre-stored in the Bluetooth earphone, it is confirmed that the user is the owner. When the ear canal characteristic information of the user does not match the acoustic resonance spectrum of the owner pre-stored in the Bluetooth earphone, it is confirmed that the user is not the owner. The ear canal recognition technology is not affected by the motion state of the human body, and can accurately identify the identity of the user even when the user is in an active state.

[0493] Bone conduction recognition determines whether the user is the owner by using bone conduction technology. Specifically, after the user wears the Bluetooth earphone, the Bluetooth earphone can collect bone conduction information of sound waves conducted through the bone when the user speaks a specific word (for example, "my earphone") through a bone conduction sensor (VPU). At the same time, the Bluetooth earphone captures the word information through a microphone, determines the target operation corresponding to the word, and controls the Bluetooth earphone in combination with the bone conduction information and the target operation. For example, when the Bluetooth earphone determines that the word information spoken by the user is "my earphone", it matches the bone conduction information of the word captured by the VPU with the bone conduction information of the word spoken by the owner preset by the Bluetooth earphone. If the two match, it is determined that the user is the owner, and if they do not match, it is determined that the user is not the owner.

[0494] Voice password recognition determines whether the user is the owner by the word information corresponding to the voice. Specifically, after the user wears the Bluetooth earphone, the Bluetooth earphone can capture and recognize the word spoken by the user through a microphone. If the word is the same as the preset word (for example, "123456") stored locally by the Bluetooth earphone, it is determined that the user is the owner; if the word is not the same as the preset word stored locally by the Bluetooth earphone, it is determined that the user is not the owner.

[0495] The Bluetooth earphone triggers owner recognition each time the earphone is worn. If the Bluetooth earphone does not correctly recognize the owner (meaning that the recognition fails, not that the Bluetooth earphone recognizes that the user is not the owner), a pop-up box can be prompted on the mobile phone or a prompt sound can be emitted by the earphone to remind the user of the recognition failure and suggest that the user re-recognize. For example, if the Bluetooth earphone currently uses ear canal recognition, the user can be reminded to adjust the wearing position of the Bluetooth earphone after the recognition fails and re-recognize. If the Bluetooth earphone currently uses bone conduction recognition or voice recognition, the user can be reminded to speak the recognition password again after the recognition fails and re-recognize the owner.

[0496] S2503, the Bluetooth earphone sends an identification function notification to the mobile phone, which includes indication information that the Bluetooth earphone has enabled the identification call function, and the owner recognition result.

[0497] In some embodiments, the Bluetooth earphone can actively send an identification function notification to the mobile phone through the Bluetooth link after completing owner recognition.

[0498] In other embodiments, since the identification call function of the Bluetooth earphone is usually implemented through a preset identification call specification, the mobile phone can also query whether the Bluetooth earphone has the identification call function through an SDP service. After receiving the query message sent by the mobile phone, the Bluetooth earphone can send a response message to the mobile phone, which includes the identification function notification described above.

[0499] S2504, the mobile phone sends a first response message to the Bluetooth headset, the first response message is used to indicate that the mobile phone has the caller identification call function.

[0500] For the Bluetooth headset, it is not sure whether the connected mobile phone has the caller identification call function, therefore, the mobile phone needs to respond after receiving the caller identification function notification. Specifically, when the mobile phone has the caller identification call function, the mobile phone sends a first response message to the Bluetooth headset, the first response message is used to indicate that the mobile phone has the caller identification call function. When the mobile phone does not have the caller identification call function, the mobile phone will not be able to identify the caller identification function notification, therefore, the mobile phone sends a second response message to the Bluetooth headset, the second response message is used to indicate that the mobile phone does not have the caller identification call function.

[0501] S2505, the mobile phone enters a call state, and a call reminder is locally performed.

[0502] The call state includes an incoming call or an outgoing call, and the call reminder includes an incoming call reminder and an outgoing call reminder. When the mobile phone receives a call, the mobile phone locally performs an incoming call reminder, and displays an incoming call interface. In addition, if the mobile phone is not in a mute mode, the mobile phone also performs an incoming call reminder by ringing. If the mobile phone is in a vibration mode, the mobile phone also performs an incoming call reminder by vibrating. When the mobile phone makes a call, the mobile phone locally displays an outgoing call interface to perform an outgoing call reminder. It should be understood that whether the mobile phone ultimately notifies the Bluetooth headset to perform a call reminder or not, the mobile phone locally performs a call reminder to prompt the user that there is an incoming / outgoing call.

[0503] After S2505, when the current user of the Bluetooth headset is not the owner, S2506 is performed, and S2507-S2511 are not performed. When the current user of the Bluetooth headset is the owner, S2506 is not performed, and S2507-S2511 are performed.

[0504] S2506, when the user of the Bluetooth headset is not the owner, the mobile phone locally sounds after the call is connected.

[0505] When the mobile phone makes a call, after the call is connected, the current call is locally sounded.

[0506] When the mobile phone receives a call, the mobile phone can answer the call according to a first answering operation of the user of the mobile phone, and the mobile phone locally sounds after the call is connected. In the embodiment, the first answering operation includes sliding (including up, down, left, and right sliding) an answering icon, clicking the answering icon, holding the mobile phone close to the ear, long-pressing a fingerprint sensor, and the like on the incoming call interface of the mobile phone. After the call is connected, the earpiece of the mobile phone locally plays the call sound of the opposite party, and the microphone of the mobile phone locally collects the sound of the user.

[0507] In addition, the user of the mobile phone can also locally operate the phone call rejection on the mobile phone. For example, the user can reject the phone call by clicking or sliding (including up, down, left, and right) the phone call rejection icon or by pressing the power key arranged on the side wall of the mobile phone.

[0508] In some embodiments, if the user wants to make the current phone call sound on the Bluetooth headset, for example, in the scenario shown in FIG. 8, the user A wants the user B to answer the phone call, the user can manually select, after the phone call is connected, the current phone call to be switched to the Bluetooth headset to sound, otherwise the Bluetooth headset does not sound. Figure 22

[0509] In summary, in the case where the mobile phone has the person recognition phone call function, when the user of the Bluetooth headset is not the owner, the mobile phone only locally performs the phone call reminder when the mobile phone is called or makes a call, and does not notify the Bluetooth headset to perform the phone call service. This method can improve the user experience of the Bluetooth headset when used by the non-owner, and to some extent, avoid the problem that the phone call privacy of the owner is leaked because the phone call is answered by the non-owner.

[0510] Based on this, in combination with the Bluetooth headset application scenario shown in FIG. 8, it can be known that when the user B uses the Bluetooth headset, even if the mobile phone of the user A is called or makes a call, the user experience of the Bluetooth headset of the user B is not affected, and the user B cannot answer the phone call of the mobile phone through the Bluetooth headset, which to some extent, ensures the phone call privacy of the user A. Figure 22

[0511] S2507, when the user of the Bluetooth headset is the owner, the mobile phone sends a phone call message to the Bluetooth headset.

[0512] In this embodiment, the mobile phone sends the phone call message to the Bluetooth headset according to the Attention (AT) command in the HFP protocol, and the phone call message includes the incoming call message or the outgoing call message. When the mobile phone is called, the mobile phone sends the incoming call message to the Bluetooth headset to prompt the user. When the mobile phone makes a call, the mobile phone sends the outgoing call message to the Bluetooth headset to prompt the user. In addition, the phone call message also includes the phone call reminder mode of the Bluetooth headset, for example, playing the audio information carried in the incoming call message to perform the phone call reminder, or playing the preset audio locally of the Bluetooth headset to perform the phone call reminder.

[0513] S2508, the mobile phone sends an eSCO link establishment request to the Bluetooth headset.

[0514] It should be noted that the scheme provided in the embodiments of the present application does not limit the link for the voice call to be the SCO link or the eSCO link, and for the convenience of description, the eSCO link is taken as an example to exemplarily describe the scheme.

[0515] ​​The eSCO link is used to transmit the call audio stream. After the Bluetooth headset establishes the eSCO link with the mobile phone, the Bluetooth headset can transmit the audio information in the call process. It should be understood that, no matter whether the mobile phone is incoming or outgoing, the mobile phone needs to establish the eSCO link with the Bluetooth to transmit the call audio stream. Therefore, the mobile phone needs to actively request the Bluetooth headset to establish the eSCO link when the mobile phone is incoming or outgoing.

[0516] In S2509, the Bluetooth headset accepts the eSCO link establishment request and locally prompts the call.

[0517] After the Bluetooth headset accepts the eSCO link establishment request from the mobile phone, the eSCO link is successfully established, and the Bluetooth headset successfully establishes the HFP connection with the mobile phone. The Bluetooth headset can play the incoming or outgoing call prompt sound of the current call based on the HFP connection with the mobile phone, and the Bluetooth headset can also control the phone function of the mobile phone, such as answering, hanging up, rejecting, voice dialing, and the like.

[0518] In S2510, the Bluetooth headset speaks after the phone is connected.

[0519] When the mobile phone is incoming, the mobile phone can answer the phone according to the first answering operation of the user on the mobile phone locally, or can answer the phone according to the second answering operation of the user on the Bluetooth headset. The Bluetooth headset speaks by default after the current call is connected, and the Bluetooth headset and the mobile phone transmit the call audio stream through the eSCO link. However, if the Bluetooth headset is currently in an unworn state, the current call speaks locally on the mobile phone after being connected.

[0520] In the embodiment, the second answering operation can be double-clicking the left earphone, double-clicking the right earphone, issuing an answering voice instruction (such as the voice "answer the phone"), pressing the phone answering button of the Bluetooth headset, and the like. After the phone is connected, the earpiece of the Bluetooth headset plays the call sound of the opposite side, and the microphone of the Bluetooth headset collects the sound of the user on the local side and sends it to the opposite side through the mobile phone.

[0521] In addition, the call audio stream includes the voice data of the opposite side, the voice data of the user on the local side collected by the Bluetooth headset, and other call audio, such as the incoming call message of a new incoming call in the call process, and the like.

[0522] When the mobile phone is outgoing, when the opposite side connects the phone after the Bluetooth headset is currently worn by the user, the current call speaks on the Bluetooth headset by default, and the Bluetooth headset and the mobile phone transmit the audio information in the call process through the eSCO link. However, if the Bluetooth headset is currently in an unworn state, the current call speaks locally on the mobile phone after being connected.

[0523] In S2511, the mobile phone and the Bluetooth headset transmit the call audio stream through the eSCO link.

[0524] When the call is over, the user can operate the phone to hang up, or operate the Bluetooth headset to hang up, or wait for the other party to hang up. The present embodiment does not limit this.

[0525] Based on the above, when the Bluetooth headset's current user is the owner, the phone can notify the Bluetooth headset to perform the call service through the normal process when the phone is called or makes a call. Since the Bluetooth headset's current user is the owner, the user will not cause the owner's privacy to be revealed after the Bluetooth headset answers the call.

[0526] As described above, in the embodiment shown in Figure 25 In the embodiment shown in FIG. 26, the phone and the Bluetooth headset both have the person-recognizing call function. After the phone enters the call state, the phone decides completely by itself whether to notify the Bluetooth headset of the call to use the Bluetooth headset to perform the call. The following describes how the Bluetooth headset is used when the phone does not have the person-recognizing call function and is connected to the Bluetooth headset through Bluetooth.

[0527] Figure 26 FIG. 26 is a flowchart of a call method provided by another embodiment of the present application, which describes how the Bluetooth headset is used when the phone does not have the person-recognizing call function and is connected to the Bluetooth headset through Bluetooth.

[0528] S2601. The phone and the Bluetooth headset establish a Bluetooth connection.

[0529] S2602. The Bluetooth headset identifies whether the user is the owner.

[0530] S2603. The Bluetooth headset sends a person-recognizing function notification to the phone. The notification includes indication information that the Bluetooth headset has started the person-recognizing call function and the owner identification result.

[0531] S2601-S2603 refer to the description of S2501-S2503 above, and will not be described again in the present embodiment.

[0532] S2604. The phone sends a second response message to the Bluetooth headset. The second response message is used to indicate that the phone does not have the person-recognizing call function.

[0533] The person-recognizing call function of the phone and the Bluetooth headset is usually implemented through a private protocol. When the phone and the Bluetooth headset do not belong to the same supplier, they can not have the person-recognizing call function and can not identify the person-recognizing function notification sent by the Bluetooth headset. Therefore, the phone needs to send the second response message to the Bluetooth headset to notify the Bluetooth headset that the phone does not have the person-recognizing call function.

[0534] S2605, the mobile phone enters a call state, and the mobile phone locally prompts a call.

[0535] In the embodiment, S2605 can refer to the description of S2505, and the embodiment will not be repeated here.

[0536] S2606, the mobile phone sends a call message to the Bluetooth headset.

[0537] In the embodiment, since the mobile phone does not have the person-recognizing call function, the mobile phone does not actively select whether to use the Bluetooth headset to call according to whether the current user of the Bluetooth headset is the owner, but actively selects to use the Bluetooth headset to call after entering the call state, and sends the call message to the Bluetooth headset. The specific content of the call message can refer to S2507, and the embodiment will not be repeated here.

[0538] S2607, the mobile phone sends an eSCO link establishment request to the Bluetooth headset.

[0539] In the embodiment, S2607 can refer to the description of S2508, and the embodiment will not be repeated here.

[0540] After S2607, when the current user of the Bluetooth headset is not the owner, S2608-S2609 are executed, and S2610-S2612 are not executed. When the current user of the Bluetooth headset is the owner, S2608-S2609 are not executed, and S2610-S2612 are directly executed.

[0541] S2608, when the mobile phone does not have the person-recognizing call function, and the user of the Bluetooth headset is not the owner, 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 of the mobile phone and the Bluetooth headset fails, and the HFP connection also fails. When the mobile phone rings or goes off-hook, the Bluetooth headset will not prompt a call, the user cannot answer, reject or hang up the phone through the Bluetooth headset, and can only answer, reject or hang up the phone on the mobile phone.

[0543] S2609, after the phone is connected, the mobile phone locally sounds.

[0544] In the embodiment, S2609 can refer to the description of S2506, and the embodiment will not be repeated here.

[0545] Based on the above, although the mobile phone does not have the person-recognizing call function, the method provided in this embodiment can also achieve that when the earphone user is not the machine owner, the mobile phone call / outgoing call only gives a local call reminder, and the Bluetooth earphone does not give a call reminder. This method not only improves the use experience of the non-machine owner using the Bluetooth earphone, but also to some extent avoids the problem of the machine owner's call privacy being leaked due to the phone being answered by the non-machine owner.

[0546] Based on this, in combination with the Bluetooth earphone application scenario shown in Figure 22 Based on this, in combination with the Bluetooth earphone application scenario shown in

[0547] S2610, when the mobile phone does not have the person-recognizing call function and the earphone user is the machine owner, the Bluetooth earphone accepts the eSCO link establishment request and gives a local call reminder.

[0548] In S2610, the Bluetooth earphone accepts the eSCO link establishment request and gives a local call reminder. For details, please refer to S2509, which will not be repeated here.

[0549] S2611, after the phone is connected, the Bluetooth earphone speaks.

[0550] S2612, the Bluetooth earphone and the mobile phone transmit the call audio stream through the eSCO link.

[0551] Specifically, S2611-S2612 please refer to S2510-S2511, which will not be repeated here.

[0552] Based on the above, through the method provided in this embodiment, in the case that the mobile phone does not have the person-recognizing call function, the mobile phone automatically selects to use the Bluetooth earphone for call after entering the call state by using the conventional method, and the Bluetooth earphone decides whether to establish the HFP connection according to whether the earphone user is the machine owner, and cooperates with the mobile phone for call. This includes that when the user of the Bluetooth earphone is the machine owner, the Bluetooth earphone is used for cooperation call. And when the wearer of the Bluetooth earphone is not the machine owner, the HFP specification is not activated, and the Bluetooth earphone is not used for cooperation call. At the same time, the user cannot operate the current call on the Bluetooth earphone side, so as to avoid the user answering the phone of the machine owner and causing the call privacy of the machine owner to be leaked.

[0553] In summary, it can be seen that in Figure 26In the embodiment shown, when the mobile phone does not have the person-recognizing call function, but the Bluetooth headset has the person-recognizing call function, the mobile phone uses the headset according to the normal headset use flow after entering the call state, and the Bluetooth headset decides whether to locally perform the call reminding and whether to cooperate with the mobile phone to call according to the owner recognition result.

[0554] In some embodiments, the Bluetooth headset can independently determine whether to perform the call service cooperating with the mobile phone, and Figure 26 In the technical solution provided, S2603 and S2604 can also be not performed respectively. The mobile phone requests the Bluetooth headset to establish the eSCO link according to the normal call flow after entering the call state, and the Bluetooth headset completely independently decides whether to accept the request to cooperate with the mobile phone to call regardless of whether the mobile phone has the person-recognizing call capability.

[0555] In addition, in some other embodiments, on the basis that the mobile phone itself supports the person-recognizing call, the user can also set whether to start the person-recognizing call function of the mobile phone in the mobile phone. If the user starts the person-recognizing call function of the mobile phone, it indicates that the user wants to perform the privacy reminding for the call, and the mobile phone incoming / outgoing call does not notify the Bluetooth headset worn by the non-owner. Specifically, when the mobile phone starts the person-recognizing call function and the Bluetooth headset also starts the person-recognizing call function, the call method shown in Figure 25 may be performed.

[0556] If the user closes the person-recognizing call function of the mobile phone, it indicates that the user does not want to perform the privacy reminding for the call of the mobile phone. Specifically, when the mobile phone closes the person-recognizing call function, the mobile phone controls the Bluetooth headset to normally perform the call reminding regardless of whether the Bluetooth headset starts the person-recognizing call function. It can be understood that when the mobile phone closes the person-recognizing call function, even if the Bluetooth headset starts the person-recognizing call function and sends the person-recognizing function notification to the mobile phone, the mobile phone will ignore the notification and normally use the Bluetooth headset.

[0557] In the process that the electronic device 1 and the electronic device 2 share the same Bluetooth headset, the Bluetooth headset simultaneously maintains the Bluetooth connection with the two electronic devices, and the power consumption of the Bluetooth headset is large, and the use time after charging is short. Therefore, in a possible implementation manner, in the process that multiple electronic devices share the same Bluetooth headset, the Bluetooth headset can only establish the Bluetooth connection with the electronic device initiating the service (including the media service or the call service), and broadcast the connection with the remaining electronic devices. Since the power consumption of the broadcast connection is small, the method can reduce the power consumption of the Bluetooth.

[0558] In the embodiment, the broadcast connection between the Bluetooth earphone and the electronic device means that, on the basis that the Bluetooth earphone and the electronic device have been paired, the Bluetooth earphone broadcasts state information (for example, service state) of the earphone, the electronic device receives the state information broadcast by the Bluetooth earphone, and the electronic device learns the current working condition of the Bluetooth earphone through the state information. When the electronic device has an audio service to initiate to the Bluetooth earphone, the connection with the Bluetooth earphone is established again according to the working state of the Bluetooth earphone, and the audio information is transmitted through the ACL link or the SCO link. For example, the electronic device can establish the connection with the Bluetooth earphone when the Bluetooth earphone is in the idle state or processes a low-priority service, and the Bluetooth earphone is preempted.

[0559] Figure 27 is a schematic diagram of an application scenario of the Bluetooth earphone provided by another embodiment of the present application. As shown in Figure 27 , the Bluetooth earphone is connected with a tablet computer through Bluetooth and connected with a mobile phone through broadcast. At present, the tablet computer is playing a video, and the sound in the video is played through the Bluetooth earphone based on the A2DP connection with the Bluetooth earphone. At this time, when the mobile phone is called or makes a call, the mobile phone first establishes a Bluetooth connection with the Bluetooth earphone because the priority of the call service is higher than the priority of the media service. Subsequently, the Bluetooth earphone is preempted to perform the call service automatically or according to a user instruction. Specifically, the Bluetooth earphone can disconnect the A2DP connection or the 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] Referring to the description of the scenario shown in Figure 22 , based on the scenario shown in Figure 27 , when the mobile phone is called or makes a call, the mobile phone also preempts the Bluetooth earphone, which may cause the privacy of the owner to be leaked and affect the use experience of the earphone of the non-owner. Therefore, the call method described below can be used by the embodiments of the present application to determine whether the Bluetooth earphone is used to cooperate with a call when the call is made.

[0561] Figure 28 is a flowchart of a call method provided by still another embodiment of the present application, which relates to a mobile phone with a person-recognizing call function, and how the Bluetooth earphone is used when a call is made in the case that the Bluetooth earphone is connected with the mobile phone through broadcast.

[0562] S2801, the Bluetooth earphone identifies whether a user is an owner.

[0563] Specifically, S2801, please refer to S2502 described above, and the embodiments will not be described here again.

[0564] S2802, the Bluetooth earphone broadcasts state information to the mobile phone, and the state information includes the service state of the Bluetooth earphone 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 the HiBeacon broadcast. For example, as shown in Table 1, the HiBeacon broadcast can include a broadcast address, a length, a type, a Universally Unique Identifier (UUID), device information, and a device status. The present embodiment can add the status information of the Bluetooth headset in the device status, so as to send the status information of the Bluetooth headset to the mobile phone through the HiBeacon broadcast.

[0566] Table 1: HiBeacon broadcast format

[0567] Adv Address (broadcast address) Length AD Type (broadcast type) UUID (universal unique identifier) Device Info (device information) Device Status (device status)

[0568] Specifically, on the basis that the Bluetooth headset has been paired with the mobile phone, the Bluetooth headset broadcasts the status information of the Bluetooth headset to the mobile phone according to the address of the mobile phone every interval of a preset time. The status information at least includes a service status and a master identification result. The service status includes an idle state, a media service, or a call service, etc. Different services can correspond to different priorities, and the service with a higher priority can be processed preferentially by the Bluetooth headset. The master identification result is used to indicate whether the current user of the Bluetooth headset is the master, including two cases that the current user is the master or is not the master.

[0569] Optionally, the status information of the Bluetooth headset further includes a wearing state. The wearing state is used to indicate whether the Bluetooth headset is currently worn by the user, including two cases that the Bluetooth headset is worn or is not worn. The mobile phone determines whether to use the Bluetooth headset according to whether the Bluetooth headset is in the wearing state. When the mobile phone is the master electronic device, the Bluetooth headset identifies whether the current user of the Bluetooth headset is the master, so as to determine whether to use the Bluetooth headset to cooperate with the call according to the master identification result in the subsequent incoming call / outgoing call of the mobile phone.

[0570] Optionally, the status information of the Bluetooth headset further includes power information, a device model, a device name, a connection state, etc. The connection state includes discoverable, pairable, or connectable, etc.

[0571] S2803, the mobile phone enters a call state, and a call reminder is performed locally.

[0572] Specifically, S2803 refers to S2505, and the present embodiment will not be described here.

[0573] After S2803, when the user of the Bluetooth headset is not the master, S2804 is performed, and S2805-S2809 are not performed. When the user of the Bluetooth headset is the master, S2804 is not performed, and S2805-S2809 are directly performed.

[0574] S2804, when the user of the Bluetooth earphone is not the owner, the mobile phone does not establish the Bluetooth connection with the Bluetooth earphone, and the mobile phone locally sounds after the phone is connected.

[0575] Specifically, the specific content that the mobile phone locally sounds after the phone is connected in S2804 can be referred to S2506, which will not be repeated here.

[0576] S2805, when the user of the Bluetooth earphone is the owner, the mobile phone and the Bluetooth earphone establish the Bluetooth connection.

[0577] In the embodiment, on the basis that the current user of the Bluetooth earphone is the owner, if the current service level of the Bluetooth earphone is lower than the level of the call service, the mobile phone occupies the Bluetooth earphone and establishes the Bluetooth connection with the Bluetooth earphone. If the current service level is equal to or higher than the level of the call service, the Bluetooth connection with the Bluetooth earphone will not be established, and only the local call reminder is performed.

[0578] Optionally, the mobile phone determines whether to use the Bluetooth earphone according to whether the Bluetooth earphone is in the wearing state. Specifically, when the current user of the Bluetooth earphone is the owner and the current service level of the Bluetooth earphone is lower than the level of the call service, if the Bluetooth earphone is in the wearing state, the mobile phone and the Bluetooth earphone establish the Bluetooth connection. If the Bluetooth earphone is in the non-wearing state, the mobile phone and the Bluetooth earphone do not establish the Bluetooth connection.

[0579] It should be noted that in the case that the mobile phone and the Bluetooth earphone are connected through the broadcast, the mobile phone and the Bluetooth earphone have been paired and created a shared link key, which can be used for authentication when the two devices establish the Bluetooth connection. Specifically, the mobile phone and the Bluetooth earphone quickly verify whether the other party has a matching link key according to the characters derived from the Bluetooth key. If the link keys match, the mobile phone and the Bluetooth earphone can continue to create a session password to establish the Bluetooth connection.

[0580] S2806, the mobile phone sends a call message to the Bluetooth earphone.

[0581] S2807, the mobile phone sends an eSCO link establishment request to the Bluetooth earphone.

[0582] S2808, the Bluetooth earphone accepts the eSCO link establishment request and performs a local call reminder.

[0583] S2809, after the phone is connected, the Bluetooth earphone sounds.

[0584] S2810, the mobile phone and the Bluetooth earphone transmit the call audio stream through the eSCO link.

[0585] Specifically, S2806-S2810 can be referred to S2507-S2511, which will not be repeated here.

[0586] Based on the above, when the current user of the Bluetooth headset is not the owner, the phone only performs a local call reminder, does not establish a Bluetooth connection with the Bluetooth headset, and does not notify the Bluetooth headset to perform a call reminder. This method can improve the user experience when a non-owner uses the Bluetooth headset, and to some extent, avoids the problem of the owner's call privacy being leaked because the phone is answered by a non-owner.

[0587] In combination Figure 27 As shown in the Bluetooth headset application scenario, when user B uses the Bluetooth headset, even if the phone rings, user B's headset experience will not be affected, and user B cannot answer the phone to some extent, thereby ensuring the call privacy of user A.

[0588] Because the phone and Bluetooth headset recognition call function is usually implemented through a private recognition call protocol, when the phone and Bluetooth headset do not belong to the same supplier, the phone can not have the recognition call function. Therefore, in this embodiment, when the phone does not have the recognition call function, but the Bluetooth headset has the function, the phone and Bluetooth headset can use the call method as shown in Figure 29 to perform a call reminder.

[0589] Figure 29 is a flowchart of a call method provided by another embodiment of the present application, which relates to a phone without a recognition call function, and how to use the Bluetooth headset when calling in a broadcast connection with the Bluetooth headset.

[0590] S2901, the Bluetooth headset identifies whether the user of the Bluetooth headset is the owner.

[0591] S2902, the Bluetooth headset broadcasts state information to the phone, the state information including the service state of the Bluetooth headset and the owner identification result.

[0592] S2903, the phone enters a call state and performs a local call reminder.

[0593] S2904, the phone and the Bluetooth headset establish a Bluetooth connection.

[0594] In the case where the phone and the Bluetooth headset are in a broadcast connection, because the phone does not have the recognition call function, that is, the phone cannot determine whether to use the Bluetooth headset according to whether the user of the headset is the owner. Therefore, when the phone enters the call state, the Bluetooth headset will be used by default, and S2904-S2906 are executed.

[0595] S2905, the phone sends a call message to the Bluetooth headset.

[0596] S2906, the phone sends an eSCO link establishment request to the Bluetooth headset.

[0597] The specific contents of S2901-S2906 can be found in S2801-S2803 and S2805-S2807 described above, and will not be repeated here in the present embodiment.

[0598] In the case that the phone does not have the person-recognizing call function, but the Bluetooth headset has the person-recognizing call function, the Bluetooth headset, after receiving the call message sent by the phone, determines whether to cooperate with the phone to make a call according to whether the user of the Bluetooth headset 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-S2908 are executed, and S2909-S2911 are not executed. When the current user of the Bluetooth headset is the owner of the phone, S2907-S2908 are not executed, and S2909-S2911 are directly executed.

[0599] S2907, when the user of the Bluetooth headset is not the owner of the phone, the Bluetooth headset rejects the eSCO link establishment request of the phone.

[0600] S2908, after the phone is connected, the phone locally makes a sound.

[0601] Specifically, S2907-S2908 can be found in S2608-S2609, and will not be repeated here in the present embodiment.

[0602] S2909, when the user of the Bluetooth headset is the owner of the phone, the Bluetooth headset accepts the eSCO link establishment request, and locally makes a call reminder.

[0603] S2910, after the phone is connected, the Bluetooth headset makes a sound.

[0604] S2911, the phone and the Bluetooth headset transmit a call audio stream through the eSCO link.

[0605] Specifically, S2909-S2911 can be found in S2610-S2612, and will not be repeated here in the present embodiment.

[0606] Through the call method provided in the present application, when the phone and the Bluetooth headset are connected through broadcasting, even if the phone and the Bluetooth headset do not belong to the same supplier and the phone does not have the person-recognizing call function, the phone can also realize person-recognizing call during a call. That is, when the owner uses the Bluetooth headset, the Bluetooth headset makes a call reminder and cooperates with the phone to make a call; when a non-owner uses the Bluetooth headset, the Bluetooth headset does not make a call reminder and does not cooperate with the phone to make a call.

[0607] Based on this, in combination with Figure 27The application scenario of the Bluetooth earphone shown in the figure can know that when user B uses the Bluetooth earphone, even if the mobile phone is incoming / outgoing, it will not affect the user experience of user B using the earphone, and user B cannot answer the phone of the mobile phone, which ensures the call privacy of user A to a certain extent.

[0608] In addition, the mobile phone can be provided with a private phone, that is, a phone that is not convenient for non-owners to answer. Based on this, in the case that the mobile phone is connected with the Bluetooth earphone through Bluetooth or broadcasting, the mobile phone can select different ways to use the Bluetooth earphone.

[0609] In some embodiments, when there is a private phone call incoming / outgoing, the mobile phone executes the call method provided in the application, that is, whether the Bluetooth earphone is used to cooperate with the mobile phone to perform the private call according to whether the earphone user is the owner. For other non-private phones, whether the earphone user is the owner, the phone is notified to the Bluetooth earphone to use the Bluetooth earphone to cooperate with the mobile phone to call.

[0610] In another embodiment, when the mobile phone has a private phone call incoming / outgoing, whether the earphone user is the owner, the Bluetooth earphone 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 that the mobile phone is connected with other electronic devices (such as vehicle call device, Bluetooth speaker, etc.).

[0611] In summary, when multiple electronic devices share a Bluetooth earphone, the call method provided in the embodiment can protect the call privacy of the owner to a certain extent, and improve the user experience of the non-owner using the Bluetooth earphone.

[0612] Each embodiment described in the present application can be an independent scheme, or can be combined according to the inherent logic to achieve different technical effects, and these schemes fall within the protection scope of the present application.

[0613] The embodiment of the present application does not particularly limit the specific structure of the execution subject of the method provided in the embodiment of the present application, as long as the program recording the code of the method provided in the embodiment of the present application can be run to realize the method provided in the embodiment of the present application. In order to realize each function in the method provided in the embodiment of the present application, the Bluetooth earphone can include a hardware structure and / or a software module to realize each function in the form of hardware structure, software module, or hardware structure plus software module. Whether a certain function in the above functions is executed in the form of hardware structure, software module, or hardware structure plus software module depends on the specific application of the technical scheme and the design constraint conditions.

[0614] Figure 30A schematic block diagram of an audio control system 800 provided by an embodiment of the present application is shown. 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 possible implementation, the system 800 provided by an embodiment of the present application can correspond to an audio control method corresponding to the first solution, the second solution, and the third solution described above in the first scenario. In the case where the Bluetooth headset establishes Bluetooth connections with two electronic devices, when the Bluetooth headset transmits media audio stream of a media service with one of the electronic devices, if the other electronic device initiates a media service, for the case where both devices initiate a media service, the first-initiated service preoccupies the Bluetooth headset, the second-initiated media service does not preoccupy the Bluetooth headset, and the preoccupied electronic device is disconnected from the Bluetooth headset or is sent a message to disable the Bluetooth headset, so that the preoccupied electronic device can output media audio stream through the Bluetooth headset and the preoccupied electronic device can output media audio stream through a local device or another Bluetooth audio device, thereby avoiding concurrent services on the Bluetooth headset side, and thus the problem of information loss caused by service conflict in the related art when multiple electronic devices connected to the Bluetooth device initiate audio services can be solved.

[0616] In a possible implementation, the system 800 provided by an embodiment of the present application can correspond to an audio control method corresponding to the first solution, the second solution, and the third solution described above in the second scenario. In the case where the Bluetooth headset establishes Bluetooth connections with two electronic devices, when the Bluetooth headset transmits media audio stream of a media service with one of the electronic devices, if the other electronic device initiates a call service, because the call service is set to have a higher priority than the media service, the call service can preoccupy the Bluetooth headset to output call audio stream, and the preoccupied electronic device is disconnected from the Bluetooth headset or is sent a message to disable the Bluetooth headset, so that the preoccupied electronic device can output call audio stream through the Bluetooth headset and the preoccupied electronic device can output media audio stream through a local device or another Bluetooth audio device, thereby avoiding concurrent services on the Bluetooth headset side, and thus the problem of information loss caused by service conflict in the related art when multiple electronic devices connected to the Bluetooth device initiate audio services can be solved.

[0617] In an implementation, the system 800 provided by the embodiments of the present application can correspond to the audio control method described in the third scenario. Through the system 800, when the Bluetooth earphone is connected to two electronic devices, and the Bluetooth earphone is used to transmit the call audio stream of the call service of one of the two electronic devices, if the other electronic device initiates the call service, the call service of the other electronic device can preempt the Bluetooth earphone, and the electronic device of the preemption party can output the call audio stream through the Bluetooth earphone, and the electronic device of the preemption party can output the call audio stream through the local device or other Bluetooth audio device, so that the service concurrency of the Bluetooth earphone is avoided, and thus the problem of information loss caused by service conflict in the related art when multiple electronic devices connected to the Bluetooth device initiate the audio service can be solved.

[0618] In an implementation, the system 800 provided by the embodiments of the present application can correspond to the call method described in the embodiments of the present application. Through the system 800, the mobile phone can determine whether to use the Bluetooth earphone to cooperate with the call according to whether the user of the Bluetooth earphone is the owner. When the user of the Bluetooth earphone is the owner, the Bluetooth earphone is used to cooperate with the call, and when the user of the Bluetooth earphone is not the owner, the mobile phone is used to locally output the sound to make the call. When multiple devices share one Bluetooth earphone, the call method provided by the embodiments of the present application can protect the call privacy of the owner to a certain extent, and improve the user experience when the non-owner uses the Bluetooth earphone.

[0619] The system 800 provided by the embodiments of the present application can correspond to the audio control method described in the embodiments of the present application, and the above and other operations and / or functions of the modules in the system 800 are respectively used to implement the corresponding processes of the method, which will not be described herein again for brevity.

[0620] Figure 31 FIG. 9 is a structural schematic diagram of an electronic device 900 provided by the embodiments 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 can be connected with the memory 920. The memory 920 can be used to store program codes and data. Therefore, the memory 920 can be an internal storage unit of the processor 910, can be an external storage unit independent of the processor 910, or can be a component including the internal storage unit of the processor 910 and the external storage unit independent of the processor 910.

[0622] Optionally, the electronic device 900 can further include a bus 940. The memory 920 and the communication interface 930 can be connected with the processor 910 through the bus 940. The bus 940 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 940 can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, Figure 31 In the figure, only one line is used to represent the bus, but it does not mean that there is only one bus or only one type of bus.

[0623] It should be understood that, in the embodiments of the present application, the processor 910 can be a central processing unit (CPU). The processor can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. Alternatively, the processor 910 can be one or more integrated circuits for executing relevant programs to implement the technical solutions provided by the embodiments of the present application.

[0624] The memory 920 can include read-only memory and random access memory, and provide instructions and data for the processor 910. A part of the processor 910 can also include a non-volatile random access memory. For example, the processor 910 can also store device type information.

[0625] When the electronic device 900 is running, the processor 910 executes computer execution instructions in the memory 920 to perform the operation steps of the above method through the system 800.

[0626] It should be understood that the electronic device 900 according to the embodiments of the present application can correspond to the first electronic device or the second electronic device in the system 800 in the embodiments of the present application, and the above and other operations and / or functions of each unit in the system 800 are respectively for implementing the corresponding flow of the method, and for the sake of brevity, 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 codes, and when the program codes are run on a computer, the computer is caused to execute the method in the above aspects.

[0628] Optionally, in some embodiments, the embodiments of the present application further provide a computer program product, which comprises: computer program codes, and when the computer program codes are run on a computer, the computer is caused to execute the method in the above aspects.

[0629] In the embodiments of the present application, the electronic device comprises a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer can comprise a central processing unit (CPU), a memory management unit (MMU), a memory (also referred to as a main memory), and the like. The operating system of the operating system layer can be any one or more computer operating systems that implement business processing through a process, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system. The application layer can comprise a browser, an address book, word processing software, instant messaging software, and the like.

[0630] Various aspects or features of the present application can be implemented as methods, apparatus, or articles of manufacture using standard programming and / or engineering techniques. The term "article of manufacture" as used herein can encompass a computer program that can be accessed from any computer readable device, carrier, or media. For example, computer readable media can include, but are not limited to, magnetic storage devices (e.g., hard disk, floppy disk, or magnetic strips), optical disks (e.g., compact disk (CD), digital versatile disk (DVD), etc.), smart cards, and flash memory devices (e.g., EPROM, card, stick, or key drive, etc.).

[0631] Various storage media described herein can represent one or more devices and / or other machine-readable media for storing information. The term "machine-readable medium" can include, without limitation, wireless channels and various other media capable of storing, containing, and / or carrying instruction(s) and / or data.

[0632] It should be appreciated that a processor (or multiple processors) need not be implemented as CPUs, as implied by FIG. 1. Rather, processors can be implemented using one or more microprocessors, embedded processors, and / or other processing devices, including combinations thereof. Processors can be implemented using both general and specialized microprocessors, both programmable and non-programmable logic, and / or any other processing device.

[0633] It should also be appreciated that a memory (or memories) as described herein should be interpreted in a broad sense as encompassing any memory device or combination of memory devices. For example, memory can include both volatile memory and non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), electrically EPROM (EEPROM), or flash memory. Volatile memory can be random access memory (RAM). For example, RAM can be used as an external cache memory. By way of example and not limitation, RAM can include the following types of RAM: static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0634] It should be noted that when a processor is as a general processor, DSP, ASIC, FPGA, or other programmable logic device, discrete gate or transistor logic, discrete hardware component, the memory (storage module) can be integrated in the processor.

[0635] It should also be noted that the memory described herein is intended to include, among other things, these and any other memory suitable for storing or carrying out the methods described herein.

[0636] Those skilled in the art can clearly understand that the units and steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0637] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

[0638] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the above-described device embodiments are merely schematic, for example, the division of the above-described units or modules is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed units can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0639] The units described above as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, they can be located in one place, or they can be distributed on a plurality of network units. According to actual needs, some or all of the units can be selected to achieve the purpose of the embodiment.

[0640] In addition, each functional unit in each embodiment of the present application can be integrated into one unit, or each unit can exist physically, or two or more units can be integrated into one unit.

[0641] If the above functions are realized in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application, or the part that contributes to the prior art, or part of the technical solutions, can be embodied in the form of a computer software product stored in a storage medium, and the computer software product includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium can include, but is not limited to, a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0642] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.

[0643] The above description is merely illustrative of the application and is not intended to limit the scope of the application. Any variations and modifications of the application, which become apparent to those skilled in the art, are intended to fall within the scope of the application. The scope of the application should be determined by the appended claims and equivalents thereof.

Claims

1. An audio control method applied to an audio control system, the audio control system comprising a Bluetooth headset, a first electronic device, and a second electronic device, characterized in that, The method includes: The Bluetooth headset establishes a first Bluetooth connection with the first electronic device and a second Bluetooth connection with the second electronic device; The first electronic device initiates a first call service and sends the audio stream of the first call service to the Bluetooth headset; The Bluetooth headset receives the audio stream of the first call service sent by the first electronic device and outputs the audio stream of the first call service. The second electronic device initiates a second call service and sends the audio stream of the second call service to the Bluetooth headset; The Bluetooth headset receives the audio stream of the second call service sent by the second electronic device and outputs the audio stream of the second call service. When the Bluetooth headset outputs the audio stream of the second call service, it does not output the audio stream of the first call service. After the Bluetooth headset outputs the audio stream of the second call service, the first electronic device outputs the audio stream of the first call service through a first preset channel other than the Bluetooth headset.

2. The method according to claim 1, characterized in that, The Bluetooth headset receives the audio stream of the first call service sent by the first electronic device and outputs the audio stream of the first call service, including: The Bluetooth headset receives the audio stream of the first call service sent by the first electronic device, outputs the audio stream of the first call service, and performs a first action; the first action is any one of the following: disconnecting the Bluetooth headset from the second Bluetooth connection of the second electronic device; or sending a first message to the second electronic device, the first message being used to indicate that the Bluetooth headset is occupied.

3. The method according to claim 1, characterized in that, The Bluetooth headset receives the audio stream of the second call service sent by the second electronic device, and outputs the audio stream of the second call service, including: The Bluetooth headset receives the audio stream of the second call service sent by the second electronic device, outputs the audio stream of the second call service, and performs a second action; the second action is any one of the following: disconnecting the first Bluetooth connection between the Bluetooth headset and the first electronic device; or sending a second message to the first electronic device, the second message being used to indicate that the Bluetooth headset is occupied.

4. The method according to claim 1, characterized in that, The first Bluetooth connection includes a first A2DP connection and a first HFP connection, and the second Bluetooth connection includes a second A2DP connection and a second HFP connection.

5. The method according to claim 4, characterized in that, The Bluetooth headset receives the audio stream of the first call service sent by the first electronic device and outputs the audio stream of the first call service, including: The Bluetooth headset receives the audio stream of the first call service sent by the first electronic device, outputs the audio stream of the first call service, disconnects the second A2DP connection, and maintains the second HFP connection.

6. The method according to claim 4, characterized in that, The Bluetooth headset receives the audio stream of the second call service sent by the second electronic device and outputs the audio stream of the second call service, including: The Bluetooth headset receives the audio stream of the second call service sent by the second electronic device, outputs the audio stream of the second call service, disconnects the first A2DP connection, and maintains the first HFP connection.

7. The method according to any one of claims 1-6, characterized in that, The first electronic device outputs the audio stream of the first call service through a first preset channel other than the Bluetooth headset, including: The first electronic device automatically switches the audio stream of the first call service to the first preset channel.

8. The method according to any one of claims 1-6, characterized in that, The first preset channel, excluding the Bluetooth headset, includes the earpiece.

9. The method according to any one of claims 1-6, characterized in that, After the first electronic device outputs the audio stream of the first call service through a first preset channel other than the Bluetooth headset, the method further includes: In response to a user's first operation, the first electronic device sends an audio stream of the first call service to the Bluetooth headset, wherein the first operation is used to trigger the output of the audio stream of the first call service through the Bluetooth headset; The Bluetooth headset receives the audio stream of the first call service sent by the first electronic device and outputs the audio stream of the first call service.

10. The method according to claim 9, characterized in that, After the first electronic device outputs the audio stream of the first call service through a first preset channel other than the Bluetooth headset, a first audio switching interface is displayed, and the first operation is an operation performed on the first audio switching interface.

11. The method according to any one of claims 1-6, characterized in that, The method further includes: After the first electronic device outputs the audio stream of the first call service through a first preset channel other than the Bluetooth headset, the first electronic device displays a first prompt message indicating that the audio stream of the first call service has been switched to the first preset channel; or... Before the first electronic device outputs the audio stream of the first call service through a first preset channel other than the Bluetooth headset, a second prompt message is displayed to ask whether to switch the audio stream of the first call service to another output channel. In response to the user's input of the second prompt message, the first electronic device outputs the audio stream of the first call service through the first preset channel.

12. The method according to any one of claims 1-6, characterized in that, The method further includes: If the second call service of the second electronic device ends, the first electronic device will automatically switch the audio stream of the first call service to the Bluetooth headset and output a third prompt message to indicate that the current call voice has been switched to the Bluetooth headset.

13. The method according to any one of claims 1-6, characterized in that, The method further includes: If the call service of the second electronic device ends, the first electronic device displays a fourth prompt message to switch the current call voice to the Bluetooth headset. In response to the user's input of the fourth prompt message, the first electronic device outputs the audio stream of the first call service through the Bluetooth headset.

14. The method according to claim 3, characterized in that, The first electronic device outputs the audio stream of the first call service through a first preset channel other than the Bluetooth headset, including: If it is detected that the first Bluetooth connection between the Bluetooth headset and the first electronic device has been disconnected, then the audio channel of the first electronic device is switched from the Bluetooth headset to the first preset channel, and the audio stream of the first call service is output through the first preset channel; or, The device receives the second message sent by the Bluetooth headset, and according to the second message, switches the audio channel of the first electronic device from the Bluetooth headset to the first preset channel, and outputs the audio stream of the first call service through the first preset channel.

15. The method according to any one of claims 1-6, characterized in that, The first electronic device outputs the audio stream of the first call service through a first preset channel other than the Bluetooth headset, including: The first electronic device outputs the audio stream of the first call service through a first preset channel other than the Bluetooth headset and reduces the volume of the audio stream of the first call service.

16. The method according to any one of claims 1-6, characterized in that, Before the first electronic device outputs the audio stream of the first call service through a first preset channel other than the Bluetooth headset, the method further includes: The first electronic device switches the first call service to call hold and displays a fifth prompt message, which prompts whether to switch the audio channel from the Bluetooth headset to the first preset channel.

17. The method according to any one of claims 1-6, characterized in that, Before the second electronic device initiates the second call service, the method further includes: The second electronic device displays a sixth prompt message, which indicates that the audio output channel has been switched from the Bluetooth headset channel to the local output channel, or indicates that the Bluetooth headset has been preempted.

18. The method according to any one of claims 1-6, characterized in that, The method further includes: If the Bluetooth headset does not receive the audio stream of the second call service sent by the second electronic device within a preset time period, a fourth action is performed; the fourth action is any one of the following: if the first Bluetooth connection between the Bluetooth headset and the first electronic device is disconnected, the first Bluetooth connection is re-established and a third message is sent to the first electronic device; if the first Bluetooth connection is not disconnected, the third message is sent to the first electronic device, the third message being used to indicate that the Bluetooth headset is not in use; The first electronic device receives the third message sent by the Bluetooth headset; and according to the third message, switches the audio channel of the first electronic device from the first preset channel to the Bluetooth headset; or, in response to the user's confirmation operation of the third message, switches the audio channel of the first electronic device to the Bluetooth headset, wherein the confirmation operation is used to trigger the switching of the audio channel of the first electronic device to the Bluetooth headset.

19. The method according to any one of claims 1-6, characterized in that, When the first electronic device initiates the first call service, a second audio switching interface is displayed. The second audio switching interface includes at least two audio channel options and channel usage status information. The at least two audio channel options include the option for the Bluetooth headset. When the second electronic device initiates the second call service, a third audio switching interface is displayed. The third audio switching interface includes at least two audio channel options and channel usage status information. The at least two audio channel options include the option for the Bluetooth headset. The channel usage status information indicates that the Bluetooth headset is being used.

20. The method according to claim 19, characterized in that, The method further includes: The first electronic device responds to a second operation by the user on the second audio switching interface by sending the audio stream of the first call service to the Bluetooth headset. The second operation is used to trigger the audio stream of the first call service to be output through the Bluetooth headset. The Bluetooth headset receives the audio stream of the first call service sent by the first electronic device, outputs the audio stream of the first call service, and sends a fourth message to the second electronic device, the fourth message being used to indicate that the Bluetooth headset is occupied; The second electronic device receives the fourth message sent by the Bluetooth headset, and switches the audio channel of the second electronic device from the Bluetooth headset to the second preset channel according to the fourth message.

21. The method according to any one of claims 1-6, characterized in that, Before the first electronic device initiates the first call service, the method further includes: The Bluetooth headset identifies whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset, and sends the identification result to the first electronic device and / or the second electronic device; The first electronic device initiates a first call service, and sending the audio stream of the first call service to the Bluetooth headset includes: The first electronic device initiates a first call service. When the wearer of the Bluetooth headset is the owner of the device, it sends the audio stream of the first call service to the Bluetooth headset. The second electronic device initiates a second call service and sends the audio stream of the second call service to the Bluetooth headset, including: The second electronic device initiates a second call service, and when the wearer of the Bluetooth headset is the owner of the device, it sends the audio stream of the second call service to the Bluetooth headset.

22. The method according to any one of claims 1-6, characterized in that, Before the first electronic device initiates the first call service, the method further includes: The Bluetooth headset identifies whether the wearer of the Bluetooth headset is the owner of the Bluetooth headset; The Bluetooth headset receives the audio stream of the first call service sent by the first electronic device and outputs the audio stream of the first call service, including: When the wearer of the Bluetooth headset is the owner of the device, the Bluetooth headset receives the audio stream of the first call service sent by the first electronic device and outputs the audio stream of the first call service; The Bluetooth headset receives the audio stream of the second call service sent by the second electronic device, and outputs the audio stream of the second call service, including: When the wearer of the Bluetooth headset is the owner of the device, the Bluetooth headset receives the audio stream of the second call service sent by the second electronic device and outputs the audio stream of the second call service.

23. The method according to claim 21, 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 is the owner of the Bluetooth headset by means of ear canal recognition, bone conduction recognition, or voice recognition.

24. An audio control system, the audio control system comprising a Bluetooth headset, a first electronic device, and a second electronic device, characterized in that, The audio control system is used to perform the method as described in any one of claims 1-23.

Citation Information

Patent Citations

  • Bluetooth earphone and terminal connection method and system and storage medium

    CN111246441A

  • Method and electronic device for wireless communication

    US20140370864A1