Audio service recovery processing method, electronic equipment and computer storage medium

By displaying prompts in scenarios where Bluetooth headphones are connected to multiple devices, allowing users to decide which audio service to switch, the problem of Bluetooth headphones being unable to switch according to user wishes is solved, thus improving the user experience.

CN121603835APending Publication Date: 2026-03-03HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511460196.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-10-20
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

Bluetooth headsets cannot flexibly switch audio services according to the user's wishes when connected to multiple electronic devices, resulting in a poor user experience.

Method used

When a high-priority audio service is detected, a prompt message is displayed to allow the user to decide whether to restore the low-priority audio service, thus allowing the user to control the switching of audio services.

Benefits of technology

It improves the flexibility of audio service switching and user experience, meeting users' personalized needs for audio services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121603835A_ABST
    Figure CN121603835A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, in particular to an audio service recovery processing method, electronic equipment and a computer storage medium. According to the method and the device, whether the preempted audio service is recovered or not can be selected according to the willingness of the user, so that the audio service switching flexibility is improved, and the user experience is improved. The method comprises the following steps: a first electronic device and a second electronic device establish wireless communication channels with a Bluetooth earphone; the first electronic equipment processes the first audio service by using the Bluetooth headset; after detecting the second audio service, the second electronic equipment requests the Bluetooth headset to stop processing the first audio service, and processes the second audio service by using the Bluetooth headset; the first electronic equipment displays first prompt information after the Bluetooth headset pauses processing of the first audio service; and the first electronic device requests the Bluetooth headset to pause processing of the second audio service in response to a first operation of the user on the first prompt information, and processes the first audio service by using the Bluetooth headset.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The original application has the application number 202211289367.0 and the original application date is October 20, 2022. The entire contents of the original application are incorporated herein by reference. Technical Field

[0002] This application relates to the field of communication technology, and in particular to an audio service recovery processing method, electronic device, and computer storage medium. Background Technology

[0003] Currently, Bluetooth headsets are gaining popularity due to their portability, ease of use, and the elimination of tangled headphone cables. The function of Bluetooth headsets is to establish a wireless connection with electronic devices such as mobile phones, tablets, and personal computers (PCs), thereby enabling users to perform audio tasks. For example, Bluetooth headsets can wirelessly connect to a mobile phone to play music, make / receive phone calls, and perform other audio-related tasks.

[0004] Currently, Bluetooth headsets can connect to multiple electronic devices, but they can only process the audio service of the one electronic device with the highest service priority according to the service priority set in the audio service settings. They cannot process the audio service of other electronic devices according to the user's wishes, resulting in poor flexibility in switching audio services and a poor user experience. Summary of the Invention

[0005] This application provides an audio service recovery processing method, an electronic device, and a computer storage medium to solve the problem that in scenarios where Bluetooth headsets are connected to multiple electronic devices, the audio service can only be processed according to the service priority order set by the audio service, and the audio service of other electronic devices cannot be processed according to the user's wishes, resulting in poor flexibility in audio service switching and a poor user experience.

[0006] To achieve the above objectives, the embodiments of this application adopt the following technical solutions: In a first aspect, an audio service recovery method is provided, comprising: a first electronic device and a second electronic device both establishing a wireless communication channel with a Bluetooth headset; the first electronic device processing a first audio service using the Bluetooth headset; the second electronic device, after detecting a second audio service, requesting the Bluetooth headset to pause processing the first audio service, and then processing the second audio service using the Bluetooth headset; wherein the service priority of the second audio service is greater than or equal to the service priority of the first audio service; the first electronic device displaying a first prompt message after the Bluetooth headset pauses processing the first audio service; wherein the first prompt message is used to request a user to determine whether the first electronic device should resume processing the first audio service using the Bluetooth headset; the first electronic device, in response to a first operation by the user on the first prompt message, requesting the Bluetooth headset to pause processing the second audio service, and then processing the first audio service using the Bluetooth headset; wherein the first operation is used to trigger the first electronic device to resume processing the first audio service using the Bluetooth headset.

[0007] This solution does not simply determine which electronic device's audio service to process based on its priority order. After pausing an audio service, the user can decide whether to resume it. Afterward, the user can choose whether to resume the preempted audio service. This increases the flexibility of audio service switching and improves the user experience.

[0008] In one possible implementation of the first aspect, after the second electronic device detects the second audio service, it requests the Bluetooth headset to pause processing the first audio service and uses the Bluetooth headset to process the second audio service, including: the second electronic device detects the second audio service and sends a service pause command to the first electronic device through the Bluetooth headset; the first electronic device receives the service pause command 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; and the Bluetooth headset receives the audio data of the second audio service and processes the second audio service.

[0009] In one possible implementation of the first aspect, before the second electronic device requests the Bluetooth headset to pause processing the first audio service after detecting the second audio service, and before using 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 via a Bluetooth headset; wherein, after the second electronic device detects the second audio service, it requests the Bluetooth headset to suspend processing of the first audio service and uses the Bluetooth headset to process the second audio service, including: after the second electronic device detects the second audio service, it compares the service priorities of the second audio service with those of the first audio service; if the service priority of the second audio service is greater than that 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.

[0010] In one possible implementation of the first aspect, the service pause instruction is used to indicate the service priority of the 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, it stops sending audio data of the first audio service to the Bluetooth headset. In this solution, after receiving the service pause instruction, the first electronic device will reconfirm the service priorities of the second and first audio services to further ensure the accuracy of the first electronic device in executing the service pause instruction.

[0011] In one possible implementation of the first aspect, the method further includes: if the service priority of the second audio service is equal to the service priority of the first audio service, the second electronic device displays a second prompt message; wherein the second prompt message is used to request the user to determine whether the second electronic device should preempt the Bluetooth headset to process the second audio service; in response to a third operation by the user on the second prompt message, the second electronic device requests the Bluetooth headset to pause processing the first audio service and uses the Bluetooth headset to process the second audio service; wherein the third operation is used to trigger the second electronic device to preempt the Bluetooth headset to process the second audio service.

[0012] In this solution, when audio services that simultaneously require the use of Bluetooth headsets are at the same service priority, the second electronic device that initiates the audio service later can display a prompt message asking the user to confirm whether the second electronic device should preempt the Bluetooth headset to process the second audio service. In this way, the user can decide whether to process the second audio service initiated later, thus improving the user experience.

[0013] In one possible implementation of the first aspect, the first electronic device, in response to a user's first operation on the first prompt information, requests the Bluetooth headset to pause processing the second audio service and uses the Bluetooth headset to process the first audio service, including: if the first electronic device receives a user's first operation on the first prompt information within a first preset time period, the first electronic device, in response to the first operation, requests the Bluetooth headset to pause processing the second audio service and uses the Bluetooth headset to process the first audio service.

[0014] In this solution, the display time of the first prompt message needs to be controlled within a certain period of time. If the user's first operation on the first prompt message is detected within this controlled period of time, the second electronic device will resume the originally suspended audio service. This improves the efficiency of the second electronic device in resuming the originally suspended audio service.

[0015] In one possible implementation of the first aspect, the method further includes: if the first electronic device does not receive a user's operation on the first prompt information within a first preset time period, or if the first electronic device receives a second operation from the user on the first prompt information within the first preset time period, the first electronic device will use the Bluetooth headset to process the first audio service after the Bluetooth headset has finished processing the second audio service; or, if the first electronic device does not receive a user's operation on the first prompt information within the first preset time period, or if the first electronic device receives a second operation from the user on the first prompt information within the first preset time period, the first electronic device will use the Bluetooth headset to process the first audio service after the Bluetooth headset has paused processing the second audio service; wherein the second operation is used to trigger the first electronic device not to resume using the Bluetooth headset to process the first audio service.

[0016] In this solution, the display time of the first prompt message needs to be controlled within a certain period. If the user's first operation on the first prompt message is detected within this controlled time, the second electronic device resumes the previously paused audio service. This improves the efficiency of the second electronic device in resuming the previously paused audio service. Furthermore, after the Bluetooth headset finishes processing the second audio service, the first electronic device can automatically resume processing the first audio service using the Bluetooth headset without user intervention, thereby improving the user experience.

