CN114040373A - Audio service processing method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN114040373A
CN114040373A CN202111408671.8A CN202111408671A CN114040373A CN 114040373 A CN114040373 A CN 114040373A CN 202111408671 A CN202111408671 A CN 202111408671A CN 114040373 A CN114040373 A CN 114040373A
Authority
CN
China
Prior art keywords
audio
service
audio output
sound source
equipment
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
CN202111408671.8A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202111408671.8A priority Critical patent/CN114040373A/en
Publication of CN114040373A publication Critical patent/CN114040373A/en
Priority to PCT/CN2022/110551 priority patent/WO2023087793A1/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Abstract

The embodiment of the application discloses an audio service processing method and device, electronic equipment and a storage medium. The method is applicable to an audio output device, and comprises the following steps: under the condition that the audio output equipment processes the first audio service of the first audio source equipment, receiving a first service request which is sent by the second audio source equipment and corresponds to the second audio service; and processing a target audio service of a target sound source device in the first sound source device and the second sound source device according to the first service request, and sending an occupation instruction to a non-target sound source device in the first sound source device and the second sound source device, wherein the occupation instruction is used for indicating the non-target sound source device to set the Bluetooth connection between the non-target sound source device and the audio output device to be in a non-activated state. According to the audio service processing method, the audio service processing device, the electronic equipment and the storage medium, the audio source equipment can quickly and conveniently seize the audio output equipment, and the efficiency of processing the audio service by the audio output equipment is ensured.

Description

