Audio service processing method, electronic device and computer storage medium

By detecting the priority of audio services between electronic devices and requesting Bluetooth headsets to suspend processing of lower priority services, the problem that Bluetooth headsets cannot handle multiple audio services in a timely manner during business conflicts is solved, and the user experience is improved.

CN117917899BActive Publication Date: 2024-11-15HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211288799.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-20
Publication Date
2024-11-15
Estimated Expiration
2042-10-20

AI Technical Summary

Technical Problem

When a Bluetooth headset conflicts, it can only act as one audio output device, and cannot process audio services sent by multiple electronic devices in a timely manner, resulting in poor user experience.

Method used

By establishing a wireless communication channel between electronic devices, detecting the priority of audio services, and requesting Bluetooth headsets to suspend processing of lower-priority audio services to handle higher-priority audio services, ensuring that important audio services are processed in a timely manner.

Benefits of technology

Improves user experience and ensures that Bluetooth headsets can handle more important audio services in a timely manner in case of business conflicts, and avoids shelving audio services from other devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117917899B_ABST
    Figure CN117917899B_ABST
Patent Text Reader

Abstract

The present application relates to the field of communication technology, and in particular to an audio service processing method, an electronic device and a computer storage medium. In the present application, the electronic device can control the Bluetooth headset to process more important audio services according to the pre-set service priority to improve the user experience. The method includes: the first electronic device and the second electronic device both establish a wireless communication channel with the Bluetooth headset; the first electronic device uses the Bluetooth headset to process the first audio service; after the second electronic device detects the second audio service, it determines whether the service priority of the second audio service is greater than the service priority of the first audio service; if the service priority of the second audio service is greater than the service priority of the first audio service, the second electronic device requests the Bluetooth headset to suspend processing the first audio service, and uses the Bluetooth headset to process the second audio service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an audio service processing method, electronic equipment and computer storage medium. Background Art

[0002] Bluetooth headsets are becoming more and more popular with users due to their portability and convenience, as they do not need to store or organize the headphone cables. The function of Bluetooth headsets is that they can establish a wireless connection with electronic devices, thereby cooperating with electronic devices to process audio services for users. For example, Bluetooth headsets can establish a wireless connection with mobile phones, and cooperate with mobile phones to play music, make and receive calls, etc. for users.

[0003] At present, users usually use multiple electronic devices, such as mobile phones, tablets, personal computers (PCs), etc. In order to facilitate work and life, Bluetooth headsets can connect to multiple electronic devices at the same time. For example, there is a Bluetooth headset with a built-in Bluetooth audio transmission model protocol (Advanced Audio Distribution Profile, A2DP) audio device, and the A2DP audio device is used for high-definition media playback. The A2DP audio device of the headset can connect to two electronic devices at the same time, and can automatically connect to the newly approached electronic device through the discovery connection mechanism, and randomly disconnect a previously connected electronic device to ensure that only two electronic devices are connected at the same time. For another example, there is a Bluetooth headset with two built-in audio input and output devices: a hands-free profile (HFP) for high-definition calls; an A2DP for high-definition media playback. The headset can connect to up to three electronic devices. Specifically, the A2DP audio device of the headset, as mentioned above, can be connected to two electronic devices at the same time, and the HFP device of the headset can be connected to one device.

[0004] In the prior art, a Bluetooth headset can only be used as an audio output device for an audio service. If a service conflict occurs in a Bluetooth headset, for example, multiple electronic devices initiate a request to the Bluetooth headset to process an audio service, or the Bluetooth headset is processing an audio service sent by an electronic device 1 connected to it, and at this time, it receives a request to process an audio service sent by another electronic device. Because the Bluetooth headset can only be used as an audio output device for an audio service, the audio service of another electronic device is put on hold, and the audio service sent by other electronic devices cannot be completed in time. If the audio service sent by other electronic devices is more important, the Bluetooth headset cannot complete the more important audio service in time, and the user experience is poor. Summary of the invention

[0005] The embodiments of the present application provide an audio service processing method, an electronic device, and a computer storage medium, which are used to solve the problem in the prior art that a Bluetooth headset can only be used as an audio output device for an audio service. If a service conflict occurs in the Bluetooth headset, the Bluetooth headset, because it can only be used as an audio output device for an audio service, puts aside the audio service of another electronic device and cannot complete the audio service sent by other electronic devices in time. If the audio service sent by other electronic devices is more important, the Bluetooth headset cannot complete the more important audio service in time, resulting in a poor user experience.

[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0007] In a first aspect, a method for processing an audio service is provided, the method comprising: a first electronic device and a second electronic device both establish a wireless communication channel with a Bluetooth headset; the first electronic device uses the Bluetooth headset to process a first audio service; after the second electronic device detects the second audio service, it determines whether the service priority of the second audio service is greater than the service priority of the first audio service; if the service priority of the second audio service is greater than the service priority of the first audio service, the second electronic device requests the Bluetooth headset to suspend processing of the first audio service, and uses the Bluetooth headset to process the second audio service.

[0008] In this solution, the electronic device can control the Bluetooth headset to process more important audio services according to the pre-set service priority, thereby improving the user experience.

[0009] In a possible implementation of the first aspect, requesting a Bluetooth headset to suspend processing of a first audio service and using the Bluetooth headset to process a second audio service includes: the second electronic device sends a service suspension instruction to the first electronic device through the Bluetooth headset; the first electronic device receives the service suspension instruction and stops sending audio data of the first audio service to the Bluetooth headset; the second electronic device sends audio data of the second audio service to the Bluetooth headset; the Bluetooth headset receives audio data of the second audio service and processes the second audio service. In this implementation, the second electronic device can instruct the first electronic device to stop sending audio data of the first audio service to the Bluetooth headset and instruct the Bluetooth headset to suspend processing of the first audio service of the first electronic device by sending a service suspension instruction to the first electronic device.

[0010] In a possible implementation of the first aspect, before the second electronic device requests the Bluetooth headset to suspend processing of the first audio service and uses the Bluetooth headset to process the second audio service, the method further includes: the first electronic device indicates the service priority of the first audio service to the second electronic device through the Bluetooth headset. After the first electronic device synchronizes the priority of the first audio service to the second electronic device, after the second electronic device detects the second audio service, it can determine whether the service priority of the second audio service is greater than the service priority of the first audio service, and after determining that the service priority of the second audio service is greater than the service priority of the first audio service, it seizes the right to use the Bluetooth headset, requests the Bluetooth headset to suspend processing of the first audio service, and starts processing the second audio service.

[0011] In a possible implementation of the first aspect, a service pause instruction is used to indicate a service priority of a second audio service; the first electronic device receives the service pause instruction and stops sending audio data of the first audio service to the Bluetooth headset, including: the first electronic device receives the service pause instruction, and if the service priority of the second audio service indicated by the service pause instruction is greater than the service priority of the first audio service, stops sending audio data of the first audio service to the Bluetooth headset.

[0012] In this solution, after receiving the service suspension instruction, the first electronic device will reconfirm the service priorities of the second audio service and the first audio service, so as to further ensure the accuracy of the first electronic device in executing the service suspension instruction.

[0013] In a possible implementation manner of the first aspect, after requesting the Bluetooth headset to suspend processing of the first audio service and using the Bluetooth headset to process the second audio service, the method further includes: the first electronic device using an audio component of the first electronic device to process the first audio service.

[0014] In this solution, after the Bluetooth headset suspends processing of the first audio service, the first electronic device can also automatically process the first audio service to be processed, thereby improving the completion rate of the audio service.