[0017] In one possible implementation of the first aspect, the method further includes: In response to a second operation by the user on the first prompt message, if the second electronic device completes processing the second audio service using the Bluetooth headset within a second preset time period, the first electronic device then processes the first audio service using the Bluetooth headset after the second audio service has been completed; or, in response to a second operation by the user on the first prompt message, if the second electronic device pauses processing the second audio service using the Bluetooth headset within a second preset time period, the first electronic device then processes the first audio service using the Bluetooth headset after the second audio service has been paused; wherein the second operation is used to trigger the first electronic device not to resume processing the first audio service using the Bluetooth headset.

[0018] In this solution, after the Bluetooth headset finishes processing the second audio service, the first electronic device can automatically resume processing the first audio service using the Bluetooth headset without user intervention, thereby improving the user experience.

[0019] In one possible implementation of the first aspect, after the second electronic device detects the second audio service, requests the Bluetooth headset to pause processing the first audio service, and then processes the second audio service using the Bluetooth headset, the method further includes: the first electronic device processing the first audio service using the audio component of the first electronic device.

[0020] After the Bluetooth headset pauses processing the first audio service, the first electronic device can also automatically process the pending first audio service, improving the completion rate of the audio service.

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

[0022] Secondly, an audio service recovery method is provided, comprising: establishing a wireless communication channel between a first electronic device and a Bluetooth headset; wherein the Bluetooth headset and a second electronic device also establish a wireless communication channel; the first electronic device using the Bluetooth headset to process a first audio service; after the first electronic device pauses processing the first audio service while the Bluetooth headset is processing the second audio service of the second electronic device, the first electronic device displays a first prompt message; wherein the first prompt message is used to request a user to determine whether the first electronic device should resume processing the first audio service using the Bluetooth headset; the service priority of the second audio service is greater than or equal to the service priority of the first audio service; the first electronic device responding to a first operation by the user on the first prompt message, requests the Bluetooth headset to pause processing the second audio service and then processes the first audio service using the Bluetooth headset; wherein the first operation is used to trigger the first electronic device to resume processing the first audio service using the Bluetooth headset.

[0023] This solution does not simply determine which electronic device's audio service to process based on its priority order. After pausing an audio service, the user can decide whether to resume it. Afterward, the user can choose whether to resume the preempted audio service. This increases the flexibility of audio service switching and improves the user experience.

[0024] In one possible implementation of the second aspect, before the first electronic device displays the first prompt message after the first electronic device processes the second audio service of the second electronic device through the Bluetooth headset and pauses processing the first audio service, the method further includes: the first electronic device instructing the second electronic device on the service priority of the first audio service through the Bluetooth headset.

[0025] In one possible implementation of the second aspect, after the first electronic device processes the first audio service using the Bluetooth headset, and before the first electronic device displays the first prompt information after the Bluetooth headset processes the second audio service of the second electronic device and pauses processing the first audio service, the method further includes: the first electronic device receiving a service pause instruction from the second electronic device via the Bluetooth headset, the service pause instruction being used to indicate the service priority of the second audio service; 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, the first electronic device stops sending audio data of the first audio service to the Bluetooth headset.

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

[0027] In one possible implementation of the second aspect, the first electronic device, in response to a user's first operation on the first prompt information, requests the Bluetooth headset to pause processing the second audio service and uses the Bluetooth headset to process the first audio service, including: if the first electronic device receives a user's first operation on the first prompt information within a first preset time period, the first electronic device, in response to the first operation, requests the Bluetooth headset to pause processing the second audio service and uses the Bluetooth headset to process the first audio service.

[0028] In one possible implementation of the second aspect, the method further includes: if the first electronic device does not receive any user operation on the first prompt information within a first preset time period, or if the first electronic device receives a second user operation on the first prompt information within the first preset time period, the first electronic device then processes the first audio service using the Bluetooth headset after the Bluetooth headset has finished processing the second audio service; or... If the first electronic device does not receive the user's operation on the first prompt information within the first preset time period, or if the first electronic device receives the user's second operation on the first prompt information within the first preset time period, the first electronic device will use the Bluetooth headset to process the first audio service after the Bluetooth headset pauses processing the second audio service. The second operation is used to trigger the first electronic device to stop using the Bluetooth headset to process the first audio service.

[0029] In one possible implementation of the second aspect, the method further includes: In response to a second operation by the user on the first prompt message, if the second electronic device completes processing the second audio service using the Bluetooth headset within a second preset time period, the first electronic device then processes the first audio service using the Bluetooth headset after the second audio service has been completed; or, in response to a second operation by the user on the first prompt message, if the second electronic device pauses processing the second audio service using the Bluetooth headset within a second preset time period, the first electronic device then processes the first audio service using the Bluetooth headset after the second audio service has been paused; wherein the second operation is used to trigger the first electronic device not to resume processing the first audio service using the Bluetooth headset.

[0030] In one possible implementation of the second aspect, after the second electronic device detects the second audio service, requests the Bluetooth headset to pause processing the first audio service, and then processes the second audio service using the Bluetooth headset, the method further includes: the first electronic device processing the first audio service using the audio component of the first electronic device.

[0031] Thirdly, an electronic device is provided, comprising a processor and a memory; the memory for storing code instructions; and the processor for executing the code instructions to perform a method as described in either the first or second aspect of the design.

[0032] Fourthly, a computer storage medium is provided that stores instructions which, when executed on a computer, cause the computer to perform a method as described in either the first or second aspect.

[0033] The technical effects of any of the design methods in the third and fourth aspects can be found in the technical effects of different design methods in the first aspect, and will not be repeated here. Attached Figure Description

[0034] Figure 1 According to some embodiments of this application, an application scenario is shown where a Bluetooth headset connects to multiple devices, and the audio service of one device is being handled by the Bluetooth headset. Figure 2 According to some embodiments of this application, an application scenario is shown where a Bluetooth headset connects to multiple devices, and the audio services of the multiple devices compete for the Bluetooth headset's audio. Figure 3 A schematic diagram of the structure of a mobile phone 200 is shown for some embodiments of this application; Figure 4 A software structure block diagram of a mobile phone 200 is shown for some embodiments of this application; Figure 5 A schematic diagram illustrating an application scenario of an audio service recovery processing method according to some embodiments of this application is shown. Figure 6 A schematic diagram of the user interface for a "one-click retrieval" window is shown for some embodiments of this application; Figure 7 A schematic diagram illustrating an application scenario of an audio service recovery processing method according to some embodiments of this application is shown. Figure 8 A schematic diagram illustrating an application scenario of an audio service recovery processing method according to some embodiments of this application is shown. Figure 9 A schematic diagram of the functional modules of a mobile phone 200 and a tablet 300 capable of implementing the audio service recovery processing method provided in the embodiments of this application is shown for some embodiments of this application. Figure 10 According to some embodiments of this application, corresponding to Figure 5 This diagram illustrates the interaction logic of various modules of a mobile phone 200 whose audio service has been preempted when an audio service preemption event occurs. Figure 11 According to some embodiments of this application, corresponding to Figure 7This diagram illustrates the interactive logic of a mobile phone 200 whose audio service has been preempted resuming music playback using a Bluetooth headset 100. Figure 12 According to some embodiments of this application, a schematic diagram of the interactive logic is shown in which, when music playback on a tablet 300 is paused and the Bluetooth headset 100 is in an idle state, the mobile phone 200 resumes playing music using the Bluetooth headset 100. Figure 13 According to some embodiments of this application, corresponding to Figure 1 , Figure 2 , Figure 5 and Figure 7 The corresponding application scenario is illustrated with a flowchart of an audio service recovery processing method. Detailed Implementation

[0035] The illustrative embodiments of this application include, but are not limited to, an audio service recovery processing method, an electronic device, and a computer storage medium.

[0036] The embodiments of this application are described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. As those skilled in the art will recognize, with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0037] As described in the background section, currently, Bluetooth headsets can connect to multiple electronic devices, but they can only process the audio service of the electronic device with the highest service priority according to the service priority order set in the audio service settings. They cannot process the audio service of other electronic devices according to the user's wishes, resulting in poor flexibility in switching audio services and a poor user experience.