Audio service processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to an audio service processing method and apparatus, an electronic device, and a storage medium.
Background
Bluetooth is a radio technology supporting short-range communication of devices, and enables wireless information exchange between a plurality of electronic devices supporting bluetooth transmission, so that data transmission between the electronic devices is more rapid and efficient. At present, in order to meet the work and life needs of users, electronic devices capable of simultaneously supporting bluetooth connection with a plurality of other electronic devices and supporting a bluetooth connection function of 'one drags more' appear in the market. How to more reasonably and quickly process the business of other connected electronic equipment becomes a problem which needs to be solved urgently for supporting 'one drags more' electronic equipment.
Disclosure of Invention
The embodiment of the application discloses an audio service processing method and device, electronic equipment and a storage medium, wherein a sound source device can quickly and conveniently seize audio output equipment, the efficiency of the audio output equipment for processing audio services is guaranteed, and the processed audio services are more suitable for user requirements.
The embodiment of the application discloses an audio service processing method, which is applied to audio output equipment, wherein the audio output equipment is connected with at least two sound source equipment through Bluetooth, the at least two sound source equipment comprise a first sound source equipment and a second sound source equipment, and the method comprises the following steps: under the condition that the audio output equipment processes the first audio service of the first audio source equipment, receiving a first service request which is sent by the second audio source equipment and corresponds to the second audio service; processing a target audio service of a target sound source device in the first sound source device and the second sound source device according to the first service request, and sending an occupation instruction to a non-target sound source device in the first sound source device and the second sound source device, wherein the occupation instruction is used for indicating the non-target sound source device to set a Bluetooth connection between the non-target sound source device and the audio output device to be in a non-activated state; the audio output equipment or the second audio source equipment determines the target audio source equipment and the non-target audio source equipment according to the service priority relation between the first audio service and the second audio service; the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained, but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
The embodiment of the application discloses an audio service processing method, which is applied to a second sound source device, wherein the second sound source device is connected with an audio output device through Bluetooth, the audio output device is also connected with a first sound source device through Bluetooth at least, and the method comprises the following steps: when a second audio service is detected, sending a first service request corresponding to the second audio service to the audio output equipment; if an occupation instruction sent by the audio output equipment is received, setting the Bluetooth connection between the audio output equipment and the Bluetooth connection device in a non-activated state; the occupation instruction is sent when the audio output device receives the first service request in the process of processing the first audio service of the first audio source device and determines that the service priority corresponding to the second audio service is lower than the service priority corresponding to the first audio service; wherein the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
The embodiment of the application discloses an audio service processing method, which is applied to a second sound source device, wherein the second sound source device is connected with an audio output device through Bluetooth, the audio output device is also connected with a first sound source device through Bluetooth at least, and the method comprises the following steps: receiving a service priority corresponding to a first audio service of the first audio source device, which is sent by the audio output device, wherein the service priority corresponding to the first audio service is sent by the audio output device when the first audio service of the first audio source device is processed; if the second audio source device detects a second audio service and determines that the service priority corresponding to the first audio service is lower than the service priority corresponding to the second audio service, sending a first service request corresponding to the second audio service to the audio output device so that the audio output device sends an occupation instruction to the first audio source device, wherein the occupation instruction is used for indicating the first audio source device to set the Bluetooth connection between the first audio source device and the audio output device to be in an inactive state; audio data transmission corresponding to the second audio service is carried out with the audio output equipment; wherein the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
The embodiment of the application discloses audio frequency service processing apparatus is applied to audio output device, audio output device establishes the bluetooth with two at least sound source equipment and is connected, two at least sound source equipment include first sound source equipment and second sound source equipment, the device includes: a request receiving module, configured to receive a first service request corresponding to a second audio service sent by the second audio source device, when the audio output device processes the first audio service of the first audio source device; the instruction sending module is used for processing a target audio service of a target sound source device in the first sound source device and the second sound source device according to the first service request and sending an occupation instruction to a non-target sound source device in the first sound source device and the second sound source device, wherein the occupation instruction is used for indicating the non-target sound source device to set the Bluetooth connection between the non-target sound source device and the audio output device to be in a non-activated state; the audio output equipment or the second audio source equipment determines the target audio source equipment and the non-target audio source equipment according to the service priority relation between the first audio service and the second audio service; the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained, but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
The embodiment of the application discloses audio service processing apparatus is applied to second sound source equipment, second sound source equipment establishes the bluetooth with audio output equipment and is connected, audio output equipment still establishes the bluetooth with first sound source equipment at least and is connected, the device includes: the request sending module is used for sending a first service request corresponding to a second audio service to the audio output equipment when the second audio service is detected; the state setting module is used for setting the Bluetooth connection between the audio output equipment and the state setting module as a non-activated state if an occupation instruction sent by the audio output equipment is received; the occupation instruction is sent when the audio output device receives the first service request in the process of processing the first audio service of the first audio source device and determines that the service priority corresponding to the second audio service is lower than the service priority corresponding to the first audio service; wherein the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
The embodiment of the application discloses audio service processing apparatus is applied to second sound source equipment, second sound source equipment establishes the bluetooth with audio output equipment and is connected, audio output equipment still establishes the bluetooth with first sound source equipment at least and is connected, the device includes: a receiving module, configured to receive a service priority, which is sent by the audio output device and corresponds to a first audio service of the first audio source device, where the service priority corresponding to the first audio service is sent by the audio output device when the first audio service of the first audio source device is processed; a request sending module, configured to send a first service request corresponding to a second audio service to the audio output device if the second audio source device detects the second audio service and it is determined that a service priority corresponding to the first audio service is lower than a service priority corresponding to the second audio service, so that the audio output device sends an occupation instruction to the first audio source device, where the occupation instruction is used to instruct the first audio source device to set a bluetooth connection between the first audio source device and the audio output device to an inactive state; the data transmission module is used for carrying out audio data transmission corresponding to the second audio service with the audio output equipment; wherein the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
An embodiment of the present application discloses an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor is enabled to implement the method as described in any one of the above.
The embodiment of the application discloses a computer readable storage medium, wherein a computer program is stored on the storage medium, and when the computer program is executed by a processor, the computer program realizes the method as any one of the above.
The embodiment of the application discloses an audio service processing method, an audio service processing device, an electronic device and a storage medium, wherein the audio output device is connected with at least two sound source devices in a Bluetooth mode, under the condition that the audio output device processes a first audio service of a first sound source device, a first service request which is sent by a second sound source device and corresponds to the second audio service is received, a target audio service of a target sound source device in the first sound source device and the second sound source device is processed according to the first service request, and an occupation instruction is sent to a non-target sound source device in the first sound source device and the second sound source device, so that the non-target sound source device sets the Bluetooth connection between the non-target sound source device and the audio output device to be in a non-activated state. In this embodiment of the application, when the audio output device processes the target audio service of the target audio source device, the non-target audio source device maintains the bluetooth connection with the audio output device, but cannot send information to the audio output device through the bluetooth connection with the audio output device, which neither affects the audio data transmission between the audio output device and the target audio source device, and does not need to disconnect the bluetooth connection with the audio output device. In addition, the target sound source equipment and the non-target sound source equipment are determined by the audio output equipment or the second sound source equipment according to the service priority relation between the first audio service and the second audio service, so that the audio service processed by the audio output equipment is more suitable for the user requirements.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is an application scenario diagram of an audio service processing method in an embodiment;
FIG. 2 is a flow diagram of an audio service processing method applied to an audio output device in one embodiment;
FIG. 3A is a timing interaction diagram of a method for audio service processing in one embodiment;
FIG. 3B is a timing interaction diagram of a method for audio service processing in another embodiment;
FIG. 4 is a flow chart of an audio service processing method applied to an audio output device in another embodiment;
FIG. 5 is a diagram of an embodiment of an audio source device A occupying an audio output device;
fig. 6A is a schematic diagram illustrating that a non-target sound source device occupies an audio output device after the target sound source device finishes an audio service according to an embodiment;
fig. 6B is a schematic diagram illustrating that a non-target sound source device occupies an audio output device after the target sound source device finishes the audio service according to another embodiment;
fig. 7 is a flowchart of an audio service processing method applied to a second audio source device according to an embodiment;
fig. 8 is a flowchart of an audio service processing method applied to a second audio source device in another embodiment;
FIG. 9 is a block diagram of an audio service processing apparatus applied to an audio output device in one embodiment;
fig. 10 is a block diagram of an audio service processing apparatus applied to a second audio source device in one embodiment;
fig. 11 is a block diagram of an audio service processing apparatus applied to a second audio source device in another embodiment;
FIG. 12 is a block diagram showing the structure of an electronic apparatus according to an embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the examples and figures of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first audio source device may be referred to as a second audio source device, and similarly, a second audio source device may be referred to as a first audio source device, without departing from the scope of the present application. The first and second audio source devices are both audio source devices, but are not the same audio source device. The terms "plurality" and the like as used herein mean two or more.
Fig. 1 is an application scenario diagram of an audio service processing method in an embodiment. As shown in fig. 1, the audio output device 10 may be a device that supports bluetooth connectivity with at least two electronic devices simultaneously, i.e., the audio output device 10 may support the "drag and drop" functionality of bluetooth. The audio output device 10 may include, but is not limited to, a headphone device, a bluetooth speaker, a player, etc., wherein the headphone device may include, but is not limited to, a headphone, an in-ear headphone, an ear bud headphone, a supra-aural headphone, etc., and further, the audio output device 10 may be a Wireless bluetooth headset, such as a True Wireless Stereo (TWS) bluetooth headset, etc.
The audio output device 10 may establish a bluetooth connection with at least two audio source devices, for example, the audio output device 10 in fig. 1 establishes a bluetooth connection with at least a first audio source device 20 and a second audio source device 30, wherein the first audio source device 20 and the second audio source device 30 may include, but are not limited to, wearable devices (such as a bracelet, a smart watch, smart glasses, and the like), vehicle terminals, mobile phones, tablet computers, notebook computers, PCs (Personal computers), and other electronic devices.
The audio output device 10 establishes a bluetooth connection with the audio source device, which may include the audio output device 10 establishing a bluetooth physical link and a service connection with the audio source device. The bluetooth physical link may include physical links such as ACL (Asynchronous Connectionless), SCO (Synchronous Connection ordered), etc. The service connection is a connection established on the basis of a bluetooth physical link for transmitting Audio service data, for example, A2DP (Advanced Audio Distribution Profile, bluetooth Audio transmission model protocol), HFP (Hands-free Profile), etc., where the A2DP connection may be used for transmitting multimedia Audio data, and the HFP connection may be used for transmitting voice data.
In the related art, when the audio output device 10 performs data transmission with any sound source device, it is necessary to disconnect the service connection with other sound source devices (which refers to sound source devices other than the sound source device performing data transmission), and when there is an audio service in other sound source devices and the audio output device 10 needs to process the audio service, it is necessary to establish a service connection with the audio output device 10 again first and then perform audio data transmission. For example, when the audio output device 10 performs audio data transmission with the first audio source device 20, it is necessary to disconnect services such as A2DP and HFP from the second audio source device 20. When the second sound source device 20 has the audio service to be processed by the audio output device 10, the second sound source device needs to establish service connection such as A2DP and HFP with the audio output device 10 again, and then perform audio data transmission with the audio output device 10, which results in that the speed of seizing the audio output device 10 is slow, and the efficiency of processing the audio service by the audio output device 10 is affected.
In the embodiment of the application, a method and a device for processing an audio service, an electronic device, and a storage medium are provided, so that a sound source device can seize an audio output device more quickly and conveniently, the efficiency of processing the audio service by the audio output device is ensured, and the processed audio service fits user requirements better.
In some embodiments, when the audio output device 10 is in an idle state, that is, when the audio output device 10 does not perform audio data transmission with any sound source device, if the first sound source device 20 detects the first audio service, a second service request corresponding to the first audio service may be sent to the audio output device 10, and the audio output device 10 processes the first audio service of the first sound source device 20 according to the second service request, and performs audio data transmission with the first sound source device 20. The audio output device 10 may transmit an occupation instruction to another audio source device (for example, the second audio source device 30), the occupation instruction being used to instruct the other audio source device to set the bluetooth connection with the audio output device to an inactive state, so that the other audio source device maintains the bluetooth connection with the audio output device, but cannot transmit information to the audio output device through the bluetooth connection with the audio output device. The other audio source devices do not need to disconnect the service connection with the audio output device 10, and do not affect the audio data transmission between the audio output device 10 and the first audio source device 20.
In some embodiments, in the case that the audio output device 10 processes the first audio service of the first audio source device 20, if the second audio source device 30 detects the second audio service, the first service request corresponding to the second audio service may be sent to the audio output device 10. The audio output device 10 may process the target audio service of the target audio source device of the first audio source device 20 and the second audio source device 30 according to the first service request, and send an occupation instruction to the non-target audio source device, so that the non-target audio source device sets the bluetooth connection with the audio output device 10 to be in an inactive state. The target sound source device and the non-target sound source device are determined by the audio output device 10 or the second sound source device 30 according to the service priority relationship between the first audio service and the second audio service. When the non-target sound source equipment needs to process the audio service by the audio output equipment 10 next time, reconnection with the audio output equipment 10 is not needed, and the audio output equipment 10 can be seized more quickly and conveniently.
It should be noted that fig. 1 only shows a scenario in which the audio output device 10 establishes bluetooth connections with two audio source devices, that is, the audio output device 10 supports a "one-to-two" scenario, but the embodiment of the present application is also applicable to a scenario in which the audio output device 10 supports different scenarios such as "one-to-one", "one-to-three", and "one-to-four" … …, and the maximum number of bluetooth connections specifically supported by the audio output device is not limited in the embodiment of the present application.
As shown in fig. 2, in one embodiment, an audio service processing method is provided, which is applicable to the audio output device, and the method may include the following steps:
step 210, receiving a first service request corresponding to a second audio service sent by a second audio source device, when the audio output device processes the first audio service of the first audio source device.
The audio output device can establish Bluetooth connection with at least two audio source devices, and in some embodiments, when the audio output device performs audio data transmission with the first audio source device, the audio source devices other than the first audio source device can set the Bluetooth connection with the audio output device to be in an inactive state. The inactive state may refer to a state in which a bluetooth connection with the audio output device is maintained, but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device. Further, the other audio source device maintaining the bluetooth connection with the audio output device may refer to the other audio source device maintaining the bluetooth physical link and the service connection with the audio output device.
When the audio output device processes the first audio service of the first audio source device, the bluetooth connection between the second audio source device and the audio output device may be in an inactive state. When the second sound source equipment detects that the second audio service needs to be processed by the audio output equipment, the Bluetooth connection with the audio output equipment can be activated, and a first service request corresponding to the second audio service is sent to the audio output equipment through the activated Bluetooth connection.
In some embodiments, after receiving a first service request sent by a second sound source device, an audio output device may obtain audio service information corresponding to a second audio service according to the first service request, where the audio service information may include but is not limited to one or more of a service type, an audio data type to be transmitted, and the like, where the service type may refer to a type of the audio service, and may include a multimedia audio playing service, a call service, and the like; the type of the audio data to be transmitted may refer to the kind of audio data that the second sound source device needs to process by the audio output device, and may include multimedia audio data, voice data, and the like.
Step 220, according to the first service request, processing a target audio service of a target sound source device of the first sound source device and the second sound source device, and sending an occupation instruction to a non-target sound source device of the first sound source device and the second sound source device, where the occupation instruction is used to instruct the non-target sound source device to set a bluetooth connection with the audio output device to a non-activated state.
The target audio source device and the non-target audio source device may be determined by the audio output device or the second audio source device according to a service priority relationship between the first audio service and the second audio service. The target sound source device may be a sound source device corresponding to an audio service with a higher service priority, and the non-target sound source device may be a sound source device corresponding to an audio service with a lower service priority. The Audio output device can send an occupation instruction to the non-target sound source device, the occupation instruction can be used for informing the non-target sound source device that the Audio output device is occupied, the Audio service of the non-target sound source device cannot be processed temporarily, then the non-target sound source device can set the Bluetooth connection between the non-target sound source device and the Audio output device to be in an inactive state, and under the condition that the Bluetooth connection is in the inactive state, an Audio management module (Audio module) in the non-target sound source device considers that the Audio output device is unavailable, and cannot send Audio data to the Audio output device through the Bluetooth connection.
The audio output equipment can preferentially process the audio service with higher service priority, and if the service priority corresponding to the first audio service is higher than the service priority corresponding to the second audio service, the target audio source equipment is the first audio source equipment, the target audio service is the first audio service, and the non-target audio source equipment is the second audio source equipment; and if the service priority corresponding to the first audio service is lower than the service priority corresponding to the second audio service, the target audio source equipment is the second audio source equipment, the target audio service is the second audio service, and the non-target audio source equipment is the first audio source equipment.
In some embodiments, the service priority relationship between the first audio service and the second audio service may be determined according to audio service information corresponding to the first audio service and audio service information corresponding to the second audio service. Optionally, the audio service information may include a service type, for example, a service priority of a call service may be set higher than a service priority of a multimedia audio playing service; optionally, the audio service information may include a service start time, for example, a service priority of a call service with a later service start time may be set higher than a service priority of a call service with an earlier service start time; optionally, the audio service information may include applications for triggering audio services, and the audio services triggered by the applications in the sound source device may respectively correspond to corresponding service priorities, for example, the service priority of the audio service triggered by the social application may be set, and the service priority of the audio service triggered by the audio playing application is higher than the service priority of the audio service triggered by the audio playing application, but not limited thereto.
In one embodiment, the target audio source device and the non-target audio source device may be determined by an audio output device. When the second audio source device detects the second audio service, a first service request corresponding to the second audio service may be sent to the audio output device, and the audio output device may compare the service priority corresponding to the second audio service with the service priority corresponding to the first audio service according to the first service request, and determine a target audio source device and a non-target audio source device among the first audio source device and the second audio source device according to a comparison result.
Specifically, the audio output device may obtain audio service information corresponding to the second audio service according to the first service request, and determine whether the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service according to the audio service information corresponding to the second audio service, that is, determine whether to process the second audio service of the second audio source device. If the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service, the audio output equipment processes the second audio service and carries out audio data transmission with the second sound source equipment; and if the service priority corresponding to the second audio service is not higher than the service priority corresponding to the first audio service, the audio output equipment continues to process the first audio service and performs audio data transmission with the first sound source equipment.
Illustratively, fig. 3A is a timing interaction diagram of an audio service processing method in one embodiment. As shown in fig. 3A, the audio output device can establish a bluetooth connection with the audio source device a and the audio source device B, respectively. When the audio output device is in an idle state, if the audio source device a detects that there is an audio service, the audio source device a may send a service request to the audio output device, and the audio output device processes the audio service of the audio source device a and sends an occupation instruction to the audio source device B. After receiving the occupation instruction, the sound source device B may set the bluetooth connection with the audio output device to an inactive state. If the sound source equipment B detects that the audio service exists, the Bluetooth connection can be activated, and a service request is sent to the audio output equipment. After the audio output device receives the service request sent by the sound source device B, it can be determined whether the service priority corresponding to the audio service of the sound source device B is higher than the service priority corresponding to the audio service of the sound source device a. If the service priority corresponding to the audio service of the sound source equipment B is higher than the service priority corresponding to the audio service of the sound source equipment A, the audio output equipment switches and processes the audio service of the sound source equipment B and sends an occupation instruction to the sound source equipment A, the sound source equipment A sets the Bluetooth connection between the sound source equipment A and the audio output equipment to be in an inactive state according to the occupation instruction, and the sound source equipment B successfully occupies the audio output equipment. If the service priority corresponding to the audio service of the sound source equipment B is not higher than the service priority corresponding to the audio service of the sound source equipment A, the audio output equipment continues to process the audio service of the sound source equipment A and sends an occupation instruction to the sound source equipment B, the sound source equipment B sets the Bluetooth connection between the sound source equipment B and the audio output equipment to be in an inactive state according to the occupation instruction, and the sound source equipment B fails to occupy the audio output equipment.
In another embodiment, the target audio source device and the non-target audio source device may be determined by the second audio source device. When the second audio source device detects the second audio service, the second audio source device may compare the service priority of the second audio service with the service priority of the first audio service, and send a first service request corresponding to the second audio service to the audio output device if the service priority of the second audio service is higher than the service priority corresponding to the first audio service. And the audio output equipment determines that the target sound source equipment is the second sound source equipment and the non-target sound source equipment is the first sound source equipment when receiving the first service request.
Illustratively, fig. 3B is a timing interaction diagram of an audio service processing method in another embodiment. As shown in fig. 3B, the audio output device can establish a bluetooth connection with the audio source device a and the audio source device B, respectively. When the audio output device is in an idle state, if the audio source device a detects that there is an audio service, the audio source device a may send a service request to the audio output device, and the audio output device processes the audio service of the audio source device a and sends an occupation instruction to the audio source device B. After receiving the occupation instruction, the sound source device B may set the bluetooth connection with the audio output device to an inactive state. If the sound source equipment B detects that the audio service exists, whether the service priority of the audio service of the sound source equipment B is higher than that of the audio service of the sound source equipment A or not can be judged. If the service priority of the audio service of the user is higher than that of the audio service of the sound source equipment A, the Bluetooth connection can be activated, and a service request is sent to the audio output equipment. After receiving the service request sent by the sound source equipment B, the audio output equipment can process the audio service of the sound source equipment B and send an occupation instruction to the sound source equipment A, the sound source equipment A sets the Bluetooth connection between the audio output equipment and the sound source equipment A to be in a non-activated state according to the occupation instruction, and the sound source equipment B successfully occupies the audio output equipment. And if the sound source equipment B judges that the service priority of the self audio service is not higher than that of the audio service of the sound source equipment A, the Bluetooth connection is not activated, and the audio output equipment is not seized.
In the embodiment of the application, when the audio source device needs to seize the audio output device, reconnection with the audio output device is not needed, so that the audio output device can be seized more quickly and conveniently, and the efficiency of processing the audio service by the audio output device is ensured. In addition, the audio output equipment can process corresponding audio services based on the service priority, and the actual requirements of users are better met.
As shown in fig. 4, in another embodiment, an audio service processing method is provided, which is applicable to the audio output device, and the method may include the following steps:
step 402, receiving a second service request corresponding to the first audio service sent by the first audio source device.
Step 404, if the audio output device does not perform audio data transmission with any sound source device, processing the first audio service of the first sound source device according to the second service request, and respectively sending an occupation instruction to each other sound source device, where the occupation instruction is used to instruct the other sound source devices to set the bluetooth connection with the audio output device to a non-activated state.
When the audio output device does not perform audio data transmission with any sound source device, the audio output device is in an idle state. Optionally, when the audio output device is in the idle state, the bluetooth connection between each sound source device and the audio output device may be in an active state, where the active state refers to a state capable of sending information to the audio output device through the bluetooth connection with the audio output device. When the first sound source equipment detects the first audio service, a second service request corresponding to the first audio service can be directly sent to the audio output equipment through Bluetooth connection, the audio output equipment is seized, and the first audio service of the first sound source equipment can be directly processed when the second service request sent by the first sound source equipment is received because the audio output equipment is in an idle state. The first sound source device does not need to be connected with the audio output device again such as A2DP and HFP, and the Bluetooth connection is not needed to be activated, so that the speed of the first sound source device for preempting the audio output device can be increased.
Step 406, if a service end instruction for instructing to end the first audio service sent by the first audio source device is received, then a non-occupation instruction is sent to each of the other audio source devices according to the service end instruction, where the non-occupation instruction is used to instruct the other audio source devices to switch the bluetooth connection with the audio output device from the non-activated state to the activated state.
When the first audio source device finishes the first audio service, a service end instruction may be sent to the audio output device, for example, the first audio source device ends a voice call, stops playing music, and the like, and the first audio source device stops sending audio data to the audio output device. After the audio output device receives the service ending instruction sent by the first sound source device, the audio output device restores to the idle state, and can respectively send non-occupation instructions to other sound source devices, so that the other sound source devices switch the Bluetooth connection between the audio output device and the other sound source devices from the inactive state to the active state, and the Bluetooth connection between each sound source device and the audio output device is restored to be completely in the active state. Therefore, any sound source equipment does not need to reactivate the Bluetooth connection when needing to occupy the audio output equipment.
Fig. 5 is a schematic diagram of an audio output device occupied by an audio source device a according to an embodiment. As shown in fig. 5, the audio output device can establish bluetooth connection with the audio source device a and the audio source device B, respectively. When the audio output device is in an idle state, if the audio source device a detects that there is an audio service, the audio source device a may send a service request to the audio output device, and the audio output device processes the audio service of the audio source device a and sends an occupation instruction to the audio source device B. After receiving the occupation instruction, the sound source device B may set the bluetooth connection with the audio output device to an inactive state. When the audio source equipment A finishes the audio service, a service finishing instruction can be sent to the audio output equipment, the audio output equipment stops processing the audio service of the audio source equipment A according to the service finishing instruction, a non-occupation instruction is sent to the audio source equipment B, and the audio source equipment B can set the Bluetooth connection with the audio output equipment to be in an activated state according to the non-occupation instruction.
Step 408, receiving a first service request corresponding to the second audio service sent by the second audio source device, in a case that the audio output device processes the first audio service of the first audio source device.
Step 410, according to the first service request, processing a target audio service of a target sound source device of the first sound source device and the second sound source device, and sending an occupation instruction to a non-target sound source device of the first sound source device and the second sound source device, where the occupation instruction is used to instruct the non-target sound source device to set a bluetooth connection with the audio output device to a non-activated state.
The first service request is sent by the second sound source device through the Bluetooth connection with the audio output device, wherein the second sound source device switches the Bluetooth connection with the audio output device from the inactive state to the active state when detecting the second audio service.
As an implementation manner, in a process that the audio output device is in the audio service of the first audio source device, if the second audio source device detects the second audio service, the bluetooth connection between the audio output device and the second audio source device may be directly switched from the inactive state to the active state, and the first service request is sent to the audio output device. The audio output device can compare the service priority corresponding to the first audio service with the service priority corresponding to the second audio service according to the first service request so as to determine a target audio source device and a non-target audio source device in the first audio source device and the second audio source device.
In another embodiment, the target audio source device and the non-target audio source device may be determined by the second audio source device. The first service request is sent by the second sound source equipment through the Bluetooth connection with the audio output equipment, wherein the Bluetooth connection with the audio output equipment is switched from the inactive state to the active state when the second audio source equipment detects the second audio service and the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service.
When the audio output device processes the first audio service of the first audio source device according to the second service request sent by the first audio source device, the audio output device can respectively send the service priority corresponding to the first audio service to each other audio source device, so that when the second audio source device detects the second audio service, the service priority corresponding to the first audio service is compared with the service priority corresponding to the second audio service. If the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service, switching the Bluetooth connection with the audio output equipment to an activated state, and seizing the audio output equipment; and if the service priority corresponding to the second audio service is not higher than the service priority corresponding to the first audio service, the Bluetooth connection is not activated, and the audio output equipment is not seized. And the audio output equipment receives the first service request sent by the second sound source equipment, namely, performs data transmission with the second sound source equipment, and in the scene, the target sound source equipment is the second sound source equipment, and the non-target sound source equipment is the first sound source equipment.
In some embodiments, the first audio service and the second audio service may both include any one of a call service and a multimedia audio playing service, the first service request may include any one of a call request and a multimedia audio playing request, and the audio data may include any one of multimedia audio data and voice data. The comparison result between the service priority corresponding to the first audio service and the service priority corresponding to the second audio service may include any one of the following cases:
in the first situation, the first sound source equipment carries out multimedia audio playing service, the second sound source equipment carries out conversation service, and the service priority corresponding to the multimedia audio playing service is lower than the service priority corresponding to the conversation service.
If the audio output device receives a call request sent by a second audio source device under the condition that the audio output device processes the multimedia audio playing service of the first audio source device, the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service, the target audio source device is the second audio source device, and the non-target audio source device is the first audio source device.
And in the second situation, the first sound source equipment carries out a call service, the second sound source equipment carries out a multimedia audio playing service, and the service priority corresponding to the multimedia audio playing service is lower than the service priority corresponding to the call service.
If the audio output device receives a multimedia audio playing request sent by a second audio source device under the condition that the audio output device processes the call service of the first audio source device, the service priority corresponding to the second audio service is lower than the service priority corresponding to the first audio service, the target audio source device is the first audio source device, and the non-target audio source device is the second audio source device.
And thirdly, the first sound source equipment performs the communication service, the second sound source equipment also performs the communication service, and a comparison result between the service priority corresponding to the first audio service and the service priority corresponding to the second audio service can be determined according to a preset first comparison rule.
Optionally, the first comparison rule may include: the service priority of the call service which is determined by the user to be answered later is higher than the service priority of the call service which is determined by the user to be answered earlier. For example, if the audio output device receives a call request sent by a second audio source device when the audio output device handles a call service of a first audio source device, the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service, the target audio source device is the second audio source device, and the non-target audio source device is the first audio source device.
In the process that the audio output device processes the call service of the first sound source device, that is, the user is currently answering the call of the first sound source device, the second sound source device detects the call service, the user performs an answering operation on the second sound source device, and determines to answer the call of the second sound source device, then the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service.
Optionally, the first comparison rule may include: and determining a comparison result according to the preemption operation triggered by the user. If a call request and a preemption instruction sent by a second sound source device are received under the condition that the audio output device processes the call service of the first sound source device, the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service, a target sound source device is the second sound source device, a non-target sound source device is the first sound source device, wherein the preemption instruction is generated by the audio output device or the second audio output device according to triggered preemption operation.
In the process of carrying out voice data transmission between the audio output device and the first sound source device, namely, a user is currently answering the call of the first sound source device, the second sound source device detects the call service, and the user carries out answering operation on the second sound source device, so that whether the audio output device or the second audio output device is preempted or not can be further selected. For example, the second audio output device may display a preemption control in addition to the answering control on the call interface, and if the user simultaneously triggers the answering control and the preemption control, the audio output device detects preemption operation, and the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service. For another example, the second audio output device may display an answering control on the call interface, and after the user triggers the answering control, the second audio output device may perform a preset preemption operation on the audio output device (for example, double-clicking a left earphone in the earphone device, or long-pressing a right earphone in the earphone device, etc.), the audio output device detects the preemption operation, and the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service.
If the audio output device receives a call request sent by the second sound source device, but does not receive the preemption instruction within a preset time period, the second sound source device fails in preemption, the audio output device continues to process the call service of the first sound source device, the service priority corresponding to the second audio service is lower than the service priority corresponding to the first audio service, the target sound source device is the first sound source device, and the non-target sound source device is the second sound source device.
And if the first sound source equipment performs the multimedia audio playing service and the second sound source equipment also performs the multimedia audio playing service, determining a comparison result between the service priority corresponding to the first audio service and the service priority corresponding to the second audio service according to a preset second comparison rule.
Optionally, the second comparison rule may include: and determining a comparison result according to the priority of the application program for carrying out the multimedia audio playing service. For example, the application program of the second sound source device for performing the multimedia audio playing service is a video playing application, the application program of the first sound source device for performing the multimedia audio playing service is a music playing application, and the priority of the video playing application is greater than the priority of the music playing application, so that the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service.
Optionally, the second comparison rule may include: the service priority of the multimedia audio playing service performed later is higher than that of the multimedia audio playing service performed earlier. If the audio output device receives a multimedia audio playing request sent by a second audio source device under the condition that the audio output device and the first audio source device perform multimedia audio data transmission, the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service.
It should be noted that, the first comparison rule and the second comparison rule may be set according to actual requirements, which is not limited in the embodiment of the present application.
In some embodiments, when the second audio source device detects that there is a call service, if an answering instruction for the call service is detected, a call request is sent to the audio output device. The second sound source equipment detects the answering instruction, which indicates that the user confirms to answer the call service, and then sends a call request to the audio output equipment, so that the condition that the normal use of the audio output equipment by the first sound source equipment is influenced due to the fact that the audio output equipment is seized by mistake can be avoided. Furthermore, only when the second sound source device detects the answering instruction for the call service, the second sound source device or the audio output device performs service priority comparison, so that power loss can be reduced.
In some embodiments, when the second sound source device detects that there is a multimedia audio playing service, if it is determined that the multimedia audio data to be output is not the cue audio data, a multimedia audio playing request is sent to the audio output device. If the multimedia audio data to be output is prompt audio data (such as short message prompt tone, etc.), the audio output device does not need to be preempted, so that the second sound source device sends a multimedia audio playing request to the audio output device only under the condition that the multimedia audio data is not the prompt audio data, and the condition that the audio output device is preempted by mistake to influence the normal use of the first sound source device on the audio output device can be avoided. Furthermore, only under the condition that the multimedia audio data is not the prompt audio data, the second sound source equipment or the audio output equipment carries out service priority comparison, and the power consumption loss can be reduced.
In some embodiments, the sending, by the audio output device, the occupation instruction to the non-target audio source device of the first audio source device and the second audio source device may include: sending an occupation instruction and a pause instruction to a non-target sound source device in the first sound source device and the second sound source device, so that the non-target sound source device sets the Bluetooth connection between the non-target sound source device and the audio output device to be in an inactive state according to the occupation instruction, and pauses the output of audio data according to the pause instruction; or sending an occupation instruction to the non-target sound source equipment in the first sound source equipment and the second sound source equipment, so that the non-target sound source equipment sets the Bluetooth connection between the non-target sound source equipment and the audio output equipment to be in a non-activated state according to the occupation instruction, and playing audio data through the loudspeaker.
When the non-target sound source equipment sets the Bluetooth connection with the audio output equipment to be in the inactive state according to the occupation instruction, the non-target sound source equipment can pause outputting audio data, for example, the non-target sound source equipment can pause a multimedia audio playing service, and the power consumption loss of the non-target sound source equipment can be reduced. The non-target sound source equipment can also play audio data through the loudspeaker, for example, voice data can be played through the loudspeaker, so that the audio data of the non-target sound source equipment can be prevented from being in a silent state, and the requirement that a user still thinks of hearing the non-target sound source equipment is met.
Step 412, if a service end instruction for instructing to end the target audio service is received, the service end instruction is sent to a non-target audio source device, and the non-occupied instruction is used for instructing the non-target audio source device to switch the bluetooth connection with the audio output device from the inactive state to the active state.
Step 414, processing the audio service of the non-target sound source device, and sending an occupation instruction to the target sound source device, so that the target sound source device sets the bluetooth connection with the audio output device to be in an inactive state.
When the target sound source equipment finishes the audio service, the audio output equipment can send a non-occupation instruction to the non-target sound source equipment, so that the non-target sound source equipment switches the Bluetooth connection between the non-target sound source equipment and the audio output equipment to an activated state. The non-target sound source equipment can judge whether the current audio service is not finished, and if the current audio service is not finished (for example, the audio service is still in a call, the multimedia player is still playing multimedia audio and the like), a third service request can be sent to the audio output equipment through the activated Bluetooth connection, so that the audio data transmission is carried out with the audio output equipment. After the audio output device receives the third service request sent by the non-target sound source device, an occupation instruction can be sent to the target sound source device, so that the target sound source device sets the Bluetooth connection between the target sound source device and the audio output device to be in an inactive state.
Fig. 6A is a schematic diagram of an embodiment in which a non-target sound source device occupies an audio output device after the target sound source device finishes an audio service. As shown in fig. 6A, the audio output device can establish bluetooth connection with the audio source device a and the audio source device B, respectively. In the process that the audio output equipment processes the audio service of the sound source equipment A, the sound source equipment B detects that the audio service exists, and the audio output equipment determines that the service priority of the audio service of the sound source equipment B is higher than that of the audio service of the sound source equipment A, then the audio output equipment processes the audio service of the sound source equipment B and simultaneously sends an occupation instruction to the sound source equipment A so that the sound source equipment A sets the Bluetooth connection to be in an inactive state. After the audio source equipment B finishes the audio service, the audio output equipment sends a non-occupation instruction to the audio source equipment A so that the audio source equipment A sets the Bluetooth connection to be in an activated state, and if the audio service before the audio source equipment A is not finished, a service request can be sent to the audio output equipment. And the audio output equipment continues to process the audio service of the sound source equipment A according to the service request sent by the sound source equipment A and sends an occupation instruction to the sound source equipment B so that the sound source equipment B sets the Bluetooth connection to be in an inactive state.
Fig. 6B is a schematic diagram of another embodiment of occupying an audio output device by a non-target audio source device after the target audio source device finishes the audio service. As shown in fig. 6B, the audio output device can establish bluetooth connection with the audio source device a and the audio source device B, respectively. In the process that the audio output equipment processes the audio service of the sound source equipment A, the sound source equipment B detects that the audio service exists, and the sound source equipment B determines that the service priority of the audio service of the sound source equipment B is higher than that of the audio service of the sound source equipment A, then the Bluetooth connection is activated, and a service request is sent to the audio output equipment. And the audio output equipment processes the audio service of the sound source equipment B according to the service request sent by the sound source equipment B, and simultaneously sends an occupation instruction to the sound source equipment A so that the sound source equipment A sets the Bluetooth connection to be in an inactive state. After the audio source equipment B finishes the audio service, the audio output equipment sends a non-occupation instruction to the audio source equipment A so that the audio source equipment A sets the Bluetooth connection to be in an activated state, and if the audio service before the audio source equipment A is not finished, a service request can be sent to the audio output equipment. And the audio output equipment continues to process the audio service of the sound source equipment A according to the service request sent by the sound source equipment A and sends an occupation instruction to the sound source equipment B so that the sound source equipment B sets the Bluetooth connection to be in an inactive state.
After the audio output equipment completes the audio service of the target sound source equipment, the audio output equipment can be quickly switched to the non-target sound source equipment to process the audio service of the non-target sound source equipment, and the use requirements of users on the audio output equipment under different scenes are met.
It should be noted that fig. 5, fig. 6A, and fig. 6B only show the case that the audio output device establishes bluetooth connection with two audio source devices, and the audio output device may establish bluetooth connection with more audio source devices (e.g., 3 or 4 audio source devices), and perform service preemption by using the audio service processing method provided in this application.
In the embodiment of the application, when the audio output device processes the audio service of any sound source device, the bluetooth connections between other sound source devices and the audio output device are all in the inactive state, so that adverse effects generated when the audio output device processes the audio service can be avoided. When the sound source equipment needs to seize the audio output equipment, the audio output equipment does not need to be reconnected, the audio output equipment can be seized more quickly and conveniently, and the efficiency of using the audio output equipment by switching different sound source equipment is higher. In addition, whether the audio output equipment is successfully seized or not is determined based on the service priority, so that the audio service processed by the audio output equipment is more suitable for the user requirements, and the user experience is improved.
As shown in fig. 7, in an embodiment, an audio service processing method is provided, which can be applied to the second audio source device. The method can comprise the following steps:
step 710, when the second audio service is detected, sending a first service request corresponding to the second audio service to the audio output device.
In one embodiment, before step 710, the method further includes: and receiving an occupation instruction sent by the audio output equipment, wherein the occupation instruction is sent when the audio output equipment starts to process the first audio service of the first audio source equipment. Step 710, comprising: and when the second audio service is detected, switching the Bluetooth connection between the audio output equipment and the audio output equipment from the inactive state to the active state, and sending a first service request corresponding to the second audio service to the audio output equipment. Wherein the active state refers to a state capable of transmitting information to the audio output device through a bluetooth connection with the audio output device.
In one embodiment, step 710 includes: when a call service is detected, if an answering instruction aiming at the call service is detected, sending a call request to audio output equipment; and/or when the multimedia audio playing service is detected, if the multimedia audio data to be output is determined not to be the prompt audio data, sending a multimedia audio playing request to the audio output equipment.
Step 720, if an occupation instruction sent by the audio output device is received, setting the bluetooth connection with the audio output device to be in an inactive state. The occupation instruction is sent when the audio output device receives a first service request in the process of processing a first audio service of the first audio source device and determines that the service priority corresponding to the second audio service is lower than the service priority corresponding to the first audio service.
Wherein the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained, but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
In one embodiment, after step 720, the method further comprises: pausing outputting audio data corresponding to the audio service according to a pause instruction sent by the audio output equipment; or playing the audio data corresponding to the audio service through a loudspeaker.
In one embodiment, after step 720, the method further comprises: receiving a non-occupation instruction sent by audio output equipment, wherein the non-occupation instruction is sent when the audio output equipment stops processing a first audio service of first audio source equipment; switching the Bluetooth connection between the audio output device and the Bluetooth module from an inactive state to an active state according to the non-occupation instruction; and if the second audio service is not completed, transmitting audio data corresponding to the second audio service with the audio output equipment.
It should be noted that, for the description of the audio service processing method applied to the second sound source device provided in this embodiment, reference may be made to the relevant description of the audio service processing method applied to the audio output device provided in the foregoing embodiments, and repeated description is not repeated here.
In this embodiment of the application, when the audio output device processes the audio service of the first sound source device, the second sound source device sets the bluetooth connection with the audio output device to the inactive state, which does not affect the use of the audio output device by the first sound source device, and when the second sound source device needs to preempt the audio output device, the second sound source device does not need to reconnect with the audio output device, thereby improving the efficiency of preempting the audio output device. In addition, the audio output device can judge whether the second sound source device can successfully seize the audio output device according to the respective service priority of the first audio service and the second audio service, so that the audio service processed by the audio output device is more suitable for the user requirements.
As shown in fig. 8, in one embodiment, an audio service processing method is provided, which can be applied to the second audio source device. The method can comprise the following steps:
step 810, receiving a service priority corresponding to the first audio service of the first audio source device sent by the audio output device. The service priority corresponding to the first audio service is sent by the audio output device when the first audio service of the first audio source device is processed.
Step 820, if the second audio source device detects the second audio service and determines that the service priority corresponding to the first audio service is lower than the service priority corresponding to the second audio service, sending a first service request corresponding to the second audio service to the audio output device, so that the audio output device sends an occupation instruction to the first audio source device, where the occupation instruction is used to instruct the first audio source device to set the bluetooth connection with the audio output device to an inactive state.
Wherein the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained, but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
In one embodiment, before step 820, further comprising: receiving an occupation instruction sent by audio output equipment, wherein the occupation instruction is sent by the audio output equipment when the audio output equipment processes a first audio service of first sound source equipment; and setting the Bluetooth connection with the audio output equipment to be in an inactive state according to the occupation instruction. The step of sending a first service request corresponding to a second audio service to an audio output device includes: and switching the Bluetooth connection between the audio output equipment and the audio output equipment from an inactive state to an active state, and sending a first service request corresponding to the second audio service to the audio output equipment.
In one embodiment, step 820 includes: when a call service is detected, if an answering instruction aiming at the call service is detected and the service priority corresponding to the first audio service is lower than the service priority corresponding to the second audio service, sending a call request to audio output equipment; and/or when a multimedia audio playing service is detected, if the multimedia audio data to be output is determined not to be the prompt audio data and the service priority corresponding to the first audio service is lower than the service priority corresponding to the second audio service, sending a multimedia audio playing request to the audio output equipment.
Wherein the active state refers to a state capable of transmitting information to the audio output device through a bluetooth connection with the audio output device.
In one embodiment, step 820 includes: when a call service is detected, if the first sound source equipment performs a multimedia audio playing service, determining that the service priority corresponding to the first audio service is lower than the service priority corresponding to the second audio service.
In one embodiment, step 820 includes: when a call service is detected, if the first sound source equipment carries out the call service, determining that the service priority corresponding to the first audio service is lower than the service priority corresponding to the second audio service.
In one embodiment, step 820 includes: when a call service is detected, if the first sound source equipment carries out the call service and acquires the preemption instruction, determining that the service priority corresponding to the first audio service is lower than the service priority corresponding to the second audio service. Wherein, the preemption instruction is sent when the audio output equipment detects the preemption operation; or, the preemption instruction is obtained when the second sound source device detects the preemption operation.
In one embodiment, step 820 includes: when a multimedia audio playing service is detected, if the first sound source equipment carries out a call service, the service priority corresponding to the first audio service is determined to be higher than the service priority corresponding to the second audio service.
And 830, transmitting audio data corresponding to the second audio service with the audio output device.
In one embodiment, after step 830, further comprising: and when the second audio service is finished, sending a service ending instruction to the audio output equipment so that the audio output equipment sends a non-occupation instruction to the first sound source equipment, wherein the non-occupation instruction is used for indicating the first sound source equipment to switch the Bluetooth connection setting between the first sound source equipment and the audio output equipment from the non-activated state to the activated state.
In one embodiment, after the step of detecting the second audio service by the second audio source device, the method further includes: and if the service priority corresponding to the first audio service is higher than the service priority corresponding to the second audio service, the Bluetooth connection between the Bluetooth device and the audio output equipment is kept in a non-activated state, and audio data corresponding to the audio service is played or audio data corresponding to the audio service is not played through a loudspeaker.
In one embodiment, after the second audio source device receives the occupation instruction sent by the audio output device, and before the second audio service is detected, the method further includes: and if a non-occupation instruction sent by the audio output equipment is received, switching the Bluetooth connection between the audio output equipment and the Bluetooth connection from a non-activated state to an activated state according to the non-occupation instruction, and deleting the service priority corresponding to the first audio service. The non-occupation instruction is sent when the audio output equipment receives a service ending instruction sent by the first sound source equipment.
After deleting the service priority corresponding to the first audio service, if the second audio source device detects that the second audio service exists, because the audio output device is in an idle state at the moment, the second audio source device can directly send a first service request corresponding to the second audio service to the audio output device, and the audio output device can process the second audio service of the first audio source device according to the first service request.
In this embodiment of the application, when the audio output device processes the audio service of the first sound source device, the second sound source device sets the bluetooth connection with the audio output device to the inactive state, which does not affect the use of the audio output device by the first sound source device, and when the second sound source device needs to preempt the audio output device, the second sound source device does not need to reconnect with the audio output device, thereby improving the efficiency of preempting the audio output device. In addition, the second sound source equipment can judge whether to seize the audio output equipment according to the respective service priority of the first audio service and the second audio service, so that the audio service processed by the audio output equipment is more suitable for the user requirements.
As shown in fig. 9, in an embodiment, an audio service processing apparatus 900 is provided, where the audio service processing apparatus 900 is applicable to the audio output device described above, the audio output device establishes a bluetooth connection with at least two audio source devices, and the at least two audio source devices include a first audio source device and a second audio source device. The audio service processing device 900 may include a request receiving module 910 and an instruction sending module 920.
The request receiving module 910 is configured to receive a first service request corresponding to a second audio service sent by a second audio source device, where the first audio source device processes a first audio service of a first audio source device.
And the instruction sending module 920 is configured to process a target audio service of a target sound source device in the first sound source device and the second sound source device according to the first service request, and send an occupation instruction to a non-target sound source device in the first sound source device and the second sound source device, where the occupation instruction is used to instruct the non-target sound source device to set a bluetooth connection with the audio output device to a non-activated state.
The target sound source equipment and the non-target sound source equipment are determined by audio output equipment or second sound source equipment according to the service priority relation between the first audio service and the second audio service; the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained, but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
In one embodiment, the audio service processing device 900 further comprises a comparison module.
And the comparison module is used for comparing the service priority corresponding to the second audio service with the service priority corresponding to the first audio service according to the first service request, and determining target sound source equipment and non-target sound source equipment in the first sound source equipment and the second sound source equipment according to the comparison result.
In the embodiment of the application, when the audio source device needs to seize the audio output device, reconnection with the audio output device is not needed, so that the audio output device can be seized more quickly and conveniently, and the efficiency of processing the audio service by the audio output device is ensured. In addition, the audio output equipment can process corresponding audio services based on the service priority, and the actual requirements of users are better met.
In an embodiment, the request receiving module 910 is further configured to receive a second service request corresponding to the first audio service, where the second service request is sent by the first audio source device.
The instruction sending module 920 is further configured to, if the audio output device does not perform audio data transmission with any sound source device, process the first audio service of the first sound source device according to the second service request, and send an occupation instruction to each of the other sound source devices, where the occupation instruction is used to instruct the other sound source devices to set the bluetooth connection with the audio output device to an inactive state. The other sound source equipment is sound source equipment except the first sound source equipment in the at least two sound source equipment.
In an embodiment, the instruction sending module 920 is further configured to, after sending the occupation instruction to each of the other sound source devices, if a service end instruction sent by the first sound source device and used to instruct to end the first audio service is received, send a non-occupation instruction to each of the other sound source devices according to the service end instruction, where the non-occupation instruction is used to instruct the other sound source devices to switch the bluetooth connection with the audio output device from the non-activated state to the activated state.
In one embodiment, the first service request is sent by the second audio source device through the bluetooth connection with the audio output device, and the bluetooth connection with the audio output device is switched from the inactive state to the active state when the second audio source device detects the second audio service; wherein the active state refers to a state capable of transmitting information to the audio output device through a bluetooth connection with the audio output device.
In one embodiment, the first service request is sent by the second audio source device through the bluetooth connection with the audio output device when the second audio source device detects the second audio service and the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service, and the bluetooth connection with the audio output device is switched from the inactive state to the active state; the target sound source equipment is second sound source equipment, and the non-target sound source equipment is first sound source equipment.
In one embodiment, the audio service processing device 900 further includes an information transmission module.
And the information sending module is used for respectively sending the service priority corresponding to the first audio service to each other audio source equipment after the audio output equipment starts to process the first audio service of the first audio source equipment, so that the second audio source equipment compares the service priority corresponding to the first audio service with the service priority corresponding to the second audio service when detecting the second audio service.
In one embodiment, the instruction sending module 920 is further configured to send an occupation instruction and a pause instruction to a non-target sound source device of the first sound source device and the second sound source device, so that the non-target sound source device sets a bluetooth connection with the audio output device to be in an inactive state according to the occupation instruction, and pauses to output audio data according to the pause instruction; or sending an occupation instruction to the non-target sound source equipment in the first sound source equipment and the second sound source equipment, so that the non-target sound source equipment sets the Bluetooth connection between the non-target sound source equipment and the audio output equipment to be in a non-activated state according to the occupation instruction, and playing audio data through the loudspeaker.
In an embodiment, the instruction sending module 920 is further configured to, after sending the occupation instruction to the non-target sound source device, if a service end instruction sent by the target sound source device and used to instruct the target audio service to end is received, send a non-occupation instruction to the non-target sound source device according to the service end instruction, where the non-occupation instruction is used to instruct the non-target sound source device to switch the bluetooth connection with the audio output device from the inactive state to the active state.
In an embodiment, the instruction sending module 920 is further configured to process an audio service of a non-target audio source device, and send the occupation instruction to the target audio source device, so that the target audio source device sets a bluetooth connection with the audio output device to be in an inactive state.
In one embodiment, the audio service includes any one of a multimedia audio playing service and a call service; the first service request comprises any one of a call request and a multimedia audio playing request.
If the request receiving module 910 receives a call request sent by the second sound source device when the audio output device processes the multimedia audio playing service of the first sound source device, the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service, the target sound source device is the second sound source device, and the non-target sound source device is the first sound source device.
If the request receiving module 910 receives a multimedia audio playing request sent by a second audio source device when the audio output device processes the call service of the first audio source device, the service priority corresponding to the second audio source device is lower than the service priority corresponding to the first audio source device, the target audio source device is the first audio source device, and the non-target audio source device is the second audio source device.
In an embodiment, if the request receiving module 910 receives a call request sent by a second audio source device when the audio output device processes a call service of a first audio source device, a service priority corresponding to the second audio source device is higher than a service priority corresponding to the first audio source device, the target audio source device is the second audio source device, and the non-target audio source device is the first audio source device.
In an embodiment, if the request receiving module 910 receives a call request and a preemption instruction sent by a second audio source device when the audio output device processes a call service of a first audio source device, a service priority corresponding to the second audio source device is higher than a service priority corresponding to the first audio source device, a target audio source device is the second audio source device, a non-target audio source device is the first audio source device, and the preemption instruction is generated by the audio output device or the second audio output device according to a triggered preemption operation.
In the embodiment of the application, when the audio output device processes the audio service of any sound source device, the bluetooth connections between other sound source devices and the audio output device are all in the inactive state, so that adverse effects generated when the audio output device processes the audio service can be avoided. When the sound source equipment needs to seize the audio output equipment, the audio output equipment does not need to be reconnected, the audio output equipment can be seized more quickly and conveniently, and the efficiency of using the audio output equipment by switching different sound source equipment is higher. In addition, whether the audio output equipment is successfully seized or not is determined based on the service priority, so that the audio service processed by the audio output equipment is more suitable for the user requirements, and the user experience is improved.
As shown in fig. 10, in an embodiment, an audio service processing apparatus 1000 is provided, which is applicable to the second audio source device, where the second audio source device establishes a bluetooth connection with an audio output device, and the audio output device also establishes a bluetooth connection with at least the first audio source device. The audio service processing apparatus 1000 includes a request sending module 1010 and a status setting module 1020.
The request sending module 1010 is configured to send, to the audio output device, a first service request corresponding to the second audio service when the second audio service is detected.
A state setting module 1020, configured to set a bluetooth connection with the audio output device to an inactive state if an occupation instruction sent by the audio output device is received; the occupation instruction is sent when the audio output device receives a first service request in the process of processing a first audio service of the first audio source device and determines that the service priority corresponding to the second audio service is lower than the service priority corresponding to the first audio service.
Wherein the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained, but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
In one embodiment, the state setting module 1020 is further configured to receive, before the second audio service is detected, an occupation instruction sent by the audio output device, where the occupation instruction is sent when the audio output device starts to process the first audio service of the first audio source device; and setting the Bluetooth connection with the audio output equipment to be in an inactive state according to the occupation instruction.
The request sending module 1010 is further configured to, when the second audio service is detected, switch the bluetooth connection between the audio output device and the bluetooth connection through the state setting module 1020 to an active state, and send a first service request corresponding to the second audio service to the audio output device; wherein the active state refers to a state capable of transmitting information to the audio output device through a bluetooth connection with the audio output device.
In one embodiment, the request sending module 1010 is further configured to, when a call service is detected, send a call request to the audio output device if an answering instruction for the call service is detected; and/or when the multimedia audio playing service is detected, if the multimedia audio data to be output is determined not to be the prompt audio data, sending a multimedia audio playing request to the audio output equipment.
In one embodiment, the audio service processing device 1000 further comprises a data playing module.
A data playing module, configured to pause outputting audio data corresponding to the audio service according to a pause instruction sent by the audio output device after the state setting module 1020 sets the bluetooth connection with the audio output device to be in the inactive state; or playing the audio data corresponding to the audio service through a loudspeaker.
In one embodiment, the state setting module 1020 is further configured to receive a non-occupation instruction sent by the audio output device after setting the bluetooth connection with the audio output device to be in the inactive state, where the non-occupation instruction is sent by the audio output device when the audio output device stops processing the first audio service of the first audio source device; and switching the Bluetooth connection between the audio output device and the Bluetooth module from the inactive state to the active state according to the non-occupation instruction.
The data playing module is further configured to, after the state setting module 1020 switches the bluetooth connection with the audio output device from the inactive state to the active state, perform audio data transmission corresponding to the second audio service with the audio output device if the second audio service is not completed.
In this embodiment of the application, when the audio output device processes the audio service of the first sound source device, the second sound source device sets the bluetooth connection with the audio output device to the inactive state, which does not affect the use of the audio output device by the first sound source device, and when the second sound source device needs to preempt the audio output device, the second sound source device does not need to reconnect with the audio output device, thereby improving the efficiency of preempting the audio output device. In addition, the audio output device can judge whether the second sound source device can successfully seize the audio output device according to the respective service priority of the first audio service and the second audio service, so that the audio service processed by the audio output device is more suitable for the user requirements.
As shown in fig. 11, in an embodiment, an audio service processing apparatus 1100 is provided, which is applicable to the second audio source device, where the second audio source device establishes a bluetooth connection with an audio output device, and the audio output device also establishes a bluetooth connection with at least the first audio source device. The audio service processing apparatus 1100 may include a receiving module 1110, a request sending module 1120, and a data transmission module 1130.
The receiving module 1110 is configured to receive a service priority, which is sent by the audio output device and corresponds to a first audio service of the first audio source device, where the service priority corresponding to the first audio service is sent by the audio output device when the audio output device processes the first audio service of the first audio source device.
The request sending module 1120 is configured to send a first service request corresponding to the second audio service to the audio output device if the second audio service is detected by the second audio source device and it is determined that the service priority corresponding to the first audio service is lower than the service priority corresponding to the second audio service, so that the audio output device sends an occupation instruction to the first audio source device, where the occupation instruction is used to instruct the first audio source device to set the bluetooth connection with the audio output device to an inactive state.
The data transmission module 1130 is configured to perform audio data transmission corresponding to the second audio service with the audio output device.
Wherein the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained, but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
In one embodiment, the audio service processing device 1100 further comprises a status setting module.
The state setting module is used for receiving an occupation instruction sent by the audio output equipment before the second audio service is detected, wherein the occupation instruction is sent when the audio output equipment starts to process the first audio service of the first sound source equipment; and setting the Bluetooth connection with the audio output equipment to be in an inactive state according to the occupation instruction.
The state setting module is also used for switching the Bluetooth connection between the audio output equipment and the state setting module from an inactive state to an active state and sending a first service request corresponding to the second audio service to the audio output equipment; wherein the active state refers to a state capable of transmitting information to the audio output device through a bluetooth connection with the audio output device.
In one embodiment, the request sending module 1120 is further configured to send a service end instruction to the audio output device when the second audio service is completed, so that the audio output device sends a non-occupation instruction to the first audio source device, where the non-occupation instruction is used to instruct the first audio source device to switch the bluetooth connection setting with the audio output device from the non-active state to the active state.
In an embodiment, the request sending module 1120 is further configured to, when a call service is detected, send a call request to an audio output device if an answering instruction for the call service is detected and a service priority corresponding to a first audio service is lower than a service priority corresponding to a second audio service; and/or when a multimedia audio playing service is detected, if the multimedia audio data to be output is determined not to be the prompt audio data and the service priority corresponding to the first audio service is lower than the service priority corresponding to the second audio service, sending a multimedia audio playing request to the audio output equipment.
In an embodiment, the state setting module is further configured to, if the service priority corresponding to the first audio service is higher than the service priority corresponding to the second audio service, keep the bluetooth connection between the bluetooth connection and the audio output device in an inactive state, and play audio data corresponding to the audio service through the speaker or not play audio data corresponding to the audio service.
In this embodiment of the application, when the audio output device processes the audio service of the first sound source device, the second sound source device sets the bluetooth connection with the audio output device to the inactive state, which does not affect the use of the audio output device by the first sound source device, and when the second sound source device needs to preempt the audio output device, the second sound source device does not need to reconnect with the audio output device, thereby improving the efficiency of preempting the audio output device. In addition, the second sound source equipment can judge whether to seize the audio output equipment according to the respective service priority of the first audio service and the second audio service, so that the audio service processed by the audio output equipment is more suitable for the user requirements.
FIG. 12 is a block diagram showing the structure of an electronic apparatus according to an embodiment. As shown in fig. 12, electronic device 1200 may include one or more of the following components: a processor 1210, a memory 1220 coupled with the processor 1210, wherein the memory 1220 may store one or more computer programs, and the one or more computer programs may be configured to implement the audio service processing method applied to the audio output device as described in the embodiments above when executed by the one or more processors 1210.
Processor 1210 may include one or more processing cores. The processor 1210, using various interfaces and connections throughout the electronic device 1200, performs various functions and processes data of the electronic device 1200 by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1220, and invoking data stored in the memory 1220. Alternatively, the processor 1210 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1210 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 1210, but may be implemented by a communication chip.
The Memory 1220 may include a Random Access Memory (RAM) or a Read-Only Memory (ROM). The memory 1220 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1220 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like. The storage data area may also store data created by the electronic device 1200 in use, and the like.
The electronic device 1200 may further include a bluetooth module, which may be configured to provide bluetooth communication functions, establish bluetooth connections with other electronic devices, and perform bluetooth data transmission. The bluetooth module may support one or more bluetooth protocols such as classic bluetooth, BLE Audio, etc.), but is not limited thereto and may vary with the development of the bluetooth protocol.
It is understood that the electronic device 1200 may include more or less structural elements than those shown in the above structural block diagrams, for example, a power module, a physical button, a sensor, etc., and is not limited herein.
The embodiment of the application discloses an electronic device, which comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is enabled to realize the audio service processing method applied to the second sound source device, which is described in the above embodiments.
The embodiment of the application discloses a computer readable storage medium, which stores a computer program, wherein the computer program realizes the audio service processing method applied to the audio output device as described in the above embodiments when being executed by a processor.
The embodiment of the application discloses a computer readable storage medium, which stores a computer program, wherein the computer program, when executed by a processor, implements the audio service processing method applied to the second sound source device as described in the above embodiments.
The embodiment of the application discloses a computer program product, which comprises a non-transitory computer readable storage medium storing a computer program, and the computer program can be executed by a processor to realize the audio service processing method applied to the audio output device as described in the above embodiments.
The embodiment of the application discloses a computer program product, which comprises a non-transitory computer readable storage medium storing a computer program, and the computer program can be executed by a processor to realize the audio service processing method applied to the second audio source device as described in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a ROM, etc.
Any reference to memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory can include ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM can take many forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), Rambus Direct RAM (RDRAM), and Direct Rambus DRAM (DRDRAM).
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also appreciate that the embodiments described in this specification are all alternative embodiments and that the acts and modules involved are not necessarily required for this application.
In various embodiments of the present application, it should be understood that the size of the serial number of each process described above does not mean that the execution sequence is necessarily sequential, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The audio service processing method, the audio service processing apparatus, the electronic device, and the storage medium disclosed in the embodiments of the present application are described in detail above, and a specific example is applied in the description to explain the principles and implementations of the present application. Meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (28)

1. An audio service processing method is applied to an audio output device, the audio output device establishes a bluetooth connection with at least two audio source devices, the at least two audio source devices include a first audio source device and a second audio source device, and the method includes:
under the condition that the audio output equipment processes the first audio service of the first audio source equipment, receiving a first service request which is sent by the second audio source equipment and corresponds to the second audio service;
processing a target audio service of a target sound source device in the first sound source device and the second sound source device according to the first service request, and sending an occupation instruction to a non-target sound source device in the first sound source device and the second sound source device, wherein the occupation instruction is used for indicating the non-target sound source device to set a Bluetooth connection between the non-target sound source device and the audio output device to be in a non-activated state;
the audio output equipment or the second audio source equipment determines the target audio source equipment and the non-target audio source equipment according to the service priority relation between the first audio service and the second audio service; the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained, but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
2. The method of claim 1, wherein the processing a target audio service of a target audio source device of the first and second audio source devices and sending an occupation instruction to a non-target audio source device of the first and second audio source devices according to the first service request comprises:
comparing the service priority corresponding to the second audio service with the service priority corresponding to the first audio service according to the first service request, and determining target sound source equipment and non-target sound source equipment in the first sound source equipment and the second sound source equipment according to a comparison result;
and processing the target audio service of the target sound source equipment and sending an occupation instruction to the non-target sound source equipment.
3. The method according to claim 1, wherein before receiving the first service request sent by the second audio source device in the case of audio data transmission between the audio output device and the first audio source device, the method further comprises:
receiving a second service request which is sent by the first sound source equipment and corresponds to the first audio service;
and if the audio output equipment does not perform audio data transmission with any sound source equipment, processing the first audio service of the first sound source equipment according to the second service request, and respectively sending an occupation instruction to each other sound source equipment, wherein the occupation instruction is used for indicating the other sound source equipment to set the Bluetooth connection between the other sound source equipment and the audio output equipment to be in an inactive state, and the other sound source equipment is the sound source equipment except the first sound source equipment in the at least two sound source equipment.
4. The method of claim 3, wherein the first service request is sent by the second audio source device through a Bluetooth connection with the audio output device after the second audio service is detected and the Bluetooth connection with the audio output device is switched from the inactive state to the active state;
wherein the active state refers to a state in which information can be transmitted to the audio output device through a Bluetooth connection with the audio output device.
5. The method of claim 3, wherein the first service request is sent by the second audio source device through a Bluetooth connection with the audio output device after the second audio source device detects the second audio service and the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service, and the Bluetooth connection with the audio output device is switched from the inactive state to the active state;
the target sound source equipment is the second sound source equipment, and the non-target sound source equipment is the first sound source equipment.
6. The method of claim 5, wherein after processing the first audio service of the first audio source device according to the second service request, the method further comprises:
and respectively sending the service priority corresponding to the first audio service to other audio source equipment, so that the second audio source equipment compares the service priority corresponding to the second audio service with the service priority corresponding to the first audio service when detecting the second audio service.
7. The method of claim 3, wherein after the sending the occupation instruction to each of the other audio source devices, the method further comprises:
and if a service ending instruction which is sent by the first sound source equipment and used for indicating to end the first audio service is received, respectively sending non-occupation instructions to other sound source equipment according to the service ending instruction, wherein the non-occupation instructions are used for indicating the other sound source equipment to switch the Bluetooth connection between the other sound source equipment and the audio output equipment from the non-activated state to the activated state.
8. The method according to any one of claims 1 to 6, wherein after the processing of the target audio service of the target audio source device of the first and second audio source devices and the sending of the occupation instruction to the non-target audio source device of the first and second audio source devices, the method further comprises:
and if a service ending instruction which is sent by the target sound source equipment and used for indicating to end the target audio service is received, sending a non-occupation instruction to the non-target sound source equipment according to the service ending instruction, wherein the non-occupation instruction is used for indicating the non-target sound source equipment to switch the Bluetooth connection between the non-target sound source equipment and the audio output equipment from the non-activated state to the activated state.
9. The method of claim 8, wherein after sending the non-occupation instruction to the non-target audio source device according to the end-of-service instruction, the method further comprises:
and processing the audio service of the non-target sound source equipment, and sending the occupation instruction to the target sound source equipment so as to enable the target sound source equipment to set the Bluetooth connection between the target sound source equipment and the audio output equipment to be in an inactive state.
10. The method according to any one of claims 1 to 6, wherein the sending the occupation instruction to the non-target sound source device of the first sound source device and the second sound source device comprises:
sending an occupation instruction and a pause instruction to a non-target sound source device in the first sound source device and the second sound source device, so that the non-target sound source device sets the Bluetooth connection between the non-target sound source device and the audio output device to be in an inactive state according to the occupation instruction, and pausing to output audio data according to the pause instruction; or the like, or, alternatively,
and sending an occupation instruction to the non-target sound source equipment in the first sound source equipment and the second sound source equipment, so that the non-target sound source equipment sets the Bluetooth connection between the non-target sound source equipment and the audio output equipment to be in a non-activated state according to the occupation instruction, and plays audio data through a loudspeaker.
11. The method according to any one of claims 1 to 7, wherein the audio service includes any one of a multimedia audio playing service and a call service; the first service request comprises any one of a call request and a multimedia audio playing request;
if a call request sent by the second audio source device is received under the condition that the audio output device processes the multimedia audio playing service of the first audio source device, the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service, the target audio source device is the second audio source device, and the non-target audio source device is the first audio source device;
if a multimedia audio playing request sent by the second audio source device is received under the condition that the audio output device processes the call service of the first audio source device, the service priority corresponding to the second audio service is lower than the service priority corresponding to the first audio service, the target audio source device is the first audio source device, and the non-target audio source device is the second audio source device.
12. The method according to claim 11, wherein if a call request sent by the second audio source device is received when the audio output device handles a call service of the first audio source device, a service priority corresponding to the second audio service is higher than a service priority corresponding to the first audio service, the target audio source device is the second audio source device, and the non-target audio source device is the first audio source device; or the like, or, alternatively,
if a call request and a preemption instruction sent by the second audio source device are received under the condition that the audio output device processes the call service of the first audio source device, the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service, the target audio source device is the second audio source device, the non-target audio source device is the first audio source device, and the preemption instruction is generated by the audio output device or the second audio output device according to triggered preemption operation.
13. The method of claim 1, wherein the Bluetooth connection comprises a Bluetooth physical link and a service connection, the Bluetooth physical link comprises at least one of an asynchronous connectionless ACL physical link and a synchronous connection oriented SCO physical link, and the service connection comprises at least one of a Bluetooth Audio transport model Agreement A2DP connection and a hands free protocol HFP connection.
14. An audio service processing method is applied to a second sound source device, the second sound source device establishes a bluetooth connection with an audio output device, the audio output device also establishes a bluetooth connection with at least a first sound source device, and the method includes:
when a second audio service is detected, sending a first service request corresponding to the second audio service to the audio output equipment;
if an occupation instruction sent by the audio output equipment is received, setting the Bluetooth connection between the audio output equipment and the Bluetooth connection device in a non-activated state; the occupation instruction is sent when the audio output device receives the first service request in the process of processing the first audio service of the first audio source device and determines that the service priority corresponding to the second audio service is lower than the service priority corresponding to the first audio service;
wherein the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
15. The method of claim 14, wherein before sending the first service request corresponding to the second audio service to the audio output device when the second audio service is detected, the method further comprises:
receiving an occupation instruction sent by audio output equipment, wherein the occupation instruction is sent when the audio output equipment starts to process a first audio service of the first sound source equipment;
setting the Bluetooth connection between the audio output equipment and the Bluetooth module in an inactive state according to the occupation instruction;
when the second audio service is detected, sending a first service request corresponding to the second audio service to the audio output device includes:
when a second audio service is detected, switching the Bluetooth connection between the audio output equipment and the audio output equipment from the inactive state to an active state, and sending a first service request corresponding to the second audio service to the audio output equipment; wherein the active state refers to a state in which information can be transmitted to the audio output device through a bluetooth connection with the audio output device.
16. The method of claim 14, wherein after the setting the bluetooth connection with the audio output device to the inactive state, the method further comprises:
receiving a non-occupation instruction sent by the audio output device, wherein the non-occupation instruction is sent by the audio output device when the audio output device stops processing the first audio service of the first audio source device;
switching the Bluetooth connection between the audio output device and the Bluetooth module from the inactive state to an active state according to the non-occupation instruction;
and if the second audio service is not finished, transmitting audio data corresponding to the second audio service with the audio output equipment.
17. The method of claim 14, wherein after the setting the bluetooth connection to the audio output device to the inactive state, the method further comprises:
pausing outputting audio data corresponding to the audio service according to a pause instruction sent by the audio output equipment; or the like, or, alternatively,
and playing audio data corresponding to the audio service through a loudspeaker.
18. The method according to any one of claims 14 to 17, wherein the sending a first service request corresponding to a second audio service to the audio output device when the second audio service is detected comprises:
when a call service is detected, if an answering instruction aiming at the call service is detected, sending a call request to the audio output equipment; and/or the presence of a gas in the gas,
when a multimedia audio playing service is detected, if the multimedia audio data to be output is determined not to be the prompt audio data, a multimedia audio playing request is sent to the audio output equipment.
19. An audio service processing method is applied to a second sound source device, the second sound source device establishes a bluetooth connection with an audio output device, the audio output device also establishes a bluetooth connection with at least a first sound source device, and the method includes:
receiving a service priority corresponding to a first audio service of the first audio source device, which is sent by the audio output device, wherein the service priority corresponding to the first audio service is sent by the audio output device when the first audio service of the first audio source device is processed;
if the second audio source device detects a second audio service and determines that the service priority corresponding to the first audio service is lower than the service priority corresponding to the second audio service, sending a first service request corresponding to the second audio service to the audio output device so that the audio output device sends an occupation instruction to the first audio source device, wherein the occupation instruction is used for indicating the first audio source device to set the Bluetooth connection between the first audio source device and the audio output device to be in an inactive state;
audio data transmission corresponding to the second audio service is carried out with the audio output equipment;
wherein the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
20. The method of claim 19, wherein before the second audio source device detects the second audio service, the method further comprises:
receiving an occupation instruction sent by the audio output device, wherein the occupation instruction is sent by the audio output device when processing a first audio service of the first audio source device;
setting the Bluetooth connection between the audio output equipment and the Bluetooth module in an inactive state according to the occupation instruction;
the sending the first service request corresponding to the second audio service to the audio output device includes:
switching the Bluetooth connection between the audio output equipment and the audio output equipment from the inactive state to an active state, and sending a first service request corresponding to the second audio service to the audio output equipment; wherein the active state refers to a state in which information can be transmitted to the audio output device through a Bluetooth connection with the audio output device.
21. The method of claim 19, wherein after the audio data transmission corresponding to the second audio service with the audio output device, the method further comprises:
and when the second audio service is finished, sending a service ending instruction to the audio output equipment so that the audio output equipment sends a non-occupation instruction to the first sound source equipment, wherein the non-occupation instruction is used for indicating the first sound source equipment to switch the Bluetooth connection setting between the first sound source equipment and the audio output equipment from the non-activated state to the activated state.
22. The method of claim 19, wherein if the second audio source device detects a second audio service and determines that the service priority corresponding to the first audio service is lower than the service priority corresponding to the second audio service, sending a first service request corresponding to the second audio service to the audio output device comprises:
when a call service is detected, if an answering instruction aiming at the call service is detected and the service priority corresponding to the first audio service is lower than the service priority corresponding to the second audio service, sending a call request to the audio output equipment; and/or the presence of a gas in the gas,
when a multimedia audio playing service is detected, if it is determined that multimedia audio data to be output is not prompt audio data and the service priority corresponding to the first audio service is lower than the service priority corresponding to the second audio service, a multimedia audio playing request is sent to the audio output device.
23. The method according to any one of claims 19 to 22, wherein if the second audio source device detects the second audio service, the method further comprises:
if the service priority corresponding to the first audio service is higher than the service priority corresponding to the second audio service, the Bluetooth connection between the Bluetooth device and the audio output equipment is kept in an inactive state, and audio data corresponding to the second audio service is played through a loudspeaker or audio data corresponding to the second audio service is not played.
24. The utility model provides an audio frequency service processing apparatus which characterized in that is applied to audio output device, audio output device and at least two sound source equipment establish bluetooth and are connected, at least two sound source equipment include first sound source equipment and second sound source equipment, the device includes:
a request receiving module, configured to receive a first service request corresponding to a second audio service sent by the second audio source device, when the audio output device processes the first audio service of the first audio source device;
the instruction sending module is used for processing a target audio service of a target sound source device in the first sound source device and the second sound source device according to the first service request and sending an occupation instruction to a non-target sound source device in the first sound source device and the second sound source device, wherein the occupation instruction is used for indicating the non-target sound source device to set the Bluetooth connection between the non-target sound source device and the audio output device to be in a non-activated state;
the audio output equipment or the second audio source equipment determines the target audio source equipment and the non-target audio source equipment according to the service priority relation between the first audio service and the second audio service; the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained, but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
25. The utility model provides an audio service processing apparatus which characterized in that is applied to second sound source equipment, second sound source equipment establishes the bluetooth with audio output equipment and is connected, audio output equipment still establishes the bluetooth with first sound source equipment at least and is connected, the device includes:
the request sending module is used for sending a first service request corresponding to a second audio service to the audio output equipment when the second audio service is detected;
the state setting module is used for setting the Bluetooth connection between the audio output equipment and the state setting module as a non-activated state if an occupation instruction sent by the audio output equipment is received; the occupation instruction is sent when the audio output device receives the first service request in the process of processing the first audio service of the first audio source device and determines that the service priority corresponding to the second audio service is lower than the service priority corresponding to the first audio service;
wherein the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
26. The utility model provides an audio service processing apparatus which characterized in that is applied to second sound source equipment, second sound source equipment establishes the bluetooth with audio output equipment and is connected, audio output equipment still establishes the bluetooth with first sound source equipment at least and is connected, the device includes:
a receiving module, configured to receive a service priority, which is sent by the audio output device and corresponds to a first audio service of the first audio source device, where the service priority corresponding to the first audio service is sent by the audio output device when the first audio service of the first audio source device is processed;
a request sending module, configured to send a first service request corresponding to a second audio service to the audio output device if the second audio source device detects the second audio service and it is determined that a service priority corresponding to the first audio service is lower than a service priority corresponding to the second audio service, so that the audio output device sends an occupation instruction to the first audio source device, where the occupation instruction is used to instruct the first audio source device to set a bluetooth connection between the first audio source device and the audio output device to an inactive state;
the data transmission module is used for carrying out audio data transmission corresponding to the second audio service with the audio output equipment;
wherein the inactive state refers to a state in which a bluetooth connection with the audio output device is maintained but information cannot be transmitted to the audio output device through the bluetooth connection with the audio output device.
27. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and wherein the computer program, when executed by the processor, causes the processor to implement the method of any of claims 1-13 or 14-23.
28. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1 to 13 or 14 to 23.
CN202111408671.8A 2021-11-19 2021-11-19 Audio service processing method and device, electronic equipment and storage medium Pending CN114040373A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111408671.8A CN114040373A (en) 2021-11-19 2021-11-19 Audio service processing method and device, electronic equipment and storage medium
PCT/CN2022/110551 WO2023087793A1 (en) 2021-11-19 2022-08-05 Audio service processing method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111408671.8A CN114040373A (en) 2021-11-19 2021-11-19 Audio service processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114040373A true CN114040373A (en) 2022-02-11

Family

ID=80145453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111408671.8A Pending CN114040373A (en) 2021-11-19 2021-11-19 Audio service processing method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114040373A (en)
WO (1) WO2023087793A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088787A (en) * 2022-08-26 2023-05-09 荣耀终端有限公司 Audio stream processing method and related device
WO2023087793A1 (en) * 2021-11-19 2023-05-25 Oppo广东移动通信有限公司 Audio service processing method and apparatus, electronic device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112004173A (en) * 2020-08-27 2020-11-27 努比亚技术有限公司 Switching method of Bluetooth earphone, mobile terminal and computer readable storage medium
CN112399396A (en) * 2021-01-19 2021-02-23 深圳市汇顶科技股份有限公司 Bluetooth connection switching method, Bluetooth chip and Bluetooth device
CN113225693A (en) * 2019-04-18 2021-08-06 华为技术有限公司 Bluetooth connection method, equipment and system
CN113543101A (en) * 2021-07-09 2021-10-22 Oppo广东移动通信有限公司 Audio output method, Bluetooth device, mobile terminal and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340212A (en) * 2007-07-03 2009-01-07 艾威梯软件技术(北京)有限公司 Method, apparatus and system for triggering automatic switchover of Bluetooth connecting device by key pressing
CN109257500B (en) * 2018-09-30 2021-06-15 Oppo广东移动通信有限公司 Audio playing method and device, electronic equipment and storage medium
CN114040373A (en) * 2021-11-19 2022-02-11 Oppo广东移动通信有限公司 Audio service processing method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225693A (en) * 2019-04-18 2021-08-06 华为技术有限公司 Bluetooth connection method, equipment and system
CN112004173A (en) * 2020-08-27 2020-11-27 努比亚技术有限公司 Switching method of Bluetooth earphone, mobile terminal and computer readable storage medium
CN112399396A (en) * 2021-01-19 2021-02-23 深圳市汇顶科技股份有限公司 Bluetooth connection switching method, Bluetooth chip and Bluetooth device
CN113543101A (en) * 2021-07-09 2021-10-22 Oppo广东移动通信有限公司 Audio output method, Bluetooth device, mobile terminal and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023087793A1 (en) * 2021-11-19 2023-05-25 Oppo广东移动通信有限公司 Audio service processing method and apparatus, electronic device, and storage medium
CN116088787A (en) * 2022-08-26 2023-05-09 荣耀终端有限公司 Audio stream processing method and related device
CN116088787B (en) * 2022-08-26 2023-11-28 荣耀终端有限公司 Audio stream processing method and related device

Also Published As

Publication number Publication date
WO2023087793A1 (en) 2023-05-25

Similar Documents

Publication Publication Date Title
US11812485B2 (en) Bluetooth communication method and terminal
WO2019090726A1 (en) Method for selecting bluetooth device, terminal, and system
US20100048133A1 (en) Audio data flow input/output method and system
CN109151212B (en) Equipment control method and device and electronic equipment
WO2023087793A1 (en) Audio service processing method and apparatus, electronic device, and storage medium
US20230325145A1 (en) Audio Control System
CN115190197B (en) Bluetooth headset-based communication method and device and storage medium
CN111556439A (en) Terminal connection control method, terminal and computer storage medium
CN110602683B (en) Bluetooth control method, device, mobile terminal and storage medium
US20120021729A1 (en) Application Audio Announcements Using Wireless Protocols
CN110337825A (en) Business switch method and device
CN115776662A (en) Bluetooth connection method, device, earphone device and computer readable storage medium
WO2023045784A1 (en) Call control method and apparatus, and electronic device and computer-readable storage medium
CN108429849A (en) Processing method, device and the equipment of data service
CN113271385B (en) Call forwarding method
CN116320859A (en) State control method and device of earphone device, earphone device and storage medium
CN115696283A (en) Audio control method, electronic device, audio device, and storage medium
WO2023109282A1 (en) Incoming call processing method and apparatus, electronic device, and storage medium
CN116744244B (en) Communication method, storage medium and electronic equipment
WO2022228569A1 (en) Method and apparatus for bluetooth device to control transmission and electronic device
WO2024060750A1 (en) Bluetooth switching method and apparatus, bluetooth connection method and apparatus, and electronic device
WO2023045800A1 (en) Call control method and apparatus, electronic device, and computer-readable storage medium
CN116321084A (en) Bluetooth communication method, bluetooth communication device, electronic equipment and computer readable medium
CN116567856A (en) Connection prompting method, device, electronic equipment and storage medium
CN114615589A (en) Volume control method of wireless earphone and wireless earphone

Legal Events

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