[0015] In a possible implementation of the first aspect, the audio services processed by the Bluetooth headset include call services, multimedia services, and notification services; wherein the service priority of the call service is greater than the service priority of the multimedia service, and the service priority of the multimedia service is greater than the service priority of the notification service.

[0016] In a second aspect, a method for processing an audio service is provided, the method comprising: a second electronic device establishes a wireless communication channel with a Bluetooth headset; wherein the Bluetooth headset also establishes a wireless communication channel with a first electronic device, and the Bluetooth headset processes a first audio service of the first electronic device; after the second electronic device detects the second audio service, it determines whether the service priority of the second audio service is greater than the service priority of the first audio service; if the service priority of the second audio service is greater than the service priority of the first audio service, the second electronic device requests the Bluetooth headset to suspend processing of the first audio service, and uses the Bluetooth headset to process the second audio service.

[0017] In this solution, the electronic device can control the Bluetooth headset to process more important audio services according to the pre-set service priority, thereby improving the user experience.

[0018] In a possible implementation of the second aspect, the second electronic device requests a Bluetooth headset to suspend processing of a first audio service and uses the Bluetooth headset to process a second audio service, including: the second electronic device sends a service suspension instruction to the first electronic device through the Bluetooth headset, wherein the service suspension instruction is used to instruct the first electronic device to receive the service suspension instruction and stop sending audio data of the first audio service to the Bluetooth headset; the second electronic device sends audio data of the second audio service to the Bluetooth headset; the Bluetooth headset receives the audio data of the second audio service and processes the second audio service.

[0019] In a possible implementation of the second aspect, before the second electronic device requests the Bluetooth headset to suspend processing of the first audio service and uses the Bluetooth headset to process the second audio service, the method also includes: the second electronic device receives the service priority of the first audio service indicated by the first electronic device through the Bluetooth headset.

[0020] In a third aspect, an electronic device is provided, which includes a processor and a memory; the memory is used to store code instructions; the processor is used to run the code instructions to execute an audio service processing method in any possible design mode of the first aspect and the second aspect.

[0021] In a fourth aspect, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are executed on a computer, the computer executes an audio service processing method in any possible design mode of the first aspect and the second aspect.

[0022] Among them, the technical effects brought about by any design method in the third aspect and the fourth aspect can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1According to some embodiments of the present application, a schematic structural diagram of a tablet 300 is shown;

[0024] Figure 2 According to some embodiments of the present application, a schematic diagram of an application scenario of an audio service processing method is shown;

[0025] Figure 3 According to some embodiments of the present application, a schematic diagram of an application scenario of an audio service processing method is shown;

[0026] Figure 4 According to some embodiments of the present application, a schematic diagram of an application scenario of an audio service processing method is shown;

[0027] Figure 5 According to some embodiments of the present application, a schematic diagram of an application scenario of an audio service processing method is shown;

[0028] Figure 6 According to some embodiments of the present application, a software structure block diagram of a mobile phone 200 and a tablet 300 applicable to the present application is shown;

[0029] Figure 7 According to some embodiments of the present application, a structural schematic diagram of an audio strategy engine is shown;

[0030] Figure 8 According to some embodiments of the present application, corresponding to Figure 4 , showing a flow chart of an audio service processing method;

[0031] Fig. 9 According to some embodiments of the present application, a schematic diagram of a notification management interface is shown;

[0032] Fig.10 According to some embodiments of the present application, a schematic structural diagram of a Bluetooth headset 100 is shown. DETAILED DESCRIPTION

[0033] The illustrative embodiments of the present application include, but are not limited to, an audio service processing method, an audio device, and a storage medium.

[0034] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the described embodiments are only embodiments of a part of the present application, rather than all embodiments. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0035] As described in the background technology above, if a service conflict occurs in a Bluetooth headset, the Bluetooth headset can only be used as an audio output device for an audio service, and the audio service of another electronic device will be put on hold, and the audio service sent by other electronic devices cannot be completed in time. If the audio service sent by other electronic devices is more important, the Bluetooth headset cannot complete the more important audio service in time, and the user experience is poor.

[0036] In order to solve the above technical problems, an embodiment of the present application provides an audio service processing method, which includes: electronic device 1 and electronic device 2 both establish wireless communication channels with a Bluetooth headset. If electronic device 1 is using a Bluetooth headset to process audio service 1, at this time, after electronic device 2 detects audio service 2, it will first determine whether the service priority of audio service 2 is greater than or equal to the service priority of audio service 1. If electronic device 2 determines that the service priority of audio service 2 is greater than or equal to the service priority of audio service 1, it will request the Bluetooth headset to suspend processing of audio service 1 and use the Bluetooth headset to process audio service 2. As a result, the Bluetooth headset will suspend processing of audio service 1 and process audio service 2.

[0037] In the embodiment of the present application, different audio services may correspond to different priorities. Audio services with higher priorities are usually important and critical audio services. Audio services with higher priorities can be processed preferentially by Bluetooth headsets. Exemplarily, audio services may include multiple types, for example, audio services may include call services, multimedia services, notification services, etc. Call services may include playing the voice data of the other end for the user in scenarios such as phone calls (including incoming and outgoing calls), video calls, audio calls, voice messages, games or voice assistants, or collecting the user's voice data and sending it to the other end, as well as playing incoming call ringtones, etc. Multimedia services may include playing music, videos, recordings, background music of games, text-to-speech sounds, etc. Notification services may include playing SMS prompts, push notification prompts, alarm ringtones, system sounds (such as sounds when adjusting the volume, shutter sounds when shooting, etc.). The priorities of notification services, multimedia services, and call services increase in sequence. In other embodiments, audio services may include more types, which are not specifically limited here. Among them, the priority of the audio service may be pre-set or actively set by the user, which is not specifically limited here. For example, the service priority of the call service is higher than the service priority of the multimedia service, and the service priority of the multimedia service is higher than the service priority of the notification service.

[0038] In this way, the electronic device can control the Bluetooth headset to process more important audio services according to the pre-set service priority, thereby improving the user experience.

[0039] For example, the electronic devices (such as electronic device 1 and electronic device 2) in the embodiments of the present application may be mobile phones, media players (such as MP3, MP4, etc.), tablet computers, notebook computers, ultra-mobile personal computers (UMPC), personal digital assistants (PDA), televisions, smart watches, etc. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic devices.

[0040] The embodiment of the present application is described by taking the electronic device 1 as a mobile phone (such as a tablet 300 ) as an example. Figure 1 According to some embodiments of the present application, a schematic structural diagram of a tablet 300 is shown.

[0041] like Figure 1 As shown, the tablet 300 may include a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (USB) interface 330, a charging management module 340, a power management module 341, a battery 342, an antenna 1, an antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an earphone interface 370D, a sensor module 380, a button 390, a motor 391, an indicator 392, a camera 393, a display screen (touch screen) 394, and a subscriber identification module (SIM) card interface 395, etc.

[0042] Among them, the above-mentioned sensor module 380 may include sensors such as pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor and bone conduction sensor.

[0043] It is understood that the structure shown in this embodiment does not constitute a specific limitation on the tablet 300. In other embodiments, the tablet 300 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

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

[0045] The controller may be the nerve center and command center of the tablet 300. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0046] A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may store instructions or data that the processor 310 has just used or cyclically used. If the processor 310 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, and the waiting time of the processor 310 is reduced, thereby improving the efficiency of the system. In the embodiment of the present application, both the electronic device 1 and the electronic device 2 establish a wireless communication channel with the Bluetooth headset. If the electronic device 1 is processing the audio service 1 using the Bluetooth headset, at this time, after the processor 310 detects the audio service 2 again, it will first determine whether the service priority of the audio service 2 is greater than or equal to the service priority of the audio service 1. If the processor 310 determines that the service priority of the audio service 2 is greater than or equal to the service priority of the audio service 1, it will request the Bluetooth headset to suspend processing the audio service 1 and use the Bluetooth headset to process the audio service 2. As a result, the Bluetooth headset will suspend processing the audio service 1 and process the audio service 2.

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

