CN117917899A - Audio service processing method, electronic equipment and computer storage medium - Google Patents

Audio service processing method, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN117917899A
CN117917899A CN202211288799.XA CN202211288799A CN117917899A CN 117917899 A CN117917899 A CN 117917899A CN 202211288799 A CN202211288799 A CN 202211288799A CN 117917899 A CN117917899 A CN 117917899A
Authority
CN
China
Prior art keywords
service
audio
bluetooth headset
audio service
electronic device
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202211288799.XA
Other languages
Chinese (zh)
Inventor
彭连银
李润
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
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
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211288799.XA priority Critical patent/CN117917899A/en
Priority to PCT/CN2023/117289 priority patent/WO2024082855A1/en
Publication of CN117917899A publication Critical patent/CN117917899A/en
Pending legal-status Critical Current

Links

Abstract

The present application relates to the field of communications technologies, and in particular, to an audio service processing method, an electronic device, and a computer storage medium. According to the application, the electronic equipment can control the Bluetooth headset to process important audio services according to the preset service priority, so that the user experience is improved. The method comprises the following steps: the first electronic equipment and the second electronic equipment establish a wireless communication channel with the Bluetooth headset; the first electronic equipment processes a first audio service by using a Bluetooth headset; after the second electronic equipment detects the second audio service, judging whether the service priority of the second audio service is greater than that of the first audio service; and if the service priority of the second audio service is greater than that of the first audio service, the second electronic equipment requests the Bluetooth headset to suspend processing the first audio service, and the Bluetooth headset is utilized to process the second audio service.

Description