[0038] For example, Figure 1 According to some embodiments of this application, an application scenario is shown where a Bluetooth headset connects to multiple devices, and the audio service of one device is being handled by the Bluetooth headset. Figure 2 According to some embodiments of this application, an application scenario is shown where a Bluetooth headset connects to multiple devices, and the audio services of the multiple devices compete for bandwidth from the Bluetooth headset. For example... Figure 1 As shown, this application scenario includes a Bluetooth headset 100, a mobile phone 200, and a tablet 300. The Bluetooth headset 100 establishes wireless communication connections with both the mobile phone 200 and the tablet 300, thereby enabling the mobile phone 200 and tablet 300 to handle audio services for the user. Figure 2 As shown, currently, after mobile phone 200 sends a request to Bluetooth headset 100 to play music, Bluetooth headset 100 plays the music from mobile phone 200. For example... Figure 2As shown, if tablet 300 detects an audio service playing music and determines that the priority of its music playback is greater than or equal to that of mobile phone 200, it requests Bluetooth headset 100 to pause playback of music from mobile phone 200 and start playing music from tablet 300. Thus, Bluetooth headset 100 pauses playback of music from mobile phone 200 and starts playing music from tablet 300. During this process, Bluetooth headset 100 cannot switch back to playing music from mobile phone 200 according to the user's wishes, resulting in poor flexibility in audio service switching and a poor user experience.

[0039] To address the aforementioned technical issues, this application provides an audio service recovery method. In this method, both electronic device 1 and electronic device 2 establish a wireless communication channel with a Bluetooth headset. Then, when electronic device 1 is processing audio service 1 using the Bluetooth headset, and electronic device 2 detects audio service 2, it can request the Bluetooth headset to pause processing audio service 1 and then process audio service 2 using the Bluetooth headset. The audio service priority of audio service 2 is greater than or equal to the audio service priority of audio service 1. In this embodiment, electronic device 1 is a first electronic device, electronic device 2 is a second electronic device, audio service 1 is a first audio service, and audio service 2 is a second audio service.

[0040] Furthermore, after the Bluetooth headset pauses audio service 1, electronic device 1 can display a first prompt message, which requests the user to confirm whether electronic device 1 should resume using the Bluetooth headset to process audio service 1. Upon receiving confirmation from the user regarding the first prompt message, electronic device 1 requests the Bluetooth headset to pause audio service 2 and then resumes using the Bluetooth headset to process audio service 1. This first operation triggers electronic device 1 to resume using the Bluetooth headset to process audio service 1. Then, electronic device 1 resumes using the Bluetooth headset to process audio service 1.

[0041] This solution does not simply determine which electronic device's audio service to process based on its priority order. After pausing an audio service, the user can decide whether to resume it. Afterward, the user can choose whether to resume the preempted audio service. This increases the flexibility of audio service switching and improves the user experience.

[0042] For example, the electronic devices (such as the first electronic device and the second electronic device) in the embodiments of this application can be mobile phones, media players (e.g., MP3, MP4, etc.), tablet computers, laptops, ultra-mobile personal computers (UMPCs), personal digital assistants (PDAs), televisions, or smartwatches. The embodiments of this application do not impose special limitations on the specific form of the electronic devices.

[0043] This application uses a mobile phone (such as mobile phone 200) as an example to illustrate the embodiments of the electronic device 1. Figure 3 According to some embodiments of this application, a structural schematic diagram of a mobile phone 200 is shown.

[0044] like Figure 3 As shown, the mobile phone 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone jack 270D, a sensor module 280, buttons 290, a motor 291, an indicator 292, a camera 293, a display screen (touchscreen) 294, and a subscriber identification module (SIM) card interface 295, etc.

[0045] The aforementioned sensor module 280 may include sensors such as pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, and bone conduction sensors.

[0046] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the mobile phone 200. In other embodiments, the mobile phone 200 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0047] Processor 210 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0048] The controller can serve as the nerve center and command center of the mobile phone 200. Based on the instruction operation code and timing signals, the controller can generate operation control signals to control the fetching and execution of instructions.

[0049] The processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory can store instructions or data that the processor 210 has just used or that are used repeatedly. If the processor 210 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0050] In some embodiments, the processor 210 may include one or more interfaces. These interfaces 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. In this embodiment, the processor 210 can utilize a Bluetooth headset to process audio service 1. After the processor 210 pauses processing audio service 1 while the Bluetooth headset is processing audio service 2 of the electronic device 2, it displays a first prompt message on the display screen 294. This first prompt message requests the user to determine whether the processor 210 should resume processing audio service 1 using the Bluetooth headset; the service priority of audio service 2 is greater than or equal to the service priority of audio service 1. Then, after the processor 210 responds to the user's first operation on the first prompt information, it requests the Bluetooth headset to pause the processing of audio service 2 and use the Bluetooth headset to process audio service 1; wherein, the first operation is used to trigger the processor 210 to resume the processing of audio service 1 using the Bluetooth headset.

[0051] It is understood that the interface connection relationships between the modules illustrated in this embodiment are merely illustrative and do not constitute a structural limitation on the mobile phone 200. In other embodiments, the mobile phone 200 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0052] The charging management module 240 receives charging input from a charger, which can be a wireless charger or a wired charger. While charging the battery 242, the charging management module 240 can also supply power to the electronic device via the power management module 241.

[0053] The power management module 241 connects the battery 242, the charging management module 240, and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, and supplies power to the processor 210, internal memory 221, external memory, display 294, camera 293, and wireless communication module 260, etc. In some embodiments, the power management module 241 and the charging management module 240 may also be housed in the same device.

[0054] The wireless communication function of mobile phone 200 can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor, and baseband processor. In some embodiments, antenna 1 of mobile phone 200 is coupled to mobile communication module 250, and antenna 2 is coupled to wireless communication module 260, enabling mobile phone 200 to communicate with networks and other devices through wireless communication technology.

[0055] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in mobile phone 200 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0056] The mobile communication module 250 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G on the mobile phone 200. The mobile communication module 250 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation.

[0057] The mobile communication module 250 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 250 can be housed in the processor 210. In some embodiments, at least some functional modules of the mobile communication module 250 and at least some modules of the processor 210 can be housed in the same device.

[0058] The wireless communication module 260 can provide solutions for wireless communication applications on the mobile phone 200, including WLAN (such as Wireless Fidelity, Wi-Fi), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), and Infrared (IR). The mobile phone 200 can establish a wireless communication channel with a Bluetooth headset using the wireless communication module 260. Specifically, the mobile phone 200 may include a Bluetooth module, which can establish a Bluetooth communication channel with the Bluetooth headset, and transmit commands and / or data through this channel. Commands may include requests to pause audio services, process audio service requests, etc. Data may be various types of audio data.

[0059] The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 210. The wireless communication module 260 can also receive signals to be transmitted from processor 210, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0060] The mobile phone 200 implements its display function through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0061] Display screen 294 is used to display images, videos, etc. Display screen 294 includes a display panel. Display screen 294 can be used to display a prompt message requesting the user to determine whether processor 210 has resumed processing audio service 1 using Bluetooth headset.

[0062] The mobile phone 200 can perform shooting functions through an ISP, camera 293, video codec, GPU, display 294, and application processor. The ISP is used to process data fed back by the camera 293. The camera 293 is used to capture still images or videos. In some embodiments, the mobile phone 200 may include one or N cameras 293, where N is a positive integer greater than 1.

[0063] The external storage interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 200. The external memory card communicates with the processor 210 through the external storage interface 220 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0064] Internal memory 221 can be used to store computer executable program code, which includes instructions. Processor 210 executes various functional applications and data processing of mobile phone 200 by running the instructions stored in internal memory 221. For example, in this embodiment, processor 210 can execute instructions stored in internal memory 221, which may include a program storage area and a data storage area.

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

[0066] Mobile phone 200 can implement audio functions through audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone jack 270D, and application processor, such as music playback and recording. In this embodiment, if audio service 1 is not played by Bluetooth headset, music can also be played by audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone jack 270D, etc.

[0067] Buttons 290 include a power button, volume buttons, etc. Buttons 290 can be mechanical buttons or touch buttons. Motor 291 can generate vibration alerts. Motor 291 can be used for incoming call vibration alerts or for touch vibration feedback. Indicator 292 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc. SIM card interface 295 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 295 to achieve contact and separation with the mobile phone 200. The mobile phone 200 can support one or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 295 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.

[0068] The software system of mobile phone 200 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to illustrate the software structure of mobile phone 200.

[0069] Figure 4 According to some embodiments of this application, a software architecture block diagram of a mobile phone 200 is shown. The layered architecture divides the software into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android Runtime and system libraries, and the kernel layer.

[0070] like Figure 4 As shown, the application layer can include applications such as music, video, calls, ringtones, alarms, Bluetooth, navigation, audio manager, gallery, and recording. Of course, the application layer can also include other applications, such as payment applications, shopping applications, banking applications, chat applications, or financial management applications, etc., which are not limited in this application. The audio manager is used to sense the state of the Bluetooth headset processing audio services: idle or processing audio services. The audio manager is also used to sense audio service preemption events and audio service state recovery events. Audio service preemption refers to the process where, while the Bluetooth headset is processing audio services, it detects another electronic device initiating a pending audio service, and then pauses the currently processing audio service to process the pending audio service initiated by the other electronic device. An audio service state recovery event refers to the process where, after an audio service preemption event occurs, the Bluetooth headset pauses processing the pending audio service initiated by the other electronic device and processes the previously paused audio service. The audio manager is also used to display a first prompt message, which instructs the user to choose between audio service preemption processing and audio service state recovery processing. For example, the audio manager can display the aforementioned "One-Click Retrieval" pop-up window.

[0071] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions. For example, it may include a phone manager, computing engine, notification manager, multimedia framework, state-aware module, process manager, etc., but this application embodiment does not impose any limitations on these.

[0072] The process manager is used to create and terminate processes and threads.

[0073] The phone manager is used to provide communication functions for the mobile phone 200. For example, it manages call status (including connection, hang-up, etc.).

[0074] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0075] The state awareness module is primarily responsible for confirming the state of the mobile phone 200 itself and the state of wireless devices connected to the mobile phone 200 via Bluetooth (e.g., Bluetooth headset 100). The state of the mobile phone 200 itself can include an active and inactive state, while the state of the devices connected to the mobile phone via Bluetooth can include an idle or non-idle state. The state awareness module can confirm the state of the mobile phone 200 itself by monitoring various application processes and threads. The state awareness module can determine the state of devices connected to the mobile phone 200 via received broadcast information (e.g., BLE broadcast).

[0076] The multimedia framework can receive audio services sent by various applications at the application layer, identify the type of audio service, and perform service arbitration and preemption. In this embodiment, the multimedia framework is used to determine the type of audio service based on the audio stream type in the audio service request when it receives a request from an application to process an audio service, and then select an audio playback device based on the status of the Bluetooth headset processing the audio service. The multimedia framework is also used to send an audio service preemption notification to the Bluetooth module when it receives an audio service preemption notification from the audio manager.

[0077] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics processing libraries (e.g., SGL), etc.

[0078] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0079] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0080] OpenGL ES is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0081] SGL is a 2D graphics engine.

[0082] The Android Runtime comprises the core libraries and the virtual machine. The Android Runtime is responsible for scheduling and managing the Android system. The core libraries consist of two parts: one part contains the functionalities that Java calls, and the other part comprises the core Android libraries. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0083] The kernel layer is the layer between hardware and software. At a minimum, the kernel layer includes display drivers, camera drivers, audio drivers, sensor drivers, and a Bluetooth module.

[0084] In addition to the system library and kernel layer, there is also a hardware layer, which includes a display, camera, speaker, and Bluetooth module. The Bluetooth module may include hardware units that implement Bluetooth connectivity and data exchange: a radio frequency unit (Radio), a baseband or link controller, and a link manager. The Radio Frequency Unit (Radio) is used to transmit / receive data and voice; the Link Manager is used to convert radio frequency signals to and from digital or voice signals, implement baseband protocols and other low-level connection procedures; and the Link Manager is responsible for managing communication between Bluetooth devices, including link establishment, authentication, and configuration.

[0085] The following embodiments, in conjunction with the accompanying drawings, illustrate the application scenarios and methods of the embodiments of this application.

[0086] For example, in this embodiment of the application, the method of this embodiment is described using a mobile phone 200 as electronic device 1 (i.e., the first electronic device), a tablet 300 as electronic device 2 (i.e., the second electronic device), and a Bluetooth headset 100 as an example. Audio service 1 is the first audio service, and audio service 2 is the second audio service.

[0087] In the embodiments of this application, such as Figure 1As shown, both mobile phone 200 and tablet 300 can establish a wireless communication channel (such as a physical connection) with Bluetooth headset 100. Mobile phone 200 can use Bluetooth headset 100 to handle audio services 1, such as playing music from mobile phone 200 using Bluetooth headset 100. Then, as... Figure 2 As shown, tablet 300 may detect audio service 2. For example, tablet 300 may receive an incoming call and need to answer it using Bluetooth headset 100; or, tablet 300 may need to play music using Bluetooth headset 100. In this case, 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 that of audio service 1. As another example, when both audio service 2 and audio service 1 are playing music, the service priority of audio service 2 is equal to that of audio service 1. The priorities of each audio service will be described later in this application, and will not be repeated here.

[0088] If the priority of audio service 2 is greater than or equal to the priority of audio service 1, tablet 300 can request Bluetooth headset 100 to pause processing audio service 1 (e.g., playing music from mobile phone 200) and use Bluetooth headset 100 to process audio service 2 (e.g., answering incoming calls from tablet 300). At this time, audio service 1 of mobile phone 200 is preempted by audio service 2 of tablet 300.

[0089] To ensure that if the audio service 1 of mobile phone 200 is preempted by the audio service 2 of tablet 300, the audio service 1 of mobile phone 200 can regain the right to use Bluetooth headset 100, mobile phone 200 can provide a "one-click reclaim" service. Specifically, after Bluetooth headset 100 pauses processing audio service 1, mobile phone 200 can display a first prompt message. This first prompt message requests the user to confirm whether mobile phone 200 should resume using Bluetooth headset 100 to process audio service 1. In other words, this first prompt message requests the user to confirm whether audio service 1 should reclaim the right to use Bluetooth headset 100. For example, Figure 5 According to some embodiments of this application, a schematic diagram of an application scenario for an audio service recovery processing method is shown, such as... Figure 5 As shown, after the Bluetooth headset 100 pauses the music playback from the phone 200 and starts playing music from the tablet 300, the phone 200 displays a "One-click recall" pop-up window. Figure 6 According to some embodiments of this application, a schematic diagram of the operation interface of a "one-click retrieval" window is shown, such as... Figure 6As shown, mobile phone 200 displays a "One-Click Reclaim" pop-up window 1. The "One-Click Reclaim" pop-up window 1 includes the prompt message: "Restore audio service 1 using Bluetooth headset 100?", as well as confirmation and cancellation options. If mobile phone 200 detects that the user clicks the confirmation option in the "One-Click Reclaim" pop-up window 1, then mobile phone 200 can regain control of audio service 1 using Bluetooth headset 100. Figure 7 According to some embodiments of this application, a schematic diagram of an application scenario for an audio service recovery processing method is shown, such as... Figure 7 As shown, after the user clicks the confirmation option in the "One-Click Retrieval" pop-up window, the mobile phone 200 can request the Bluetooth headset 100 to pause the music playback from the tablet 300 and then use the Bluetooth headset 100 to play the music from the mobile phone 200. Then, the Bluetooth headset 100 resumes playing the music from the mobile phone 200. The initial notification can be displayed on the mobile phone 200's desktop, in the audio application interface, or in the mobile phone 200's drop-down notification management menu.

[0090] This solution does not simply determine which electronic device's audio service to process based on its priority order. After pausing music playback on phone 200, the user can decide whether to resume the audio service. Afterward, the user can choose whether to resume playback on phone 200. This increases the flexibility of audio service switching and improves the user experience.

[0091] In this embodiment, different audio services can correspond to different priorities. Higher-priority audio services are typically important and critical, and can be processed preferentially by the Bluetooth headset. For example, audio services can include various types, such as call services, multimedia services, and notification services. Call services can include playing the other party's voice data for the user in scenarios such as telephone 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 party, as well as playing incoming call ringtones. Multimedia services can include playing music, videos, recordings, background music for games, and text-to-speech sounds. Notification services can include playing SMS notification sounds, push notification sounds, alarm clock sounds, and system sounds (such as the sound of adjusting volume, the shutter sound when taking a picture, etc.). The priorities of notification services, multimedia services, and call services increase sequentially. In other embodiments, audio services can include more types, which are not specifically limited here. The priority of audio services can be preset or actively set by the user, which is not specifically limited here. For example, the service priority of voice call services is higher than that of multimedia services, and the service priority of multimedia services is higher than that of notification and alert services.

[0092] In some embodiments, after detecting audio service 2, the tablet 300 requests the Bluetooth headset 100 to pause processing audio service 1 and then uses the Bluetooth headset 100 to process audio service 2. Specifically, the following implementation schemes are included: Figure 8 According to some embodiments of this application, a schematic diagram of an application scenario for an audio service recovery processing method is shown. For example... Figure 8 As shown, tablet 300 detects audio service 2. For example, tablet 300 may receive an incoming call and need to answer it using Bluetooth headset 100; or, tablet 300 may need to play music using Bluetooth headset 100. Tablet 300 sends a service pause command to mobile phone 200 through Bluetooth headset 100. Mobile phone 200 can receive this service pause command. After receiving the service pause command, mobile phone 200 can stop sending audio data for audio service 1 to Bluetooth headset 100, such as playing the audio data corresponding to the music played on mobile phone 200. Furthermore, tablet 300 can send audio data for audio service 2 to Bluetooth headset 100. Bluetooth headset 100 receives the audio data for audio service 2 and processes audio service 2, such as playing music from tablet 300 using Bluetooth headset 100.

[0093] In this embodiment, the tablet 300 can request the Bluetooth headset 100 to pause the processing of audio service 1 through a service pause command, and use the Bluetooth headset 100 to process audio service 2, so as to realize the preemption of audio service 1 by audio service 2.

[0094] It should be noted that, in this embodiment, the Bluetooth headset 100 can act as a data or signaling relay (such as the aforementioned service suspension instruction) between the tablet 300 and the mobile phone 200. The Bluetooth headset 100 can transmit data or signaling received from the tablet 300 to the mobile phone 200, and can also transmit data or signaling received from the mobile phone 200 to the tablet 300.

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

[0096] In some embodiments, after the tablet 300 detects audio service 2, it requests the Bluetooth headset 100 to pause processing audio service 1 and uses the Bluetooth headset 100 to process audio service 2. This includes the following specific implementation: the mobile phone 200 indicates the service priority of audio service 1 to the tablet 300 via the Bluetooth headset 100; after the tablet 300 detects audio service 2, it compares the service priorities of audio service 2 and audio service 1; if the service priority of audio service 2 is greater than the service priority of audio service 1, the tablet 300 requests the Bluetooth headset 100 to pause processing audio service 1 and uses the Bluetooth headset 100 to process audio service 2.

[0097] In some embodiments, the service pause command is used to indicate the service priority of audio service 2. When the mobile phone 200 receives the service pause command, it stops sending audio data of audio service 1 to the Bluetooth headset 100. This includes the following specific implementation: Upon receiving the service pause command, if the service priority of audio service 2 indicated by the service pause command is greater than the service priority of audio service 1, the mobile phone 200 stops sending audio data of audio service 1 to the Bluetooth headset 100. In this implementation, after receiving the service pause command, the mobile phone 200 reconfirms the service priorities of audio service 2 and audio service 1 to further ensure the accuracy of the mobile phone 200's execution of the service pause command.

[0098] It is understandable that when audio services requiring the use of Bluetooth headset 100 have the same service priority, the tablet 300 that initiates the audio service later can display a prompt message requesting the user to confirm whether the tablet 300 should preempt Bluetooth headset 100 to process audio service 2. This allows the user to decide whether to process the later-initiated audio service 2 first, improving the user experience. Specifically, in some embodiments, if the service priority of audio service 2 is equal to the service priority of audio service 1, the tablet 300 displays a second prompt message; wherein the second prompt message requests the user to confirm whether the tablet 300 should preempt Bluetooth headset 100 to process audio service 2; in response to a third operation by the user on the second prompt message, the tablet 300 requests Bluetooth headset 100 to pause processing audio service 1 and uses Bluetooth headset 100 to process audio service 2; wherein the third operation triggers the tablet 300 to preempt Bluetooth headset 100 to process audio service 2. The second prompt message can be displayed on the desktop of the tablet 300, on the interface of the audio application of the tablet 300, or on the drop-down notification management menu of the tablet 300. The user interface of the tablet 300 can include a second prompt message and a corresponding confirmation option button. The third operation can be the user's selection of the confirmation option button corresponding to the second prompt message, for example, the user clicks the confirmation option button.

[0099] It is understandable that in order to improve the efficiency of the mobile phone 200 in resuming the originally suspended audio service, the display time of the first prompt message needs to be controlled within a certain period of time. If the user's first operation on the first prompt message is detected within this controlled time, the mobile phone 200 will resume the originally suspended audio service.

[0100] Specifically, in some embodiments, if the mobile phone 200 receives a first operation from the user on the first prompt information within a first preset duration, the mobile phone 200 responds to the first operation by requesting the Bluetooth headset 100 to pause the processing of audio service 2, and then uses the Bluetooth headset 100 to process audio service 1. The first preset duration can be any duration from 10 seconds to 1 minute.

[0101] In some other embodiments, even if the mobile phone 200 does not detect the user's timely selection to resume the previously paused audio service, the mobile phone 200 can automatically resume using the Bluetooth headset 100 to process audio service 1 after the Bluetooth headset 100 has finished processing audio service 2. Specifically, if the mobile phone 200 does not receive any user interaction with the first prompt message within a first preset time period, the mobile phone 200 can automatically resume using the Bluetooth headset 100 to process audio service 1 after the Bluetooth headset 100 has finished processing audio service 2. Thus, the mobile phone 200 can automatically resume using the Bluetooth headset 100 to process audio service 1 without user intervention after the Bluetooth headset 100 has finished processing audio service 2, thereby improving the user experience.

[0102] In some other embodiments, even if the mobile phone 200 detects that the user promptly selects not to resume the originally paused audio service, the mobile phone 200 can automatically resume using the Bluetooth headset 100 to process the audio service 1 after the Bluetooth headset 100 has finished processing the audio service 2.

[0103] Specifically, if mobile phone 200 receives a second operation from the user on the first prompt message within a first preset time period, and this second operation triggers mobile phone 200 to not resume using Bluetooth headset 100 to process audio service 1, then mobile phone 200 will automatically resume using Bluetooth headset 100 to process audio service 1 after Bluetooth headset 100 has finished processing audio service 2. The first prompt message can be displayed on the mobile phone 200's desktop, the audio application interface, or the mobile phone 200's drop-down notification management menu. The mobile phone 200's interface can include both the first prompt message and a corresponding cancel option button. The second operation can be the user's selection of the cancel option button corresponding to the first prompt message, for example, the user clicking the cancel option button. Thus, after Bluetooth headset 100 finishes processing audio service 2, mobile phone 200 can automatically resume using Bluetooth headset 100 to process audio service 1 without user intervention, thereby improving the user experience.

[0104] In some other embodiments, even if the mobile phone 200 detects that no instruction is given to resume the originally paused audio service, if the tablet 300 is detected to have paused audio service 2 within a first preset time period, the idle Bluetooth headset 100 can be fully utilized to resume audio service 1, thereby improving the user experience.

[0105] Specifically, if the mobile phone 200 does not receive the user's operation on the first prompt information within the first preset time period, or if the mobile phone 200 receives the user's second operation on the first prompt information within the first preset time period, the mobile phone 200 will use the Bluetooth headset to process the first audio service after the Bluetooth headset pauses processing the second audio service; wherein, the second operation is used to trigger the mobile phone 200 not to resume using the Bluetooth headset to process the first audio service.

[0106] In some other embodiments, regardless of whether the mobile phone 200 detects that the user has selected to resume the originally paused audio service, the mobile phone 200 can automatically resume the processing of audio service 1 using the Bluetooth headset 100 after the Bluetooth headset 100 has finished processing audio service 2, or after the paused processing of audio service 2 has been completed, thereby improving the user experience.

[0107] Specifically, in response to the user's second operation on the first prompt message, if the tablet 300 completes audio service 2 using the Bluetooth headset 100 within a second preset time period, the mobile phone 200 will then use the Bluetooth headset 100 to handle audio service 1 after the Bluetooth headset 100 has finished handling audio service 2; or, in response to the user's second operation on the first prompt message, if the tablet 300 pauses handling audio service 2 using the Bluetooth headset 100 within a second preset time period, the mobile phone 200 will then use the Bluetooth headset 100 to handle audio service 1 after the Bluetooth headset 100 has paused handling audio service 2; wherein, the second operation is used to trigger the mobile phone 200 not to resume handling audio service 1 using the Bluetooth headset 100. The second preset time period can be any duration between 3 minutes and 4 minutes. For example, the Bluetooth headset 100 pauses playing media from the mobile phone 200 and plays a call from the tablet 300. If the call on tablet 300 ends, and the media on mobile phone 200 is still in a state of waiting to be played, and the duration from when Bluetooth headset 100 paused playing the media on mobile phone 200 to the present is less than 3 minutes, then the media on mobile phone 200 will resume playing on Bluetooth headset 100.

[0108] In some embodiments, after the Bluetooth headset 100 pauses processing audio service 1, the mobile phone 200 can also automatically process the pending audio service 1, improving the completion rate of the audio service. After the tablet 300 detects audio service 2, it requests the Bluetooth headset 100 to pause processing audio service 1, and after using the Bluetooth headset 100 to process audio service 2, the method further includes the following steps: the mobile phone 200 can mute or pause audio service 1, or it can use the audio component of the mobile phone 200 to process audio service 1. The audio component can be a speaker, plug-and-play headphones, or a receiver. Specifically, if audio service 1 is audio such as a call, Bluetooth recording, notification, or system audio, it can be directly switched to the audio component of the mobile phone 200 to continue the audio service. If audio service 1 is a media type service, it can be paused (such as music or video) or mute (such as a game).

[0109] Figure 9 According to some embodiments of this application, a schematic diagram of the functional modules of a mobile phone 200 and a tablet 300 that can implement the audio service recovery processing method provided in the embodiments of this application is shown.

[0110] like Figure 9 As shown, the mobile phone 200 includes an audio application 201, an audio manager 202, a multimedia framework 203, and a Bluetooth module 204.

[0111] Audio application 201 may include various types of applications for playing audio. When detecting audio services, audio application 201 sends a request to multimedia framework 203 to process the audio service.

[0112] The audio manager 202 is used to sense the audio service processing status of the Bluetooth headset 100: idle or processing audio service. The audio manager 202 is also used to sense audio service preemption and audio service status recovery events. Audio service preemption refers to the process where, while the Bluetooth headset 100 is processing audio service, it detects another electronic device initiating a pending audio service, then pauses the currently processing audio service and processes the pending audio service initiated by the other electronic device. An audio service status recovery event refers to the process where, after an audio service preemption event occurs, the Bluetooth headset 100 pauses processing the pending audio service initiated by the other electronic device and processes the previously paused audio service. The audio manager 202 is also used to display a first prompt message, which instructs the user to select between audio service preemption and audio service status recovery. For example, the audio manager 202 may display the aforementioned "One-Click Retrieval" pop-up window.

[0113] The multimedia framework 203, upon receiving an audio service processing request from the audio application 201, determines the type of audio service based on the audio stream type in the audio service request, and then selects the audio playback device based on the status of the Bluetooth headset 100 processing the audio service. The multimedia framework 203 is also used to send an audio service preemption notification (hereinafter referred to as the preemption notification) to the Bluetooth module 204 upon receiving an audio service preemption notification from the audio manager 302.

[0114] The Bluetooth module 204 is used to support the transmission of various commands and data. In this embodiment, the Bluetooth headset 100 is used to support audio data transmission, audio service processing or / or pause requests, audio service preemption notifications, and audio service processing status transmission.

[0115] Similarly, the tablet 300 includes an audio application 301, an audio manager 302, a multimedia framework 303, and a Bluetooth module 304.

[0116] Audio application 301 may include various types of applications for playing audio. When detecting audio services, audio application 301 sends a request to multimedia framework 303 to process audio services.

[0117] The audio manager 302 is used to sense the audio service processing status of the Bluetooth headset 100: idle or processing audio service. The audio manager 302 is also used to sense audio service preemption and audio service status recovery events. Audio service preemption refers to the process where, while the Bluetooth headset 100 is processing audio service, it detects another electronic device initiating a pending audio service, then pauses the currently processing audio service and processes the pending audio service initiated by the other electronic device. Audio service status recovery refers to the process where, after an audio service preemption event occurs, the Bluetooth headset 100 pauses processing the pending audio service initiated by the other electronic device and processes the previously paused audio service. The audio manager 302 is also used to display a first prompt message, which instructs the user to select between audio service preemption and audio service status recovery. For example, the audio manager 302 may display the aforementioned "One-Click Retrieval" pop-up window.

[0118] The multimedia framework 303, upon receiving an audio service processing request from the audio application 301, determines the type of audio service based on the audio stream type in the audio service request, and then selects the audio playback device based on the status of the Bluetooth headset 100 processing the audio service. The multimedia framework 303 is also used to send an audio service preemption notification (hereinafter referred to as the preemption notification) to the Bluetooth module 304 upon receiving an audio service preemption notification from the audio manager 302.

[0119] The Bluetooth module 304 is used to support the transmission of various commands and data. In this embodiment, the Bluetooth headset 100 is used to support audio data transmission, audio service processing or / or pause requests, audio service preemption notifications, and audio service processing status transmission.

[0120] Figure 10 According to some embodiments of this application, corresponding to Figure 5 This diagram illustrates the interaction logic of various modules in a mobile phone 200 whose audio service has been preempted during an audio service preemption event. Figure 10 As shown: If mobile phone 200 is playing music using Bluetooth headset 100, and Bluetooth headset 100 receives a music playback request initiated by tablet 300, Bluetooth headset 100 determines that the Bluetooth headset 100 is in a preemptive state when processing audio services, and then sends a preemption notification to mobile phone 200. Bluetooth module 204 receives the preemption event and the Bluetooth headset 100's audio service processing status (referred to as headset status).

[0121] The Bluetooth headset 100 forwards the preemption notification and headset status to the audio manager 202 and the multimedia framework 203, respectively. The multimedia framework 303 determines whether audio service preemption is necessary based on the service priority of the audio service being processed by the Bluetooth headset 100 as indicated by the headset status and the service priority of the audio service initiated by the tablet 300. If audio service preemption is necessary, it notifies the music application 3011 to pause playback and sends the pause playback result to the audio manager 202. Upon receiving the pause playback notification, the audio manager 202 displays the "One-Click Reclaim" window.

[0122] When the audio manager 202 receives a preemption notification, it first displays a preemption notification window. The preemption notification window is used to ask the user whether to mute its own audio service or switch to its own receiver, plug or unplug headphones, or play music through the speaker. If the user selects any of the above options, the corresponding action is executed according to the content of the option.

[0123] Figure 11 According to some embodiments of this application, corresponding to Figure 7 This diagram illustrates the interactive logic of a mobile phone 200 whose audio service has been preempted resuming music playback using a Bluetooth headset 100. Figure 11 As shown: After the tablet 300 plays music using the Bluetooth headset 100, the mobile phone 200 detects the user clicking the confirmation option in the "One-Click Retrieval" pop-up window and calls the interface of the multimedia framework 303 to notify the multimedia framework 303 to play music. Then, the multimedia framework 303 notifies the music application 2011 to play music using the Bluetooth headset 100. The Bluetooth module 204 then notifies the Bluetooth headset 100 of the playback status. After receiving the playback notification from the tablet 300, the Bluetooth headset 100 plays the music from the mobile phone 200 and notifies the tablet 300 of the Bluetooth headset 100's audio service status (referred to as headset status).

[0124] In some other embodiments, corresponding to Figure 2 or Figure 5 In this application scenario, if the tablet 300 detects that the user has paused music playback, it will pause music playback via the Bluetooth headset 100. At this time, if the mobile phone 200 determines that the Bluetooth headset 100 is idle, it will automatically resume music playback via the Bluetooth headset 100. For details, see... Figure 12 , Figure 12 According to some embodiments of this application, a schematic diagram of the interaction logic is shown where, when music playback on a tablet 300 is paused and the Bluetooth headset 100 is in an idle state, the mobile phone 200 resumes music playback using the Bluetooth headset 100. For example... Figure 12As shown: When the tablet 300 detects that the user has paused music playback, it pauses music playback via Bluetooth headset 100. Once Bluetooth headset 100 is idle, it notifies the phone 200 to resume music playback (referred to as the "resume notification" in the diagram) and updates the headset status. Bluetooth headset 100 forwards the resume music playback notification and headset status to the audio manager 202 and the multimedia framework 203, respectively. The audio manager 202 calls the interface of the multimedia framework 303, and then the multimedia framework 303 notifies the music application 3011 to play music.

[0125] Figure 13 According to some embodiments of this application, corresponding to Figure 1 , Figure 2 , Figure 5 and Figure 7 The corresponding application scenario is illustrated with a flowchart of an audio service recovery processing method. For example... Figure 13 As shown, the process includes the following steps: 131: Bluetooth headset 100 establishes wireless communication channels with mobile phone 200 and tablet 300 respectively.

[0126] 132: Bluetooth headset 100 plays music from mobile phone 200.

[0127] 133: Tablet 300 detected music playback.

[0128] In some embodiments, the tablet 300 can detect the user-initiated music service in response to the user's action of playing selected music.

[0129] 134: Bluetooth headset 100 has determined that the audio service priority for playing music from tablet 300 is higher than the audio service priority for playing music from mobile phone 200. It requests to pause the playback of music from mobile phone 200 and play music from tablet 300 instead.

[0130] In this embodiment, different audio services of the electronic device can correspond to different priorities. Higher-priority audio services are typically important and critical, and can be prioritized by the Bluetooth headset. For example, audio services can include various types, such as call services, multimedia services, and notification services. Call services can include playing the other party's voice data for the user in scenarios such as telephone 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 party, as well as playing incoming call ringtones. Multimedia services can include playing music, videos, recordings, background music for games, and text-to-speech sounds. Notification services can include playing SMS notification sounds, push notification sounds, alarm clock sounds, and system sounds (such as the sound of adjusting volume or the shutter sound when taking a picture). The priorities of notification services, multimedia services, and call services increase sequentially. In other embodiments, audio services can include more types, which are not specifically limited here. The priority of audio services can be preset or actively set by the user, which is not specifically limited here. For example, the service priority of voice call services is higher than that of multimedia services, and the service priority of multimedia services is higher than that of notification and alert services.

[0131] 135: Bluetooth headset 100 pauses music playback on phone 200 and plays music playback on tablet 300.

[0132] 136: Bluetooth headset 100 sends a pause notification message to mobile phone 200.

[0133] 137: Mobile phone 200 displays the first prompt message, which requests the user whether to resume the music and audio service of mobile phone 200 using Bluetooth headset 100.

[0134] 138: Mobile phone 200 responds to the user's confirmation of the first prompt message.

[0135] The first prompt message is used to ask the user to confirm whether the phone 200 has resumed playing music using the Bluetooth headset 100.

[0136] The initial notification could be a "One-Click Reclaim" pop-up. The user can then confirm by clicking the "Confirm" option within the "One-Click Reclaim" pop-up.

[0137] 139: Mobile phone 200 requests Bluetooth headset 100 to pause music playback from tablet 300.

[0138] In some embodiments, after the mobile phone 200 requests the Bluetooth headset 100 to pause the playback of music from the tablet 300, the Bluetooth headset 100 pauses the playback of music from the tablet 300 and resumes playback of music from the mobile phone 200. The tablet 300 can then play music using its own speaker, plugged-in headphones, or receiver. Specifically, if audio service 1 is a call, Bluetooth recording, notification, or system audio, the audio service can be directly switched to the audio component of the tablet 300 to continue. If audio service 1 is a media type service, it can be paused (e.g., music, video) or muted (e.g., a game).

[0139] In some embodiments, when the tablet 300 is playing music using the Bluetooth headset 100 and is preempted by a music playback service initiated by the mobile phone 200, the Bluetooth headset 100 records the music playback status of the mobile phone 200 so that the tablet 300 can resume music playback using the Bluetooth headset 100 when the Bluetooth headset 100 is released. For example, as... Figure 8 As shown: When the tablet 300 detects that the user has paused music playback, it pauses music playback via Bluetooth headset 100. Once Bluetooth headset 100 is idle, it notifies the phone 200 to resume music playback (referred to as the "resume notification" in the diagram) and updates the headset status. Bluetooth headset 100 forwards the resume music playback notification and headset status to the audio manager 202 and the multimedia framework 203, respectively. The audio manager 202 calls the interface of the multimedia framework 303, and then the multimedia framework 303 notifies the music application 3011 to play music.

[0140] 1310: Bluetooth headset 100 plays music from mobile phone 200.

[0141] This solution does not simply determine which electronic device's audio service to process based on its priority order. After pausing an audio service, the user can decide whether to resume it. Afterward, the user can choose whether to resume the preempted audio service. This increases the flexibility of audio service switching and improves the user experience.

[0142] Various embodiments of the mechanisms disclosed in this application can be implemented in hardware, software, firmware, or combinations of these implementation methods. Embodiments of this application can be implemented as computer programs or program code executable on a programmable system, the programmable system including 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.

[0143] Program code can be applied to input instructions to execute 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, the 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.

[0144] The program code can be implemented using a high-level procedural language or an object-oriented programming language to communicate with the processing system. Assembly language or machine language can also be used when needed. In fact, the mechanisms described in this application are not limited to any particular programming language. In either case, the language can be a compiled language or an interpreted language.

[0145] 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 thereon 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, the instructions may be distributed via a network or via other computer-readable storage media. Therefore, machine-readable storage media may include any mechanism for storing or transmitting information in a machine-readable (e.g., computer-readable) form, including but not limited to floppy disks, optical disks, CD-ROMs, magneto-optical disks, read-only memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic cards or optical cards, flash memory, or tangible machine-readable storage for transmitting information over the Internet in the form of electrical, optical, acoustic, or other forms of propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.). Therefore, machine-readable storage media include any type of machine-readable storage media suitable for storing or transmitting electronic instructions or information in a machine-readable (e.g., computer-readable) form.

[0146] In the accompanying drawings, some structural or methodological 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 necessary. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. Furthermore, the inclusion of structural or methodological features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments, these features may be omitted or may be combined with other features.

[0147] It should be noted that all units / modules mentioned in the device embodiments of this application are logical units / modules. Physically, a logical unit / module can be a physical unit / module, a part of a physical unit / module, or a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important factor; the combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed in this application. Furthermore, to highlight the innovative aspects of this application, the above-described device embodiments of this application have not introduced units / modules that are not closely related to solving the technical problems proposed in this application. This does not mean that the above-described device embodiments do not contain other units / modules.

[0148] It should be noted that in the examples and description of this patent, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0149] Although this application has been illustrated and described with reference to certain preferred embodiments thereof, those skilled in the art should understand that various changes in form and detail may be made thereto without departing from the spirit and scope of this application.

Claims

1. A method for audio service recovery, characterized in that, The method includes: Both the first electronic device and the second electronic device 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, the Bluetooth headset pauses processing the first audio service and uses the Bluetooth headset to process the second audio service; After the first electronic device suspends processing the first audio service through the Bluetooth headset, the Bluetooth headset suspends processing the second audio service and then uses the Bluetooth headset to process the first audio service.

2. The method according to claim 1, characterized in that, After the first electronic device suspends processing the first audio service through the Bluetooth headset, the Bluetooth headset suspends processing the second audio service, and the first electronic device uses the Bluetooth headset to process the first audio service, including: After the Bluetooth headset pauses processing the first audio service, the first electronic device displays a first prompt message; wherein, the first prompt message is used to request the user to determine whether the first electronic device should resume processing the first audio service using the Bluetooth headset; In response to a user's first operation on the first prompt information, the first electronic device requests the Bluetooth headset to pause processing the second audio service and then uses the Bluetooth headset to process the first audio service; wherein, the first operation is used to trigger the first electronic device to resume using the Bluetooth headset to process the first audio service, and the service priority of the second audio service is greater than or equal to the service priority of the first audio service.

3. The method according to claim 1 or 2, characterized in that, After the second electronic device detects the second audio service, the Bluetooth headset pauses processing the first audio service and uses the Bluetooth headset to process the second audio service, including: The second electronic device detects the second audio service and sends a service pause command to the first electronic device through the Bluetooth headset; The first electronic device receives the service pause command 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 from the second audio service and processes the second audio service.

4. The method according to any one of claims 1-3, characterized in that, Before the Bluetooth headset pauses processing the first audio service after the second electronic device detects the second audio service, and before processing the second audio service using 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; Wherein, after detecting the second audio service, the second electronic device requests the Bluetooth headset to pause processing the first audio service and uses the Bluetooth headset to process the second audio service, including: After the second electronic device detects the second audio service, it compares the service priority of the second audio service with that of the first audio service. If the service priority of the second audio service is greater than that of the first audio service, the second electronic device requests the Bluetooth headset to pause processing the first audio service and uses the Bluetooth headset to process the second audio service.

5. The method according to claim 3 or 4, characterized in that, The method further includes: If the service priority of the second audio service is equal to the service priority of the first audio service, the second electronic device displays a second prompt message; wherein, the second prompt message is used to request the user to determine whether the second electronic device should preempt the Bluetooth headset to process the second audio service; In response to a third operation by the user to the second prompt information, the second electronic device requests the Bluetooth headset to pause processing the first audio service and uses the Bluetooth headset to process the second audio service; wherein, the third operation is used to trigger the second electronic device to preempt the Bluetooth headset to process the second audio service.

6. The method according to any one of claims 2-5, characterized in that, In response to a user's first operation on the first prompt information, the first electronic device requests the Bluetooth headset to pause processing the second audio service and uses the Bluetooth headset to process the first audio service, including: If the first electronic device receives the first operation from the user on the first prompt information within a first preset time period, the first electronic device responds to the first operation by requesting the Bluetooth headset to pause the processing of the second audio service and using the Bluetooth headset to process the first audio service.

7. The method according to claim 6, characterized in that, The method further includes: If the first electronic device does not receive any user interaction with the first prompt message within the first preset time period, or if the first electronic device receives a second user interaction with the first prompt message within the first preset time period, the first electronic device will then process the first audio service using the Bluetooth headset after the Bluetooth headset has finished processing the second audio service; or... If the first electronic device does not receive any operation from the user on the first prompt information within the first preset time period, or if the first electronic device receives a second operation from the user on the first prompt information within the first preset time period, the first electronic device will use the Bluetooth headset to process the first audio service after the Bluetooth headset pauses processing the second audio service. The second operation is used to trigger the first electronic device to stop using the Bluetooth headset to process the first audio service.

8. The method according to any one of claims 2-7, characterized in that, The method further includes: In response to a second operation by the user to the first prompt information, if the second electronic device completes processing the second audio service using the Bluetooth headset within a second preset time period, the first electronic device then processes the first audio service using the Bluetooth headset after the Bluetooth headset has completed processing the second audio service; or... In response to the user's second operation on the first prompt information, if the second electronic device pauses using the Bluetooth headset to process the second audio service within a second preset time period, the first electronic device will process the first audio service using the Bluetooth headset after the Bluetooth headset pauses processing the second audio service. The second operation is used to trigger the first electronic device to stop using the Bluetooth headset to process the first audio service.

9. A method for restoring audio services, characterized in that, The method includes: The first electronic device establishes a wireless communication channel with the Bluetooth headset; wherein, the Bluetooth headset also establishes a wireless communication channel with the second electronic device; The first electronic device uses the Bluetooth headset to process the first audio service; After the first electronic device processes the second audio service of the second electronic device through the Bluetooth headset and pauses processing the first audio service, the Bluetooth headset pauses processing the second audio service and uses the Bluetooth headset to process the first audio service.

10. The method according to claim 9, characterized in that, After the first electronic device pauses processing the second audio service of the second electronic device while the Bluetooth headset is processing the first audio service, the Bluetooth headset pauses processing the second audio service and then processes the first audio service using the Bluetooth headset, including: After the first electronic device pauses processing the first audio service while the Bluetooth headset is processing the second audio service of the second electronic device, it displays a first prompt message; wherein, the first prompt message is used to request the user to determine whether the first electronic device should resume processing the first audio service using the Bluetooth headset; the service priority of the second audio service is greater than or equal to the service priority of the first audio service; In response to a user's first operation on the first prompt information, the first electronic device requests the Bluetooth headset to pause processing the second audio service and then uses the Bluetooth headset to process the first audio service; wherein, the first operation is used to trigger the first electronic device to resume using the Bluetooth headset to process the first audio service.

11. The method according to claim 10, characterized in that, In response to a user's first operation on the first prompt information, the first electronic device requests the Bluetooth headset to pause processing the second audio service and uses the Bluetooth headset to process the first audio service, including: If the first electronic device receives the first operation from the user on the first prompt information within a first preset time period, the first electronic device responds to the first operation by requesting the Bluetooth headset to pause the processing of the second audio service and using the Bluetooth headset to process the first audio service.

12. The method according to any one of claims 9-11, characterized in that, The method further includes: If the first electronic device does not receive any user interaction with the first prompt message within the first preset time period, or if the first electronic device receives a second user interaction with the first prompt message within the first preset time period, the first electronic device will then process the first audio service using the Bluetooth headset after the Bluetooth headset has finished processing the second audio service; or... If the first electronic device does not receive any operation from the user on the first prompt information within the first preset time period, or if the first electronic device receives a second operation from the user on the first prompt information within the first preset time period, the first electronic device will use the Bluetooth headset to process the first audio service after the Bluetooth headset pauses processing the second audio service. The second operation is used to trigger the first electronic device to stop using the Bluetooth headset to process the first audio service.

13. The method according to any one of claims 9-12, characterized in that, The method further includes: In response to a second operation by the user to the first prompt information, if the second electronic device completes processing the second audio service using the Bluetooth headset within a second preset time period, the first electronic device then processes the first audio service using the Bluetooth headset after the Bluetooth headset has completed processing the second audio service; or... In response to the user's second operation on the first prompt information, if the second electronic device pauses using the Bluetooth headset to process the second audio service within a second preset time period, the first electronic device will process the first audio service using the Bluetooth headset after the Bluetooth headset pauses processing the second audio service. The second operation is used to trigger the first electronic device to stop using the Bluetooth headset to process the first audio service.

14. An electronic device, characterized in that, It includes a processor and a memory; the memory is used to store code instructions; the processor is used to execute the code instructions, causing the first electronic device or the second electronic device to perform the method as claimed in any one of claims 1-8 or 9-13.

15. A computer storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as claimed in any one of claims 1-8 or 9-13.