[0048] It is understandable that the interface connection relationship between the modules shown in this embodiment is only a schematic illustration and does not constitute a structural limitation on the tablet 300. In other embodiments, the tablet 300 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0049] The charging management module 340 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While the charging management module 340 charges the battery 342, it can also power the electronic device through the power management module 341.

[0050] The power management module 341 is used to connect the battery 342, the charging management module 340 and the processor 310. The power management module 341 receives input from the battery 342 and / or the charging management module 340, and supplies power to the processor 310, the internal memory 321, the external memory, the display screen 394, the camera 393, and the wireless communication module 360. In some embodiments, the power management module 341 and the charging management module 340 can also be set in the same device.

[0051] The wireless communication function of the tablet 300 can be implemented through antenna 1, antenna 2, mobile communication module 350, wireless communication module 360, modem processor and baseband processor. In some embodiments, the antenna 1 of the tablet 300 is coupled with the mobile communication module 350, and the antenna 2 is coupled with the wireless communication module 360, so that the tablet 300 can communicate with the network and other devices through wireless communication technology.

[0052] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the flat panel 300 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0053] The mobile communication module 350 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the tablet 300. The mobile communication module 350 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 350 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.

[0054] The mobile communication module 350 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 350 can be set in the processor 310. In some embodiments, at least some functional modules of the mobile communication module 350 can be set in the same device as at least some modules of the processor 310.

[0055] The wireless communication module 360 ​​can provide wireless communication solutions including WLAN (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), nearfield communication (NFC), infrared (IR), etc., which are applied to the tablet 300. The tablet 300 can use the wireless communication module 360 ​​to establish a wireless communication channel with a Bluetooth headset. Specifically, the tablet 300 may include a Bluetooth module, and the tablet 300 can use the Bluetooth module to establish a Bluetooth communication channel with a Bluetooth headset, and the Bluetooth communication channel can transmit instructions and / or data with the Bluetooth headset. Among them, the instruction can be to pause the audio service request, process the audio service request, etc. The data can be various types of audio data.

[0056] The wireless communication module 360 ​​may be one or more devices integrating at least one communication processing module. The wireless communication module 360 ​​receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 310. The wireless communication module 360 ​​may also receive a signal to be sent from the processor 310, modulate the signal, amplify the signal, and convert it into an electromagnetic wave for radiation via the antenna 2.

[0057] The tablet 300 implements the display function through a GPU, a display screen 394, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 310 may include one or more GPUs, which execute program instructions to generate or change display information.

[0058] The display screen 394 is used to display images, videos, etc. The display screen 394 includes a display panel.

[0059] The tablet 300 can realize the shooting function through the ISP, the camera 393, the video codec, the GPU, the display screen 394 and the application processor. The ISP is used to process the data fed back by the camera 393. The camera 393 is used to capture a static image or a video. In some embodiments, the tablet 300 may include 1 or N cameras 393, where N is a positive integer greater than 1.

[0060] The external memory interface 320 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the tablet 300. The external memory card communicates with the processor 310 through the external memory interface 320 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0061] The internal memory 321 may be used to store computer executable program codes, which include instructions. The processor 310 executes various functional applications and data processing of the tablet 300 by running the instructions stored in the internal memory 321. For example, in an embodiment of the present application, the processor 310 may execute the instructions stored in the internal memory 321, and the internal memory 321 may include a program storage area and a data storage area.

[0062] The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, a service preemption function, etc.), etc. The data storage area may store data created during the use of the tablet 300 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 321 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0063] The tablet 300 can implement audio functions such as music playing and recording through the audio module 370, the speaker 370A, the receiver 370B, the microphone 370C, the headphone jack 370D, and the application processor.

[0064] The button 390 includes a power button, a volume button, etc. The button 390 can be a mechanical button. It can also be a touch button. The motor 391 can generate a vibration prompt. The motor 391 can be used for an incoming call vibration prompt, or for touch vibration feedback. The indicator 392 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 395 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 395, or pulled out from the SIM card interface 395 to achieve contact and separation with the tablet 300. The tablet 300 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 395 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.

[0065] For example, in the embodiment of the present application, the method of the embodiment of the present application is introduced by taking the electronic device 1 (i.e., the first electronic device) as the mobile phone 200, the electronic device 2 (i.e., the second electronic device) as the tablet 300, and the Bluetooth headset as the Bluetooth headset 100 as an example. Among them, the audio service 1 is the first audio service, and the audio service 2 is the second audio service.

[0066] For example, Figure 2 According to some embodiments of the present application, a schematic diagram of an application scenario of an audio service processing method is shown. Figure 3 According to some embodiments of the present application, a schematic diagram of an application scenario of an audio service processing method is shown.

[0067] like Figure 2 As shown, the application scenario includes a mobile phone 200, a tablet 300, a user, and a Bluetooth headset 100 worn by the user. The mobile phone 200 and the tablet 300 both establish a wireless communication channel with the Bluetooth headset 100. The mobile phone 200 uses the Bluetooth headset 100 to process audio service 1, for example, using the Bluetooth headset 100 to play music. Figure 3 As shown, the tablet 300 may detect music service 2, for example, the tablet 300 may need to use the Bluetooth headset 100 to play music. At this time, the service priority of audio service 2 may be greater than or equal to the service priority of audio service 1. For example, when audio service 2 is playing music and audio service 1 is playing music, the service priority of audio service 2 is equal to the service priority of audio service 1. The embodiment of this application will later introduce the priority of each audio service, which will not be repeated here.

[0068] When the tablet 300 determines that the service priority of the audio service 2 is greater than or equal to the service priority of the audio service 1, the tablet 300 may request the Bluetooth headset 100 to suspend processing of the audio service 1 (such as playing the music of the mobile phone 200), and use the Bluetooth headset 100 to process the audio service 2 (such as playing the music of the tablet 300). At this time, the audio service 1 of the mobile phone 200 is preempted by the audio service 2 of the tablet 300. Among them, the mobile phone 200 and the tablet 300 can respectively establish a wireless communication channel with the Bluetooth headset 100 through a physical connection, and the physical connection may include an asynchronous link (asynchronous connection-oriented link, ACL) connection in the wireless connection.

[0069] Another example: Figure 4 According to some embodiments of the present application, a schematic diagram of an application scenario of an audio service processing method is shown. Figure 4 As shown, the application scenario includes a mobile phone 200, a tablet 300, a user, and a Bluetooth headset 100 worn by the user. Figure 2 As shown, the mobile phone 200 uses the Bluetooth headset 100 to process the audio service 1, for example, using the Bluetooth headset 100 to play music. Figure 4 As shown, the tablet 300 may detect music service 2. For example, the tablet 300 may receive an incoming call and needs to answer the call using the Bluetooth headset 100. At this time, the service priority of audio service 2 may be greater than or equal to the service priority of audio service 1. For example, when audio service 2 is answering an incoming call and audio service 1 is playing music, the service priority of audio service 2 is higher than the service priority of audio service 1.