Audio service processing method, electronic equipment and computer storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to an audio service processing method, an electronic device, and a computer storage medium.
Background
Bluetooth headset is favored by more and more users by virtue of the characteristics that the Bluetooth headset does not need to be stored and arranged with a headset wire, is portable and is convenient to use. The Bluetooth headset has the function that the Bluetooth headset can be in wireless connection with the electronic equipment, so that the Bluetooth headset is matched with the electronic equipment to process audio service for a user. For example, the bluetooth headset may establish a wireless connection with a mobile phone, cooperate with the mobile phone to play music, play a call to/from the user, etc.
Currently, users often use a plurality of electronic devices, such as a mobile phone, a tablet, a personal computer (personal computer, a PC), etc., and a bluetooth headset may be connected to the plurality of electronic devices at the same time for convenience of work and life. For example, there is a bluetooth headset built-in bluetooth audio transmission model protocol (advanced audio distribution profile, A2 DP) audio device, which A2DP audio device is used for high definition playback of media. The A2DP audio device of the earphone can be connected with two electronic devices at the same time, and can be automatically connected with a newly-approaching electronic device through a discovery connection mechanism, and meanwhile, a previously-connected electronic device is randomly disconnected, so that only two electronic devices are connected at the same time. As another example, there is a bluetooth headset with two audio input/output devices built in: a Hands Free Profile (HFP) for high definition calls; an A2DP is used for high definition playing media. The earphone can be connected with three electronic devices at most. Specifically, the A2DP audio device of the headset may connect two electronic devices simultaneously, as described above, while the HFP device of the headset may connect one device.
In the prior art, a bluetooth headset can only be used as an audio output device for an audio service. If a service conflict occurs in the bluetooth headset, for example, a plurality of electronic devices initiate an audio service processing request to the bluetooth headset, or the bluetooth headset is processing an audio service sent by the electronic device 1 connected with the bluetooth headset, at this time, the bluetooth headset receives an audio service processing request sent by another electronic device, and can only serve as an audio output device of one audio service, but the audio service of the other electronic device is put aside, so that the audio service sent by the other electronic device cannot be completed in time. If the audio service sent by other electronic devices is important, the Bluetooth headset cannot complete the important audio service in time, so that the user experience is poor.
Disclosure of Invention
The embodiment of the application provides an audio service processing method, electronic equipment and a computer storage medium, which are used for solving the problem that in the prior art, a Bluetooth headset can only be used as audio output equipment of one audio service. If the Bluetooth headset has service conflict, the Bluetooth headset can only serve as an audio output device of one audio service, but the audio service of the other electronic device is put aside, so that the audio service sent by the other electronic device can not be completed in time. If the audio service sent by other electronic equipment is important, the Bluetooth headset cannot complete the important audio service in time, so that the problem of poor user experience is solved.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical scheme:
In a first aspect, there is provided an audio service processing method, including: the first electronic equipment and the second electronic equipment establish a wireless communication channel with the Bluetooth headset; the first electronic equipment processes a first audio service by using a Bluetooth headset; after the second electronic equipment detects the second audio service, judging whether the service priority of the second audio service is greater than that of the first audio service; and if the service priority of the second audio service is greater than that of the first audio service, the second electronic equipment requests the Bluetooth headset to suspend processing the first audio service, and the Bluetooth headset is utilized to process the second audio service.
In the scheme, the electronic equipment can control the Bluetooth headset to process important audio services according to the preset service priority, so that user experience is improved.
In a possible implementation manner of the first aspect, the requesting the bluetooth headset to suspend processing the first audio service and processing the second audio service with the bluetooth headset includes: the second electronic equipment sends a service suspension instruction to the first electronic equipment through the Bluetooth headset; the method comprises the steps that a first electronic device receives a service suspension instruction and stops sending audio data of a first audio service to a Bluetooth headset; the second electronic equipment sends audio data of a second audio service to the Bluetooth headset; the Bluetooth earphone receives the audio data of the second audio service and processes the second audio service. In this implementation manner, the second electronic device may instruct the first electronic device to stop sending the audio data of the first audio service to the bluetooth headset by using a manner of sending a service suspension instruction to the first electronic device, and instruct the bluetooth headset to suspend processing the first audio service of the first electronic device.
In a possible implementation manner of the first aspect, before the second electronic device requests the bluetooth headset to suspend processing of the first audio service and processes the second audio service with the bluetooth headset, the method further includes: the first electronic device indicates the service priority of the first audio service to the second electronic device through the Bluetooth headset. After the first electronic device synchronizes the priority of the first audio service to the second electronic device, the second electronic device can determine whether the service priority of the second audio service is greater than the service priority of the first audio service after detecting the second 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, the first electronic device preempting the right of use of the bluetooth headset requests the bluetooth headset to suspend processing the first audio service and begin processing the second audio service.
In a possible implementation manner of the first aspect, the service suspension instruction is used to indicate a service priority of the second audio service; the first electronic device receiving a service suspension instruction, stopping sending audio data of a first audio service to the Bluetooth headset, including: the first electronic equipment receives the service suspension instruction, and if the service priority of the second audio service indicated by the service suspension instruction is greater than that of the first audio service, the first electronic equipment stops sending the audio data of the first audio service to the Bluetooth headset.
In the scheme, after the first electronic equipment receives the service suspension instruction, the service priorities of the second audio service and the first audio service are confirmed again, so that the accuracy of the first electronic equipment executing the service suspension instruction is further ensured.
In a possible implementation manner of the first aspect, after requesting the bluetooth headset to suspend processing the first audio service and processing the second audio service with the bluetooth headset, the method further includes: the first electronic device processes the first audio service using the audio component of the first electronic device.
In the scheme, after the Bluetooth headset pauses to process the first audio service, the first electronic equipment can also automatically process the first audio service to be processed, so that the completion degree of the audio service is improved.
In a possible implementation manner of the first aspect, the audio service processed by the bluetooth headset includes a call service, a multimedia service and a notification prompt service; 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 prompt service.
In a second aspect, there is provided an audio service processing method, the method comprising: the second electronic equipment establishes a wireless communication channel with the Bluetooth headset; the Bluetooth headset also establishes a wireless communication channel with the first electronic device, and processes a first audio service of the first electronic device; after the second electronic equipment detects the second audio service, judging whether the service priority of the second audio service is greater than that of the first audio service; and if the service priority of the second audio service is greater than that of the first audio service, the second electronic equipment requests the Bluetooth headset to suspend processing the first audio service, and the Bluetooth headset is utilized to process the second audio service.
In the scheme, the electronic equipment can control the Bluetooth headset to process important audio services according to the preset service priority, so that user experience is improved.
In a possible implementation manner of the second aspect, requesting, at the second electronic device, the bluetooth headset to suspend processing the first audio service, and processing, with the bluetooth headset, the second audio service includes: 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 for indicating the first electronic device to receive the service suspension instruction and stopping sending audio data of the first audio service to the Bluetooth headset; the second electronic equipment sends audio data of a second audio service to the Bluetooth headset; the Bluetooth earphone receives the audio data of the second audio service and processes the second audio service.
In a possible implementation manner of the second aspect, before the second electronic device requests the bluetooth headset to suspend processing of the first audio service and processes the second audio service with the bluetooth headset, the method further includes: the second electronic device receives the service priority of the first audio service indicated by the first electronic device through the Bluetooth headset.
In a third aspect, an electronic device is provided that includes a processor and a memory; the memory is used for storing code instructions; the processor is configured to execute code instructions to perform the antenna control method as in any one of the possible designs of the first aspect and the second aspect.
In a fourth aspect, there is provided a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the antenna control method as in any one of the possible designs of the first and second aspects.
The technical effects caused by any one of the design manners of the third aspect and the fourth aspect may refer to the technical effects caused by the different design manners of the first aspect, which are not described herein.
Drawings
FIG. 1 illustrates a schematic structural view of a tablet pc 300, in accordance with some embodiments of the present application;
Fig. 2 is a schematic view of an application scenario of an audio service processing method according to some embodiments of the present application;
fig. 3 is a schematic view of an application scenario of an audio service processing method according to some embodiments of the present application;
fig. 4 is a schematic view of an application scenario of an audio service processing method according to some embodiments of the present application;
fig. 5 is a schematic view of an application scenario of an audio service processing method according to some embodiments of the present application;
FIG. 6 illustrates a block diagram of a software architecture suitable for use with the handset 200 and tablet 300 of the present application, according to some embodiments of the application;
FIG. 7 illustrates a schematic diagram of an audio policy engine, according to some embodiments of the application;
FIG. 8 is a flow chart of an audio service processing method, corresponding to FIG. 4, according to some embodiments of the application;
FIG. 9 illustrates a schematic diagram of a notification management interface, according to some embodiments of the application;
fig. 10 illustrates a schematic diagram of a bluetooth headset 100, according to some embodiments of the present application.
Detailed Description
Illustrative embodiments of the present application include, but are not limited to, an audio service processing method, an audio device, and a storage medium.
Embodiments of the present application will now be described with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the present application. As one of ordinary skill in the art can know, with the development of technology and the appearance of new scenes, the technical scheme provided by the embodiment of the application is also applicable to similar technical problems.
As described in the background art, if the bluetooth headset has a service conflict, the bluetooth headset can only be used as an audio output device of one audio service, but the audio service of another electronic device is put aside, so that the audio service sent by the other electronic device cannot be completed in time. If the audio service sent by other electronic devices is important, the Bluetooth headset cannot complete the important audio service in time, so that the user experience is poor.
In order to solve the above technical problems, an embodiment of the present application provides an audio service processing method, including: the electronic device 1 and the electronic device 2 both establish a wireless communication channel with the bluetooth headset. If the electronic device 1 is processing the audio service 1 by using the bluetooth headset, after the electronic device 2 detects the audio service 2 again, it is first determined 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 electronic device 2 determines that the service priority of the audio service 2 is greater than or equal to the service priority of the audio service 1, the bluetooth headset is requested to suspend processing the audio service 1, and the bluetooth headset is used to process the audio service 2. Then, the bluetooth headset pauses processing audio service 1 and processes audio service 2.
In the embodiment of the application, different audio services can correspond to different priorities, the audio service with higher priority is usually an important and key audio service, and the audio service with higher priority can be preferentially processed by the Bluetooth headset. By way of example, the audio services may include a plurality of types, for example, the audio services may include a call service, a multimedia service, a notification prompt service, and the like. The call service may include playing the voice data of the opposite terminal for the user in the scenes of a phone call (including a phone call in and a phone call out), a video call, an audio call, a voice message, a game or a voice assistant, or collecting the voice data of the user and sending to the opposite terminal, playing an incoming call bell, etc. Multimedia services may include playing music, video, sound recordings, background music for games, text-to-speech sounds, etc. The notification alert service may include play a short message alert tone, push notification alert tone, alarm bell, system sound (e.g., sound when volume is adjusted, shutter sound when shooting, etc.). The priority of the notification prompt service, the multimedia service and the call service are sequentially increased. In other embodiments, the audio service may include more types, and is not particularly limited herein. The priority of the audio service may be preset, or may be set actively by the user, which is not limited herein. For example, the service priority of the call service is greater than the service priority of the multimedia service, which is greater than the service priority of the notification prompt service.
Therefore, the electronic equipment can control the Bluetooth headset to process important audio services according to the preset service priority, and user experience is improved.
For example, the electronic devices (e.g., the electronic device 1 and the electronic device 2) in the embodiments of the present application may be a mobile phone, a media player (e.g., MP3, MP4, etc.), a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a personal digital assistant (personal DIGITAL ASSISTANT, PDA), a television, or a smart watch. The embodiment of the application does not limit the specific form of the electronic equipment.
The embodiment of the application is illustrated by taking the electronic device 1 as a mobile phone (such as a tablet 300). Fig. 1 illustrates a schematic structural view of a tablet pc 300, according to some embodiments of the application.
As shown in fig. 1, tablet 300 may include a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (universal serial bus, USB) interface 330, a charge 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 ear-piece interface 370D, a sensor module 380, keys 390, a motor 391, an indicator 392, a camera 393, a display (touch screen) 394, and a subscriber identity module (subscriber identification module, SIM) card interface 395, etc.
The sensor module 380 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, acceleration sensors, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, and the like.
It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the plate 300. In other embodiments, tablet 300 may include more or fewer components than shown, or may combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 310 may include one or more processing units, such as: the processor 310 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGESIGNAL PROCESSOR, ISP), a controller, a memory, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural Network Processor (NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be the neural and command centers of tablet 300. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may hold instructions or data that the processor 310 has just used or recycled. If the processor 310 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 310 is reduced, thereby improving the efficiency of the system. In the embodiment of the application, the electronic equipment 1 and the electronic equipment 2 establish a wireless communication channel with the Bluetooth headset. If the electronic device 1 is processing the audio service 1 by using the bluetooth headset, after detecting the audio service 2 again, the processor 310 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, the bluetooth headset is requested to suspend processing the audio service 1, and the bluetooth headset is used to process the audio service 2. Then, the bluetooth headset pauses processing audio service 1 and processes audio service 2.
In some embodiments, processor 310 may include one or more interfaces. The interfaces may include an integrated circuit (inter-INTEGRATED CIRCUIT, I2C) interface, an integrated circuit built-in audio (inter-INTEGRATED CIRCUIT SOUND, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the connection between the modules illustrated in this embodiment is only illustrative, and is not limited to the structure of the tablet pc 300. In other embodiments, the tablet pc 300 may be configured to interface with different interfaces, or a combination of interfaces, as described in the above embodiments.
The charge management module 340 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. The battery 342 is charged by the charge management module 340, and the electronic device may be powered by the power management module 341.
The power management module 341 is configured to connect the battery 342, the charge management module 340 and the processor 310. The power management module 341 receives input from the battery 342 and/or the charge management module 340 to power the processor 310, the internal memory 321, the external memory, the display screen 394, the camera 393, the wireless communication module 360, and the like. In some embodiments, the power management module 341 and the charge management module 340 may also be provided in the same device.
The wireless communication function of the tablet 300 may be implemented by the antenna 1, the antenna 2, the mobile communication module 350, the wireless communication module 360, a modem processor, a baseband processor, and the like. In some embodiments, antenna 1 and mobile communication module 350 of tablet 300 are coupled, and antenna 2 and wireless communication module 360 are coupled, such that tablet 300 may communicate with a network and other devices via wireless communication techniques.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in tablet 300 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 350 may provide a solution including 2G/3G/4G/5G wireless communication applied to the tablet 300. The mobile communication module 350 may include at least one filter, switch, power amplifier, low noise amplifier (lownoise amplifier, LNA), or the like. The mobile communication module 350 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation.
The mobile communication module 350 may amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate the electromagnetic waves. In some embodiments, at least some of the functional modules of the mobile communication module 350 may be disposed in the processor 310. In some embodiments, at least some of the functional modules of the mobile communication module 350 may be provided in the same device as at least some of the modules of the processor 310.
The wireless communication module 360 may provide solutions for wireless communication including WLAN (e.g., wireless fidelity (WIRELESS FIDELITY, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near field communication (NEAR FIELD communication, NFC), infrared (IR), etc., applied on the tablet 300. Tablet 300 may establish a wireless communication channel with a bluetooth headset using wireless communication module 360. Specifically, the tablet 300 may include a bluetooth module, and the tablet 300 may 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 may be to suspend the audio service request, process the audio service request, etc. The data may be various types of audio data.
The wireless communication module 360 may be one or more devices that integrate at least one communication processing module. The wireless communication module 360 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 310. The wireless communication module 360 may also receive a signal to be transmitted from the processor 310, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
Tablet 300 implements display functions through a GPU, display screen 394, and an application processor, among others. The GPU is a microprocessor for image processing, connected to the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 310 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 394 is used for displaying images, videos, and the like. The display 394 includes a display panel.
Tablet 300 may perform capture functions through an ISP, camera 393, video codec, GPU, display 394, and application processor, among others. The ISP is used to process the data fed back by camera 393. Camera 393 is used to capture still images or video. In some embodiments, tablet 300 may include 1 or N cameras 393, N being a positive integer greater than 1.
The external memory interface 320 may be used to connect an external memory card, such as a Micro SD card, to enable the memory capabilities of the expansion board 300. The external memory card communicates with the processor 310 through an external memory interface 320 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 321 may be used to store computer executable program code comprising instructions. Processor 310 executes instructions stored in internal memory 321 to thereby perform various functional applications and data processing of tablet 300. For example, in an embodiment of the present application, the processor 310 may be configured to execute instructions stored in the internal memory 321, and the internal memory 321 may include a storage program area and a storage data area.
The storage program area may store an application program (such as a sound playing function, a service preemption function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (e.g., audio data, phonebook, etc.) created during use of tablet 300, etc. In addition, the internal memory 321 may include a high-speed random access memory, and may also include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
Tablet 300 may implement audio functionality through audio module 370, speaker 370A, receiver 370B, microphone 370C, headphone interface 370D, and an application processor, among others. Such as music playing, recording, etc.
The keys 390 include a power on key, a volume key, etc. Key 390 may be a mechanical key. Or may be a touch key. The motor 391 may generate a vibration alert. The motor 391 may be used for incoming call vibration alerting as well as for touch vibration feedback. The indicator 392 may be an indicator light, which may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc. The SIM card interface 395 is for interfacing with a SIM card. The SIM card may be contacted and separated from the tablet 300 by insertion into the SIM card interface 395 or removal from the SIM card interface 395. Tablet 300 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 395 may support Nano SIM cards, micro SIM cards, and the like.
In the embodiment of the present application, the method of the embodiment of the present application is described by taking the example that the electronic device 1 (i.e. the first electronic device) is the mobile phone 200, the electronic device 2 (i.e. the second electronic device) is the tablet pc 300, and the bluetooth headset is the bluetooth headset 100. Wherein audio service 1 is a first audio service and audio service 2 is a second audio service.
For example, fig. 2 illustrates an application scenario diagram of an audio service processing method according to some embodiments of the present application. Fig. 3 is a schematic view of an application scenario of an audio service processing method according to some embodiments of the present application.
As shown in fig. 2, the application scenario includes a mobile phone 200, a tablet pc 300, a user, and a bluetooth headset 100 worn by the user. The mobile phone 200 and the tablet 300 both establish a wireless communication channel with the bluetooth headset 100. Wherein the handset 200 processes the audio service 1 using the bluetooth headset 100, for example, plays music using the bluetooth headset 100. Thereafter, as shown in fig. 3, the tablet 300 may detect the music service 2, for example, the tablet 300 may need to play music using the bluetooth headset 100. At this time, the service priority of the audio service 2 may be greater than or equal to the service priority of the audio service 1. For example, in the case where the audio service 2 is play music and the audio service 1 is play music, the service priority of the audio service 2 is equal to the service priority of the audio service 1. The embodiment of the present application will be described hereinafter with reference to the priority of each audio service, which is not described here again.
In the case where the tablet 300 determines that the service priority of the audio service 2 is greater than or equal to the service priority of the audio service 1, the tablet 300 may request the bluetooth headset 100 to suspend processing the audio service 1 (e.g., playing music of the mobile phone 200) and process the audio service 2 (e.g., playing music of the tablet 300) using the bluetooth headset 100. At this time, the audio service 1 of the cellular phone 200 is preempted by the audio service 2 of the tablet 300. The mobile phone 200 and the tablet 300 may respectively establish a wireless communication channel with the bluetooth headset 100 through an entity connection, where the entity connection may include an asynchronous link (ACL) connection in the wireless connection.
As another example, fig. 4 shows an application scenario diagram of an audio service processing method according to some embodiments of the present application. As shown in fig. 4, the application scenario includes a mobile phone 200, a tablet 300, a user, and a bluetooth headset 100 worn by the user. As shown in fig. 2, the mobile phone 200 processes the audio service 1 using the bluetooth headset 100, for example, plays music using the bluetooth headset 100. Thereafter, as shown in fig. 4, the tablet 300 may detect the music service 2, for example, the tablet 300 may receive an incoming call, which requires to answer the phone using the bluetooth headset 100. At this time, the service priority of the audio service 2 may be greater than or equal to the service priority of the audio service 1. For example, in the case where the audio service 2 is to answer an incoming call and the audio service 1 is to play music, the service priority of the audio service 2 is higher than that of the audio service 1.
In the case where the tablet 300 determines that the service priority of the audio service 2 is greater than or equal to the service priority of the audio service 1, the tablet 300 may request the bluetooth headset 100 to suspend processing the audio service 1 (e.g., playing music of the mobile phone 200), and process the audio service 2 using the bluetooth headset 100 (e.g., answering an incoming call of the tablet 300). At this time, the audio service 1 of the cellular phone 200 is preempted by the audio service 2 of the tablet 300.
Thus, the tablet pc 300 can control the bluetooth headset to process important audio services according to the preset service priority, thereby improving user experience.
Although the service priority of the audio service is considered in the scheme, the user experience is improved. However, if the bluetooth headset collides with the service, the bluetooth headset only processes one audio service with higher service priority, and suspends processing other audio services with lower service priority, and the other audio services with lower service priority are put on hold and not processed, which also affects the user experience.
In order to solve the technical problem, in the audio service processing method provided by the embodiment of the present application, after the electronic device 2 requests the bluetooth headset to suspend processing the audio service 1 and processes the audio service 2 by using the bluetooth headset, the method further includes: the electronic device 1 processes the audio service 1 using its own audio components. Therefore, when the Bluetooth headset is connected with a plurality of electronic devices and a plurality of audio services are sent to the Bluetooth headset, the plurality of audio services can be distributed to corresponding audio playing devices, so that the problem of selecting a proper audio playing device under the concurrence of the plurality of audio services is solved, and the user experience is improved.
For example, for the application scenario in fig. 4, the tablet 300 requests the bluetooth headset 100 to pause playing music of the mobile phone 200, the bluetooth headset 100 is used to play a call of the tablet 300, the bluetooth headset 100 pauses playing music of the mobile phone 200, and after playing the call of the tablet 300, the mobile phone 200 plays music by using its own speaker, plug-in earphone, receiver, or the like.
In some embodiments, after detecting audio service 2, tablet 300 requests bluetooth headset 100 to suspend processing audio service 1 and process audio service 2 using bluetooth headset 100. The method specifically comprises the following implementation scheme: fig. 5 is a schematic view of an application scenario of an audio service processing method according to some embodiments of the present application. As shown in fig. 5, the tablet 300 detects the audio service 2, for example, the tablet 300 may receive an incoming call, which requires to answer the phone using the bluetooth headset 100; or tablet 300 may need to play music using bluetooth headset 100. The tablet pc 300 transmits a service suspension instruction to the mobile phone 200 through the bluetooth headset 100. The handset 200 may receive the service suspension instruction. After the mobile phone 200 receives the service suspension instruction, the sending of the 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, may be stopped. Also, the tablet 300 may transmit audio data of the audio service 2 to the bluetooth headset 100. The bluetooth headset 100 receives audio data of the audio service 2, and processes the audio service 2, such as playing music of the tablet 300 using the bluetooth headset 100.
In this embodiment, the tablet 300 may request the bluetooth headset 100 to suspend processing of the audio service 1 through the service suspension instruction, and process the audio service 2 using the bluetooth headset 100 to implement preemption of the audio service 1 by the audio service 2.
It should be noted that, in this embodiment, the bluetooth headset 100 may function as a relay of data or signaling (such as the service suspension instruction described above) between the tablet 300 and the mobile phone 200. The bluetooth headset 100 may transmit data or signaling received from the tablet pc 300 to the mobile phone 200, or may transmit data or signaling received from the mobile phone 200 to the tablet pc 300.
In other embodiments, after the bluetooth headset 100 receives the data or signaling from the tablet 300 or the mobile phone 200, some corresponding operations are performed in response to the data or signaling. For example, after receiving the service suspension instruction from the tablet pc 300, the bluetooth headset 100 may not only transmit the service suspension instruction to the mobile phone 200; processing of the audio service 1 of the handset 200 may also be stopped in response to the service suspension instruction.
In some embodiments, after the tablet 300 detects the audio service 2, the bluetooth headset 100 is requested to suspend processing the audio service 1, and the bluetooth headset 100 is used to process the audio service 2, which includes the following specific implementation schemes: the mobile phone 200 indicates the service priority of the audio service 1 to the tablet pc 300 through the bluetooth headset 100; after detecting the audio service 2, the tablet 300 compares the service priorities of the audio service 2 and 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 processes the audio service 2 by using the bluetooth headset 100.
In some embodiments, the service suspension instruction is used to indicate a service priority of the audio service 2; the mobile phone 200 receives the service suspension instruction and stops sending the audio data of the audio service 1 to the bluetooth headset 100, which comprises the following specific implementation schemes: the mobile phone 200 receives the service suspension instruction, and stops sending the audio data of the audio service 1 to the bluetooth headset 100 if the service priority of the audio service 2 indicated by the service suspension instruction is greater than the service priority of the audio service 1.
In this scheme, after receiving the service suspension instruction, the mobile phone 200 again confirms the service priority of the audio service 2 and the audio service 1, so as to further ensure the accuracy of executing the service suspension instruction by the mobile phone 200.
Fig. 6 illustrates a block diagram of a software architecture suitable for use with the handset 200 and tablet 300 of the present application, according to some embodiments of the application. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the system is divided into at least three layers, from top to bottom, an application layer, a framework layer, and a hardware abstraction layer (Hardware Abstraction Layer, hal), respectively. The application layer includes applications (201, 301), audio households (204, 304), and audio control centers (205, 305). The framework layer includes awareness (206, 306), AMS (207, 307), audio services (202, 302), bluetooth services (203, 303), iconnect modules (209, 309).
As shown in fig. 6, the handset 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 AMS207, hardware abstraction layers 208 and iconnect209.
The application 201 may include applications such as a call, music, video, alarm clock, system media APK, etc., and of course, the application layer may also include other applications, which is not limited by the present application. In the event that the application 201 detects audio traffic, the audio traffic is sent to the audio service 202, and a determination is made by the audio service 202 as to whether to process the detected audio traffic.
The bluetooth service module 303 establishes a bluetooth connection between the mobile phone 200 and the bluetooth headset 100.
The audio manager 204 is an application on the cell phone 200. The audio manager 204 is configured to manage the bluetooth headset 100 connected to the bluetooth of the mobile phone 200, and in case that it is detected that the user turns on the bluetooth headset 204, display various parameters of the bluetooth headset connected to the bluetooth of the mobile phone 200 (e.g., headset in-ear detection, power display, etc.) to the user and set corresponding function controls according to the operation of the user, where the function controls include play/next, play/pause, wake up a voice assistant, turn on/off active noise reduction, etc., and send 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.
Specifically, the audio manager 204 includes a prompt capsule, a play control policy engine, a one-key reseize, and a smart connection. The prompting capsule is used for enabling the mobile phone 200 to display prompting information of the service switching event to a 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 playing control policy engine is used for setting corresponding function control according to the operation of the user, and sending a corresponding function control instruction to the audio policy engine in the audio service 202, and the audio policy engine controls the flow direction of audio data corresponding to the audio service according to the function control instruction.
The audio service 202 is used for managing the bluetooth headset 100 connected with the bluetooth of the mobile phone 200, and transmitting audio data corresponding to the audio service of the mobile phone 200 to the bluetooth headset 100 through the hardware abstraction layer 208 when determining an instruction of the bluetooth headset 100 to process the audio service of the mobile phone 200, and playing the audio after the bluetooth headset 100 receives the audio data. Or 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 compares the service priority of the audio service of the tablet 300 with the service priority of the audio service of the mobile phone 200, and if the service priority of the audio service of the mobile phone 200 is greater than or equal to the service priority of the audio service of the tablet 300, the audio service 202 sends a service suspension instruction to the bluetooth headset 100 through the bluetooth service 203, where the service suspension instruction is used to instruct the bluetooth headset 100 to suspend processing the audio service of the tablet 300 that is currently being executed, and to process the audio service of the mobile phone 200.
Specifically, the audio service 202 includes an audio policy engine, an audio clip thread, and an audio device stack. The audio policy engine is configured to share, with other peer devices connected to the bluetooth headset 100, a state of processing audio services with each other through the bluetooth service 203 and the bluetooth headset 100, where the state of processing audio services includes whether to process audio services, an audio type of the processed audio services, a priority of the audio services, and the like.
The audio policy engine is configured to manage the bluetooth headset 100 connected to bluetooth of the mobile phone 200, and transmit, when receiving an instruction of the bluetooth headset 100 to process an audio service of the mobile phone 200, audio data corresponding to the audio service of the mobile phone 200 to the bluetooth headset 100 corresponding to a device identifier of the bluetooth headset 100 specified in the audio device stack through the hardware abstraction layer 208 based on a set audio playing thread. Or 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 compares the service priority of the audio service of the tablet 300 with the service priority of the audio service of the mobile phone 200, and if the service priority of the audio service of the mobile phone 200 is greater than or equal to the service priority of the audio service of the tablet 300, the audio service 202 sends a service suspension instruction to the bluetooth headset 100 through the bluetooth service 203, where the service suspension instruction is used to instruct the bluetooth headset 100 to suspend processing of the audio service currently executing the tablet 300, and transfer 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 recording thread.
The sensing 206 is configured to sense device information parameters of the bluetooth headset 100 detected by the bluetooth headset and the AMS207 connected to the bluetooth service 203, and send the information to the audio manager 204, where the audio manager 204 receives the information, and when detecting that the user opens the audio manager 204, displays various parameters (e.g. headset in-ear detection, electric quantity display, etc.) of the bluetooth headset 100 connected to the bluetooth of the mobile phone 200 to the user.
The audio control center 205 is configured to display icons related to audio services handled by the mobile phone 200, and pause/play button icons at a control center interface of the mobile phone 200.
Similarly, tablet 300 also has the same functional structure as described above for cell phone 200. Specifically, tablet 300 includes an application 301, an audio service 302, a Bluetooth service 303, an audio manager 304, an audio control center 305, a perception 306, an AMS307, hardware abstraction layers (Hardware Abstraction Layer, hal) 308, and iconnect309.
The application 301 may include applications such as a call, music, video, alarm clock, and system media APK, but of course, the application layer may also include other applications, which is not limited by the present application. In the case where the application 301 detects an audio service, the audio service is transmitted to the audio service 302, and it is determined by the audio service 302 whether to process the detected audio service.
The bluetooth service module 303 establishes a bluetooth connection between the tablet pc 300 and the bluetooth headset 100.
Audio manager 304 is an application on tablet 300. The audio manager 304 is configured to manage the bluetooth headset 100 connected to the bluetooth tablet 300, and in case that it is detected that the user turns on the audio manager 304, display various parameters (e.g., headset in-ear detection, power display, etc.) of the bluetooth headset connected to the bluetooth tablet 300 to the user and set corresponding function controls according to the user's operation, where the function controls include play/next, play/pause, wake up a voice assistant, turn on/off active noise reduction, etc., and transmit the audio service corresponding to the detected function controls to the audio service 302, and the audio service 302 determines whether to process the detected audio service.
Specifically, the audio manager 304 includes a prompt capsule, a play control policy engine, a one-key reseize, and a smart connection. The prompting capsule is used for enabling the tablet 300 to display prompting information of the service switching event to a user after the bluetooth headset 100 is switched from the audio service of the processing tablet 300 to the audio service of the processing tablet 300. The playing control policy engine is used for setting corresponding function control according to the operation of the user, and sending a function control instruction corresponding to the function control instruction to the audio policy engine in the audio service 302, and the audio policy engine controls the flow direction of audio data corresponding to the audio service according to the function control instruction.
The audio service 302 is configured to manage the bluetooth headset 100 connected to the bluetooth of the tablet 300, and in case that it is determined that the bluetooth headset 100 processes an instruction of the audio service of the tablet 300, transmit audio data corresponding to the audio service of the tablet 300 to the bluetooth headset 100 through the hardware abstraction layer 308, and play the audio after the bluetooth headset 100 receives the audio data. Or 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 compares the service priority of the audio service of the tablet 300 with the service priority of the audio service of the tablet 300, and if the service priority of the audio service of the tablet 300 is greater than or equal to the service priority of the audio service of the tablet 300, the audio service 302 sends a service suspension instruction to the bluetooth headset 100 through the bluetooth service 303, where the service suspension instruction is used to instruct the bluetooth headset 100 to suspend processing of the audio service currently executing the tablet 300, and to process the audio service of the tablet 300.
Specifically, the audio service 302 includes an audio policy engine, an audio clip thread, and an audio device stack. The audio policy engine is configured to share, with other peer devices connected to the bluetooth headset 100, a state of processing audio services with each other through the bluetooth service 303 and the bluetooth headset 100, where the state of processing audio services includes whether to process audio services, an audio type of the processed audio services, a priority of the audio services, and the like.
The audio policy engine is configured to manage the bluetooth headset 100 connected to the bluetooth of the tablet 300, and transmit, when receiving an instruction of the bluetooth headset 100 to process an audio service of the tablet 300, 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 playing thread. Or 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 compares the service priority of the audio service of the tablet 300 with the service priority of the audio service of the tablet 300, and if the service priority of the audio service of the tablet 300 is greater than or equal to the service priority of the audio service of the tablet 300, the audio service 302 sends a service suspension instruction to the bluetooth headset 100 through the bluetooth service 303, where the service suspension instruction is used to instruct the bluetooth headset 100 to suspend processing of the audio service currently executing the tablet 300, and transfers 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 recording thread.
The sensing 306 is configured to sense device information parameters of the bluetooth headset connected to the bluetooth service 303 and the bluetooth headset detected by the AMS307, and send the information to the audio manager 304, where the audio manager 304 receives the information, and when detecting that the user opens the audio manager 304, displays various parameters (e.g. headset in-ear detection, electric quantity display, etc.) of the bluetooth headset connected to the bluetooth tablet 300 to the user.
The audio control center 305 is used to display icons related to audio services processed by the tablet 300, as well as pause/play button icons, at the control center interface of the tablet 300.
If the audio service processing scheme provided by the embodiment of the present application is applied to a standard software architecture (for example, the software architecture described in fig. 6 above), the algorithm of the software architecture may be affected, so as to avoid such a problem, and improve the compatibility of the audio service processing scheme provided by the embodiment of the present application. The relevant functional modules implementing the audio service processing scheme provided by the embodiment of the present application may be placed in a non-standard software architecture (such as the software architecture described in fig. 6 above), but rather in the functional modules of the electronic device itself. In particular, see the description of fig. 7 below.
Fig. 7 illustrates a schematic diagram of an audio policy engine, according to some embodiments of the application. As shown in fig. 7, an audio policy engine implementing the audio service processing scheme provided by the embodiment of the present application is mainly in a framework layer (java layer and local (native) layer of a software architecture, and the related modules are AudioService, audioSystem, audioPolicyService, and in addition, in order to ensure that the part does not affect the original algorithm, to maintain compatibility, the implementation of the part is put into AudioPolicyManagerCustomInterface of a non-standard software architecture (non-AOSP module).
Wherein AudioService senses the state of the audio service currently played on the electronic device (e.g., the mobile phone 200 and the tablet 300), including state changes of the audio service such as talking, bluetooth recording, ringing, music, movies, alarm clocks, notifications, and the like, and broadcasts the state to bluetooth services (203, 303) of the electronic device (e.g., the mobile phone 200 and the tablet 300) when the audio service starts to use the dual-connection bluetooth headset and the audio service ends to release the dual-connection bluetooth headset.
AudioSystem receives the audio service status information of the dual-connection earphone opposite terminal device broadcast by the bluetooth service (203, 303), and sends the information to AudioPolicyManagerCustomInterface through AudioPolicyService, audioPolicyManagerCustomInterface executes the audio service processing scheme provided by the embodiment of the present application.
As shown in fig. 5 and 7, the audio control center (205, 305) may be configured to synchronously display the actual audio playing device on the current device in real time, and also notify the audio control center (205, 305) to refresh the audio playing device to display the latest audio playing device when AudioSystem receives the earphone status broadcast by the bluetooth service (203, 303).
The following describes the process of connecting the bluetooth headset 100 to the mobile phone 200 and the tablet pc 300 at the same time, and when the mobile phone 200 plays music using the bluetooth headset 100 and the tablet pc 300 detects a music service after the user wears the bluetooth headset 100, preempting the bluetooth headset 100 and playing music using the bluetooth headset 100.
Fig. 8 is a flow chart of an audio service processing method according to some embodiments of the present application, corresponding to fig. 4. As shown in fig. 8, the flow includes the steps of:
801: the bluetooth headset 100 establishes a wireless communication channel with the mobile phone 200 through the bluetooth service 201 and establishes a wireless communication channel with the tablet 300 through the bluetooth service 301.
In some embodiments, a message is sent by the bluetooth headset 100 to the mobile phone 200 and the tablet 300 that the user has worn the bluetooth headset 100 through a communication channel between the bluetooth headset 100 and the mobile phone 200 and the tablet 300. Specifically, after step 601, the method according to the embodiment of the present application may further include steps 802 to 803.
802: The bluetooth headset 100 transmits the wearing notification to the mobile phone 200 through the bluetooth service 201, and the bluetooth headset 100 transmits the wearing notification to the mobile phone 200 through the bluetooth service 201.
803: Bluetooth service 201 broadcasts the wearing status to audio service 202 and Bluetooth service 301 broadcasts the wearing status to audio service 302.
804: The application 203 detects a music service.
In some embodiments, the application 203 may detect a user-initiated music service in response to a user playing selected music.
805: The application 203 sends a play music request to the audio service 202.
806: The audio service 202 determines that the bluetooth headset 100 is idle for music to be played.
It will be appreciated that the audio service 202 and the audio service 302 may share the state that the respective devices process the audio service with the bluetooth headset 100, and thus, the audio service 202 may determine whether the bluetooth headset 100 is idle for playing music according to the sharing information.
807: The audio service 202 transmits a play music instruction including an audio stream name to the bluetooth headset 100 through the bluetooth service 201.
In the embodiment of the application, the name of the audio stream is used for determining the service type of the audio service, and the service type of the audio service can be used for determining the service priority of playing music. Illustratively, the audio stream names and their corresponding service types may be as shown in table 1:
TABLE 1
As can be seen from table 1, if the name of the audio Stream 1 is stream_music, the audio service 1 belongs to a multimedia service, and the service type is identified as 2. Of course, in other embodiments, if the name of the audio Stream 1 is stream_voice_call, the audio service 1 belongs to a Call service, and the service type identifier is 1; or if the name of the audio Stream 1 is stream_notification, the audio service 1 belongs to a Notification service, and the service type identifier is 3.
In table 1, each audio stream name may correspond to a class of audio streams. In practical applications, the electronic device may further include more types of audio streams in table 1, which is not limited herein. In addition, the electronic device may include more types of traffic, for example, "stream_tts", "stream_ Accessibility" may be categorized as other types. The service type identifiers corresponding to each service type in table 1 are only examples, and the service type identifiers may be other.
In other embodiments, the play music instruction further includes a service priority and/or service type field of the audio service, but is not limited thereto.
808: The bluetooth headset 100 plays music upon receiving a play music instruction transmitted from the audio service 202.
Specifically, after receiving the instruction for playing music sent by the audio service 202, the bluetooth headset 100 receives audio data sent by the audio service 202, and plays music based on the audio data.
809: The bluetooth headset 100 transmits notification information of the state of the processing audio service of the bluetooth headset 100 to the audio service 302 through the bluetooth service 301.
In this manner, the audio service 202 and the audio service 302 may share the state that the respective devices process audio traffic using the bluetooth headset 100.
810: The application 303 detects the music service.
In some embodiments, the application 303 may detect the user-initiated music service in response to a user playing selected music.
811: The application 303 sends a play music request to the audio service 302.
812: The audio service 302 compares the service priority of the music service of the tablet 300 with that of 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.
813: The audio service 302 transmits a service suspension instruction to the bluetooth headset 100 through the bluetooth service 301.
814: After receiving the service suspension instruction, the audio service 202 does not transmit audio data to the bluetooth headset 100.
815: The audio service 302 transmits music data to the bluetooth headset 100 through the bluetooth service 301.
816: The bluetooth headset 100 plays music based on music data.
In some embodiments, the tablet 300 requests the bluetooth headset 100 to pause playing music of the mobile phone 200, the bluetooth headset 100 is used to play music of the tablet 300, the bluetooth headset 100 pauses playing music of the mobile phone 200, after the call of the tablet 300 is played, the mobile phone 200 plays music by using its speaker, plug-in earphone or receiver, and the like, and at the same time, the current audio service processing device (audio input/output device) is displayed on the display interface of the mobile phone 200. For example, FIG. 9 illustrates a schematic diagram of a notification management interface, according to some embodiments of the application. As shown in fig. 9, the display interface of the mobile phone 200 displays that the current audio service processing device (audio input output device) is native.
Fig. 10 illustrates a schematic diagram of a bluetooth headset 100, according to some embodiments of the present application. As shown in fig. 10, 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, an input/output interface 106, and the like. The processor may include one or more interfaces for interfacing with other components of the bluetooth headset 100. The bluetooth headset 100 is accommodated by a headset case. The following describes the respective components of the bluetooth headset 100 in detail with reference to fig. 10.
The memory 102 may be used to store program codes, such as program codes for physically connecting the bluetooth headset 100 with a plurality of electronic devices and for connecting with service specifications of the electronic devices, processing audio services of the electronic devices (such as music playing, receiving/making a call, etc.), and for charging the bluetooth headset 100, and for wireless pairing connection of the bluetooth headset 100 with other electronic devices. The memory 102 may also be used to store other information, such as the priority of the electronic device.
The processor 101 may be configured to execute the above application program codes and invoke the relevant modules to implement the functions of the bluetooth headset 100 according to the embodiment of the present application. For example, the functions of physically connecting the bluetooth headset 100 with a plurality of electronic devices (for example, the electronic device 1 and the electronic device 2), virtually connecting, playing audio, receiving/making a call, switching according to the device priority, connecting with service specifications between different electronic devices, and the like are realized. The physical connection is a physical link-based connection, which may include an ACL connection, or a low power asynchronous connection link (low energy asynchronous connection link/logical transport, LEACL) connection. For example, in the case where the bluetooth headset establishes an entity connection with the electronic device 1 and is processing the audio service 1 (e.g. playing music) of the electronic device 1, if the bluetooth headset receives the connection request information of the electronic device 2, the bluetooth headset may process the audio service 2 (e.g. make/receive a call) of the electronic device 2 based on the entity connection with the electronic device 2, so as to implement the service preemption function of the audio service 2of the electronic device 2.
The processor 101 may include one or more processing units, and the different processing units may be separate devices or may be integrated into one or more processors 101. The processor 101 may be in particular an integrated control chip or may be composed of a circuit comprising various active and/or passive components and configured to perform the functions described as belonging to the processor 101 according to an embodiment of the application.
The wireless communication module 103 may be configured to support data exchange between the bluetooth headset 100 and other electronic devices or headset boxes through wireless communication technologies, such as BT, WLAN (e.g., wi-Fi), zigbee, FM, NFC, IR, or general 2.4G/5G wireless communication technologies, etc.
In some embodiments, the wireless communication module 103 may be a bluetooth chip. The bluetooth headset 100 can be paired with bluetooth chips of other electronic devices through the bluetooth chips and establish wireless connection, so as to realize wireless communication and service processing between the bluetooth headset 100 and the other electronic devices through the wireless connection. In general, a bluetooth chip may support basic rate (basicrate, BR)/enhanced rate (ENHANCED DATA RATE, EDR) bluetooth and BLE, for example, may receive/transmit paging (page) information, receive/transmit BLE broadcast messages, and the like.
The wireless communication module 103 may further include an antenna, and the wireless communication module 103 may receive electromagnetic waves via the antenna, frequency-modulate and filter the electromagnetic wave signals, and transmit the processed signals to the processor 101. The wireless communication module 103 may also receive a signal to be transmitted from the processor 101, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via an antenna.
The audio module 104 may be used to manage audio data to enable the bluetooth headset 100 to input and output audio streams. For example, the audio module 104 may obtain an audio stream from the wireless communication module 103 or transfer the audio stream to the wireless communication module 103, to implement functions of making a call through a bluetooth headset, playing music, starting/closing a voice assistant of an electronic device connected to the headset, receiving/transmitting voice data of a user, and the like. The audio module 104 may include a speaker (or earpiece, receiver) assembly for outputting an audio stream, a microphone (or microphone, microphone), microphone pickup circuitry that mates with the microphone, and the like. Speakers may be used to convert audio electrical signals into sound signals and play them. Microphones may be used to convert sound signals into audio electrical signals.
The power module 105 may be used to provide a system power for the bluetooth headset 100, and power each module of the bluetooth headset 100; the bluetooth enabled headset 100 receives a charging input, etc. The power module 105 may include a power management unit (power management unit, PMU) and a battery. Wherein the power management unit may receive an external charging input; the electric signals input by the charging circuit are transformed and then supplied to the battery for charging, and the electric signals supplied by the battery can be transformed and then supplied to other modules such as an audio module 104, a wireless communication module 103 and the like; and to prevent overcharging, overdischarging, shorting, or overcurrent of the battery, etc. In some embodiments, the power module 105 may also include a wireless charging coil for wirelessly charging the bluetooth headset 100. In addition, the power management unit can also be used for monitoring parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance) and the like.
A plurality of input/output interfaces 106 may be used to provide a wired connection for charging or communication between the bluetooth headset 100 and the headset case. In some embodiments, the input/output interface may be a USB interface. In other embodiments, the input/output interface 106 may be an electrical headset connector, and when the bluetooth headset 100 is placed in the headset case, the bluetooth headset 100 may establish an electrical connection with the electrical connector in the headset case via the electrical headset connector, thereby charging a battery in the bluetooth headset 100. In other embodiments, the bluetooth headset 100 may also be in data communication with the headset box after the electrical connection is established, such as by receiving pairing instructions from the headset box.
In addition, the Bluetooth headset 100 may also include a sensor 107. For example, the sensor 107 may be a distance sensor or a proximity light sensor that may be used to determine whether the Bluetooth headset 100 is being worn by a user. For example, the bluetooth headset 100 may detect whether there is an object near the bluetooth headset 100 using a distance sensor, thereby determining whether the bluetooth headset 100 is worn by the user. Upon determining that the bluetooth headset 100 is worn, the bluetooth headset 100 may turn on the speaker.
For another example, the sensor 107 may also include an osteoinductive sensor, in combination with an osteoinductive headset. With the bone conduction sensor, the bluetooth headset 100 can acquire the vibration signal of the human body vocal part vibration bone block, analyze the voice signal, and realize the voice function, thereby receiving the voice instruction of the user. The bluetooth headset 100 may further perform voice authentication according to the user voice signal obtained by the bone conduction headset, so as to authenticate the user identity in the service scenario such as payment transaction.
For another example, the sensor 107 may further include: a touch sensor for detecting a touch operation of a user; the fingerprint sensor is used for detecting the fingerprint of the user, identifying the identity of the user and the like; an ambient light sensor, which can adaptively adjust some parameters (such as volume) according to the brightness of the perceived ambient light; and possibly other sensors.
In some embodiments, the touch sensor may detect a touch operation such as a single click, a double click, a multiple click, a long press, a heavy press, etc. of the user, and may also perform fingerprint identification of the user to authenticate the user identity in a business scenario such as a payment transaction.
It should be understood that 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 shown in fig. 10, may combine two or more components, or may have a different configuration of components. For example, the external surface of the bluetooth headset 100 may further include a key 108, an indicator (which may indicate a state of power, incoming/outgoing call, pairing mode, etc.), a display (which may prompt a user about information), a dust screen (which may be used with an earpiece), etc. The key 108 may be a physical key or a touch key (used with a touch sensor) for triggering operations such as power on, power off, pause, play, record, start pairing, reset, etc.
The various components shown in fig. 10 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application specific integrated circuits. For example, when the bluetooth headset is a TWS headset, the bluetooth headset 100 may include a headset body (also referred to as a left earpiece, or first portion) worn by the left ear and a headset body (also referred to as a right earpiece, or second portion) worn by the right ear, respectively. The earphone body may include an outer shell and an inner member. The inner member is disposed within the cavity formed by the housing. The internal components may include devices in the above-described audio module, power module, wireless communication module, and the like.
When the bluetooth headset is a TWS headset, the user may use the TWS headset in a binaural mode or a monaural mode. In the single-ear mode, the user wears the left earplug or the right earplug to perform audio services such as music listening or call receiving/making. In binaural mode, the user may wear two earpieces to enjoy music or other audio services. In binaural mode, the two earplugs have a split of a primary earplug and a secondary earplug. In addition, in the use process of the TWS earphone, the main and auxiliary roles of the two earplugs can be switched based on different conditions, for example, an earplug with higher electric quantity can be switched to a main earplug, and an earplug with lower electric quantity can be switched to an auxiliary earplug.
In some embodiments, the Bluetooth headset is typically housed within a headset case. The earphone box may have one or more magnets inside to attract the earphone body into a cavity inside the earphone box. The earphone pod may include a battery and a plurality of input/output interfaces. In some embodiments, the input/output interface may be a box electrical connector. When a pair of box electric connectors in the earphone box are respectively electrically connected with two earphone electric connectors in the earphone body, the earphone box can charge a battery in the earphone body through a battery of the earphone box.
In other embodiments, at least one touch control may be disposed on the earphone box, and may be used to trigger the bluetooth earphone to perform functions such as pairing reset or charging the bluetooth earphone. The earphone box may be further provided with one or more power indicator lamps to prompt the user of the power level of the battery in the earphone box and the power level of the battery in each earphone body in the earphone box.
In other embodiments, the earphone pods may also include a processor, memory, and the like. The memory may be used to store application code and be controlled by the processor of the earphone box to perform various functions of the earphone box. For example. The processor of the earphone box charges the bluetooth earphone after detecting that the bluetooth earphone is put into the earphone box and the cover of the earphone box is covered by executing the application code stored in the memory, and the like.
In addition, the earphone box can be further provided with a charging interface for charging the battery of the earphone box. The earphone box can also comprise a wireless charging coil which is used for wirelessly charging the battery of the earphone box. It will be appreciated that the earphone case may also include other components, which are not described here.
It will be appreciated that the components shown in fig. 10 are not intended to be limiting in detail to the bluetooth headset 100, and that the bluetooth headset 100 may also include more or less components than shown, or may be combined with certain components, or may be split into certain components, or may be arranged in different components.
Embodiments of the disclosed mechanisms may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the application may be implemented as a computer program or program code that is executed on a programmable system comprising 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 generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of the present application, a processing system includes any system having a Processor such as, for example, a digital signal Processor (DIGITAL SIGNAL Processor, DSP), microcontroller, application SPECIFIC INTEGRATED Circuit (ASIC), or microprocessor.
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. Program code may also be implemented in assembly or machine language, if desired. Indeed, the mechanisms described in the present application are not limited in scope by any particular programming language. In either case, the language may be a compiled or interpreted language.
In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer-readable storage media. Thus, a machine-readable storage medium 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 diskettes, optical disks, read-Only memories (CD-ROMs), magneto-optical disks, read Only Memories (ROMs), random access memories (Random Access Memory, RAMs), erasable programmable Read-Only memories (Erasable Programmable Read Only Memory, EPROMs), electrically erasable programmable Read-Only memories (ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only memories, EEPROMs), magnetic or optical cards, flash Memory, or tangible machine-readable Memory for transmitting information (e.g., carrier waves, infrared signal digital signals, etc.) in an electrical, optical, acoustical or other form of propagated signal based on the internet. Thus, a machine-readable storage medium includes any type of machine-readable storage medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
In the drawings, some structural or methodological features may be shown in a particular arrangement and/or order. However, it should be understood that such a particular arrangement and/or ordering may not be required. Rather, in some embodiments, these features may be arranged in a different manner and/or order than shown in the illustrative figures. Additionally, the inclusion of structural or methodological features in a particular figure is not meant to imply that such features are required in all embodiments, and in some embodiments, may not be included or may be combined with other features.
It should be noted that, in the embodiments of the present application, each unit/module mentioned in each device is a logic unit/module, and in physical terms, one logic unit/module may be one physical unit/module, or may be a part of one physical unit/module, or may be implemented by a combination of multiple physical units/modules, where the physical implementation manner of the logic unit/module itself is not the most important, and the combination of functions implemented by the logic unit/module is only a key for solving the technical problem posed by the present application. Furthermore, in order to highlight the innovative part of the present application, the above-described device embodiments of the present application do not introduce units/modules that are less closely related to solving the technical problems posed by the present application, which does not indicate that the above-described device embodiments do not have other units/modules.
It should be noted that in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
While the application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the application.

Claims (11)

1. A method for processing an audio service, the method comprising:
the first electronic equipment and the second electronic equipment establish a wireless communication channel with the Bluetooth headset;
The first electronic equipment processes a first audio service by using the Bluetooth headset;
After the second electronic equipment detects the second audio service, judging whether the service priority of the second audio service is greater than that of the first audio service;
and if the service priority of the second audio service is greater than that of the first audio service, the second electronic equipment requests the Bluetooth headset to suspend processing of the first audio service, and the Bluetooth headset is utilized to process the second audio service.
2. The method of claim 1, wherein the requesting the bluetooth headset to suspend processing the first audio service and processing the second audio service with the bluetooth headset comprises:
The second electronic equipment sends a service suspension instruction to the first electronic equipment through the Bluetooth headset;
the first electronic equipment receives the service pause instruction and stops sending the audio data of the first audio service to the Bluetooth headset;
The second electronic equipment sends the audio data of the second audio service to the Bluetooth headset;
and the Bluetooth headset receives the audio data of the second audio service and processes the second audio service.
3. The method of claim 2, wherein before the second electronic device requests the bluetooth headset to suspend processing the first audio service and to process the second audio service with the bluetooth headset, the method further comprises:
The first electronic device indicates the service priority of the first audio service to the second electronic device through the Bluetooth headset.
4. A method according to claim 2 or 3, wherein the service suspension instruction is for indicating a service priority of the second audio service;
the first electronic device receiving the service suspension instruction, stopping sending the audio data of the first audio service to the Bluetooth headset, and the method comprises the following steps:
And the first electronic equipment receives the service suspension instruction, and stops sending the audio data of the first audio service to the Bluetooth headset if the service priority of the second audio service indicated by the service suspension instruction is greater than that of the first audio service.
5. The method of any of claims 1-4, wherein after the requesting the bluetooth headset to suspend processing the first audio service and processing the second audio service with the bluetooth headset, the method further comprises:
the first electronic device processes the first audio service using an audio component of the first electronic device.
6. The method according to any one of claims 1-5, wherein the audio services handled by the bluetooth headset include a call service, a multimedia service, and a notification prompt service;
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 prompt service.
7. A method for processing an audio service, the method comprising:
The second electronic equipment establishes a wireless communication channel with the Bluetooth headset; the Bluetooth headset also establishes a wireless communication channel with the first electronic device, and processes a first audio service of the first electronic device;
After the second electronic equipment detects the second audio service, judging whether the service priority of the second audio service is greater than that of the first audio service;
and if the service priority of the second audio service is greater than that of the first audio service, the second electronic equipment requests the Bluetooth headset to suspend processing of the first audio service, and the Bluetooth headset is utilized to process the second audio service.
8. The method of claim 7, wherein requesting the bluetooth headset to suspend processing the first audio service at the second electronic device, processing the second audio service with the bluetooth headset, comprises:
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 for indicating the first electronic device to receive the service suspension instruction and stopping sending the audio data of the first audio service to the Bluetooth headset;
The second electronic equipment sends the audio data of the second audio service to the Bluetooth headset;
and the Bluetooth headset receives the audio data of the second audio service and processes the second audio service.
9. The method of claim 7, wherein before the second electronic device requests the bluetooth headset to suspend processing the first audio service and to process the second audio service with the bluetooth headset, the method further comprises:
And the second electronic equipment receives the service priority of the first audio service indicated by the first electronic equipment through the Bluetooth headset.
10. An electronic device comprising a processor and a memory; the memory is used for storing code instructions; the processor is configured to execute the code instructions to cause the first electronic device or the second electronic device to perform the method of any of claims 1-6 or claims 7-9.
11. A computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-6 or 7-9.
CN202211288799.XA 2022-10-20 2022-10-20 Audio service processing method, electronic equipment and computer storage medium Pending CN117917899A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211288799.XA CN117917899A (en) 2022-10-20 2022-10-20 Audio service processing method, electronic equipment and computer storage medium
PCT/CN2023/117289 WO2024082855A1 (en) 2022-10-20 2023-09-06 Audio service processing method, electronic device, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211288799.XA CN117917899A (en) 2022-10-20 2022-10-20 Audio service processing method, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN117917899A true CN117917899A (en) 2024-04-23

Family

ID=90729565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211288799.XA Pending CN117917899A (en) 2022-10-20 2022-10-20 Audio service processing method, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN117917899A (en)

Similar Documents

Publication Publication Date Title
CN113382397B (en) Bluetooth connection method, device and system
CN112789867B (en) Bluetooth connection method and equipment
CN112868244B (en) Point-to-multipoint data transmission method and device
CN112789866B (en) Audio data transmission method and equipment applied to TWS earphone single-ear and double-ear switching
WO2020133183A1 (en) Audio data synchronization method and device
CN111601199A (en) Wireless earphone box and system
CN114726946A (en) Method for automatically switching Bluetooth audio coding modes and electronic equipment
US20220394794A1 (en) Bluetooth connection method and related apparatus
CN112469010B (en) Bluetooth connection method and related device
CN115002934B (en) Audio service processing system, electronic equipment and Bluetooth headset
WO2020132818A1 (en) Wireless short-distance audio sharing method and electronic device
EP4061027B1 (en) Bluetooth communication method and apparatus
CN110602312B (en) Call method, electronic device and computer readable storage medium
WO2023284378A1 (en) Call control method and electronic device
WO2022242528A1 (en) Volume adjustment method and terminal device
CN112771828B (en) Audio data communication method and electronic equipment
CN113301544B (en) Method and equipment for voice intercommunication between audio equipment
CN113132959B (en) Wireless audio system, wireless communication method and device
CN117917899A (en) Audio service processing method, electronic equipment and computer storage medium
CN115525366A (en) Screen projection method and related device
WO2024082855A1 (en) Audio service processing method, electronic device, and computer storage medium
CN116074986B (en) Bluetooth connection method, device and system
CN113271577B (en) Media data playing system, method and related device
CN115515112A (en) Bluetooth communication method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination