WO2024082855A1 - Procédé de traitement de service audio, dispositif électronique, et support de stockage informatique - Google Patents

Procédé de traitement de service audio, dispositif électronique, et support de stockage informatique Download PDF

Info

Publication number
WO2024082855A1
WO2024082855A1 PCT/CN2023/117289 CN2023117289W WO2024082855A1 WO 2024082855 A1 WO2024082855 A1 WO 2024082855A1 CN 2023117289 W CN2023117289 W CN 2023117289W WO 2024082855 A1 WO2024082855 A1 WO 2024082855A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
bluetooth headset
audio
electronic device
audio service
Prior art date
Application number
PCT/CN2023/117289
Other languages
English (en)
Chinese (zh)
Inventor
彭连银
李润
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202211289367.0A external-priority patent/CN117956371A/zh
Priority claimed from CN202211288799.XA external-priority patent/CN117917899A/zh
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2024082855A1 publication Critical patent/WO2024082855A1/fr

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • the present application relates to the field of communication technology, and in particular to an audio service processing method, electronic equipment and computer storage medium.
  • Bluetooth headsets are becoming more and more popular with users due to their portability and convenience, as they do not need to store or organize the headphone cables.
  • the function of Bluetooth headsets is that they can establish a wireless connection with electronic devices, thereby cooperating with electronic devices to process audio services for users.
  • Bluetooth headsets can establish a wireless connection with mobile phones, and cooperate with mobile phones to play music, make/receive calls, etc. for users.
  • Bluetooth headsets can be connected to multiple electronic devices at the same time.
  • Bluetooth headset with a built-in Bluetooth audio transmission model protocol (Advanced Audio Distribution Profile, A2DP) audio device, and the A2DP audio device is used for high-definition media playback.
  • A2DP audio device of the headset can be connected to two electronic devices at the same time, and can automatically connect to the newly approached electronic device through the discovery connection mechanism, and randomly disconnect a previously connected electronic device to ensure that only two electronic devices are connected at the same time.
  • a Bluetooth headset with two built-in audio input and output devices: a hands-free profile (HFP) for high-definition calls; an A2DP for high-definition media playback.
  • the headset can be connected to up to three electronic devices.
  • the A2DP audio device of the headset can be connected to two electronic devices at the same time, and the HFP device of the headset can be connected to one device.
  • a Bluetooth headset can only be used as an audio output device for an audio service. If a service conflict occurs in a Bluetooth headset, for example, multiple electronic devices initiate a request to the Bluetooth headset to process an audio service, or the Bluetooth headset is processing an audio service sent by an electronic device 1 connected to it, and at this time, it receives a request to process an audio service sent by another electronic device. Because the Bluetooth headset can only be used as an audio output device for an audio service, the audio service of another electronic device is put on hold, and the audio service sent by other electronic devices cannot be completed in time. If the audio service sent by other electronic devices is more important, the Bluetooth headset cannot complete the more important audio service in time, and the user experience is poor.
  • the present invention provides an audio service processing method, an electronic device and a computer storage medium for decoding
  • the Bluetooth headset can only be used as an audio output device for an audio service. If a service conflict occurs in the Bluetooth headset, the Bluetooth headset can only be used as an audio output device for an audio service, and the audio service of another electronic device will be put on hold, and the audio service sent by other electronic devices cannot be completed in time. If the audio service sent by other electronic devices is more important, the Bluetooth headset cannot complete the more important audio service in time, resulting in a poor user experience.
  • a method for processing an audio service comprising: a first electronic device and a second electronic device both establish a wireless communication channel with a Bluetooth headset; the first electronic device uses the Bluetooth headset to process a first audio service; after the second electronic device detects the second audio service, it determines whether the service priority of the second audio service is greater than the service priority of the first audio service; if the service priority of the second audio service is greater than the service priority of the first audio service, the second electronic device requests the Bluetooth headset to suspend processing of the first audio service, and uses the Bluetooth headset to process the second audio service.
  • the electronic device can control the Bluetooth headset to process more important audio services according to the pre-set service priority, thereby improving the user experience.
  • requesting a Bluetooth headset to suspend processing of a first audio service and using the Bluetooth headset to process a second audio service includes: the second electronic device sends a service suspension instruction to the first electronic device through the Bluetooth headset; the first electronic device receives the service suspension instruction and stops sending audio data of the first audio service to the Bluetooth headset; the second electronic device sends audio data of the second audio service to the Bluetooth headset; the Bluetooth headset receives audio data of the second audio service and processes the second audio service.
  • the second electronic device can instruct the first electronic device to stop sending audio data of the first audio service to the Bluetooth headset and instruct the Bluetooth headset to suspend processing of the first audio service of the first electronic device by sending a service suspension instruction to the first electronic device.
  • the method before the second electronic device requests the Bluetooth headset to suspend processing of the first audio service and uses the Bluetooth headset to process the second audio service, the method further includes: the first electronic device indicates the service priority of the first audio service to the second electronic device through the Bluetooth headset. After the first electronic device synchronizes the priority of the first audio service to the second electronic device, after the second electronic device detects the second audio service, it can determine whether the service priority of the second audio service is greater than the service priority of the first audio service, and after determining that the service priority of the second audio service is greater than the service priority of the first audio service, it seizes the right to use the Bluetooth headset, requests the Bluetooth headset to suspend processing of the first audio service, and starts processing the second audio service.
  • 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, stops sending audio data of the first audio service to the Bluetooth headset.
  • the first electronic device after receiving the service suspension instruction, the first electronic device will reconfirm the service priorities of the second audio service and the first audio service, so as to further ensure the accuracy of the first electronic device in executing the service suspension instruction.
  • the method further includes: the first electronic device using an audio component of the first electronic device to process the first audio service.
  • the first electronic device can also automatically process the first audio service to be processed, thereby improving the completion rate of the audio service.
  • the audio services processed by the Bluetooth headset include call services, multimedia services, and notification services; wherein the service priority of the call service is greater than the service priority of the multimedia service, and the service priority of the multimedia service is greater than the service priority of the notification service.
  • the method after using the Bluetooth headset to process the second audio service, the method also includes: the first electronic device displays a first prompt message after the Bluetooth headset suspends processing the first audio service; wherein the first prompt message is used to request the user to determine whether the first electronic device resumes using the Bluetooth headset to process the first audio service; the first electronic device responds to the user's first operation on the first prompt message, requests the Bluetooth headset to suspend processing the second audio service, and 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.
  • the audio service of an electronic device with a higher service priority is not simply decided according to the service priority order set for the audio service. After pausing an audio service, the user can decide whether to continue the audio service. Afterwards, the user can choose whether to resume the preempted audio service according to his/her wishes. In this way, the flexibility of audio service switching is improved, and the user experience is improved.
  • the method also 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; the second electronic device responds to the user's third operation on the second prompt message, requests the Bluetooth headset to suspend 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.
  • the second electronic device that initiates the audio service later can display a prompt message requesting the user to determine 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 first based on his or her wishes, thereby improving the user experience.
  • the first electronic device in response to a user's first operation on a first prompt message, requests the Bluetooth headset to suspend processing of a second audio service, and uses the Bluetooth headset to process the first audio service, including: if the first electronic device receives the user's first operation on the first prompt message within a first preset time period, the first electronic device, in response to the first operation, requests the Bluetooth headset to suspend processing of the second audio service, and uses the Bluetooth headset to process the first audio service.
  • the display time of the first prompt information needs to be controlled within a certain time. If the user's first operation on the first prompt information is detected within the control time, the second electronic device resumes the originally suspended audio service. In this way, the efficiency of the second electronic device in resuming the originally suspended audio service is improved.
  • the method also includes: if the first electronic device does not receive the user's operation on the first prompt information within a first preset time period, or 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 uses the Bluetooth headset to process the first audio service after the Bluetooth headset completes 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 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 uses the Bluetooth headset to process the first audio service after the Bluetooth headset suspends processing the second audio service; wherein the second operation is used to trigger the first electronic device to not resume using the Bluetooth headset to process the first audio service.
  • the display time of the first prompt information needs to be controlled within a certain time. If the user's first operation on the first prompt information is detected within the control time, the second electronic device resumes the originally suspended audio service, thereby improving the efficiency of the second electronic device in resuming the originally suspended audio service. After the Bluetooth headset processes the second audio service, the first electronic device can automatically resume using the Bluetooth headset to process the first audio service without user operation, thereby improving the user experience.
  • the method also includes: the first electronic device responds to the user's second operation on the first prompt information, and 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 uses the Bluetooth headset to process the first audio service after the Bluetooth headset completes processing the second audio service; or, the first electronic device responds to the user's second operation on the first prompt information, and if the second electronic device suspends processing the second audio service using the Bluetooth headset within the second preset time period, the first electronic device uses the Bluetooth headset to process the first audio service after the Bluetooth headset suspends processing the second audio service; wherein the second operation is used to trigger the first electronic device to not resume processing the first audio service using the Bluetooth headset.
  • the first electronic device can automatically resume processing the first audio service using the Bluetooth headset without user operation, thereby improving user experience.
  • the method further includes: the first electronic device uses an audio component of the first electronic device to process the first audio service.
  • the first electronic device may also automatically process the first audio service to be processed, thereby improving the completion of the audio service.
  • a method for processing an audio service comprising: a second electronic device establishes a wireless communication channel with a Bluetooth headset; wherein the Bluetooth headset also establishes a wireless communication channel with a first electronic device, and the Bluetooth headset processes a first audio service of the first electronic device; after the second electronic device detects the second audio service, it determines whether the service priority of the second audio service is greater than the service priority of the first audio service; if the service priority of the second audio service is greater than the service priority of the first audio service, the second electronic device requests the Bluetooth headset to suspend processing of the first audio service, and uses the Bluetooth headset to process the second audio service.
  • the electronic device can control the Bluetooth headset to process more important audio services according to the pre-set service priority, thereby improving the user experience.
  • 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, including: the second electronic device sends a service suspension instruction to the first electronic device through the Bluetooth headset, wherein the service suspension instruction is used to instruct the first electronic device to receive the service suspension instruction and stop sending audio data of the first audio service to the Bluetooth headset; the second electronic device sends audio data of the second audio service to the Bluetooth headset; the Bluetooth headset receives the audio data of the second audio service and processes the second audio service.
  • the method before the second electronic device requests the Bluetooth headset to suspend processing of the first audio service and uses the Bluetooth headset to process the second audio service, the method also includes: the second electronic device receives the service priority of the first audio service indicated by the first electronic device through the Bluetooth headset.
  • a method for recovering an audio service comprising: establishing a wireless communication channel between a first electronic device and a Bluetooth headset; wherein the Bluetooth headset also establishes a wireless communication channel with a second electronic device;
  • the first electronic device processes the first audio service using the Bluetooth headset; the first electronic device processes the first audio service using the Bluetooth headset; The second audio service of the second electronic device suspends processing of the first audio service and 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; the first electronic device responds to the user's first operation on the first prompt message, requests the Bluetooth headset to suspend processing of the second audio service, and uses the Bluetooth headset to process the first audio service; wherein the first operation is used to trigger the first electronic device to resume processing the first audio service using the Bluetooth headset.
  • the method after the first electronic device processes the second audio service of the second electronic device in the Bluetooth headset and suspends processing of the first audio service, but before displaying the first prompt information, the method also includes: the first electronic device indicates the service priority of the first audio service to the second electronic device through the Bluetooth headset.
  • the method also includes: the first electronic device receives a service pause instruction from the second electronic device through the Bluetooth headset, the service pause instruction is 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.
  • the first electronic device in response to the user's first operation on the first prompt information, requests the Bluetooth headset to suspend processing the second audio service, and uses the Bluetooth headset to process the first audio service, including: if the first electronic device receives the 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 suspend processing the second audio service, and uses the Bluetooth headset to process the first audio service.
  • the method also includes: if the first electronic device does not receive the user's operation on the first prompt information within a first preset time period, or 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 uses the Bluetooth headset to process the first audio service after the Bluetooth headset completes 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 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 uses the Bluetooth headset to process the first audio service after the Bluetooth headset suspends 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.
  • the method also includes: the first electronic device responds to the user's second operation on the first prompt information, and 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 uses the Bluetooth headset to process the first audio service after the Bluetooth headset completes processing the second audio service; or, the first electronic device responds to the user's second operation on the first prompt information, and if the second electronic device suspends processing the second audio service using the Bluetooth headset within the second preset time period, the first electronic device uses the Bluetooth headset to process the first audio service after the Bluetooth headset suspends processing the second audio service; wherein the second operation is used to trigger the first electronic device to not resume processing the first audio service using the Bluetooth headset.
  • the method after the second electronic device detects the second audio service, it requests the Bluetooth headset to suspend processing the first audio service, and after using the Bluetooth headset to process the second audio service, the method also includes: the first electronic device uses the audio component of the first electronic device to process the first audio service.
  • an electronic device comprising a processor and a memory; the memory is used to Code instructions are stored; the processor is used to run the code instructions to execute the antenna control method in any possible design manner as in the first aspect, the second aspect and the third aspect.
  • a computer-readable storage medium which stores instructions.
  • the instructions When the instructions are executed on a computer, the computer executes an antenna control method in any possible design method in the first aspect, the second aspect, and the third aspect.
  • the technical effects brought about by any design method in the second aspect, the third aspect and the fourth aspect can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here.
  • FIG1 shows a schematic structural diagram of a tablet 300 according to some embodiments of the present application.
  • FIG2 shows a schematic diagram of an application scenario of an audio service processing method according to some embodiments of the present application
  • FIG3 shows a schematic diagram of an application scenario of an audio service processing method according to some embodiments of the present application
  • FIG4 shows a schematic diagram of an application scenario of an audio service processing method according to some embodiments of the present application.
  • FIG5 shows a schematic diagram of an application scenario of an audio service processing method according to some embodiments of the present application
  • FIG6 shows a software structure block diagram of a mobile phone 200 and a tablet 300 applicable to the present application according to some embodiments of the present application;
  • FIG7 shows a schematic diagram of the structure of an audio strategy engine according to some embodiments of the present application.
  • FIG8 shows a schematic flow chart of an audio service processing method according to some embodiments of the present application.
  • FIG9 is a schematic diagram showing a notification management interface according to some embodiments of the present application.
  • FIG10 shows a schematic structural diagram of a Bluetooth headset 100 according to some embodiments of the present application.
  • FIG11 shows a software structure block diagram of a mobile phone 200 according to some embodiments of the present application.
  • FIG12 shows a schematic diagram of an application scenario of an audio service recovery processing method according to some embodiments of the present application.
  • FIG13 shows a schematic diagram of an operation interface of a “one-key reclaim” window according to some embodiments of the present application.
  • FIG14 shows a schematic diagram of an application scenario of an audio service recovery processing method according to some embodiments of the present application.
  • FIG15 shows a schematic diagram of an application scenario of an audio service recovery processing method according to some embodiments of the present application.
  • FIG. 16 shows a functional module diagram of a mobile phone 200 and a tablet 300 that can implement the audio service recovery processing method provided in an embodiment of the present application according to some embodiments of the present application;
  • FIG. 17 shows a schematic diagram of the interaction logic of various modules of the mobile phone 200 whose audio service is preempted when an audio service preemption event occurs according to some embodiments of the present application;
  • FIG. 18 shows an interactive logic diagram of a mobile phone 200 whose audio service is seized resuming to play music using a Bluetooth headset 100 according to some embodiments of the present application;
  • FIG. 19 is a schematic diagram of an interaction logic when the tablet 300 pauses playing music and the Bluetooth headset 100 is in an idle state, and the mobile phone 200 resumes playing music using the Bluetooth headset 100 according to some embodiments of the present application;
  • FIG. 20 corresponds to the application scenarios corresponding to FIG. 2, FIG. 3, FIG. 12 and FIG. 14 according to some embodiments of the present application , which shows a flow chart of an audio service recovery processing method.
  • the illustrative embodiments of the present application include, but are not limited to, an audio service processing method, an audio device, and a storage medium.
  • the Bluetooth headset can only be used as an audio output device for an audio service, and the audio service of another electronic device will be put on hold, and the audio service sent by other electronic devices cannot be completed in time. If the audio service sent by other electronic devices is more important, the Bluetooth headset cannot complete the more important audio service in time, and the user experience is poor.
  • an embodiment of the present application provides an audio service processing method, which includes: electronic device 1 and electronic device 2 both establish wireless communication channels with a Bluetooth headset. If electronic device 1 is using a Bluetooth headset to process audio service 1, at this time, after electronic device 2 detects audio service 2, it will first determine whether the service priority of audio service 2 is greater than or equal to the service priority of audio service 1. If electronic device 2 determines that the service priority of audio service 2 is greater than or equal to the service priority of audio service 1, it will request the Bluetooth headset to suspend processing of audio service 1 and use the Bluetooth headset to process audio service 2. As a result, the Bluetooth headset will suspend processing of audio service 1 and process audio service 2.
  • audio services may correspond to different priorities. Audio services with higher priorities are usually important and critical audio services. Audio services with higher priorities can be processed preferentially by Bluetooth headsets.
  • audio services may include multiple types, for example, audio services may include call services, multimedia services, notification services, etc.
  • Call services may include playing the voice data of the other end for the user in scenarios such as phone calls (including incoming and outgoing calls), video calls, audio calls, voice messages, games or voice assistants, or collecting the user's voice data and sending it to the other end, as well as playing incoming call ringtones, etc.
  • Multimedia services may include playing music, videos, recordings, background music of games, text-to-speech sounds, etc.
  • Notification services may include playing SMS prompts, push notification prompts, alarm ringtones, system sounds (such as sounds when adjusting the volume, shutter sounds when shooting, etc.).
  • the priorities of notification services, multimedia services, and call services increase in sequence.
  • audio services may include more types, which are not specifically limited here. Among them, the priority of the audio service may be pre-set or actively set by the user, which is not specifically limited here. For example, the service priority of the call service is higher than the service priority of the multimedia service, and the service priority of the multimedia service is higher than the service priority of the notification service.
  • the electronic device can control the Bluetooth headset to process more important audio services according to the pre-set service priority, thereby improving the user experience.
  • the electronic devices in the embodiments of the present application may be mobile phones, media players (such as MP3, MP4, etc.), tablet computers, laptop computers, ultra-mobile personal computers (UMPC), personal digital assistants (PDA), televisions, smart watches, and other devices.
  • the embodiments of the present application do not impose any special restrictions on the specific form of the electronic devices.
  • Electronic device 1 is the first electronic device
  • electronic device 2 is the second electronic device.
  • Fig. 1 shows a schematic diagram of the structure of a tablet 300 according to some embodiments of the present application.
  • the tablet 300 may include a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (USB) interface 330, a charging management module 340, a power management module 341, a battery 342, an antenna 1, an antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an earphone interface 370D, a sensor module 380, a button 390, a motor 391, an indicator 392, a camera 393, a display screen (touch screen) 394, and a subscriber identification module (SIM) card interface 395, etc.
  • a processor 310 an external memory interface 320, an internal memory 321, a universal serial bus (USB) interface 330, a charging management module 340, a power management module 341, a battery 342, an antenna 1, an antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a speaker 370A,
  • the above-mentioned sensor module 380 may include sensors such as pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor and bone conduction sensor.
  • sensors such as pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor and bone conduction sensor.
  • the structure shown in this embodiment does not constitute a specific limitation on the tablet 300.
  • the tablet 300 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently.
  • the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 310 may include one or more processing units, for example, the processor 310 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • controller a memory
  • video codec a digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • Different processing units may be independent devices or integrated into one or more processors.
  • the controller may be the nerve center and command center of the tablet 300.
  • the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 310 for storing instructions and data.
  • the memory in the processor 310 is a cache memory.
  • the memory may store instructions or data that the processor 310 has just used or cyclically used. If the processor 310 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, and the waiting time of the processor 310 is reduced, thereby improving the efficiency of the system.
  • both the electronic device 1 and the electronic device 2 establish a wireless communication channel with the Bluetooth headset.
  • the electronic device 1 is using the Bluetooth headset to process the audio service 1, at this time, after the processor 310 detects the audio service 2 again, it will first determine whether the service priority of the audio service 2 is greater than or equal to the service priority of the audio service 1. If the processor 310 determines that the service priority of the audio service 2 is greater than or equal to the service priority of the audio service 1, it will request the Bluetooth headset to suspend the processing of the audio service 1, and use the Bluetooth headset to process the audio service 2. Then, the Bluetooth headset will suspend the processing of the audio service 1 and process the audio service 2.
  • the processor 310 may include one or more interfaces.
  • the 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 (Subscriber Identity Module) interface, a general-purpose input/output (GPIO ... module, SIM) interface, and/or universal serial bus (USB) interface, etc.
  • I2C inter-integrated circuit
  • I2S inter-integrated circuit sound
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationship between the modules shown in this embodiment is only a schematic illustration and does not constitute a structural limitation on the tablet 300.
  • the tablet 300 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 340 is used to receive charging input from a charger.
  • the charger can be a wireless charger or a wired charger. While the charging management module 340 is charging the battery 342, it can also power the electronic device through the power management module 341.
  • the power management module 341 is used to connect the battery 342, the charging management module 340 and the processor 310.
  • the power management module 341 receives input from the battery 342 and/or the charging management module 340, and supplies power to the processor 310, the internal memory 321, the external memory, the display screen 394, the camera 393, and the wireless communication module 360.
  • the power management module 341 and the charging management module 340 can also be set in the same device.
  • the wireless communication function of the tablet 300 can be implemented through antenna 1, antenna 2, mobile communication module 350, wireless communication module 360, modem processor and baseband processor.
  • the antenna 1 of the tablet 300 is coupled with the mobile communication module 350
  • the antenna 2 is coupled with the wireless communication module 360, so that the tablet 300 can communicate with the network and other devices through wireless communication technology.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the flat panel 300 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 350 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the tablet 300.
  • the mobile communication module 350 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
  • the mobile communication module 350 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 350 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation through the antenna 1.
  • at least some functional modules of the mobile communication module 350 can be set in the processor 310. In some embodiments, at least some functional modules of the mobile communication module 350 can be set in the same device as at least some modules of the processor 310.
  • the wireless communication module 360 can provide wireless communication solutions including WLAN (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and the like applied on the tablet 300.
  • the tablet 300 can establish a wireless communication channel with a Bluetooth headset using the wireless communication module 360.
  • the tablet 300 can include a Bluetooth module, and the tablet 300 can establish a Bluetooth communication channel with a Bluetooth headset using the Bluetooth module, and transmit instructions and/or data with the Bluetooth headset through the Bluetooth communication channel.
  • the instruction can be to pause an audio service request, process an audio service request, etc.
  • the data can be various types of audio data.
  • the wireless communication module 360 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 360 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 310.
  • the wireless communication module 360 may also receive a signal to be sent from the processor 310, modulate the signal, amplify the signal, and convert it into an electromagnetic wave for radiation via the antenna 2.
  • the tablet 300 implements the display function through a GPU, a display screen 394, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 394 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 310 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 394 is used to display images, videos, etc.
  • the display screen 394 includes a display panel.
  • the tablet 300 can realize the shooting function through the ISP, the camera 393, the video codec, the GPU, the display screen 394 and the application processor.
  • the ISP is used to process the data fed back by the camera 393.
  • the camera 393 is used to capture a static image or a video.
  • the tablet 300 may include 1 or N cameras 393, where N is a positive integer greater than 1.
  • the external memory interface 320 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the tablet 300.
  • the external memory card communicates with the processor 310 through the external memory interface 320 to implement a data storage function. For example, files such as music and videos can be saved in the external memory card.
  • the internal memory 321 may be used to store computer executable program codes, which include instructions.
  • the processor 310 executes various functional applications and data processing of the tablet 300 by running the instructions stored in the internal memory 321.
  • the processor 310 may execute the instructions stored in the internal memory 321, and the internal memory 321 may include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, a service preemption function, etc.), etc.
  • the data storage area may store data created during the use of the tablet 300 (such as audio data, a phone book, etc.), etc.
  • the internal memory 321 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • the tablet 300 can implement audio functions such as music playing and recording through the audio module 370, the speaker 370A, the receiver 370B, the microphone 370C, the headphone jack 370D, and the application processor.
  • the button 390 includes a power button, a volume button, etc.
  • the button 390 can be a mechanical button. It can also be a touch button.
  • the motor 391 can generate a vibration prompt.
  • the motor 391 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • the indicator 392 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
  • the SIM card interface 395 is used to connect the SIM card.
  • the SIM card can be inserted into the SIM card interface 395, or pulled out from the SIM card interface 395 to achieve contact and separation with the tablet 300.
  • the tablet 300 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 395 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the structure of the mobile phone 200 may be the same as or different from that of the tablet 300, and will not be described in detail here.
  • the method of the embodiment of the present application is introduced by taking the electronic device 1 (i.e., the first electronic device) as a mobile phone 200, the electronic device 2 (i.e., the second electronic device) as a tablet 300, and the Bluetooth headset as a Bluetooth headset 100 as an example.
  • the audio service 1 is the first audio service
  • the audio service 2 is the second audio service.
  • FIG. 2 shows a schematic diagram of an application scenario of an audio service processing method according to some embodiments of the present application.
  • Fig. 3 shows a schematic diagram of an application scenario of an audio service processing method according to some embodiments of the present application.
  • the application scenario includes a mobile phone 200, a tablet 300, a user, and a Bluetooth headset worn by the user. 100.
  • Both the mobile phone 200 and the tablet 300 establish wireless communication channels with the Bluetooth headset 100.
  • the mobile phone 200 uses the Bluetooth headset 100 to process audio service 1, for example, using the Bluetooth headset 100 to play music.
  • the tablet 300 may detect music service 2, for example, the tablet 300 may need to use the Bluetooth headset 100 to play music.
  • the service priority of audio service 2 may be greater than or equal to the service priority of audio service 1.
  • the service priority of audio service 2 is equal to the service priority of audio service 1.
  • the subsequent embodiments of the present application will introduce the priority of each audio service, which will not be repeated here.
  • the tablet 300 may request the Bluetooth headset 100 to suspend processing of audio service 1 (such as playing music of the mobile phone 200) and use the Bluetooth headset 100 to process audio service 2 (such as playing music of the tablet 300).
  • the audio service 1 of the mobile phone 200 is preempted by the audio service 2 of the tablet 300.
  • the mobile phone 200 and the tablet 300 can respectively establish a wireless communication channel with the Bluetooth headset 100 through a physical connection, and the physical connection can include an asynchronous link (asynchronous connection-oriented link, ACL) connection in the wireless connection.
  • ACL asynchronous link
  • FIG4 shows a schematic diagram of an application scenario of an audio service processing method according to some embodiments of the present application.
  • the application scenario includes a mobile phone 200, a tablet 300, a user, and a Bluetooth headset 100 worn by the user.
  • the mobile phone 200 uses the Bluetooth headset 100 to process audio service 1, for example, using the Bluetooth headset 100 to play music.
  • the tablet 300 may detect music service 2, for example, the tablet 300 may receive an incoming call and needs to answer the call using the Bluetooth headset 100.
  • the service priority of audio service 2 may be greater than or equal to the service priority of audio service 1. For example, when audio service 2 is answering an incoming call and audio service 1 is playing music, the service priority of audio service 2 is higher than the service priority of audio service 1.
  • the tablet 300 can request the Bluetooth headset 100 to suspend processing of audio service 1 (such as playing music from the mobile phone 200) and use the Bluetooth headset 100 to process audio service 2 (such as answering a call from the tablet 300). At this time, the audio service 1 of the mobile phone 200 is preempted by the audio service 2 of the tablet 300.
  • the tablet 300 can control the Bluetooth headset to process more important audio services according to the pre-set service priority, thereby improving the user experience.
  • the Bluetooth headset will only process an audio service with a higher service priority, and suspend the processing of other audio services with lower service priorities.
  • Other audio services with lower service priorities will be shelved and not processed, which will also affect the user experience.
  • the method further includes: the electronic device 1 uses its own audio component to process the audio service 1.
  • the Bluetooth headset is connected to multiple electronic devices and multiple audio services are sent to the Bluetooth headset in parallel, the multiple audio services can be allocated to the corresponding audio playback devices, which solves the problem of selecting a suitable audio playback device under the concurrent transmission of multiple audio services and improves the user experience.
  • the tablet 300 requests the Bluetooth headset 100 to pause playing the music of the mobile phone 200, and uses the Bluetooth headset 100 to play the call of the tablet 300, and the Bluetooth headset 100 pauses playing the music of the mobile phone 200.
  • the mobile phone 200 plays the music using its own speaker, plugging in or unplugging headphones or a receiver.
  • FIG. 5 shows a schematic diagram of an application scenario of an audio service processing method according to some embodiments of the present application.
  • the tablet 300 detects the audio service 2.
  • the tablet 300 may receive an incoming call and needs to use the Bluetooth headset 100 to answer the call; or, the tablet 300 may need to use the Bluetooth headset 100 to play music.
  • the tablet 300 sends a service suspension instruction to the mobile phone 200 through the Bluetooth headset 100.
  • the mobile phone 200 can receive the service suspension instruction.
  • the mobile phone 200 can stop sending audio data of the audio service 1 to the Bluetooth headset 100, such as playing the audio data corresponding to the music of the mobile phone 200.
  • the tablet 300 can send audio data of the audio service 2 to the Bluetooth headset 100.
  • the Bluetooth headset 100 receives the audio data of the audio service 2 and processes the audio service 2, such as using the Bluetooth headset 100 to play the music of the tablet 300.
  • the tablet 300 can request the Bluetooth headset 100 to suspend processing of the audio service 1 through a service suspension instruction, and use the Bluetooth headset 100 to process the audio service 2, so that the audio service 2 preempts the audio service 1.
  • the Bluetooth headset 100 can play the role of transferring data or signaling (such as the above-mentioned service suspension instruction) between the tablet 300 and the mobile phone 200.
  • the Bluetooth headset 100 can transparently transmit the data or signaling received from the tablet 300 to the mobile phone 200, and can also transparently transmit the data or signaling received from the mobile phone 200 to the tablet 300.
  • the Bluetooth headset 100 after receiving data or signaling from the tablet 300 or the mobile phone 200, the Bluetooth headset 100 will also respond to the data or signaling and perform some corresponding operations. For example, after receiving a service suspension instruction from the tablet 300, the Bluetooth headset 100 will not only transmit the service suspension instruction to the mobile phone 200, but also stop processing the audio service 1 of the mobile phone 200 in response to the service suspension instruction.
  • the tablet 300 after the tablet 300 detects the audio service 2, it requests the Bluetooth headset 100 to suspend processing the audio service 1, and uses the Bluetooth headset 100 to process the audio service 2, including the following specific implementation scheme: the mobile phone 200 indicates the service priority of the audio service 1 to the tablet 300 through the Bluetooth headset 100; after the tablet 300 detects the audio service 2, it compares the service priority of the audio service 2 with that of the audio service 1; if the service priority of the audio service 2 is greater than the service priority of the audio service 1, the tablet 300 requests the Bluetooth headset 100 to suspend processing the audio service 1, and uses the Bluetooth headset 100 to process the audio service 2.
  • the service pause instruction is used to indicate the service priority of audio service 2; the mobile phone 200 receives the service pause instruction and stops sending audio data of audio service 1 to the Bluetooth headset 100, including the following specific implementation scheme: the mobile phone 200 receives the service pause instruction, if the service priority of audio service 2 indicated by the service pause instruction is greater than the service priority of audio service 1, stops sending audio data of audio service 1 to the Bluetooth headset 100.
  • the mobile phone 200 after receiving the service suspension instruction, the mobile phone 200 will reconfirm the service priorities of the audio service 2 and the audio service 1, so as to further ensure the accuracy of the execution of the service suspension instruction by the mobile phone 200.
  • FIG6 shows a software structure diagram of a mobile phone 200 and a tablet 300 applicable to the present application according to some embodiments of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor.
  • the layers communicate with each other through software interfaces.
  • the system is divided into at least three layers, namely, the application layer, the framework layer, and the hardware abstraction layer (Hardware Abstraction Layer, hal) from top to bottom.
  • the application layer includes applications (201, 301), audio managers (204, 304), and audio control centers (205, 305).
  • Framework The layers include perception (206, 306), AMS (207, 307), audio service (202, 302), Bluetooth service (203, 303), and iconnect module (209, 309).
  • the mobile phone 200 includes an application 201 , an audio service 202 , a Bluetooth service 203 , an audio manager 204 , an audio control center 205 , a perception 206 , an AMS 207 , a hardware abstraction layer 208 and an iconnect 209 .
  • application 201 may include applications such as calls, music, video, alarm clock, system media APK, etc.
  • the application layer may also include other applications, which are not limited in this application.
  • the Bluetooth service module 303 is used to establish a Bluetooth connection between the mobile phone 200 and the Bluetooth headset 100 .
  • the audio manager 204 is an application on the mobile phone 200.
  • the audio manager 204 is used to manage the Bluetooth headset 100 connected to the mobile phone 200 via Bluetooth, and when it is detected that the user turns on the audio manager 204, it displays various parameters of the Bluetooth headset connected to the mobile phone 200 via Bluetooth to the user (such as earphone in-ear detection, battery display, etc.) and sets corresponding function controls according to the user's operation, where the function controls include play/next song, play/pause, wake up the voice assistant, turn on/off active noise reduction, etc., and sends the audio service corresponding to the detected function control to the audio service 202, and the audio service 202 determines whether to process the detected audio service.
  • the audio manager 204 includes a prompt capsule, a play control strategy engine, a one-key reclaim and a smart connection.
  • the prompt capsule is used to enable the mobile phone 200 to display a prompt message of the service switching event to the user after the Bluetooth headset 100 switches from processing the audio service of the mobile phone 200 to processing the audio service of the tablet 300.
  • the play control strategy engine is used to set the corresponding function control according to the user's operation, and send the corresponding function control instruction to the audio strategy engine in the audio service 202.
  • the audio strategy engine controls the flow of audio data corresponding to the audio service according to the function control instruction.
  • the audio service 202 is used to manage the Bluetooth headset 100 connected to the mobile phone 200 via Bluetooth, and when the Bluetooth headset 100 is determined to process the audio service of the mobile phone 200, the audio data corresponding to the audio service of the mobile phone 200 is passed to the Bluetooth headset 100 through the hardware abstraction layer 208. After receiving the audio data, the Bluetooth headset 100 plays the audio. Alternatively, if the Bluetooth headset 100 is currently executing the audio service of the tablet 300, and at this time, the mobile phone 200 also detects the audio service to be processed, the audio service 202 will compare the service priorities of the audio service of the tablet 300 and the audio service of the mobile phone 200.
  • the audio service 202 sends a service suspension instruction to the Bluetooth headset 100 through the Bluetooth service 203.
  • the service suspension instruction is used to instruct the Bluetooth headset 100 to suspend the processing of the audio service currently being executed on the tablet 300 and process the audio service of the mobile phone 200.
  • the audio service 202 includes an audio policy engine, an audio playback and recording thread, and an audio device stack.
  • the audio policy engine is used to share the state of processing audio services with other peer devices connected to the Bluetooth headset 100 through the Bluetooth service 203 and the Bluetooth headset 100.
  • the state of processing audio services includes whether to process audio services, the audio type of the processed audio services, and the priority of the audio services.
  • the audio policy engine is used to manage the Bluetooth headset 100 connected to the mobile phone 200 via Bluetooth, and when receiving the instruction of the Bluetooth headset 100 to process the audio service of the mobile phone 200, the audio data corresponding to the audio service of the mobile phone 200 is passed to the Bluetooth headset 100 corresponding to the device identifier of the Bluetooth headset 100 specified in the audio device stack through the hardware abstraction layer 208 based on the set audio playback thread.
  • the audio service 202 will Compare the service priorities of the audio service of the tablet 300 and the audio service of the mobile phone 200.
  • the audio service 202 sends a service pause instruction to the Bluetooth headset 100 through the Bluetooth service 203.
  • the service pause instruction is used to instruct the Bluetooth headset 100 to pause processing of the audio service currently being executed on the tablet 300, and pass the audio data corresponding to the audio service of the mobile phone 200 to the Bluetooth headset 100 corresponding to the device identifier of the Bluetooth headset 100 specified in the audio device stack through the hardware abstraction layer 208 based on the set audio playback thread.
  • Perception 206 is used to perceive the device information parameters of the Bluetooth headset connected to the Bluetooth service 203 and the Bluetooth headset 100 detected by AMS207, and send the information to the audio manager 204. After receiving the information, the audio manager 204 detects that the user has turned on the audio manager 204, and displays the various parameters of the Bluetooth headset 100 connected to the mobile phone 200 by Bluetooth to the user (such as earphone in-ear detection, battery display, etc.).
  • the audio control center 205 is used to display icons related to the audio service processed by the mobile phone 200 and pause/play button icons on the control center interface of the mobile phone 200.
  • the tablet 300 also has the same functional structure as the mobile phone 200. Specifically, the tablet 300 includes applications 301, audio services 302, Bluetooth services 303, audio managers 304, audio control centers 305, perception 306, AMS 307, hardware abstraction layer (Hardware Abstraction Layer, hal) 308 and iconnect 309.
  • applications 301 audio services 302, Bluetooth services 303, audio managers 304, audio control centers 305, perception 306, AMS 307, hardware abstraction layer (Hardware Abstraction Layer, hal) 308 and iconnect 309.
  • application 301 can include applications such as calls, music, video, alarm clock, system media APK, etc.
  • application layer can also include other applications, which are not limited in this application.
  • the Bluetooth service module 303 is used to establish a Bluetooth connection between the tablet 300 and the Bluetooth headset 100 .
  • the audio manager 304 is an application on the tablet 300.
  • the audio manager 304 is used to manage the Bluetooth headset 100 connected to the tablet 300 via Bluetooth, and when it is detected that the user turns on the audio manager 304, it displays various parameters of the Bluetooth headset connected to the tablet 300 via Bluetooth (such as earphone in-ear detection, battery display, etc.) to the user and sets corresponding function controls according to the user's operation, where the function controls include play/next song, play/pause, wake up the voice assistant, turn on/off active noise reduction, etc., and sends the audio service corresponding to the detected function control to the audio service 302, and the audio service 302 determines whether to process the detected audio service.
  • the function controls include play/next song, play/pause, wake up the voice assistant, turn on/off active noise reduction, etc.
  • the audio manager 304 includes a prompt capsule, a play control strategy engine, a one-key reclaim and a smart connection.
  • the prompt capsule is used to enable the tablet 300 to display a prompt message of the service switching event to the user after the Bluetooth headset 100 switches from processing the audio service of the tablet 300 to processing the audio service of the tablet 300.
  • the play control strategy engine is used to set the corresponding function control according to the user's operation, and send the corresponding function control instruction to the audio strategy engine in the audio service 302, and the audio strategy engine controls the flow of audio data corresponding to the audio service according to the function control instruction.
  • the audio service 302 is used to manage the Bluetooth headset 100 connected to the tablet 300 via Bluetooth, and when it is determined that the Bluetooth headset 100 has issued an instruction to process the audio service of the tablet 300, the audio data corresponding to the audio service of the tablet 300 is passed to the Bluetooth headset 100 through the hardware abstraction layer 308. After receiving the audio data, the Bluetooth headset 100 plays the audio. Alternatively, if the Bluetooth headset 100 is currently executing the audio service of the tablet 300, and at this time, the tablet 300 also detects the audio service to be processed, the audio service 302 will compare the audio service of the tablet 300 with the service priority of the audio service of the tablet 300.
  • the audio service 302 will send the service priority to the Bluetooth headset 100 via the Bluetooth service 303.
  • the service suspension instruction is used to instruct the Bluetooth headset 100 to suspend processing of the audio service currently being executed by the tablet 300 and process the audio service of the tablet 300.
  • the audio service 302 includes an audio policy engine, an audio playback and recording thread, and an audio device stack.
  • the audio policy engine is used to share the state of processing audio services with other peer devices connected to the Bluetooth headset 100 through the Bluetooth service 303 and the Bluetooth headset 100.
  • the state of processing audio services includes whether to process audio services, the audio type of the processed audio services, and the priority of the audio services.
  • the audio policy engine is used to manage the Bluetooth headset 100 that is connected to the tablet 300 via Bluetooth, and upon receiving an instruction from the Bluetooth headset 100 to process the audio service of the tablet 300, the audio data corresponding to the audio service of the tablet 300 is passed to the Bluetooth headset 100 corresponding to the device identifier of the Bluetooth headset 100 specified in the audio device stack through the hardware abstraction layer 308 based on the set audio playback thread.
  • the audio service 302 will compare the service priorities of the audio service of the tablet 300 and the audio service of the tablet 300.
  • the audio service 302 sends a service pause instruction to the Bluetooth headset 100 through the Bluetooth service 303.
  • the service pause instruction is used to instruct the Bluetooth headset 100 to pause processing of the audio service currently being executed by the tablet 300, and pass the audio data corresponding to the audio service of the tablet 300 to the Bluetooth headset 100 corresponding to the device identifier of the Bluetooth headset 100 specified in the audio device stack through the hardware abstraction layer 308 based on the set audio playback thread.
  • Perception 306 is used to perceive the device information parameters of the Bluetooth headset connected to the Bluetooth service 303 and the Bluetooth headset detected by AMS307, and send the information to the audio manager 304. After receiving the information, the audio manager 304 detects that the user has turned on the audio manager 304, and displays the various parameters of the Bluetooth headset connected to the tablet 300 by Bluetooth to the user (such as earphone in-ear detection, battery display, etc.).
  • the audio control center 305 is used to display icons related to the audio services processed by the tablet 300 and pause/play button icons on the control center interface of the tablet 300.
  • the audio service processing scheme provided by the embodiment of the present application is applied in a standard software architecture (such as the software architecture described in FIG. 6 above), the algorithm of the software architecture itself may be affected. In order to avoid the occurrence of such problems, the compatibility of the audio service processing scheme provided by the embodiment of the present application is improved.
  • the relevant functional modules for implementing the audio service processing scheme provided by the embodiment of the present application can be placed in a non-standard software architecture (such as the software architecture described in FIG. 6 above), but in the functional modules of the electronic device itself. Specifically, see the description of FIG. 7 below.
  • FIG 7 shows a schematic diagram of the structure of an audio policy engine according to some embodiments of the present application.
  • the audio policy engine that implements the audio service processing solution provided by the embodiment of the present application is mainly in the framework layer (java layer and native layer) of the software architecture, and the modules involved are AudioService, AudioSystem, and AudioPolicyService.
  • the implementation of this part is placed in the AudioPolicyManagerCustomInterface of the non-standard software architecture (non-AOSP module).
  • AudioService senses the status of the audio service currently played on the electronic device (such as mobile phone 200 and tablet 300), including the status changes of audio services such as calls, Bluetooth recording, ringtones, music, movies, alarms, notifications, etc., and broadcasts the status to the Bluetooth service (203, 303) of the electronic device (such as mobile phone 200 and tablet 300) when the audio service starts using the dual-connected Bluetooth headset and when the audio service ends and releases the dual-connected Bluetooth headset.
  • AudioSystem receives the audio service status information of the peer device of the dual-connected headset broadcast by the Bluetooth service (203, 303), and sends the information to In AudioPolicyManagerCustomInterface, AudioPolicyManagerCustomInterface executes the audio service processing solution provided in the embodiment of the present application.
  • the audio control center (205, 305) can synchronously display the actual audio playback device on the current device in real time.
  • the AudioSystem receives the earphone status broadcast by the Bluetooth service (203, 303), it also notifies the audio control center (205, 305) to refresh the audio playback device display to display the latest audio playback device.
  • the following describes a process in which the Bluetooth headset 100 is connected to the mobile phone 200 and the tablet 300 at the same time, and after the user wears the Bluetooth headset 100, the mobile phone 200 uses the Bluetooth headset 100 to play music, and when the tablet 300 detects a music service, it seizes the Bluetooth headset 100 and uses the Bluetooth headset 100 to play music.
  • FIG8 shows a schematic flow chart of an audio service processing method according to some embodiments of the present application, corresponding to FIG4. As shown in FIG8, the flow chart includes the following steps:
  • the Bluetooth headset 100 establishes a wireless communication channel with the mobile phone 200 through the Bluetooth service 201 , and establishes a wireless communication channel with the tablet 300 through the Bluetooth service 301 .
  • the Bluetooth headset 100 sends a message to the mobile phone 200 and the tablet 300 that the user has worn the Bluetooth headset 100 through the communication channel between the Bluetooth headset 100 and the mobile phone 200 and the tablet 300.
  • the method of the embodiment of the present application may further include steps 802-803.
  • the Bluetooth headset 100 sends a wearing notification to the mobile phone 200 via the Bluetooth service 201 , and the Bluetooth headset 100 sends a wearing notification to the tablet 300 via the Bluetooth service 301 .
  • the Bluetooth service 201 broadcasts the wearing status to the audio service 202
  • the Bluetooth service 301 broadcasts the wearing status to the audio service 302 .
  • Application 203 detects a music service.
  • the application 203 can detect the music service initiated by the user in response to the user's operation of playing the selected music.
  • the application 203 sends a music playing request to the audio service 202 .
  • the audio service 202 determines that the Bluetooth headset 100 is idle and can play music.
  • the audio service 202 and the audio service 302 can share the status of their respective devices processing audio services using the Bluetooth headset 100. Therefore, the audio service 202 can determine whether the Bluetooth headset 100 is idle and can play music based on the aforementioned shared information.
  • the audio service 202 sends a music playing instruction to the Bluetooth headset 100 through the Bluetooth service 201, where the music playing instruction includes an audio stream name field.
  • the audio stream name field is used to determine the service type of the audio service, and the service type of the audio service can be used to determine the service priority of playing music.
  • the audio stream name field and its corresponding service type can be shown in Table 1:
  • the audio service 1 belongs to the multimedia service, and its service type identifier is 2.
  • the audio service 1 belongs to the call service, and its service type identifier is 1; or, if the name field of the audio stream 1 is Stream_Notification, the audio service 1 belongs to the notification service, and its service type identifier is 3.
  • each audio stream name field may correspond to a type of audio stream.
  • the electronic device may also include more types of audio streams in Table 1, which are not specifically limited here.
  • the electronic device may also include More types of services may be included, for example, "Stream_TTS" and "Stream_Accessibility” may be classified as other types.
  • the service type identifier corresponding to each service type in Table 1 is only an example, and the service type identifier may also be other.
  • the play music instruction also includes a service priority and/or service type field of the audio service, but is not limited thereto.
  • the Bluetooth headset 100 Upon receiving the music playing instruction sent by the audio service 202 , the Bluetooth headset 100 plays music.
  • the Bluetooth headset 100 After receiving the music playing instruction sent by the audio service 202, the Bluetooth headset 100 receives the audio data sent by the audio service 202 and plays the music based on the audio data.
  • the Bluetooth headset 100 sends notification information of the audio service processing status of the Bluetooth headset 100 to the audio service 302 via the Bluetooth service 301 .
  • the audio service 202 and the audio service 302 can share the status of their respective devices processing audio services using the Bluetooth headset 100.
  • Application 303 detects music service.
  • the application 303 can detect the music service initiated by the user in response to the user's operation of playing the selected music.
  • the application 303 sends a music playing request to the audio service 302.
  • the audio service 302 compares the service priorities of the music service of the tablet 300 and the music service of the mobile phone 200; if the service priority of the music service of the tablet 300 is equal to the service priority of the music service of the mobile phone 200, it is determined that the Bluetooth headset 100 can be preempted to play music.
  • the audio service 302 sends a service suspension instruction to the audio service 202 through the Bluetooth service 301 , the Bluetooth headset 100 and the Bluetooth service 201 .
  • the audio service 202 After receiving the service suspension instruction, the audio service 202 does not send audio data to the Bluetooth headset 100 .
  • the audio service 302 sends the music data to the Bluetooth headset 100 via the Bluetooth service 301 .
  • the Bluetooth headset 100 plays music based on the music data.
  • the tablet 300 requests the Bluetooth headset 100 to pause playing the music of the mobile phone 200, and uses the Bluetooth headset 100 to play the music of the tablet 300.
  • the Bluetooth headset 100 pauses playing the music of the mobile phone 200.
  • the mobile phone 200 uses its own speaker, plugs in and out headphones or receivers, etc. to play music, and at the same time displays the current audio service processing device (audio input and output device) on the display interface of the mobile phone 200.
  • FIG9 shows a schematic diagram of a notification management interface according to some embodiments of the present application. As shown in FIG9, the display interface of the mobile phone 200 shows that the current audio service processing device (audio input and output device) is the local device.
  • FIG10 shows a schematic diagram of the structure of a Bluetooth headset 100 according to some embodiments of the present application.
  • the Bluetooth headset 100 may include at least one processor 101, at least one memory 102, a wireless communication module 103, an audio module 104, a power module 105, and an input/output interface 106, etc.
  • the processor may include one or more interfaces for connecting to other components of the Bluetooth headset 100.
  • the Bluetooth headset 100 is stored in an earphone box.
  • the various components of the Bluetooth headset 100 are specifically introduced below in conjunction with FIG10 .
  • the memory 102 can be used to store program codes, such as for physically connecting the Bluetooth headset 100 with multiple electronic devices, and for connecting with electronic devices in accordance with business regulations, processing audio services of electronic devices (such as music playback, answering/calling, etc.), and for charging the Bluetooth headset 100.
  • the memory 102 may also be used to store other information, such as the priority of the electronic device.
  • the processor 101 can be used to execute the above application code and call related modules to implement the functions of the Bluetooth headset 100 in the embodiment of the present application.
  • the Bluetooth headset 100 can be connected physically to multiple electronic devices (such as electronic device 1 and electronic device 2), and can be connected to different electronic devices according to device priority.
  • the physical connection is a connection based on a physical link, which may include an ACL connection or a low energy asynchronous connection link (low energy asynchronous connection link/logical transport, LE ACL) connection.
  • the Bluetooth headset when the Bluetooth headset establishes a physical connection with the electronic device 1 and is processing the audio service 1 of the electronic device 1 (such as playing music), if the Bluetooth headset receives the connection request information of the electronic device 2, the Bluetooth headset can process the audio service 2 of the electronic device 2 (such as answering/making a call) based on the physical connection with the electronic device 2, so as to realize the service preemption function of the audio service 2 of the electronic device 2.
  • the processor 101 may include one or more processing units, and different processing units may be independent devices or integrated into one or more processors 101.
  • the processor 101 may specifically be an integrated control chip, or may be composed of a circuit including various active and/or passive components, and the circuit is configured to perform the functions of the processor 101 described in the embodiments of the present application.
  • the wireless communication module 103 can be used to support data exchange between the Bluetooth headset 100 and other electronic devices or earphone boxes through wireless communication technology, such as BT, WLAN (such as Wi-Fi), Zigbee, FM, NFC, IR, or general 2.4G/5G wireless communication technology.
  • wireless communication technology such as BT, WLAN (such as Wi-Fi), Zigbee, FM, NFC, IR, or general 2.4G/5G wireless communication technology.
  • the wireless communication module 103 may be a Bluetooth chip.
  • the Bluetooth headset 100 may be paired with a Bluetooth chip of another electronic device through the Bluetooth chip and establish a wireless connection to achieve wireless communication and service processing between the Bluetooth headset 100 and the other electronic device through the wireless connection.
  • the Bluetooth chip may support basic rate (BR)/enhanced data rate (EDR) Bluetooth and BLE, for example, it may receive/send paging information, receive/send BLE broadcast messages, etc.
  • BR basic rate
  • EDR enhanced data rate
  • the wireless communication module 103 may also include an antenna, and the wireless communication module 103 receives electromagnetic waves via the antenna, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 101.
  • the wireless communication module 103 may also receive a signal to be sent from the processor 101, modulate the frequency of the signal, amplify the signal, and convert it into an electromagnetic wave for radiation through the antenna.
  • the audio module 104 can be used to manage audio data and implement the input and output audio streams of the Bluetooth headset 100.
  • the audio module 104 can obtain an audio stream from the wireless communication module 103, or transmit an audio stream to the wireless communication module 103, to implement functions such as making and receiving calls, playing music, starting/turning off the voice assistant of the electronic device connected to the headset, and receiving/sending the user's voice data through the Bluetooth headset.
  • the audio module 104 may include a speaker (or earpiece, receiver) component for outputting an audio stream, a microphone (or microphone, microphone), a microphone receiving circuit matched with the microphone, etc.
  • the speaker can be used to convert an audio electrical signal into a sound signal and play it.
  • the microphone can be used to convert a sound signal into an audio electrical signal.
  • the power module 105 can be used to provide system power for the Bluetooth headset 100, power each module of the Bluetooth headset 100, and support the Bluetooth headset 100 to receive charging input.
  • the power module 105 may include a power management unit (PMU) and a battery.
  • the power management unit can receive external charging input; transform the electrical signal input from the charging circuit and provide it to the battery for charging; and can also transform the electrical signal provided by the battery and provide it to the battery for charging. Supplying other modules such as the audio module 104 and the wireless communication module 103; and preventing the battery from being overcharged, over-discharged, short-circuited or over-current, etc.
  • the power module 105 may also include a wireless charging coil for wirelessly charging the Bluetooth headset 100.
  • the power management unit may also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
  • the multiple input/output interfaces 106 can be used to provide a wired connection for charging or communication between the Bluetooth headset 100 and the headset box.
  • the input/output interface can be a USB interface.
  • the input/output interface 106 can be a headset electrical connector.
  • the Bluetooth headset 100 can establish an electrical connection with the electrical connector in the headset box through the headset electrical connector, thereby charging the battery in the Bluetooth headset 100.
  • the Bluetooth headset 100 can also communicate data with the headset box, for example, it can receive a pairing instruction from the headset box.
  • the Bluetooth headset 100 may further include a sensor 107.
  • the sensor 107 may be a distance sensor or a proximity light sensor, which may be used to determine whether the Bluetooth headset 100 is worn by the user.
  • the Bluetooth headset 100 may use the distance sensor to detect whether there is an object near the Bluetooth headset 100, thereby determining whether the Bluetooth headset 100 is worn by the user. When it is determined that the Bluetooth headset 100 is worn, the Bluetooth headset 100 may turn on the speaker.
  • the sensor 107 may also include a bone conduction sensor, combined into a bone conduction headset.
  • the Bluetooth headset 100 can obtain the vibration signal of the human vocal bone, parse the voice signal, implement the voice function, and thus receive the user's voice command.
  • the Bluetooth headset 100 can also perform voice authentication based on the user's voice signal obtained by the bone conduction headset to authenticate the user's identity in business scenarios such as payment transactions.
  • the sensor 107 may also include: a touch sensor for detecting a user's touch operation; a fingerprint sensor for detecting a user's fingerprint and identifying the user's identity; an ambient light sensor that can adaptively adjust some parameters (such as volume) according to the perceived brightness of the ambient light; and other possible sensors.
  • a touch sensor for detecting a user's touch operation
  • a fingerprint sensor for detecting a user's fingerprint and identifying the user's identity
  • an ambient light sensor that can adaptively adjust some parameters (such as volume) according to the perceived brightness of the ambient light
  • the touch sensor can detect the user's touch operations such as single click, double click, multiple clicks, long press, and heavy pressure, and can also perform user fingerprint recognition to authenticate the user's identity in business scenarios such as payment transactions.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the Bluetooth headset 100. It may have more or fewer components than those shown in FIG. 10, may combine two or more components, or may have different component configurations.
  • the outer surface of the Bluetooth headset 100 may also include a button 108, an indicator light (which may indicate battery level, incoming/outgoing call, pairing mode, etc.), a display screen (which may prompt the user with relevant information), a dust screen (which may be used in conjunction with a handset), and other components.
  • the button 108 may be a physical button or a touch button (used in conjunction with a touch sensor), etc., which is used to trigger operations such as power on, power off, pause, play, record, start pairing, and reset.
  • the Bluetooth headset 100 may include an earphone body (also called the left earplug, or the first part) worn on the left ear and an earphone body (also called the right earplug, or the second part) worn on the right ear.
  • the earphone body may include a housing and internal components.
  • the internal components are arranged in a cavity formed by the housing.
  • the internal components may include devices in modules such as the above-mentioned audio module, power module, and wireless communication module.
  • the Bluetooth headset is a TWS headset
  • the user can use the TWS headset in binaural mode or monaural mode.
  • monaural mode the user wears the left earbud or the right earbud to listen to music or answer/make phone calls and other audio services.
  • binaural mode the user can wear two earbuds to enjoy music or perform other audio services.
  • binaural mode the two earbuds are divided into main earbuds and auxiliary earbuds.
  • the main and auxiliary roles of the two earbuds can also be switched based on different conditions. For example, the earbud with higher power can be switched to the main earbud, and the earbud with lower power can be switched to the auxiliary earbud.
  • the Bluetooth headset is usually stored in an earphone box.
  • the earphone box may have one or more magnets inside to attract the earphone body into the cavity in the earphone box.
  • the earphone box may include a battery and multiple input/output interfaces.
  • the input/output interface may be a box electrical connector.
  • the headset box may be provided with at least one touch control, which can be used to trigger the Bluetooth headset to perform pairing reset or charge the Bluetooth headset.
  • the headset box may also be provided with one or more power indicator lights to prompt the user the power level of the battery in the headset box and the power level of the battery in each headset body in the headset box.
  • the earphone box may further include components such as a processor and a memory.
  • the memory may be used to store application code, and the processor of the earphone box controls execution to implement various functions of the earphone box.
  • the processor of the earphone box executes the application code stored in the memory, and charges the Bluetooth headset after detecting that the Bluetooth headset is placed in the earphone box and the lid of the earphone box is closed.
  • the earphone box may be provided with a charging interface for charging the battery of the earphone box.
  • the earphone box may also include a wireless charging coil for wirelessly charging the battery of the earphone box. It is understandable that the earphone box may also include other components, which will not be described one by one here.
  • the components shown in FIG. 10 do not constitute a specific limitation on the Bluetooth headset 100 , and the Bluetooth headset 100 may also include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange the components differently.
  • Bluetooth headsets can connect to multiple electronic devices, but they can only process the audio service of an electronic device with a higher service priority according to the service priority order set for the audio service, but cannot process the audio service of other electronic devices according to the user's wishes.
  • the flexibility of audio service switching is poor and the user experience is poor.
  • the application scenario includes a Bluetooth headset 100, a mobile phone 200, and a tablet 300.
  • the Bluetooth headset 100 simultaneously establishes wireless communication connections with the mobile phone 200 and the tablet 300, thereby cooperating with the mobile phone 200 and the tablet 300 to process audio services for the user.
  • the Bluetooth headset 100 plays the music of the mobile phone 200.
  • the tablet 300 detects an audio service of playing music and determines that the service priority of the tablet 300 playing music is greater than or equal to the service priority of the mobile phone 200 playing music, it requests the Bluetooth headset 100 to pause playing the music of the mobile phone 200 and play the music of the tablet 300, so that the Bluetooth headset 100 pauses playing the music of the mobile phone 200 and plays the music of the tablet 300.
  • the Bluetooth headset 100 cannot switch to playing the music of the mobile phone 200 again according to the user's wishes, the flexibility of audio service switching is poor, and the user experience is poor.
  • the embodiment of the present application provides an audio service recovery processing method.
  • both electronic device 1 and electronic device 2 establish a wireless communication channel with a Bluetooth headset. Then, when electronic device 1 uses the Bluetooth headset to process audio service 1, and electronic device 2 detects audio service 2, it can request the Bluetooth headset to The processing of audio service 1 is suspended, and the Bluetooth headset is used to process audio service 2.
  • the audio service priority of audio service 2 is greater than or equal to the audio service priority of audio service 1.
  • the electronic device 1 described in the embodiment of the present application is a first electronic device, the electronic device 2 is a second electronic device, the audio service 1 is a first audio service, and the audio service 2 is a second audio service.
  • the electronic device 1 may display a first prompt message, wherein the first prompt message is used to request the user to determine whether the electronic device 1 resumes processing the audio service 1 using the Bluetooth headset.
  • the Bluetooth headset is requested to suspend processing of the audio service 2, and the Bluetooth headset is used to process the audio service 1, wherein the first operation is used to trigger the electronic device 1 to resume processing the audio service 1 using the Bluetooth headset. Then, the electronic device 1 resumes processing the audio service 1 using the Bluetooth headset.
  • the audio service of an electronic device with a higher service priority is not simply decided according to the service priority order set for the audio service. After pausing an audio service, the user can decide whether to continue the audio service. Afterwards, the user can choose whether to resume the preempted audio service according to his/her wishes. In this way, the flexibility of audio service switching is improved, and the user experience is improved.
  • the software system of the mobile phone 200 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present application takes the Android system of a layered architecture as an example to exemplify the software structure of the mobile phone 200.
  • FIG. 11 shows a software structure diagram of a mobile phone 200 according to some embodiments of the present application.
  • the layered architecture divides the software into several layers, each with clear roles and division of labor.
  • the layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, namely, from top to bottom, the application layer, the application framework layer, the Android Runtime and the system library, and the kernel layer.
  • the application layer may include applications such as music, video, call, ringtone, alarm, Bluetooth, navigation, audio manager, gallery, recording, etc.
  • the application layer may 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, processing audio services.
  • the audio manager is also used to sense the preemption event of the audio service and the state recovery event of the audio service.
  • the preemption of the audio service refers to the process of suspending the processing of the audio service being processed and processing the audio service initiated by another electronic device when the Bluetooth headset processes the audio service, and then suspending the processing of the audio service being processed and processing the audio service initiated by another electronic device.
  • the state recovery event of the audio service refers to the process of the Bluetooth headset suspending the processing of the audio service initiated by another electronic device after the preemption event of the audio service occurs, and processing the audio service that was previously suspended.
  • the audio manager is also used to display a first prompt message, which is used to instruct the user to select the preemption processing of the audio service and the state recovery processing of the audio service. For example, the audio manager is used to display the aforementioned "one-key grab back" pop-up window.
  • the application framework layer provides an application programming interface (API) and a programming framework for the applications of the application layer.
  • the application framework layer includes some predefined functions. For example, it may include a phone manager, a computing engine, a notification manager, a multimedia framework, a state perception module, a process manager, etc., and the embodiments of the present application do not impose any restrictions on this.
  • the process manager is used to create and terminate processes and threads.
  • the phone manager is used to provide the communication functions of the mobile phone 200. For example, the management of the call status (including connecting, hanging up, etc.) wait).
  • the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
  • the state perception module is mainly responsible for confirming the state of the mobile phone 200 itself and the state of the wireless device (e.g., Bluetooth headset 100) connected to the mobile phone 200 via Bluetooth.
  • the state of the mobile phone 200 itself may include an activated state and an inactivated state
  • the state of the device connected to the mobile phone via Bluetooth may include an idle state or a non-idle state.
  • the state perception module can confirm the state of the mobile phone 200 itself by monitoring various application processes and threads.
  • the state perception module can determine the state of the device connected to the mobile phone 200 via Bluetooth through the received broadcast information (e.g., BLE broadcast).
  • the multimedia framework can receive audio services sent by various applications in the application layer, identify the type of audio services, and perform service arbitration and preemption.
  • the multimedia framework is used to determine the type of audio service based on the audio stream type in the audio service request when receiving a request to process an audio service sent by an application, and then select an audio playback device based on the state 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 receiving an audio service preemption notification sent by an audio manager.
  • the system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (e.g., OpenGL ES), 2D graphics processing library (e.g., SGL), etc.
  • surface manager e.g., media library
  • 3D graphics processing library e.g., OpenGL ES
  • 2D graphics processing library e.g., SGL
  • the surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • OpenGL ES is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • SGL is a graphics engine for 2D graphics.
  • Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library.
  • the application layer and the application framework layer run in the virtual machine.
  • the virtual machine executes the Java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, sensor driver, and Bluetooth module.
  • the Bluetooth module may include hardware units for Bluetooth connection and data interaction: wireless radio unit (Radio), baseband or link control unit (link controller), link management unit (link manager), etc.
  • the wireless radio unit is used to realize the wireless radio unit (Radio) for sending/receiving data and voice;
  • the link management unit is used to convert radio frequency signals into digital or voice signals to realize Baseband protocol and other underlying connection procedures;
  • the link management unit is responsible for managing the communication between Bluetooth devices and implementing operations such as link establishment, verification, and link configuration.
  • the method of the embodiment of the present application is introduced by taking the electronic device 1 (i.e., the first electronic device) as a mobile phone 200, the electronic device 2 (i.e., the second electronic device) as a tablet 300, and the Bluetooth headset as a Bluetooth headset 100 as an example.
  • the audio service 1 is the first audio service
  • the audio service 2 is the second audio service.
  • both the mobile phone 200 and the tablet 300 can establish a wireless communication channel (such as a physical connection) with the Bluetooth headset 100.
  • the mobile phone 200 can use the Bluetooth headset 100 to process the audio service 1, such as using the Bluetooth headset 100 to play the music of the mobile phone 200.
  • the tablet 300 may detect the audio service 2.
  • the tablet 300 may receive an incoming call and need to answer the call using the Bluetooth headset 100; or, the tablet 300 may need to play music using the Bluetooth headset 100.
  • the service priority of the audio service 2 may be greater than or equal to the service priority of the audio service 1.
  • the service priority of the audio service 2 is higher than the service priority of the audio service 1.
  • the service priority of the audio service 2 is equal to the service priority of the audio service 1.
  • tablet 300 can request Bluetooth headset 100 to suspend processing of audio service 1 (such as playing music from mobile phone 200) and use Bluetooth headset 100 to process audio service 2 (such as answering a call from tablet 300). At this time, audio service 1 of mobile phone 200 is preempted by audio service 2 of tablet 300.
  • the mobile phone 200 can provide the user with a "one-key retake" service. Specifically, the mobile phone 200 can display a first prompt message after the Bluetooth headset 100 suspends processing of the audio service 1. The first prompt message is used to request the user to determine whether the mobile phone 200 resumes using the Bluetooth headset 100 to process the audio service 1. In other words, the first prompt message is used to request the user to determine whether the audio service 1 is to re-seize the right to use the Bluetooth headset 100. For example, FIG.
  • FIG. 12 shows a schematic diagram of an application scenario of an audio service recovery processing method according to some embodiments of the present application.
  • the mobile phone 200 displays a "one-key retake” pop-up window.
  • FIG. 13 shows a schematic diagram of an operation interface of a "one-key retake” window according to some embodiments of the present application.
  • the mobile phone 200 displays a "one-key retake” pop-up window 1.
  • the "one-click reclaim" pop-up window 1 includes a prompt message: "Do you want to resume using the Bluetooth headset 100 to process the audio service 1?", as well as a confirmation option and a cancel option.
  • FIG 14 shows an application scenario schematic diagram of an audio service recovery processing method according to some embodiments of the present application.
  • the mobile phone 200 can request the Bluetooth headset 100 to pause playing the music of the tablet 300, and use the Bluetooth headset 100 to play the music of the mobile phone 200, so that the Bluetooth headset 100 resumes playing the music of the mobile phone 200.
  • the first prompt message can be displayed on the desktop of the mobile phone 200, can also be displayed in the interface of the audio application, and can also be displayed in the drop-down notification management menu of the mobile phone 200.
  • the priority of processing services is not determined simply according to the service priority order set for audio services.
  • audio services may correspond to different priorities. Audio services with higher priorities are usually important and critical audio services, and audio services with higher priorities may be processed preferentially by Bluetooth headsets.
  • audio services may include multiple types, such as audio services may include call services, multimedia services, notification services, etc.
  • Call services may include playing the voice data of the other end for the user in scenarios such as phone calls (including incoming and outgoing calls), video calls, audio calls, voice messages, games or voice assistants, or collecting the user's voice data and sending it to the other end, as well as playing incoming call ringtones, etc.
  • Multimedia services may include playing music, videos, recordings, background music for games, text-to-speech sounds, etc.
  • Notification services may include playing SMS prompts, push notification prompts, alarm ringtones, system sounds (such as sounds when adjusting the volume, shutter sounds when shooting, etc.).
  • the priorities of notification services, multimedia services, and call services increase in sequence.
  • audio services may include more types, which are not specifically limited here. Among them, the priority of the audio service may be pre-set or actively set by the user, which is not specifically limited here. For example, the service priority of the call service is higher than the service priority of the multimedia service, and the service priority of the multimedia service is higher than the service priority of the notification service.
  • FIG. 15 shows a schematic diagram of an application scenario of an audio service recovery processing method according to some embodiments of the present application.
  • the tablet 300 detects the audio service 2.
  • the tablet 300 may receive an incoming call and needs to use the Bluetooth headset 100 to answer the call; or, the tablet 300 may need to use the Bluetooth headset 100 to play music.
  • the tablet 300 sends a service suspension instruction to the mobile phone 200 through the Bluetooth headset 100.
  • the mobile phone 200 can receive the service suspension instruction.
  • the mobile phone 200 can stop sending audio data of the audio service 1 to the Bluetooth headset 100, such as playing the audio data corresponding to the music of the mobile phone 200.
  • the tablet 300 can send audio data of the audio service 2 to the Bluetooth headset 100.
  • the Bluetooth headset 100 receives the audio data of the audio service 2 and processes the audio service 2, such as using the Bluetooth headset 100 to play the music of the tablet 300.
  • the tablet 300 can request the Bluetooth headset 100 to suspend processing of the audio service 1 through a service suspension instruction, and use the Bluetooth headset 100 to process the audio service 2, so that the audio service 2 preempts the audio service 1.
  • the Bluetooth headset 100 can play the role of transferring data or signaling (such as the above-mentioned service suspension instruction) between the tablet 300 and the mobile phone 200.
  • the Bluetooth headset 100 can transparently transmit the data or signaling received from the tablet 300 to the mobile phone 200, and can also transparently transmit the data or signaling received from the mobile phone 200 to the tablet 300.
  • the Bluetooth headset 100 after receiving data or signaling from the tablet 300 or the mobile phone 200, the Bluetooth headset 100 will also respond to the data or signaling and perform some corresponding operations. For example, after receiving a service suspension instruction from the tablet 300, the Bluetooth headset 100 will not only transmit the service suspension instruction to the mobile phone 200, but also stop processing the audio service 1 of the mobile phone 200 in response to the service suspension instruction.
  • the tablet 300 after the tablet 300 detects the audio service 2, it requests the Bluetooth headset 100 to suspend processing the audio service 1, and uses the Bluetooth headset 100 to process the audio service 2, including the following specific implementation scheme: the mobile phone 200 indicates the service priority of the audio service 1 to the tablet 300 through the Bluetooth headset 100; the tablet 300 detects the audio service 2, and the Bluetooth headset 100 suspends processing the audio service 1. After processing audio service 2, the tablet 300 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 suspend processing audio service 1 and use the Bluetooth headset 100 to process audio service 2.
  • the service suspension instruction is used to indicate the service priority of audio service 2; the mobile phone 200 receives the service suspension instruction and stops sending the audio data of audio service 1 to the Bluetooth headset 100, including the following specific implementation scheme: the mobile phone 200 receives the service suspension instruction, and if the service priority of audio service 2 indicated by the service suspension instruction is greater than the service priority of audio service 1, stops sending the audio data of audio service 1 to the Bluetooth headset 100.
  • the mobile phone 200 after receiving the service suspension instruction, the mobile phone 200 will reconfirm the service priorities of audio service 2 and audio service 1, further ensuring the accuracy of the mobile phone 200 executing the service suspension instruction.
  • the tablet 300 that initiates the audio service later can display a prompt message for requesting the user to determine whether the tablet 300 preempts the Bluetooth headset 100 to process the audio service 2. In this way, the user's willingness can determine whether to process the audio service 2 initiated later first, thereby improving the user experience.
  • the tablet 300 displays a second prompt message; wherein the second prompt message is used to request the user to determine whether the tablet 300 preempts the Bluetooth headset 100 to process the audio service 2; the tablet 300 responds to the user's third operation on the second prompt message, requests the Bluetooth headset 100 to suspend the processing of the audio service 1, and uses the Bluetooth headset 100 to process the audio service 2; wherein the third operation is used to trigger the tablet 300 to preempt the Bluetooth headset 100 to process the audio service 2.
  • the second prompt message can be displayed on the desktop of the tablet 300, can also be displayed on the interface of the audio application of the tablet 300, and can also be displayed in the drop-down notification management menu of the tablet 300.
  • the operation interface of the tablet 300 may include the second prompt information and a corresponding confirmation option button at the same time, and the third operation may be a selection operation of the user on the confirmation option button corresponding to the second prompt information, for example, the user clicks the confirmation option button.
  • the display time of the first prompt information needs to be controlled within a certain time. If the user's first operation on the first prompt information is detected within the control time, mobile phone 200 resumes the originally suspended audio service.
  • the mobile phone 200 if the mobile phone 200 receives a first operation of the user on the first prompt information within a first preset time, the mobile phone 200, in response to the first operation, requests the Bluetooth headset 100 to suspend processing of audio service 2, and uses the Bluetooth headset 100 to process audio service 1.
  • the first preset time can be any time from 10 seconds to 1 minute.
  • the mobile phone 200 can automatically resume using the Bluetooth headset 100 to process the audio service 1 after the Bluetooth headset 100 has processed the audio service 2. Specifically, if the mobile phone 200 does not receive the user's operation on the first prompt information within the first preset time, the mobile phone 200 can automatically resume using the Bluetooth headset 100 to process the audio service 1 after the Bluetooth headset 100 has processed the audio service 2. In this way, after the Bluetooth headset 100 has processed the audio service 2, the mobile phone 200 can automatically resume using the Bluetooth headset 100 to process the audio service 1 without the user's operation, thereby improving the user experience.
  • the mobile phone 200 can automatically resume processing the audio service 1 using the Bluetooth headset 100 after the Bluetooth headset 100 completes processing the audio service 2.
  • the second operation is used to trigger the mobile phone 200 not to resume using the Bluetooth headset 100 to process the audio service 1, and the mobile phone 200 automatically resumes using the Bluetooth headset 100 to process the audio service 1 after the Bluetooth headset 100 completes the processing of the audio service 2.
  • the first prompt information can be displayed on the desktop of the mobile phone 200, or can be displayed on the interface of the audio application, or can be displayed in the drop-down notification management menu of the mobile phone 200.
  • the operation interface of the mobile phone 200 can include the first prompt information and the corresponding cancel option button at the same time, and the second operation can be the user's selection operation of the cancel option button corresponding to the first prompt information, for example, the user clicks the cancel option button.
  • the mobile phone 200 can automatically resume using the Bluetooth headset 100 to process the audio service 1 without the need for user operation, thereby improving the user experience.
  • the idle Bluetooth headset 100 can be fully utilized to resume processing of the audio service 1, thereby improving the user experience.
  • the mobile phone 200 uses the Bluetooth headset to process the first audio service after the Bluetooth headset suspends 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.
  • the mobile phone 200 can automatically resume using the Bluetooth headset 100 to process audio service 1 after the Bluetooth headset 100 has completed processing audio service 2, or when the processing of audio service 2 is paused, thereby improving the user experience.
  • the mobile phone 200 responds to the user's second operation on the first prompt information. If the tablet 300 uses the Bluetooth headset 100 to process the audio service 2 within the second preset time, the mobile phone 200 uses the Bluetooth headset 100 to process the audio service 1 after the Bluetooth headset 100 processes the audio service 2; or, the mobile phone 200 responds to the user's second operation on the first prompt information. If the tablet 300 pauses using the Bluetooth headset 100 to process the audio service 2 within the second preset time, the mobile phone 200 uses the Bluetooth headset 100 to process the audio service 1 after the Bluetooth headset 100 pauses processing the audio service 2; wherein the second operation is used to trigger the mobile phone 200 not to resume using the Bluetooth headset 100 to process the audio service 1.
  • the second preset time can be any time between 3 minutes and 4 minutes.
  • the Bluetooth headset 100 pauses playing the media of the mobile phone 200 and plays the call of the tablet 300. If the call on the tablet 300 is hung up, if the media of the mobile phone 200 is still in a waiting state, and the duration from when the Bluetooth headset 100 paused playing the media of the mobile phone 200 to the current time is less than 3 minutes, the Bluetooth headset 100 resumes playing the media of the mobile phone 200.
  • the mobile phone 200 can also automatically process the pending audio service 1 to improve the completion of the audio service.
  • the tablet 300 detects the audio service 2, it requests the Bluetooth headset 100 to suspend processing of the audio service 1, and after using the Bluetooth headset 100 to process the audio service 2, the method also includes the following steps: the mobile phone 200 can mute or suspend the audio service 1, or use the audio component of the mobile phone 200 to process the audio service 1.
  • the audio component can be a speaker, a plug-in headset, or a receiver. Specifically, if the audio service 1 is audio such as a call, Bluetooth recording, notification, or system, it can be directly switched to the audio component of the mobile phone 200 to continue the audio service. If the audio service 1 is a media type service, it can be paused (such as music, video), or muted (such as a game).
  • FIG. 16 shows a method for implementing the audio industry provided by the embodiments of the present application according to some embodiments of the present application.
  • the mobile phone 200 includes an audio application 201 , an audio manager 202 , a multimedia framework 203 and a Bluetooth module 204 .
  • the audio application 201 may include various types of applications for playing audio.
  • the audio application 201 detects an audio service, it sends a request to the multimedia framework 203 to process the audio service.
  • the audio manager 202 is used to sense the state of the Bluetooth headset 100 processing audio services: idle, processing audio services.
  • the audio manager 202 is also used to sense the preemption of audio services and the state recovery events of audio services.
  • the preemption of audio services refers to the process in which the Bluetooth headset 100 detects a pending audio service initiated by another electronic device while processing an audio service, and then suspends the processing of the audio service being processed and processes the pending audio service initiated by another electronic device.
  • the state recovery event of the audio service refers to the process in which the Bluetooth headset 100 suspends the processing of the pending audio service initiated by another electronic device after the preemption event of the audio service occurs, and processes the audio service that was previously suspended.
  • the audio manager 202 is also used to display a first prompt message, which is used to instruct the user to select the preemption processing of the audio service and the state recovery processing of the audio service.
  • the audio manager 202 is used to display the aforementioned "one-key recovery" pop-up window.
  • the multimedia framework 203 is used to determine the type of audio service according to the audio stream type in the audio service request when receiving the audio service processing request sent by the audio application 201, and then select the audio playback device according to the state of the audio service processing by the Bluetooth headset 100.
  • the multimedia framework 203 is also used to send an audio service preemption notification to the Bluetooth module 204 when receiving the audio service preemption notification (referred to as the preemption notification in the figure) sent by the audio manager 302.
  • the Bluetooth module 204 is used to support the transmission of various instructions and data.
  • the Bluetooth headset 100 is used to support audio data transmission, audio service processing or/or pause request, audio service preemption notification, and audio service processing status transmission.
  • the tablet 300 includes an audio application 301 , an audio manager 302 , a multimedia framework 303 and a Bluetooth module 304 .
  • the audio application 301 may include various types of applications for playing audio.
  • the audio application 301 detects an audio service, it sends a request to the multimedia framework 303 to process the audio service.
  • the audio manager 302 is used to sense the state of the Bluetooth headset 100 processing audio services: idle, processing audio services.
  • the audio manager 302 is also used to sense the preemption of audio services and the state recovery events of audio services.
  • the preemption of audio services refers to the process in which the Bluetooth headset 100 detects a pending audio service initiated by another electronic device while processing an audio service, and then suspends the processing of the audio service being processed and processes the pending audio service initiated by another electronic device.
  • the state recovery event of the audio service refers to the process in which the Bluetooth headset 100 suspends the processing of the pending audio service initiated by another electronic device after the preemption event of the audio service occurs, and processes the audio service that was previously suspended.
  • the audio manager 302 is also used to display a first prompt message, which is used to instruct the user to select the preemption processing of the audio service and the state recovery processing of the audio service.
  • the audio manager 302 is used to display the aforementioned "one-key recapture" pop-up window.
  • the multimedia framework 303 is used to determine the type of audio service according to the audio stream type in the audio service request when receiving the audio service processing request sent by the audio application 301, and then select the audio playback device according to the state of the Bluetooth headset 100 processing the audio service.
  • the multimedia framework 303 is also used to send audio to the Bluetooth module 304 when receiving the audio service preemption notification (referred to as preemption notification in the figure) sent by the audio manager 302. Service preemption notification.
  • the Bluetooth module 304 is used to support the transmission of various instructions and data.
  • the Bluetooth headset 100 is used to support audio data transmission, audio service processing or/or pause request, audio service preemption notification, and audio service processing status transmission.
  • FIG17 corresponds to FIG12 , and shows a schematic diagram of the interaction logic of various modules of the mobile phone 200 whose audio service is preempted when an audio service preemption event occurs. As shown in FIG17 :
  • the Bluetooth headset 100 receives a music playing request initiated by the tablet 300, and the Bluetooth headset 100 determines that the status of the Bluetooth headset 100 processing the audio service is preempted, then a preemption notification is sent to the mobile phone 200, and the Bluetooth module 204 receives the preemption event and the status of the Bluetooth headset 100 processing the audio service (referred to as the headset status).
  • 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 203 confirms whether it is necessary to preempt the audio service according to the service priority of the audio service being processed by the Bluetooth headset 100 indicated by the headset status and the service priority of the audio service initiated by the tablet 300. If it is necessary to preempt the audio service, the audio application 201 is notified to pause the playback, and the pause result is sent to the audio manager 202. When the audio manager 202 receives the pause notification, it displays a "one-key retake" window.
  • the audio manager 202 When receiving the preemption notification, the audio manager 202 first displays the preemption notification window, which is used to request the user whether to mute their own audio service or switch to their own receiver, plug in or unplug headphones, or play music on the speaker. If it is detected that the user selects any of the above options, the corresponding action is performed according to the content of the option.
  • FIG18 corresponds to FIG14 , and shows an interactive logic diagram of a mobile phone 200 whose audio service has been seized and resumes playing music using a Bluetooth headset 100 . As shown in FIG18 :
  • the mobile phone 200 After the tablet 300 plays music using the Bluetooth headset 100, the mobile phone 200 detects that the user clicks the confirmation option in the "One-click Recover" pop-up window, and then calls the interface of the multimedia framework 203 to notify the multimedia framework 203 to play music. Then, the multimedia framework 203 notifies the audio application 201 to play music using the Bluetooth headset 100. The Bluetooth module 204 then notifies the Bluetooth headset 100 of the playing status. After receiving the playing notification from the tablet 300, the Bluetooth headset 100 plays the music of the mobile phone 200 and notifies the tablet 300 of the status of the Bluetooth headset 100 processing the audio service (referred to as the headset status).
  • FIG. 19 shows an interactive logic diagram of a tablet 300 pausing the music playing, the Bluetooth headset 100 is in an idle state, and the mobile phone 200 resumes the use of the Bluetooth headset 100 to play music according to some embodiments of the present application. As shown in FIG.
  • the tablet 300 detects that the user has paused the operation of playing music, then the Bluetooth headset 100 is paused to play music, the Bluetooth headset 100 is idle, and the mobile phone 200 is notified of the notification of resuming the music playing (referred to as the resume notification in the figure) and the headset status.
  • the Bluetooth headset 100 forwards the notification of resuming the music playing and the headset status to the audio manager 202 and the multimedia framework 203 respectively.
  • the audio manager 202 calls the interface of the multimedia framework 203, and then the multimedia framework 203 notifies the audio application 201 to play music.
  • FIG20 shows a flowchart of an audio service recovery processing method according to some embodiments of the present application, corresponding to the application scenarios corresponding to FIG2, FIG3, FIG12 and FIG14. As shown in FIG20, the process includes the following: step:
  • the Bluetooth headset 100 establishes wireless communication channels with the mobile phone 200 and the tablet 300 respectively.
  • the Bluetooth headset 100 plays music from the mobile phone 200.
  • the tablet 300 detects that music is being played.
  • the tablet 300 can detect a music service initiated by the user in response to the user's operation of playing selected music.
  • the Bluetooth headset 100 determines that the audio service priority of playing the music of the tablet 300 is greater than the audio service priority of playing the music of the mobile phone 200, and requests to pause playing the music of the mobile phone 200 and play the music of the tablet 300.
  • audio services of the electronic device may correspond to different priorities. Audio services with higher priorities are usually important and critical audio services, and audio services with higher priorities may be processed preferentially by Bluetooth headsets.
  • audio services may include multiple types, for example, audio services may include call services, multimedia services, notification services, etc.
  • Call services may include playing the voice data of the other end for the user in scenarios such as phone calls (including incoming and outgoing calls), video calls, audio calls, voice messages, games or voice assistants, or collecting the user's voice data and sending it to the other end, as well as playing incoming call ringtones, etc.
  • Multimedia services may include playing music, videos, recordings, background music of games, text-to-speech sounds, etc.
  • Notification services may include playing SMS prompts, push notification prompts, alarm ringtones, system sounds (such as sounds when adjusting the volume, shutter sounds when shooting, etc.).
  • the priorities of notification services, multimedia services, and call services increase in sequence.
  • audio services may include more types, which are not specifically limited here. Among them, the priority of the audio service may be pre-set or actively set by the user, which is not specifically limited here. For example, the service priority of the call service is higher than the service priority of the multimedia service, and the service priority of the multimedia service is higher than the service priority of the notification service.
  • the Bluetooth headset 100 pauses playing the music on the mobile phone 200 and plays the music on the tablet 300.
  • the Bluetooth headset 100 sends a pause notification message to the mobile phone 200.
  • the mobile phone 200 displays a first prompt message, where the first prompt message is used to request the user whether to resume using the Bluetooth headset 100 to play the music audio service of the mobile phone 200.
  • the mobile phone 200 responds to the user's confirmation operation on the first prompt information.
  • the first prompt information is used to request the user to determine whether the mobile phone 200 resumes playing music using the Bluetooth headset 100.
  • the first prompt information may be a pop-up window of "One-click Retrieval".
  • the confirmation operation may be that the user clicks on the confirmation option in the pop-up window of "One-click Retrieval".
  • the mobile phone 200 requests the Bluetooth headset 100 to pause playing the music on the tablet 300.
  • the Bluetooth headset 100 pauses playing the music of the tablet 300.
  • the tablet 300 can play the music using its own speakers, plugging and unplugging headphones or receivers, etc.
  • the audio service 1 is audio such as calls, Bluetooth recordings, notifications, or systems, the audio service can be directly switched to the audio component of the tablet 300 to continue.
  • the audio service 1 is a media type service, it can be paused (such as music, video), or muted (such as games).
  • the Bluetooth headset 100 when the tablet 300 is using the Bluetooth headset 100 to play music and is preempted by the music playing service initiated by the mobile phone 200, the Bluetooth headset 100 will record the music playing status of the mobile phone 200 in order to resume the tablet 300 using the Bluetooth headset 100 to play music when the Bluetooth headset 100 is released.
  • FIG. 19 When the board 300 detects the user's operation of pausing music playing, it pauses the use of the Bluetooth headset 100 to play music.
  • the Bluetooth headset 100 is idle, and notifies the mobile phone 200 of a notification of resuming music playing (referred to as the resume notification in the figure) and the headset status.
  • the Bluetooth headset 100 forwards the notification of resuming music playing and the headset status to the audio manager 202 and the multimedia framework 203 respectively.
  • the audio manager 202 calls the interface of the multimedia framework 203, and then the multimedia framework 203 notifies the audio application 201 to play music.
  • the Bluetooth headset 100 plays music from the mobile phone 200.
  • the decision to process the audio service of an electronic device with a higher service priority is not made simply according to the service priority order set for the audio service.
  • the user can decide whether to continue the audio service. Afterwards, the user can choose whether to restore the preempted audio service according to his or her wishes. In this way, the flexibility of audio service switching is improved and the user experience is improved.
  • the various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware, or a combination of these implementation methods.
  • the embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
  • a programmable system which includes at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
  • Program code may be applied to input instructions to perform the functions described herein and to generate output information.
  • the output information may be applied to one or more output devices in a known manner.
  • a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system.
  • program code can also be implemented with assembly language or machine language.
  • the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
  • the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof.
  • the disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors.
  • the instructions may be distributed over a network or through other computer-readable storage media.
  • machine-readable storage media may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy disks, optical disks, optical discs, CD-ROMs, magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or tangible machine-readable storage for transmitting information via electrical, optical, acoustic or other forms of propagation signals (e.g., carrier waves, infrared signals, digital signals, etc.) over the Internet. Therefore, machine-readable storage media include any type of machine-readable storage media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
  • a machine e.g., a computer
  • a logical unit/module can be a physical unit/module, or a part of a physical unit/module, or can be implemented as a combination of multiple physical units/modules.
  • the physical implementation method of these logical units/modules themselves is not the most important.
  • the combination of functions implemented by these logical units/modules is the key to solving the technical problems proposed by the present application.
  • the above-mentioned device embodiments of the present application do not introduce units/modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units/modules in the above-mentioned device embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

La présente invention se rapporte au domaine technique des communications, et concerne en particulier un procédé de traitement de service audio, un dispositif électronique et un support de stockage informatique. Dans la présente invention, le dispositif électronique peut commander un casque d'écoute Bluetooth pour gérer un service audio plus important selon des priorités de service prédéfinies, afin d'améliorer l'expérience de l'utilisateur. Le procédé comprend les étapes suivantes : un premier dispositif électronique et un deuxième dispositif électronique établissent tous deux des canaux de communication sans fil avec le casque d'écoute Bluetooth ; le premier dispositif électronique traite un premier service audio à l'aide du casque d'écoute Bluetooth ; après la détection d'un deuxième service audio, le deuxième dispositif électronique détermine si la priorité de service du deuxième service audio est supérieure à la priorité de service du premier service audio ; et si la priorité de service du deuxième service audio est supérieure à la priorité de service du premier service audio, le deuxième dispositif électronique demande au casque d'écoute Bluetooth de mettre en pause le traitement du premier service audio et traite le deuxième service audio en utilisant le casque d'écoute Bluetooth.
PCT/CN2023/117289 2022-10-20 2023-09-06 Procédé de traitement de service audio, dispositif électronique, et support de stockage informatique WO2024082855A1 (fr)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202211288799.X 2022-10-20
CN202211289367.0A CN117956371A (zh) 2022-10-20 2022-10-20 一种音频业务恢复处理方法、电子设备及计算机存储介质
CN202211289367.0 2022-10-20
CN202211288799.XA CN117917899A (zh) 2022-10-20 2022-10-20 一种音频业务处理方法、电子设备及计算机存储介质

Publications (1)

Publication Number Publication Date
WO2024082855A1 true WO2024082855A1 (fr) 2024-04-25

Family

ID=90736829

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/117289 WO2024082855A1 (fr) 2022-10-20 2023-09-06 Procédé de traitement de service audio, dispositif électronique, et support de stockage informatique

Country Status (1)

Country Link
WO (1) WO2024082855A1 (fr)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080313080A1 (en) * 2007-06-15 2008-12-18 Sony Ericsson Mobile Communications Ab Method and Apparatus for Controlling the Transfer of Private Information in a Communication System
CN114040373A (zh) * 2021-11-19 2022-02-11 Oppo广东移动通信有限公司 音频业务处理方法、装置、电子设备及存储介质
CN114173309A (zh) * 2020-09-10 2022-03-11 华为技术有限公司 音频控制系统
CN115002934A (zh) * 2022-07-18 2022-09-02 荣耀终端有限公司 音频业务处理系统、电子设备及蓝牙耳机

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080313080A1 (en) * 2007-06-15 2008-12-18 Sony Ericsson Mobile Communications Ab Method and Apparatus for Controlling the Transfer of Private Information in a Communication System
CN114173309A (zh) * 2020-09-10 2022-03-11 华为技术有限公司 音频控制系统
CN114040373A (zh) * 2021-11-19 2022-02-11 Oppo广东移动通信有限公司 音频业务处理方法、装置、电子设备及存储介质
CN115002934A (zh) * 2022-07-18 2022-09-02 荣耀终端有限公司 音频业务处理系统、电子设备及蓝牙耳机