[0070] When the tablet 300 determines that the service priority of audio service 2 is greater than or equal to the service priority of audio service 1, the tablet 300 can request the Bluetooth headset 100 to suspend processing of audio service 1 (such as playing music from the mobile phone 200) and use the Bluetooth headset 100 to process audio service 2 (such as answering a call from the tablet 300). At this time, the audio service 1 of the mobile phone 200 is preempted by the audio service 2 of the tablet 300.

[0071] In this way, the tablet 300 can control the Bluetooth headset to process more important audio services according to the pre-set service priority, thereby improving the user experience.

[0072] Although the above solution takes the priority of audio services into consideration and improves the user experience, if a service conflict occurs in the Bluetooth headset, the Bluetooth headset will only process an audio service with a higher service priority, and suspend the processing of other audio services with lower service priorities. Other audio services with lower service priorities will be shelved and not processed, which will also affect the user experience.

[0073] In order to solve this technical problem, in the audio service processing method provided in the embodiment of the present application, after the electronic device 2 requests the Bluetooth headset to suspend processing of the audio service 1 and uses the Bluetooth headset to process the audio service 2, the method further includes: the electronic device 1 uses its own audio component to process the audio service 1. In this way, when the Bluetooth headset is connected to multiple electronic devices and multiple audio services are sent to the Bluetooth headset in parallel, the multiple audio services can be allocated to the corresponding audio playback devices, which solves the problem of selecting a suitable audio playback device under the concurrent transmission of multiple audio services and improves the user experience.

[0074] For example, for Figure 4 In the application scenario, the tablet 300 requests the Bluetooth headset 100 to pause playing the music of the mobile phone 200, and uses the Bluetooth headset 100 to play the call of the tablet 300. The Bluetooth headset 100 pauses playing the music of the mobile phone 200. After playing the call of the tablet 300, the mobile phone 200 uses its own speaker, plugs in and out headphones or a receiver, etc. to play music.

[0075] In some embodiments, after detecting the audio service 2, the tablet 300 requests the Bluetooth headset 100 to suspend processing the audio service 1, and uses the Bluetooth headset 100 to process the audio service 2. The specific implementation scheme includes the following: Figure 5 According to some embodiments of the present application, a schematic diagram of an application scenario of an audio service processing method is shown. Figure 5 As shown, the tablet 300 detects audio service 2. For example, the tablet 300 may receive an incoming call and needs to answer the call using the Bluetooth headset 100; or, the tablet 300 may need to play music using the Bluetooth headset 100. The tablet 300 sends a service pause instruction to the mobile phone 200 through the Bluetooth headset 100. The mobile phone 200 can receive the service pause instruction. After receiving the service pause instruction, the mobile phone 200 can stop sending audio data of audio service 1 to the Bluetooth headset 100, such as playing audio data corresponding to the music of the mobile phone 200. In addition, the tablet 300 can send audio data of audio service 2 to the Bluetooth headset 100. The Bluetooth headset 100 receives the audio data of audio service 2 and processes audio service 2, such as playing the music of the tablet 300 using the Bluetooth headset 100.

[0076] In this embodiment, the tablet 300 can request the Bluetooth headset 100 to suspend processing of the audio service 1 through a service suspension instruction, and use the Bluetooth headset 100 to process the audio service 2, so that the audio service 2 preempts the audio service 1.

[0077] It should be noted that, in this embodiment, the Bluetooth headset 100 can play the role of transferring data or signaling (such as the above-mentioned service suspension instruction) between the tablet 300 and the mobile phone 200. The Bluetooth headset 100 can transparently transmit the data or signaling received from the tablet 300 to the mobile phone 200, and can also transparently transmit the data or signaling received from the mobile phone 200 to the tablet 300.

[0078] In other embodiments, after receiving data or signaling from the tablet 300 or the mobile phone 200, the Bluetooth headset 100 will also respond to the data or signaling and perform some corresponding operations. For example, after receiving a service suspension instruction from the tablet 300, the Bluetooth headset 100 will not only transmit the service suspension instruction to the mobile phone 200, but also stop processing the audio service 1 of the mobile phone 200 in response to the service suspension instruction.

[0079] In some embodiments, after the tablet 300 detects the audio service 2, it requests the Bluetooth headset 100 to suspend processing the audio service 1, and uses the Bluetooth headset 100 to process the audio service 2, including the following specific implementation scheme: the mobile phone 200 indicates the service priority of the audio service 1 to the tablet 300 through the Bluetooth headset 100; after the tablet 300 detects the audio service 2, it compares the service priority of the audio service 2 with that of the audio service 1; if the service priority of the audio service 2 is greater than the service priority of the audio service 1, the tablet 300 requests the Bluetooth headset 100 to suspend processing the audio service 1, and uses the Bluetooth headset 100 to process the audio service 2.

[0080] In some embodiments, the service pause instruction is used to indicate the service priority of audio service 2; the mobile phone 200 receives the service pause instruction and stops sending audio data of audio service 1 to the Bluetooth headset 100, including the following specific implementation scheme: the mobile phone 200 receives the service pause instruction, if the service priority of audio service 2 indicated by the service pause instruction is greater than the service priority of audio service 1, stops sending audio data of audio service 1 to the Bluetooth headset 100.

[0081] In this solution, after receiving the service suspension instruction, the mobile phone 200 will reconfirm the service priorities of the audio service 2 and the audio service 1 to further ensure the accuracy of the mobile phone 200 in executing the service suspension instruction.

[0082] Figure 6According to some embodiments of the present application, a software structure diagram of a mobile phone 200 and a tablet 300 suitable for the present application is shown. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate through software interfaces. In some embodiments, the system is divided into at least three layers, from top to bottom, the application layer, the framework layer, and the hardware abstraction layer (Hardware Abstraction Layer, hal). The application layer includes applications (201, 301), audio housekeepers (204, 304), and audio control centers (205, 305). The framework layer includes perception (206, 306), AMS (207, 307), audio services (202, 302), Bluetooth services (203, 303), and iconnect modules (209, 309).

[0083] like Figure 6 As shown, the mobile phone 200 includes application 201, audio service 202, Bluetooth service 203, audio manager 204, audio control center 205, perception 206, AMS 207, hardware abstraction layer 208 and iconnect 209.

[0084] Among them, application 201 may include applications such as calls, music, video, alarm clock, system media APK, etc. Of course, the application layer may also include other applications, which are not limited in this application. When application 201 detects an audio service, it sends the audio service to audio service 202, and audio service 202 determines whether to process the detected audio service.

[0085] The Bluetooth service module 303 is used to establish a Bluetooth connection between the mobile phone 200 and the Bluetooth headset 100 .

[0086] The audio manager 204 is an application on the mobile phone 200. The audio manager 204 is used to manage the Bluetooth headset 100 connected to the mobile phone 200 via Bluetooth, and when it is detected that the user turns on the audio manager 204, it displays various parameters of the Bluetooth headset connected to the mobile phone 200 via Bluetooth to the user (such as earphone in-ear detection, battery display, etc.) and sets corresponding function controls according to the user's operation, where the function controls include play / next song, play / pause, wake up the voice assistant, turn on / off active noise reduction, etc., and sends the audio service corresponding to the detected function control to the audio service 202, and the audio service 202 determines whether to process the detected audio service.

[0087] Specifically, the audio manager 204 includes a prompt capsule, a play control strategy engine, a one-key reclaim and a smart connection. Among them, the prompt capsule is used to enable the mobile phone 200 to display a prompt message of the service switching event to the user after the Bluetooth headset 100 switches from processing the audio service of the mobile phone 200 to processing the audio service of the tablet 300. The play control strategy engine is used to set the corresponding function control according to the user's operation, and send the corresponding function control instruction to the audio strategy engine in the audio service 202. The audio strategy engine controls the flow of audio data corresponding to the audio service according to the function control instruction.

[0088] The audio service 202 is used to manage the Bluetooth headset 100 connected to the mobile phone 200 via Bluetooth, and when the Bluetooth headset 100 is determined to process the audio service of the mobile phone 200, the audio data corresponding to the audio service of the mobile phone 200 is passed to the Bluetooth headset 100 through the hardware abstraction layer 208. After receiving the audio data, the Bluetooth headset 100 plays the audio. Alternatively, if the Bluetooth headset 100 is currently executing the audio service of the tablet 300, and at this time, the mobile phone 200 also detects the audio service to be processed, the audio service 202 will compare the service priorities of the audio service of the tablet 300 and the audio service of the mobile phone 200. If the service priority of the audio service of the mobile phone 200 is greater than or equal to the service priority of the audio service of the tablet 300, the audio service 202 sends a service suspension instruction to the Bluetooth headset 100 through the Bluetooth service 203. The service suspension instruction is used to instruct the Bluetooth headset 100 to suspend the processing of the audio service currently being executed on the tablet 300 and process the audio service of the mobile phone 200.

[0089] Specifically, the audio service 202 includes an audio policy engine, an audio playback and recording thread, and an audio device stack. The audio policy engine is used to share the state of processing audio services with other peer devices connected to the Bluetooth headset 100 through the Bluetooth service 203 and the Bluetooth headset 100. The state of processing audio services includes whether to process audio services, the audio type of the processed audio services, and the priority of the audio services.

[0090] The audio policy engine is used to manage the Bluetooth headset 100 that is connected to the mobile phone 200 via Bluetooth, and upon receiving an instruction from the Bluetooth headset 100 to process the audio service of the mobile phone 200, the audio data corresponding to the audio service of the mobile phone 200 is passed to the Bluetooth headset 100 corresponding to the device identifier of the Bluetooth headset 100 specified in the audio device stack through the hardware abstraction layer 208 based on the set audio playback thread. Alternatively, if the Bluetooth headset 100 is currently executing the audio service of the tablet 300, and at this time, the mobile phone 200 also detects the audio service to be processed, the audio service 202 will compare the service priorities of the audio service of the tablet 300 and the audio service of the mobile phone 200. If the service priority of the audio service of the mobile phone 200 is greater than or equal to the service priority of the audio service of the tablet 300, the audio service 202 sends a service pause instruction to the Bluetooth headset 100 through the Bluetooth service 203. The service pause instruction is used to instruct the Bluetooth headset 100 to pause processing of the audio service currently being executed on the tablet 300, and pass the audio data corresponding to the audio service of the mobile phone 200 to the Bluetooth headset 100 corresponding to the device identifier of the Bluetooth headset 100 specified in the audio device stack through the hardware abstraction layer 208 based on the set audio playback thread.

[0091] Perception 206 is used to perceive the device information parameters of the Bluetooth headset connected to the Bluetooth service 203 and the Bluetooth headset 100 detected by AMS207, and send the information to the audio manager 204. After receiving the information, the audio manager 204 detects that the user has turned on the audio manager 204, and displays the various parameters of the Bluetooth headset 100 connected to the mobile phone 200 by Bluetooth to the user (such as earphone in-ear detection, battery display, etc.).

[0092] The audio control center 205 is used to display icons related to the audio service processed by the mobile phone 200 and pause / play button icons on the control center interface of the mobile phone 200.

[0093] Similarly, the tablet 300 also has the same functional structure as the mobile phone 200. Specifically, the tablet 300 includes applications 301, audio services 302, Bluetooth services 303, audio managers 304, audio control centers 305, perception 306, AMS 307, hardware abstraction layer (Hardware Abstraction Layer, hal) 308 and iconnect 309.

[0094] Among them, application 301 can include applications such as calls, music, video, alarm clock, system media APK, etc. Of course, the application layer can also include other applications, which are not limited in this application. When application 301 detects an audio service, it sends the audio service to audio service 302, and audio service 302 determines whether to process the detected audio service.

[0095] The Bluetooth service module 303 is used to establish a Bluetooth connection between the tablet 300 and the Bluetooth headset 100 .

[0096] The audio manager 304 is an application on the tablet 300. The audio manager 304 is used to manage the Bluetooth headset 100 connected to the tablet 300 via Bluetooth, and when it is detected that the user turns on the audio manager 304, it displays various parameters of the Bluetooth headset connected to the tablet 300 via Bluetooth (such as earphone in-ear detection, battery display, etc.) to the user and sets corresponding function controls according to the user's operation, where the function controls include play / next song, play / pause, wake up the voice assistant, turn on / off active noise reduction, etc., and sends the audio service corresponding to the detected function control to the audio service 302, and the audio service 302 determines whether to process the detected audio service.

[0097] Specifically, the audio manager 304 includes a prompt capsule, a play control strategy engine, a one-key reclaim and a smart connection. Among them, the prompt capsule is used to enable the tablet 300 to display the prompt information of the service switching event to the user after the Bluetooth headset 100 switches from processing the audio service of the tablet 300 to processing the audio service of the tablet 300. The play control strategy engine is used to set the corresponding function control according to the user's operation, and send the corresponding function control instruction to the audio strategy engine in the audio service 302. The audio strategy engine controls the flow of audio data corresponding to the audio service according to the function control instruction.

[0098] The audio service 302 is used to manage the Bluetooth headset 100 connected to the tablet 300 via Bluetooth, and when the Bluetooth headset 100 is determined to process the audio service of the tablet 300, the audio data corresponding to the audio service of the tablet 300 is passed to the Bluetooth headset 100 through the hardware abstraction layer 308. After receiving the audio data, the Bluetooth headset 100 plays the audio. Alternatively, if the Bluetooth headset 100 is currently executing the audio service of the tablet 300, and at this time, the tablet 300 also detects the audio service to be processed, the audio service 302 will compare the service priority of the audio service of the tablet 300 and the audio service of the tablet 300. If the service priority of the audio service of the tablet 300 is greater than or equal to the service priority of the audio service of the tablet 300, the audio service 302 sends a service suspension instruction to the Bluetooth headset 100 through the Bluetooth service 303. The service suspension instruction is used to instruct the Bluetooth headset 100 to suspend the processing of the audio service currently being executed on the tablet 300 and process the audio service of the tablet 300.

[0099] Specifically, the audio service 302 includes an audio policy engine, an audio playback and recording thread, and an audio device stack. The audio policy engine is used to share the state of processing audio services with other peer devices connected to the Bluetooth headset 100 through the Bluetooth service 303 and the Bluetooth headset 100. The state of processing audio services includes whether to process audio services, the audio type of the processed audio services, and the priority of the audio services.

[0100] The audio policy engine is used to manage the Bluetooth headset 100 that is connected to the tablet 300 via Bluetooth, and upon receiving an instruction from the Bluetooth headset 100 to process the audio service of the tablet 300, the audio data corresponding to the audio service of the tablet 300 is passed to the Bluetooth headset 100 corresponding to the device identifier of the Bluetooth headset 100 specified in the audio device stack through the hardware abstraction layer 308 based on the set audio playback thread. Alternatively, if the Bluetooth headset 100 is currently executing the audio service of the tablet 300, and at this time, the tablet 300 also detects the audio service to be processed, the audio service 302 will compare the service priorities of the audio service of the tablet 300 and the audio service of the tablet 300. If the service priority of the audio service of the tablet 300 is greater than or equal to the service priority of the audio service of the tablet 300, the audio service 302 sends a service pause instruction to the Bluetooth headset 100 through the Bluetooth service 303. The service pause instruction is used to instruct the Bluetooth headset 100 to pause processing of the audio service currently being executed by the tablet 300, and pass the audio data corresponding to the audio service of the tablet 300 to the Bluetooth headset 100 corresponding to the device identifier of the Bluetooth headset 100 specified in the audio device stack through the hardware abstraction layer 308 based on the set audio playback thread.

[0101] Perception 306 is used to perceive the device information parameters of the Bluetooth headset connected to the Bluetooth service 303 and the Bluetooth headset detected by AMS307, and send the information to the audio manager 304. After receiving the information, the audio manager 304 detects that the user has turned on the audio manager 304, and displays the various parameters of the Bluetooth headset connected to the tablet 300 by Bluetooth to the user (such as earphone in-ear detection, battery display, etc.).

[0102] The audio control center 305 is used to display icons related to the audio service processed by the tablet 300 and pause / play button icons on the control center interface of the tablet 300.

[0103] If the audio service processing solution provided in the embodiment of the present application is applied to a standard software architecture (such as the above Figure 6In order to avoid such problems and improve the compatibility of the audio service processing solution provided by the embodiment of the present application, the relevant functional modules for implementing the audio service processing solution provided by the embodiment of the present application can be placed in a non-standard software architecture (such as the above-mentioned software architecture). Figure 6 ), but is placed in the functional module of the electronic device itself. For details, see below Figure 7 Description.

[0104] Figure 7 According to some embodiments of the present application, a schematic diagram of the structure of an audio strategy engine is shown. Figure 7 As shown, the audio policy engine that implements the audio service processing solution provided by the embodiment of the present application is mainly in the framework layer (Java layer and local (native) layer) of the software architecture, and the modules involved are AudioService, AudioSystem, and AudioPolicyService. In addition, in order to ensure that this part does not affect the original algorithm and maintain compatibility, the implementation of this part is placed in the AudioPolicyManagerCustomInterface of the non-standard software architecture (non-AOSP module).

[0105] Among them, AudioService senses the status of the audio service currently played on the electronic device (such as mobile phone 200 and tablet 300), including the status changes of audio services such as calls, Bluetooth recording, ringtones, music, movies, alarms, notifications, etc., and broadcasts the status to the Bluetooth service (203, 303) of the electronic device (such as mobile phone 200 and tablet 300) when the audio service starts using the dual-connected Bluetooth headset and when the audio service ends and releases the dual-connected Bluetooth headset.

[0106] AudioSystem receives the audio service status information of the peer device of the dual-connected headphones broadcast by the Bluetooth service (203, 303), and sends the information to AudioPolicyManagerCustomInterface through AudioPolicyService. AudioPolicyManagerCustomInterface executes the audio service processing solution provided in the embodiment of the present application.

[0107] like Figure 5 and Figure 7 As shown, the audio control center (205, 305) can synchronously display the actual audio playback device on the current device in real time. When the AudioSystem receives the earphone status broadcast by the Bluetooth service (203, 303), it also notifies the audio control center (205, 305) to refresh the audio playback device display to display the latest audio playback device.

[0108] The following describes a process in which the Bluetooth headset 100 is connected to the mobile phone 200 and the tablet 300 at the same time, and after the user wears the Bluetooth headset 100, the mobile phone 200 uses the Bluetooth headset 100 to play music, and when the tablet 300 detects a music service, it seizes the Bluetooth headset 100 and uses the Bluetooth headset 100 to play music.

[0109] Figure 8 According to some embodiments of the present application, corresponding to Figure 4 , shows a flow chart of an audio service processing method. Figure 8 As shown, the process includes the following steps:

[0110] 801 : The Bluetooth headset 100 establishes a wireless communication channel with the mobile phone 200 through the Bluetooth service 201 , and establishes a wireless communication channel with the tablet 300 through the Bluetooth service 301 .

[0111] In some embodiments, the Bluetooth headset 100 sends a message to the mobile phone 200 and the tablet 300 that the user has worn the Bluetooth headset 100 through the communication channel between the Bluetooth headset 100 and the mobile phone 200 and the tablet 300. Specifically, after step 601, the method of the embodiment of the present application may further include steps 802-803.

[0112] 802 : The Bluetooth headset 100 sends a wearing notification to the mobile phone 200 via the Bluetooth service 201 . The Bluetooth headset 100 sends a wearing notification to the mobile phone 200 via the Bluetooth service 201 .

[0113] 803 : The Bluetooth service 201 broadcasts the wearing status to the audio service 202 , and the Bluetooth service 301 broadcasts the wearing status to the audio service 302 .

[0114] 804: Application 203 detects a music service.

[0115] In some embodiments, the application 203 can detect the music service initiated by the user in response to the user's operation of playing the selected music.

[0116] 805 : The application 203 sends a music playing request to the audio service 202 .

[0117] 806: The audio service 202 determines that the Bluetooth headset 100 is idle and can play music.

[0118] It can be understood that the audio service 202 and the audio service 302 can share the status of their respective devices processing audio services using the Bluetooth headset 100. Therefore, the audio service 202 can determine whether the Bluetooth headset 100 is idle and can play music based on the aforementioned shared information.

[0119] 807: The audio service 202 sends a music playing instruction to the Bluetooth headset 100 through the Bluetooth service 201, where the music playing instruction includes the audio stream name.

[0120] In the embodiment of the present application, the name of the audio stream is used to determine the service type of the audio service, and the service type of the audio service can be used to determine the service priority of playing music. Exemplarily, the audio stream name and its corresponding service type can be shown in Table 1:

[0121] Table 1

[0122]

[0123] According to Table 1, if the name of the audio stream 1 is Stream_Music, the audio service 1 belongs to the multimedia service, and its service type identifier is 2. Of course, in other embodiments, if the name of the audio stream 1 is Stream_Voice_Call, the audio service 1 belongs to the call service, and its service type identifier is 1; or if the name of the audio stream 1 is Stream_Notification, the audio service 1 belongs to the notification service, and its service type identifier is 3.

[0124] In Table 1, each audio stream name may correspond to a type of audio stream. In actual application, the electronic device may include more types of audio streams in Table 1, which are not specifically limited here. In addition, the electronic device may include more types of services, for example, "Stream_TTS" and "Stream_Accessibility" may be classified as other types. The service type identifier corresponding to each service type in Table 1 is only an example, and the service type identifier may also be other.

[0125] In some other embodiments, the play music instruction also includes a service priority and / or service type field of the audio service, but is not limited thereto.

[0126] 808 : Upon receiving the music playing instruction sent by the audio service 202 , the Bluetooth headset 100 plays music.

[0127] Specifically, after receiving the music playing instruction sent by the audio service 202, the Bluetooth headset 100 receives the audio data sent by the audio service 202 and plays the music based on the audio data.

[0128] 809 : The Bluetooth headset 100 sends notification information of the audio service processing status of the Bluetooth headset 100 to the audio service 302 via the Bluetooth service 301 .

[0129] In this way, the audio service 202 and the audio service 302 can share the status of their respective devices processing audio services using the Bluetooth headset 100.

[0130] 810: Application 303 detects music service.

[0131] In some embodiments, the application 303 can detect the music service initiated by the user in response to the user's operation of playing the selected music.

[0132] 811: The application 303 sends a music playing request to the audio service 302.

[0133] 812: the audio service 302 compares the service priorities of the music service of the tablet 300 and the music service of the mobile phone 200; if the service priority of the music service of the tablet 300 is equal to the service priority of the music service of the mobile phone 200, it is determined that the Bluetooth headset 100 can be preempted to play music.

[0134] 813: The audio service 302 sends a service suspension instruction to the Bluetooth headset 100 through the Bluetooth service 301.

[0135] 814 : After receiving the service suspension instruction, the audio service 202 does not send audio data to the Bluetooth headset 100 .

[0136] 815 : The audio service 302 sends the music data to the Bluetooth headset 100 via the Bluetooth service 301 .

[0137] 816: The Bluetooth headset 100 plays music based on the music data.

[0138] In some embodiments, the tablet 300 requests the Bluetooth headset 100 to pause playing the music of the mobile phone 200, and uses the Bluetooth headset 100 to play the music of the tablet 300. The Bluetooth headset 100 pauses playing the music of the mobile phone 200. After playing the call of the tablet 300, the mobile phone 200 uses its own speaker, plugs in and out headphones or receivers, etc. to play the music, and at the same time displays the current audio service processing device (audio input and output device) on the display interface of the mobile phone 200. For example, Fig. 9 According to some embodiments of the present application, a schematic diagram of a notification management interface is shown. Fig. 9 As shown, the display interface of the mobile phone 200 shows that the current audio service processing device (audio input and output device) is this device.

[0139] Fig.10 According to some embodiments of the present application, a schematic diagram of the structure of a Bluetooth headset 100 is shown. Fig.10As shown, the Bluetooth headset 100 may include at least one processor 101, at least one memory 102, a wireless communication module 103, an audio module 104, a power module 105, and an input / output interface 106. The processor may include one or more interfaces for connecting to other components of the Bluetooth headset 100. The Bluetooth headset 100 is stored in an earphone box. Fig.10 The various components of the Bluetooth headset 100 are introduced in detail.

[0140] The memory 102 can be used to store program codes, such as program codes for physically connecting the Bluetooth headset 100 with multiple electronic devices, connecting with electronic devices in accordance with business regulations, processing audio services of electronic devices (such as music playback, answering / calling, etc.), charging the Bluetooth headset 100, and wirelessly pairing the Bluetooth headset 100 with other electronic devices. The memory 102 can also be used to store other information, such as the priority of electronic devices.

[0141] The processor 101 can be used to execute the above application code and call related modules to implement the functions of the Bluetooth headset 100 in the embodiment of the present application. For example, the Bluetooth headset 100 can be connected physically to multiple electronic devices (such as electronic device 1 and electronic device 2), and can be connected to the service specification between different electronic devices according to the device priority. Among them, the physical connection is a connection based on a physical link, which may include an ACL connection or a low energy asynchronous connection link (LEACL) connection. Exemplarily, when the Bluetooth headset establishes a physical connection with the electronic device 1 and is processing the audio service 1 of the electronic device 1 (such as playing music), if the Bluetooth headset receives the connection request information of the electronic device 2, the Bluetooth headset can process the audio service 2 of the electronic device 2 (such as answering / making a call) based on the physical connection with the electronic device 2, so as to realize the service preemption function of the audio service 2 of the electronic device 2.

[0142] The processor 101 may include one or more processing units, and different processing units may be independent devices or integrated into one or more processors 101. The processor 101 may specifically be an integrated control chip, or may be composed of a circuit including various active and / or passive components, and the circuit is configured to perform the functions of the processor 101 described in the embodiments of the present application.

[0143] The wireless communication module 103 can be used to support data exchange between the Bluetooth headset 100 and other electronic devices or earphone boxes through wireless communication technology, such as BT, WLAN (such as Wi-Fi), Zigbee, FM, NFC, IR, or general 2.4G / 5G wireless communication technology.

[0144] In some embodiments, the wireless communication module 103 may be a Bluetooth chip. The Bluetooth headset 100 may be paired with the Bluetooth chip of other electronic devices and establish a wireless connection through the Bluetooth chip to achieve wireless communication and service processing between the Bluetooth headset 100 and other electronic devices through the wireless connection. Generally, the Bluetooth chip may support basic rate (BR) / enhanced data rate (EDR) Bluetooth and BLE, for example, it may receive / send paging information, receive / send BLE broadcast messages, etc.

[0145] In addition, the wireless communication module 103 may also include an antenna, and the wireless communication module 103 receives electromagnetic waves via the antenna, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 101. The wireless communication module 103 may also receive a signal to be sent from the processor 101, modulate the frequency of the signal, amplify the signal, and convert it into an electromagnetic wave for radiation through the antenna.

[0146] The audio module 104 can be used to manage audio data and implement the input and output audio streams of the Bluetooth headset 100. For example, the audio module 104 can obtain the audio stream from the wireless communication module 103, or transmit the audio stream to the wireless communication module 103, to implement functions such as making and receiving calls, playing music, starting / turning off the voice assistant of the electronic device connected to the headset, receiving / sending the user's voice data, etc. through the Bluetooth headset. The audio module 104 may include a speaker (or earpiece, receiver) component for outputting an audio stream, a microphone (or microphone, microphone), a microphone receiving circuit matched with the microphone, etc. The speaker can be used to convert an audio electrical signal into a sound signal and play it. The microphone can be used to convert a sound signal into an audio electrical signal.

[0147] The power module 105 can be used to provide system power for the Bluetooth headset 100, power each module of the Bluetooth headset 100, support the Bluetooth headset 100 to receive charging input, etc. The power module 105 may include a power management unit (PMU) and a battery. Among them, the power management unit can receive external charging input; transform the electrical signal input by the charging circuit and provide it to the battery for charging, and can also transform the electrical signal provided by the battery and provide it to other modules such as the audio module 104 and the wireless communication module 103; and prevent the battery from being overcharged, over-discharged, short-circuited or overcurrent, etc. In some embodiments, the power module 105 may also include a wireless charging coil for wirelessly charging the Bluetooth headset 100. In addition, the power management unit can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.

[0148] The multiple input / output interfaces 106 can be used to provide a wired connection for charging or communication between the Bluetooth headset 100 and the headset box. In some embodiments, the input / output interface can be a USB interface. In other embodiments, the input / output interface 106 can be a headset electrical connector. When the Bluetooth headset 100 is placed in the headset box, the Bluetooth headset 100 can establish an electrical connection with the electrical connector in the headset box through the headset electrical connector, thereby charging the battery in the Bluetooth headset 100. In other embodiments, after the electrical connection is established, the Bluetooth headset 100 can also communicate data with the headset box, for example, it can receive a pairing instruction from the headset box.

[0149] In addition, the Bluetooth headset 100 may further include a sensor 107. For example, the sensor 107 may be a distance sensor or a proximity light sensor, which may be used to determine whether the Bluetooth headset 100 is worn by the user. Exemplarily, the Bluetooth headset 100 may use the distance sensor to detect whether there is an object near the Bluetooth headset 100, thereby determining whether the Bluetooth headset 100 is worn by the user. When it is determined that the Bluetooth headset 100 is worn, the Bluetooth headset 100 may turn on the speaker.

[0150] For another example, the sensor 107 may also include a bone conduction sensor, combined into a bone conduction headset. Using the bone conduction sensor, the Bluetooth headset 100 can obtain the vibration signal of the human vocal bone, parse the voice signal, implement the voice function, and thus receive the user's voice command. The Bluetooth headset 100 can also perform voice authentication based on the user's voice signal obtained by the bone conduction headset to authenticate the user's identity in business scenarios such as payment transactions.

[0151] For another example, the sensor 107 may also include: a touch sensor for detecting a user's touch operation; a fingerprint sensor for detecting a user's fingerprint and identifying the user's identity; an ambient light sensor that can adaptively adjust some parameters (such as volume) according to the perceived brightness of the ambient light; and other possible sensors.

[0152] In some embodiments, the touch sensor can detect the user's touch operations such as single click, double click, multiple clicks, long press, and heavy pressure, and can also perform user fingerprint recognition to authenticate the user's identity in business scenarios such as payment transactions.

[0153] It is understandable that the structure shown in the embodiment of the present application does not constitute a specific limitation on the Bluetooth headset 100. Fig.10 More or fewer components shown may be combined with two or more components, or may have different component configurations. For example, the outer surface of the Bluetooth headset 100 may also include a button 108, an indicator light (which may indicate battery level, incoming / outgoing call, pairing mode, etc.), a display screen (which may prompt the user with relevant information), a dust screen (which may be used in conjunction with a handset), and other components. The button 108 may be a physical button or a touch button (used in conjunction with a touch sensor), etc., which is used to trigger operations such as power on, power off, pause, play, record, start pairing, and reset.

[0154] Fig.10 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application-specific integrated circuits. Exemplarily, when the Bluetooth headset is a TWS headset, the Bluetooth headset 100 may include an earphone body worn for the left ear (also called the left earplug, or the first part) and an earphone body worn for the right ear (also called the right earplug, or the second part). The earphone body may include a housing and internal components. The internal components are arranged in a cavity formed by the housing. The internal components may include devices in modules such as the above-mentioned audio module, power module, and wireless communication module.

[0155] When the Bluetooth headset is a TWS headset, the user can use the TWS headset in binaural mode or monaural mode. In monaural mode, the user wears the left earbud or the right earbud to listen to music or answer / make calls and other audio services. In binaural mode, the user can wear two earbuds to enjoy music or perform other audio services. In binaural mode, the two earbuds are divided into main earbuds and auxiliary earbuds. Moreover, during the use of TWS headsets, the main and auxiliary roles of the two earbuds can also be switched based on different conditions. For example, the earbud with higher power can be switched to the main earbud, and the earbud with lower power can be switched to the auxiliary earbud.

[0156] In some embodiments, the Bluetooth headset is usually stored in an earphone box. The earphone box may have one or more magnets inside to attract the earphone body into the cavity in the earphone box. The earphone box may include a battery and multiple input / output interfaces. In some embodiments, the input / output interface may be a box electrical connector. When a pair of box electrical connectors in the earphone box are electrically connected to two earphone electrical connectors in the earphone body, the earphone box can charge the battery in the earphone body through its own battery.

[0157] In other embodiments, the headset box may be provided with at least one touch control, which may be used to trigger the Bluetooth headset to perform pairing reset or charge the Bluetooth headset. The headset box may also be provided with one or more power indicator lights to prompt the user with the power level of the battery in the headset box and the power level of the battery in each headset body in the headset box.

[0158] In other embodiments, the earphone box may further include components such as a processor and a memory. The memory may be used to store application code, and the processor of the earphone box controls execution to implement various functions of the earphone box. For example, the processor of the earphone box executes the application code stored in the memory, and charges the Bluetooth headset after detecting that the Bluetooth headset is placed in the earphone box and the lid of the earphone box is closed.

[0159] In addition, the earphone box may be provided with a charging interface for charging the battery of the earphone box. The earphone box may also include a wireless charging coil for wirelessly charging the battery of the earphone box. It is understandable that the earphone box may also include other components, which will not be described one by one here.

[0160] Understandably, Fig.10 The components shown do not constitute a specific limitation on the Bluetooth headset 100 . The Bluetooth headset 100 may also include more or fewer components than those shown in the figure, or combine or separate certain components, or arrange the components differently.

[0161] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.

[0162] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0163] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0164] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable storage media. Therefore, a machine-readable storage medium may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, a floppy disk, an optical disk, an optical disk, a read-only memory (CD-ROMs), a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic card or an optical card, a flash memory, or a tangible machine-readable memory for transmitting information (e.g., a carrier wave, an infrared signal digital signal, etc.) based on the Internet in an electrical, optical, acoustic, or other form of propagation signal. Accordingly, machine-readable storage media include any type of machine-readable storage media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).

[0165] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0166] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0167] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0168] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims

1. An audio service processing method, characterized in that: The method comprises: The first electronic device and the second electronic device both establish wireless communication channels with the Bluetooth headset; The first electronic device processes a first audio service using the Bluetooth headset; After the second electronic device detects the second audio service, determining whether the service priority of the second audio service is greater than the service priority of the first audio service; If the service priority of the second audio service is greater than the service priority of the first audio service, the second electronic device sends a service suspension instruction to the first electronic device through the Bluetooth headset; the service suspension instruction is used to indicate the service priority of the second audio service; The first electronic device receives the service suspension instruction, and if the service priority of the second audio service indicated by the service suspension instruction is greater than the service priority of the first audio service, stops sending the audio data of the first audio service to the Bluetooth headset; The second electronic device processes the second audio service using the Bluetooth headset.

2. The method according to claim 1, characterized in that The processing of the second audio service by using the Bluetooth headset includes: The second electronic device sends the audio data of the second audio service to the Bluetooth headset; The Bluetooth headset receives the audio data of the second audio service and processes the second audio service.

3. The method according to claim 2, characterized in that Before the second electronic device sends a service suspension instruction to the first electronic device through the Bluetooth headset, the method further includes: The first electronic device indicates the service priority of the first audio service to the second electronic device through the Bluetooth headset.

4. The method according to any one of claims 1 to 3, characterized in that After stopping sending the audio data of the first audio service to the Bluetooth headset, the method further includes: The first electronic device processes the first audio service using an audio component of the first electronic device.

5. The method according to any one of claims 1 to 4, characterized in that The audio services processed by the Bluetooth headset include call services, multimedia services and notification services; The service priority of the call service is greater than the service priority of the multimedia service, and the service priority of the multimedia service is greater than the service priority of the notification service.

6. An audio service processing method, characterized in that: The method comprises: The second electronic device establishes a wireless communication channel with the Bluetooth headset; wherein the Bluetooth headset also establishes a wireless communication channel with the first electronic device, and the Bluetooth headset processes a first audio service of the first electronic device; After the second electronic device detects the second audio service, determining whether the service priority of the second audio service is greater than the service priority of the first audio service; If the service priority of the second audio service is greater than the service priority of the first audio service, the second electronic device requests the Bluetooth headset to suspend processing of the first audio service and uses the Bluetooth headset to process the second audio service; The second electronic device requests the Bluetooth headset to suspend processing of the first audio service, including: The second electronic device sends a service pause instruction to the first electronic device through the Bluetooth headset; wherein the service pause instruction indicates that the service priority of the second audio service is greater than the service priority of the first audio service, and the service pause instruction is used to instruct the first electronic device to stop sending audio data of the first audio service to the Bluetooth headset based on the service pause instruction.

7. The method according to claim 6, characterized in that The processing of the second audio service by using the Bluetooth headset comprises: the second electronic device sending audio data of the second audio service to the Bluetooth headset; The Bluetooth headset receives the audio data of the second audio service and processes the second audio service.

8. The method according to claim 6, characterized in that Before the second electronic device requests the Bluetooth headset to suspend processing of the first audio service and uses the Bluetooth headset to process the second audio service, the method further includes: The second electronic device receives the service priority of the first audio service indicated by the first electronic device through the Bluetooth headset.

9. An electronic device, characterized in that: It comprises a processor and a memory; the memory is used to store code instructions; the processor is used to run the code instructions, so that the first electronic device or the second electronic device executes the method as described in any one of claims 1-5 or claims 6-8.

10. A computer storage medium, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method as claimed in any one of claims 1 to 5 or claims 6 to 8.