Similar Documents

Publication Publication Date Title
CN113382397B (zh) 一种蓝牙连接方法、设备及系统
US11683850B2 (en) Bluetooth reconnection method and related apparatus
US11778363B2 (en) Audio data transmission method applied to switching between single-earbud mode and double-earbud mode of TWS headset and device
CN115002934B (zh) 音频业务处理系统、电子设备及蓝牙耳机
CN113542839A (zh) 电子设备的投屏方法和电子设备
EP4061027B1 (fr) Procédé et appareil de communication bluetooth
EP3986008A1 (fr) Procédé d'utilisation d'un module sim distant, et appareil électronique
WO2021083128A1 (fr) Procédé de traitement de son et appareil associé
CN111596885B (zh) 音频数据处理方法、服务器及存储介质
WO2021031865A1 (fr) Procédé et appareil d'appel
WO2023088209A1 (fr) Procédé de transmission de données audio inter-dispositifs et dispositifs électroniques
CN113132959B (zh) 无线音频系统、无线通讯方法及设备
CN116017388B (zh) 一种基于音频业务的弹窗显示方法和电子设备
WO2024082855A1 (fr) Procédé de traitement de service audio, dispositif électronique, et support de stockage informatique
CN113678481B (zh) 无线音频系统、音频通讯方法及设备
CN113271577B (zh) 媒体数据播放系统、方法及相关装置
CN117917899A (zh) 一种音频业务处理方法、电子设备及计算机存储介质
WO2022267917A1 (fr) Procédé et système de communication bluetooth
WO2024109504A1 (fr) Procédé de commande de lecture audio, appareil associé et système de communication
CN117956371A (zh) 一种音频业务恢复处理方法、电子设备及计算机存储介质
CN116527811A (zh) 一种音频通知的显示方法及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23878850

Country of ref document: EP

Kind code of ref document: A1