WO2023087793A1 - 音频业务处理方法、装置、电子设备及存储介质 - Google Patents

音频业务处理方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2023087793A1
WO2023087793A1 PCT/CN2022/110551 CN2022110551W WO2023087793A1 WO 2023087793 A1 WO2023087793 A1 WO 2023087793A1 CN 2022110551 W CN2022110551 W CN 2022110551W WO 2023087793 A1 WO2023087793 A1 WO 2023087793A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
service
source device
output device
audio output
Prior art date
Application number
PCT/CN2022/110551
Other languages
English (en)
French (fr)
Inventor
包建全
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023087793A1 publication Critical patent/WO2023087793A1/zh

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

Definitions

  • the present application relates to the technical field of communications, and in particular to an audio service processing method, device, electronic equipment, and storage medium.
  • Bluetooth is a radio technology that supports short-distance communication between devices. It can realize wireless information exchange between multiple electronic devices that support Bluetooth transmission, making data transmission between electronic devices faster and more efficient.
  • electronic devices on the market that can support the establishment of Bluetooth connections with multiple other electronic devices at the same time, and support the "one-to-many" Bluetooth connection function.
  • For electronic devices that support "one-to-many” support how to more reasonably and quickly process services of other connected electronic devices has become an urgent problem to be solved.
  • the embodiment of the present application discloses an audio service processing method, device, electronic equipment and storage medium.
  • the embodiment of the present application discloses an audio service processing method, which is applied to an audio output device, and 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 device, the method comprising:
  • the audio output device processes the first audio service of the first sound source device, receiving the first service request corresponding to the second audio service sent by the second sound source device;
  • the first service request process the target audio service of the target sound source device in the first sound source device and the second sound source device, and send it to the non-target sound source device in the first sound source device and the second sound source device
  • An occupation instruction is used to instruct the non-target audio source device to set the Bluetooth connection with the audio output device to an inactive state
  • the target audio source device and the non-target audio source device are determined by the audio output device or the second audio source device according to the service priority relationship between the first audio service and the second audio service;
  • the inactive state refers to a state in which the Bluetooth connection with the audio output device is maintained, but information cannot be sent to the audio output device through the Bluetooth connection with the audio output device.
  • the embodiment of the present application discloses an audio service processing method, which is applied to a second audio source device.
  • 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 methods include:
  • the Bluetooth connection with the audio output device is set to an inactive state; the occupation instruction is that the audio output device is processing the first sound source device It is sent when the first service request is received during the process of the first audio service and it is determined that the service priority corresponding to the second audio service is lower than the service priority corresponding to the first audio service;
  • the inactive state refers to a state in which the Bluetooth connection with the audio output device is maintained, but information cannot be sent to the audio output device through the Bluetooth connection with the audio output device.
  • the embodiment of the present application discloses an audio service processing method, which is applied to a second audio source device.
  • 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 methods include:
  • 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, then send a message to the audio output device and A first service request corresponding to the second audio service, so that the audio output device sends an occupation instruction to the first sound source device, and the occupation instruction is used to indicate that the first audio source device will communicate with the audio output device.
  • the Bluetooth connection between the devices is set to inactive;
  • the inactive state refers to a state in which the Bluetooth connection with the audio output device is maintained, but information cannot be sent to the audio output device through the Bluetooth connection with the audio output device.
  • the embodiment of the present application discloses an audio service processing device, which is applied to an audio output device, and 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 equipment, said means comprising:
  • a request receiving module configured to receive the first service request corresponding to the second audio service sent by the second sound source device when the audio output device processes the first audio service of the first sound source device;
  • An instruction sending module configured to process the target audio service of the target audio source device in the first audio source device and the second audio source device according to the first service request, and send the audio service to the first audio source device and the second audio source device
  • the non-target audio source device sends an occupation instruction, and the occupation instruction is used to instruct the non-target audio source device to set the Bluetooth connection with the audio output device to an inactive state
  • the target audio source device and the non-target audio source device are determined by the audio output device or the second audio source device according to the service priority relationship between the first audio service and the second audio service;
  • the inactive state refers to a state in which the Bluetooth connection with the audio output device is maintained, but information cannot be sent to the audio output device through the Bluetooth connection with the audio output device.
  • the embodiment of the present application discloses an audio service processing device, which is applied to a second audio source device.
  • 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 devices include:
  • a request sending module configured to send a first service request corresponding to the second audio service to the audio output device when a second audio service is detected;
  • a state setting module configured to set the Bluetooth connection with the audio output device to an inactive state if the occupation instruction sent by the audio output device is received; the occupation instruction is processed by the audio output device When the first audio service of the first sound source device receives the first service request and determines that the service priority corresponding to the second audio service is lower than the service priority corresponding to the first audio service sent;
  • the inactive state refers to a state in which the Bluetooth connection with the audio output device is maintained, but information cannot be sent to the audio output device through the Bluetooth connection with the audio output device.
  • the embodiment of the present application discloses an audio service processing device, which is applied to a second audio source device.
  • 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 devices include:
  • the receiving module is configured to receive the service priority corresponding to the first audio service of the first audio source device sent by the audio output device, and the service priority corresponding to the first audio service is processed by the audio output device The first audio service of the first audio source device is sent;
  • a request sending module configured to send a request to the second audio service 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.
  • the audio output device sends a first service request corresponding to the second audio service, so that the audio output device sends an occupation instruction to the first sound source device, and the occupation instruction is used to instruct the first audio source device Set the bluetooth connection with the audio output device to an inactive state;
  • a data transmission module configured to transmit audio data corresponding to the second audio service with the audio output device
  • the inactive state refers to a state in which the Bluetooth connection with the audio output device is maintained, but information cannot be sent to the audio output device through the Bluetooth connection with the audio output device.
  • the embodiment of the present application discloses an electronic device, which includes 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 method described above is implemented.
  • the embodiment of the present application discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, any one of the methods described above is implemented.
  • Fig. 1 is an application scenario diagram of an audio service processing method in an embodiment
  • Fig. 2 is a flowchart of an audio service processing method applied to an audio output device in an embodiment
  • FIG. 3A is a sequence interaction diagram of an audio service processing method in an embodiment
  • FIG. 3B is a sequence interaction diagram of an audio service processing method in another embodiment
  • FIG. 4 is a flowchart of an audio service processing method applied to an audio output device in another embodiment
  • FIG. 5 is a schematic diagram of an audio output device occupied by a sound source device A in an embodiment
  • FIG. 6A is a schematic diagram of a non-target audio source device occupying an audio output device after the target audio source device ends the audio service in one embodiment
  • FIG. 6B is a schematic diagram of a non-target audio source device occupying an audio output device after the target audio source device ends the audio service in another embodiment
  • FIG. 7 is a flowchart of an audio service processing method applied to a second audio source device in 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 device applied to an audio output device in an embodiment
  • Fig. 10 is a block diagram of an audio service processing device applied to a second audio source device in an embodiment
  • Fig. 11 is a block diagram of an audio service processing device applied to a second audio source device in another embodiment
  • Fig. 12 is a structural block diagram of an electronic device in one embodiment.
  • first, second and the like used in this application may be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element.
  • a first headset could be termed a second headset, and, similarly, a second headset could be termed a first headset, without departing from the scope of the present application.
  • Both the first earphone and the second earphone belong to earphones, but they are not the same earphone.
  • the term “plurality” and the like used in the embodiments of the present application refer to two or more.
  • Fig. 1 is an application scenario diagram of an audio service processing method in an embodiment.
  • the audio output device 10 may be a device that supports Bluetooth connection with at least two electronic devices at the same time, that is, the audio output device 10 may support the "one-to-many" function of Bluetooth.
  • the audio output device 10 may include but not limited to earphone devices, bluetooth speakers, players, etc., wherein the earphone devices may include but not limited to headphones, earphones, earphones and earphones, etc.
  • the audio output device 10 can be a wireless bluetooth headset, such as a true wireless stereo (True Wireless Stereo, TWS) bluetooth headset or the like.
  • the audio output device 10 can establish a Bluetooth connection with at least two sound source devices.
  • the second sound source device 30 may include but not limited to electronic devices such as wearable devices (such as bracelets, smart watches, smart glasses, etc.), vehicle terminals, mobile phones, tablet computers, notebook computers, PCs (Personal Computers, personal computers).
  • Establishing a Bluetooth connection between the audio output device 10 and the audio source device may include establishing a Bluetooth physical link and a service connection between the audio output device 10 and the audio source device.
  • the Bluetooth physical link may include physical links such as ACL (Asynchronous Connectionless, asynchronous connectionless), SCO (Synchronous Connection Oriented, synchronous oriented connection).
  • the service connection is a connection established on the basis of the Bluetooth physical link for transmitting audio service data, for example, A2DP (Advanced Audio Distribution Profile, Bluetooth audio transmission model protocol), HFP (Hands-free Profile, hands-free protocol), etc. , where the A2DP connection can be used to transmit multimedia audio data, and the HFP connection can be used to transmit voice data.
  • the audio output device 10 when the audio output device 10 performs data transmission with any audio source device, it needs to disconnect the service connection with other audio source devices (referring to audio source devices other than the audio source device for data transmission), When other audio source devices have audio services that need to be processed by the audio output device 10, it is necessary to re-establish a service connection with the audio output device 10 before audio data transmission. For example, when the audio output device 10 is transmitting audio data with the first sound source device 20 , it needs to disconnect the A2DP, HFP and other service connections with the second sound source device 20 .
  • the second sound source device 20 When the second sound source device 20 has audio services that need to be processed by the audio output device 10, it needs to re-establish A2DP, HFP and other service connections with the audio output device 10, and then perform audio data transmission with the audio output device 10, resulting in preempting the audio output device 10.
  • the speed is relatively slow, which affects the efficiency of the audio output device 10 in processing audio services.
  • an audio service processing method, device, electronic device, and storage medium are provided.
  • the audio source device can preempt the audio output device more quickly and conveniently, ensuring the efficiency of the audio output device in processing audio services, and processing
  • the audio service of the company is more suitable for user needs.
  • the audio output device 10 when the audio output device 10 is in an idle state, that is, when the audio output device 10 does not transmit audio data with any audio source device, if the first audio source device 20 detects the first audio service, it can send the audio The output device 10 sends a second service request corresponding to the first audio service, 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 can send an occupation instruction to other audio source devices (such as the second audio source device 30), and the occupation instruction is used to instruct other audio source devices to set the bluetooth connection with the audio output device to an inactive state, so that other audio sources
  • the device maintains a 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.
  • Other audio source devices do not need to disconnect the service connection with the audio output device 10 , nor will they affect the audio data transmission between the audio output device 10 and the first audio source device 20 .
  • the audio output device 10 when the audio output device 10 processes the first audio service of the first sound source device 20, if the second sound source device 30 detects the second audio service, it can send the second audio service to the audio output device 10.
  • the first service request corresponding to the service.
  • the audio output device 10 can process the target audio service of the target sound source device in the first sound source device 20 and the second sound source device 30 according to the first service request, and send an occupation instruction to the non-target sound source device, so that the non-target sound source device
  • the device sets the Bluetooth connection with the audio output device 10 to 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.
  • the non-target audio source device needs the audio output device 10 to process audio services next time, it does not need to reconnect with the audio output device 10 , and can preempt the audio output device 10 more quickly and conveniently.
  • FIG. 1 only shows the scene where the audio output device 10 establishes a Bluetooth connection with two audio source devices, that is, the scene where the audio output device 10 supports “one drag two" and the embodiment of the present application can also be applied Since the audio output device 10 supports different scenarios such as “one for one", “one for three", “one for four”..., the maximum number of Bluetooth connections specifically supported by the audio output device is not limited in this embodiment of the application.
  • an audio service processing method is provided, which can be applied to the above-mentioned audio output device, and the method may include the following steps:
  • Step 210 When the audio output device processes the first audio service of the first sound source device, receive the first service request corresponding to the second audio service sent by the second sound source device.
  • the audio output device can establish a bluetooth connection with at least two audio source devices.
  • other audio source devices except the first audio source device can be connected with the audio output device.
  • the Bluetooth connection between the devices is set to inactive.
  • the inactive state may refer to a state in which the Bluetooth connection with the audio output device is maintained, but information cannot be sent to the audio output device through the Bluetooth connection with the audio output device.
  • maintaining the Bluetooth connection between the other audio source device and the audio output device may mean that the other audio source device maintains the Bluetooth physical link and service connection with the audio output device.
  • the Bluetooth connection between the second sound source device and the audio output device may be in an inactive state.
  • the second sound source device detects that there is a second audio service that needs to be processed by the audio output device, it can activate the Bluetooth connection with the audio output device, and send the corresponding second audio service to the audio output device through the activated Bluetooth connection.
  • the audio output device after the audio output device receives the first service request sent by the second audio source device, it can obtain the audio service information corresponding to the second audio service according to the first service request.
  • the audio service information may include but not limited to One or more of the type of business, the type of audio data to be transmitted, etc., wherein the type of business can refer to the type of audio business, which can include multimedia audio playback services, call services, etc.; the type of audio data to be transmitted can refer to is the type of audio data that the second audio source device requires the audio output device to process, which may include multimedia audio data, voice data, and the like.
  • Step 220 process the target audio service of the target sound source device in the first sound source device and the second sound source device, and send an occupation instruction to the non-target sound source device in the first sound source device and the second sound source device,
  • the occupying instruction is used to instruct the non-target audio source device to set the Bluetooth connection with the audio output device to an inactive state.
  • the target sound source device and the non-target sound source device may be determined by the audio output device or the second sound source device according to the 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
  • 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 audio source device.
  • the occupation instruction can be used to notify the non-target audio source device that the audio output device is occupied and temporarily unable to process the audio services of the non-target audio source device.
  • the Bluetooth connection between audio output devices is set to inactive. When the Bluetooth connection is inactive, the audio management module (Audio module) in the non-target audio source device thinks that the audio output device is unavailable and cannot be connected through this Bluetooth. Send audio data to an audio output device.
  • the audio output device can prioritize audio services with higher service priorities. 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 device is the first audio source device, and the target audio service is the first audio service, and the non-target audio source device is the second audio source device; if the service priority corresponding to the first audio service is lower than the service priority corresponding to the second audio service, then the target audio source device is the second audio source device, and the target audio source device is the second audio source device. The service is the second audio service, and the non-target audio source device is the first audio source device.
  • 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.
  • the audio service information may include the service type, for example, the service priority of the call service may be set higher than that of the multimedia audio playback service; optionally, the audio service information may include the service start time, for example, it may be set The service priority of the call service with a later service start time is higher than the service priority of the call service with an earlier service start time; optionally, the audio service information may include the application program that triggers the audio service, and each application program in the audio source device
  • the triggered audio services can correspond to corresponding service priorities. For example, the service priority of audio services triggered by social applications can be set higher than that of audio services triggered by audio playback applications, but not limited to this.
  • the target audio source device and the non-target audio source device may be determined by the audio output device.
  • the second sound source device detects the second audio service, it can send the first service request corresponding to the second audio service to the audio output device, and the audio output device can send the service corresponding to the second audio service to the audio output device according to the first service request.
  • the priority is compared with the service priority corresponding to the first audio service, and a target sound source device and a non-target sound source device among the first sound source device and the second sound source device are determined according to the comparison result.
  • the audio output device can obtain the audio service information corresponding to the second audio service according to the first service request, and judge whether the service priority corresponding to the second audio service is higher than that of the second audio service according to the audio service information corresponding to the second audio service.
  • the service priority corresponding to the first audio service is to 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 device processes the second audio service and performs audio data transmission with the second audio source device; if the service corresponding to the second audio service If the priority is not higher than the service priority corresponding to the first audio service, the audio output device continues to process the first audio service, and transmits audio data with the first audio source device.
  • FIG. 3A is a sequence interaction diagram of an audio service processing method in an embodiment.
  • the audio output device can establish a Bluetooth connection with the audio source device A and the audio source device B respectively.
  • the audio source device A detects that there is an audio service, then the audio source device A can send a service request to the audio output device, the audio output device processes the audio service of the audio source device A, and sends an occupation command to the audio source device B .
  • the sound source device B receives the occupation instruction, it can set the Bluetooth connection with the audio output device to an inactive state. If the audio source device B detects that there is an audio service, it can activate the Bluetooth connection and send a service request to the audio output device.
  • the audio output device After the audio output device receives the service request sent by the sound source device B, it can determine 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 device B is higher than the service priority corresponding to the audio service of the sound source device A, the audio output device switches to process the audio service of the sound source device B, and sends an occupation instruction to the sound source device A, and the sound source device A sets the Bluetooth connection with the audio output device to an inactive state according to the occupying command, and the audio source device B successfully preempts the audio output device.
  • the audio output device continues to process the audio service of the sound source device A, and sends an occupation instruction to the sound source device B, and the sound source Device B sets the Bluetooth connection with the audio output device to an inactive state according to the occupying instruction, and the audio source device B fails to seize the audio output device.
  • the target sound source device and the non-target sound source device may be determined by the second sound source device.
  • the second audio source device detects the second audio service, it can compare the service priority of the second audio service with the service priority of the first audio service, if the service priority of the second audio service is higher than that of the first audio service If the service priority corresponds to the service, the first service request corresponding to the second audio service is sent to the audio output device. After receiving the first service request, the audio output device determines that the target sound source device is the second sound source device, and the non-target sound source device is the first sound source device.
  • FIG. 3B is a sequence interaction diagram of an audio service processing method in another embodiment.
  • the audio output device can establish a Bluetooth connection with the audio source device A and the audio source device B respectively.
  • the audio source device A detects that there is an audio service, then the audio source device A can send a service request to the audio output device, the audio output device processes the audio service of the audio source device A, and sends an occupation command to the audio source device B .
  • the sound source device B receives the occupation instruction, it can set the Bluetooth connection with the audio output device to an inactive state.
  • the sound source device B detects that there is an audio service, it can determine whether the service priority of its own audio service is higher than that of the audio service of the sound source device A. If the service priority of its own audio service is higher than that of the audio service of the audio source device A, the Bluetooth connection can be activated and a service request can be sent to the audio output device. After the audio output device receives the service request sent by the audio source device B, it can process the audio service of the audio source device B, and send an occupation command to the audio source device A, and the audio source device A will set up the Bluetooth connection with the audio output device according to the occupation command. In the inactive state, the audio source device B preempts the audio output device successfully. If the audio source device B determines that the service priority of its own audio service is not higher than the service priority of the audio service of the audio source device A, it does not activate the Bluetooth connection and does not preempt the audio output device.
  • the audio output device when the audio source device needs to preempt the audio output device, there is no need to reconnect with the audio output device, and the audio output device can be preempted more quickly and conveniently, ensuring the efficiency of the audio output device in processing audio services.
  • the audio output device can process corresponding audio services based on service priority, which is more suitable for the actual needs of users.
  • an audio service processing method is provided, which can be applied to the above-mentioned audio output device, and the method may include the following steps:
  • Step 402 Receive 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 audio source device, process the first audio service of the first audio source device according to the second service request, and send occupation instructions to each other audio source equipment respectively, and the occupation instruction uses It is used to instruct other audio source devices to set the Bluetooth connection with the audio output device as inactive.
  • the audio output device When the audio output device is not transmitting audio data with any audio source device, the audio output device is in an idle state.
  • the Bluetooth connection between each audio source device and the audio output device can be in an active state, which means that the audio can be connected to the audio output device through the Bluetooth connection. Outputs the status of the device sending messages.
  • the first audio source device detects the first audio service, it can directly send the second service request corresponding to the first audio service to the audio output device through the Bluetooth connection, and preempt the audio output device. Since the audio output device is in an idle state, When receiving the second service request sent by the first sound source device, the first audio service of the first sound source device may be directly processed.
  • the first audio source device does not need to re-establish A2DP, HFP and other connections with the audio output device, nor does it need to activate the Bluetooth connection, which can increase the speed at which the first audio source device seizes the audio output device.
  • Step 406 If a service end instruction for instructing to end the first audio service sent by the first audio source device is received, send a non-occupancy instruction to each other audio source device according to the service end instruction, and the non-occupancy instruction is used to instruct other audio sources
  • the device switches the Bluetooth connection to the audio output device from inactive to active.
  • the first audio source device When the first audio source device ends the first audio service, it can send a service end instruction to the audio output device. For example, the first audio source device ends the voice call, stops playing music, etc., and the first audio source device stops sending audio data to the audio output device. After the audio output device receives the service end instruction sent by the first audio source device, the audio output device returns to the idle state, and can send non-occupancy instructions to each other audio source device respectively, so that other audio source devices will communicate with the audio output device.
  • the Bluetooth connection is switched from the inactive state to the active state, and the Bluetooth connections between each audio source device and the audio output device are all restored to the active state. This ensures that any audio source device does not need to reactivate the Bluetooth connection when it needs to occupy the audio output device.
  • FIG. 5 is a schematic diagram of an audio output device occupied by the audio source device A in an embodiment.
  • the audio output device can establish a Bluetooth connection with the audio source device A and the audio source device B respectively.
  • the audio source device A detects that there is an audio service, then the audio source device A can send a service request to the audio output device, the audio output device processes the audio service of the audio source device A, and sends an occupation command to the audio source device B .
  • the sound source device B receives the occupation instruction, it can set the Bluetooth connection with the audio output device to an inactive state.
  • the audio source device A When the audio source device A ends the audio service, it can send a service end instruction to the audio output device, and the audio output device stops processing the audio service of the audio source device A according to the service end instruction, and sends a non-occupancy instruction to the audio source device B, and the audio source device B can Set the Bluetooth connection with the audio output device to an active state according to the non-occupancy instruction.
  • Step 408 In the case that the audio output device processes the first audio service of the first sound source device, the first service request corresponding to the second audio service sent by the second sound source device is received.
  • Step 410 process the target audio service of the target sound source device in the first sound source device and the second sound source device, and send an occupation instruction to the non-target sound source device in the first sound source device and the second sound source device,
  • the occupying instruction is used to instruct the non-target audio source device to set the Bluetooth connection with the audio output device to an inactive state.
  • the first service request is that when the second sound source device detects the second audio service, it switches the bluetooth connection with the audio output device from the inactive state to the active state, and through the bluetooth connection with the audio output device sent.
  • the audio output device when the audio output device is in the audio service of the first sound source device, if the second sound source device detects the second audio service, it can directly change the Bluetooth connection with the audio output device from the inactive state to Switch to the active state, and send the first service request to the audio output device.
  • the audio output device can compare the service priority corresponding to the first audio service and the service priority corresponding to the second audio service according to the first service request, so as to determine the target sound source device and the non-target sound source device in the first sound source device and the second sound source device. target source device.
  • the target sound source device and the non-target sound source device may be determined by the second sound source device.
  • the first service request is that 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, it will connect the Bluetooth with the audio output device. Switches from inactive to active and is sent over a Bluetooth connection to an audio output device.
  • the audio output device may send the service priority corresponding to the first audio service to each other sound source device respectively, so as to
  • the second sound source device detects the second audio service, it compares the service priority corresponding to the first audio service with the service priority corresponding to the second audio service.
  • the Bluetooth connection will not be activated, and the audio output device will not be preempted.
  • the audio output device receives the first service request sent by the second audio source device, that is, performs data transmission with the second audio source device, then in this scenario, the target audio source device is the second audio source device, and the non-target audio source device is the first audio source device .
  • the above-mentioned first audio service and second audio service may include any one of call service and multimedia audio playback service, etc.
  • the first service request may include any of call request and multimedia audio playback request.
  • 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 of the following situations:
  • the first audio source device performs a multimedia audio playback service
  • the second audio source device performs a call service
  • the service priority corresponding to the multimedia audio playback service is lower than the service priority corresponding to the call service.
  • the audio output device processes the multimedia audio playback service of the first audio source device, and the audio output device receives a call request sent by the second audio source device, the service priority corresponding to the second audio service is higher than that corresponding to the first audio service.
  • the service priority of the target audio source device is the second audio source device, and the non-target audio source device is the first audio source device.
  • Case 2 The first audio source device performs a call service, and the second audio source device performs a multimedia audio playback service, and the service priority corresponding to the multimedia audio playback service is lower than the service priority corresponding to the call service.
  • the audio output device processes the call service of the first audio source device, and the audio output device receives a multimedia audio playback request sent by the second audio source device, the service priority corresponding to the second audio service is lower than that corresponding to the first audio service.
  • the service priority of the target audio source device is the first audio source device, and the non-target audio source device is the second audio source device.
  • the first comparison rule may include: the service priority of the call service that the user determines to answer later is higher than the service priority of the call service that the user determines to answer earlier. For example, if the audio output device processes the call service of the first sound source device, and the audio output device receives a call request sent by the second sound source device, the service priority corresponding to the second audio service is higher than that corresponding to the first audio service.
  • the service priority of the target audio source device is the second audio source device, and the non-target audio source device is the first audio source device.
  • the second sound source device detects the call service, and the user performs an answering operation on the second sound source device to confirm the answer
  • the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service.
  • the first comparison rule may include: determining a comparison result according to a user-triggered preemption operation. If the audio output device processes the call service of the first sound source device, and receives a call request and a preemption instruction sent by the second sound source device, the service priority corresponding to the second audio service is higher than the service corresponding to the first audio service Priority, the target audio source device is the second audio source device, and the non-target audio source device is the first audio source device, wherein the preemption command is generated by the audio output device or the second audio output device according to the triggered preemption operation.
  • the second sound source device detects the call service, and the user performs an answering operation on the second sound source device. It is further selected whether to perform preemption on the audio output device or the second audio output device.
  • the second audio output device can display the preemption control in addition to the answering control on the call interface. If the user triggers the answering control and the preemption control at the same time, the audio output device detects the preemption operation, and the service priority corresponding to the second audio service It is higher than the service priority corresponding to the first audio service.
  • the second audio output device can display an answering control on the call interface, and after the user triggers the answering control, a preset preemption operation can also be performed on the audio output device (such as double-clicking the left earphone in the earphone device, or long pressing The right earphone in the earphone device, etc.), the audio output device detects a preemption operation, and the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service.
  • a preset preemption operation can also be performed on the audio output device (such as double-clicking the left earphone in the earphone device, or long pressing The right earphone in the earphone device, etc.)
  • the audio output device detects a preemption operation, and the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service.
  • the second audio source device fails to preempt, and the audio output device continues to process 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
  • the non-target audio source device is the second audio source device.
  • Situation 4 The first audio source device performs the multimedia audio playback service, and the second audio source device also performs the multimedia audio playback service, then the service priority corresponding to the first audio service and the second audio service can be determined according to the preset second comparison rule. Comparison results between corresponding business priorities.
  • the second comparison rule may include: determining the comparison result according to the priority of the application program performing the multimedia audio playback service.
  • the application program of the second sound source device for multimedia audio playback service is a video playback application
  • the application program of the first sound source device for multimedia audio playback service is a music playback application
  • the priority of the video playback application is higher than that of the music playback application. Then the service priority corresponding to the second audio service is higher than the service priority corresponding to the first audio service.
  • the second comparison rule may include: the service priority of the multimedia audio playing service performed later is higher than the service priority of the multimedia audio playing service performed earlier. If the audio output device and the first audio source device perform multimedia audio data transmission, and the audio output device receives a multimedia audio playback request sent by the second audio source device, the service priority corresponding to the second audio service is higher than that of the first audio service. The business priority corresponding to the business.
  • first comparison rule and second comparison rule may be set according to actual needs, which is not limited in this embodiment of the present application.
  • the second sound source device when detecting that there is a call service, sends a call request to the audio output device if an answer instruction for the call service is detected.
  • the second sound source device detects the answer instruction, indicating that the user is determined to answer the call service, and then sends a call request to the audio output device, which can avoid the situation that the first sound source device affects the normal use of the audio output device by preempting the audio output device by mistake. Further, only when the second sound source device detects an instruction for answering the call service, the second sound source device or the audio output device performs service priority comparison, which can reduce power consumption loss.
  • the second sound source device detects that there is a multimedia audio playback service
  • a multimedia audio playback request is sent to the audio output device.
  • the multimedia audio data to be output is prompt audio data (such as short message prompt tone, message prompt tone, etc.)
  • the audio output device sends a multimedia audio playback request, which can avoid the situation that the audio output device is preempted by mistake and affects the normal use of the audio output device by the first audio source device.
  • the second audio source device or audio output device performs service priority comparison, which can reduce power consumption loss.
  • the audio output device sending an occupation instruction to a non-target audio source device in the first audio source device and the second audio source device may include: sending an occupation instruction to a non-target audio source device in the first audio source device and the second audio source device instructions and pause instructions, so that the non-target audio source device sets the Bluetooth connection with the audio output device to an inactive state according to the occupation instruction, and suspends the output of audio data according to the pause instruction; or, to the first audio source device and the second audio source
  • the non-target audio source device in the device sends an occupation instruction, so that the non-target audio source device sets the Bluetooth connection with the audio output device to an inactive state according to the occupation instruction, and plays audio data through the speaker.
  • the non-target audio source device can suspend the output of audio data.
  • the non-target audio source device can suspend the multimedia audio playback service. Reduce the power loss of non-target audio source devices.
  • the non-target audio source device can also play audio data through the speaker.
  • the voice data can be played through the speaker, which can prevent the audio data of the non-target audio source device from being in a silent state, and satisfy the user's need to still think of hearing the non-target audio source device.
  • Step 412 If the service end instruction for instructing to end the target audio service sent by the target audio source device is received, send a non-occupancy instruction to the non-target audio source device according to the service end instruction, and the non-occupancy instruction is used to instruct the non-target audio source device to The Bluetooth connection to the audio output device switches from inactive to active.
  • Step 414 process the audio service of the non-target audio source device, and send an occupation command to the target audio source device, so that the target audio source device sets the Bluetooth connection with the audio output device to an inactive state.
  • the audio output device may send a non-occupancy instruction to the non-target audio source device, so that the non-target audio source device switches the Bluetooth connection with the audio output device to an active state.
  • the non-target audio source device can determine whether the current audio service has not been completed. If there is currently an unfinished audio service (for example, it is still in a call, the multimedia player is still playing multimedia audio, etc.), it can connect to the audio through the activated Bluetooth.
  • the output device sends a third service request, so as to perform audio data transmission with the audio output device. After receiving the third service request sent by the non-target audio source device, the audio output device may send an occupation command to the target audio source device, so that the target audio source device sets the Bluetooth connection with the audio output device to an inactive state.
  • FIG. 6A is a schematic diagram of a non-target audio source device occupying an audio output device after the target audio source device ends an audio service in an embodiment.
  • the audio output device can establish a Bluetooth connection with the audio source device A and the audio source device B respectively.
  • the sound source device B detects that there is an audio service, and the audio output device determines that the service priority of the audio service of the sound source device B is higher than that of the audio service of the sound source device A level, the audio output device processes the audio service of the audio source device B, and at the same time sends an occupation command to the audio source device A, so that the audio source device A sets the Bluetooth connection to an inactive state.
  • the audio output device sends a non-occupancy command to the audio source device A, so that the audio source device A sets the Bluetooth connection to the active state.
  • the output device sends a service request.
  • the audio output device continues to process the audio service of the audio source device A according to the service request sent by the audio source device A, and sends an occupation command to the audio source device B, so that the audio source device B sets the Bluetooth connection to an inactive state.
  • FIG. 6B is a schematic diagram of a non-target audio source device occupying an audio output device after the target audio source device ends an audio service in another embodiment.
  • the audio output device can establish a Bluetooth connection with the audio source device A and the audio source device B respectively.
  • the sound source device B detects that there is an audio service, and the sound source device B determines that the service priority of the audio service of the sound source device B is higher than that of the audio service of the sound source device A level, activate the Bluetooth connection and send a service request to the audio output device.
  • the audio output device processes the audio service of the audio source device B according to the service request sent by the audio source device B, and at the same time sends an occupation instruction to the audio source device A, so that the audio source device A sets the Bluetooth connection to an inactive state.
  • the audio output device sends a non-occupancy command to the audio source device A, so that the audio source device A sets the Bluetooth connection to the active state.
  • the output device sends a service request.
  • the audio output device continues to process the audio service of the audio source device A according to the service request sent by the audio source device A, and sends an occupation command to the audio source device B, so that the audio source device B sets the Bluetooth connection to an inactive state.
  • the audio output device After the audio output device completes the audio service of the target audio source device, it can quickly switch to the non-target audio source device to process the audio service of the non-target audio source device, which meets the user's needs for using the audio output device in different scenarios.
  • Fig. 5, Fig. 6A and Fig. 6B only show the situation that the audio output device establishes Bluetooth connection with two audio source devices, and the audio output device can establish with more audio source devices (such as 3, 4, etc.) Bluetooth connection, and use the audio service processing method provided by the implementation of this application to preempt the service.
  • the Bluetooth connection between other audio source devices and the audio output device is in an inactive state, which can avoid adverse effects.
  • the audio source device needs to preempt the audio output device, there is no need to reconnect with the audio output device, and the audio output device can be preempted more quickly and conveniently. It is more efficient to switch between different audio source devices and use the audio output device.
  • it is determined based on the service priority whether to successfully preempt the audio output device, so that the audio service processed by the audio output device can better meet user needs and improve user experience.
  • an audio service processing method is provided, which can be applied to the above-mentioned second audio source device.
  • the method can include:
  • Step 710 When the second audio service is detected, send the first service request corresponding to the second audio service to the audio output device.
  • the method before step 710, further includes: receiving 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.
  • Step 710 including: when the second audio service is detected, switch the Bluetooth connection with the audio output device from the inactive state to the active state, and send the first service request corresponding to the second audio service to the audio output device .
  • the activated state refers to a state in which information can be sent to the audio output device through the Bluetooth connection with the audio output device.
  • step 710 includes: when detecting that there is a call service, if an answer instruction for the call service is detected, sending a call request to the audio output device; and/or, when detecting that there is a multimedia audio playback service , if it is determined that the multimedia audio data to be output is not prompt audio data, a multimedia audio playback request is sent to the audio output device.
  • Step 720 if an occupation instruction sent by the audio output device is received, set the Bluetooth connection with the audio output device to an inactive state.
  • the occupying instruction is that the audio output device receives the first service request in the process of processing the first audio service of the first sound 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 sent when.
  • the inactive state refers to a state in which the Bluetooth connection with the audio output device is maintained, but information cannot be sent to the audio output device through the Bluetooth connection with the audio output device.
  • the method further includes: pausing output of audio data corresponding to the audio service according to a pause instruction sent by the audio output device; or, playing the audio data corresponding to the audio service through a speaker.
  • the method further includes: receiving a non-occupancy instruction sent by the audio output device, where the non-occupancy instruction is sent by the audio output device when it stops processing the first audio service of the first audio source device; Switch the Bluetooth connection with the audio output device from the inactive state to the active state according to the non-occupancy instruction; and if the second audio service has not been completed, perform audio data transmission corresponding to the second audio service with the audio output device .
  • the second sound source device 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 an inactive state, which will not affect the use of the first sound source device.
  • the audio output device and when the second audio source device needs to preempt the audio output device, it does not need to reconnect with the audio output device, thereby improving the efficiency of preempting the audio output device.
  • the audio output device will judge whether the second audio source device can successfully preempt the audio output device according to the service priorities of the first audio service and the second audio service, so that the audio service processed by the audio output device can better meet user needs.
  • an audio service processing method is provided, which can be applied to the above-mentioned second audio source device.
  • the method can include:
  • Step 810 Receive the service priority corresponding to the first audio service of the first sound 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 processing the first audio service of the first sound source device.
  • 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, then send a message corresponding to the second audio service to the audio output device.
  • the first service request so that the audio output device sends an occupation instruction to the first sound source device, where the occupation instruction is used to instruct the first sound source device to set the Bluetooth connection with the audio output device to an inactive state.
  • the inactive state refers to a state in which the Bluetooth connection with the audio output device is maintained, but information cannot be sent to the audio output device through the Bluetooth connection with the audio output device.
  • step 820 before step 820, it also includes: receiving an occupation instruction sent by the audio output device, the occupation instruction is sent by the audio output device when processing the first audio service of the first sound source device; according to the occupation instruction, The Bluetooth connection to the audio output device is set to inactive.
  • the step of sending the first service request corresponding to the second audio service to the audio output device includes: switching the Bluetooth connection with the audio output device from an inactive state to an active state, and sending the second audio service request to the audio output device The corresponding first service request.
  • step 820 includes: when a call service is detected, if an answer instruction for 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 , then send a call request to the audio output device; and/or, when it is detected that there is a multimedia audio playback service, if it is determined that the multimedia audio data to be output is not prompt audio data, and the service priority corresponding to the first audio service is lower than that of the first audio service For the service priority corresponding to the two audio services, a multimedia audio playback request is sent to the audio output device.
  • the activated state refers to a state in which information can be sent to the audio output device through the Bluetooth connection with the audio output device.
  • step 820 includes: when it is detected that there is a call service, if the first sound source device performs multimedia audio playback service, then determine that the priority of the service corresponding to the first audio service is lower than that of the service corresponding to the second audio service priority.
  • step 820 includes: when it is detected that there is a call service, if the first sound source device is performing a 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 .
  • step 820 includes: when detecting that there is a call service, if the first audio source device conducts a call service and obtains a preemption instruction, then determine that the priority of the service corresponding to the first audio service is lower than that of the second audio service.
  • the business priority corresponding to the business is sent when the audio output device detects a preemption operation; or, the preemption instruction is obtained when the second audio source device detects a preemption operation.
  • step 820 includes: when it is detected that there is a multimedia audio playback service, if the first audio source device performs a call service, then determine that the service priority corresponding to the first audio service is higher than the service priority corresponding to the second audio service class.
  • Step 830 transmit audio data corresponding to the second audio service with the audio output device.
  • step 830 it further includes: when the second audio service is completed, sending a service end instruction to the audio output device, so that the audio output device sends a non-occupancy instruction to the first sound source device, the non-occupancy instruction It is used to instruct the first sound source device to switch the Bluetooth connection setting with the audio output device from an inactive state to an active state.
  • the step if the second audio source device detects the second audio service it further includes: if it is determined that 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 output devices remains in an inactive state, and the audio data corresponding to the audio service is played or not played through the speaker.
  • the second sound source device receives the occupation instruction sent by the audio output device and before detecting the second audio service, further comprising: if receiving the non-occupancy instruction sent by the audio output device, according to the non-occupancy instruction The occupying instruction switches the Bluetooth connection with the audio output device from an inactive state to an active state, and deletes the service priority corresponding to the first audio service.
  • the non-occupancy instruction is sent when the audio output device receives the service end instruction sent by the first sound source device.
  • the audio output device may process the second audio service of the first sound source device according to the first service request.
  • the second sound source device 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 an inactive state, which will not affect the use of the first sound source device.
  • the audio output device and when the second audio source device needs to preempt the audio output device, it does not need to reconnect with the audio output device, thereby improving the efficiency of preempting the audio output device.
  • the second audio source device will judge whether to preempt the audio output device according to the service priorities of the first audio service and the second audio service, so that the audio services processed by the audio output device can better meet user needs.
  • an audio service processing device 900 which can be applied to the above-mentioned audio output device, and the audio output device establishes Bluetooth connections with at least two audio source devices,
  • the at least two sound source devices include a first sound source device and a second sound 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 the first service request corresponding to the second audio service sent by the second sound source device when the audio output device processes the first audio service of the first sound source device.
  • the instruction sending module 920 is used to process the target audio service of the target sound source device in the first sound source device and the second sound source device according to the first service request, and send the audio service to the non-target sound source device in the first sound source device and the second sound source device An occupying instruction is sent, and the occupying instruction is used to instruct the non-target audio source device to set the Bluetooth connection with the audio output device to an inactive state.
  • the target sound source device and the non-target sound source device are determined by the audio output device or the second sound source device according to the service priority relationship between the first audio service and the second audio service;
  • the audio service processing apparatus 900 further includes a comparison module.
  • the comparison module is used to 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 the first sound source device and the second sound source device according to the comparison result.
  • Target audio source device and non-target audio source device are used to 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 the first sound source device and the second sound source device according to the comparison result.
  • the audio output device when the audio source device needs to preempt the audio output device, there is no need to reconnect with the audio output device, and the audio output device can be preempted more quickly and conveniently, ensuring the efficiency of the audio output device in processing audio services.
  • the audio output device can process corresponding audio services based on service priority, which is more suitable for the actual needs of users.
  • the request receiving module 910 is further configured to receive a second service request corresponding to the first audio service sent by the first audio source device.
  • the instruction sending module 920 is also configured to process the first audio service of the first audio source device according to the second service request if the audio output device does not perform audio data transmission with any audio source device, and send occupancy instructions to each other audio source device respectively , the occupying instruction is used to instruct other audio source devices to set the Bluetooth connection with the audio output device to an inactive state.
  • the other sound source device is the sound source device except the first sound source device among the at least two sound source devices.
  • the instruction sending module 920 is further configured to, after sending occupation instructions to each of the other audio source devices, if receiving a service end instruction sent by the first audio source device for instructing to end the first audio service, then according to The service end instruction sends a non-occupancy instruction to each other audio source device, and the non-occupancy instruction is used to instruct the other audio source device to switch the Bluetooth connection with the audio output device from an inactive state to an active state.
  • the first service request is that when the second audio source device detects the second audio service, it switches the Bluetooth connection with the audio output device from an inactive state to an active state, and communicates with the audio output device sent by the Bluetooth connection between them; wherein, the activated state refers to the state of being able to send information to the audio output device through the Bluetooth connection with the audio output device.
  • the first service request is that 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, then the The Bluetooth connection between the audio output devices switches from the inactive state to the active state, and is sent through the Bluetooth connection with the audio output 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.
  • the audio service processing apparatus 900 further includes an information sending module.
  • the information sending module is used to send the service priority corresponding to the first audio service to each other sound source device after the audio output device starts to process the first audio service of the first sound source device, so that the second sound source device detects the first audio service.
  • the service priority corresponding to the first audio service is compared with the service priority corresponding to the second audio service.
  • the instruction sending module 920 is also configured to send an occupation instruction and a pause instruction to the non-target audio source equipment in the first audio source equipment and the second audio source equipment, so that the non-target audio source equipment will output the audio signal according to the occupation instruction.
  • the Bluetooth connection between the devices is set to be inactive, and the output of audio data is suspended according to the pause command; or, an occupation command is sent to the 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 according to The occupy command deactivates the Bluetooth connection to the audio output device and plays audio data through the speaker.
  • the instruction sending module 920 is further configured to, after sending the occupancy instruction to the non-target audio source device, if it receives the service end instruction sent by the target audio source device to indicate the end of the target audio service, then according to the service end instruction Sending a non-occupancy instruction to the non-target audio source device, where the non-occupancy instruction is used to instruct the non-target audio source device to switch the Bluetooth connection with the audio output device from an inactive state to an active state.
  • the instruction sending module 920 is also configured to process the audio service of the non-target audio source device, and send the occupancy instruction to the target audio source device, so that the target audio source device will set up the Bluetooth connection with the audio output device is inactive.
  • the audio service includes any one of a multimedia audio playback service and a call service; the first service request includes any one of a call request and a multimedia audio playback request.
  • the request receiving module 910 receives a call request sent by the second audio source device when the audio output device processes the multimedia audio playback service of the first audio source device
  • the service priority corresponding to the second audio service is higher than that of 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.
  • the request receiving module 910 receives the multimedia audio playback request sent by the 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 service is lower than that of the first audio service For the corresponding service priority, the target audio source device is the first audio source device, and the non-target audio source device is the second audio source device.
  • the request receiving module 910 receives a call request sent by the 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 service is higher than that of the second audio source device.
  • the target audio source device is the second audio source device
  • the non-target audio source device is the first audio source device.
  • the request receiving module 910 receives the call request and preemption instruction sent by the second sound source device when the audio output device is processing the call service of the first sound source device, the service corresponding to the second audio service takes priority
  • the priority level 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. generated by the operation.
  • the Bluetooth connection between other audio source devices and the audio output device is in an inactive state, which can avoid adverse effects.
  • the audio source device needs to preempt the audio output device, there is no need to reconnect with the audio output device, and the audio output device can be preempted more quickly and conveniently. It is more efficient to switch between different audio source devices and use the audio output device.
  • it is determined based on the service priority whether to successfully preempt the audio output device, so that the audio service processed by the audio output device can better meet user needs and improve user experience.
  • an audio service processing apparatus 1000 which can be applied to the above-mentioned second audio source device.
  • the second audio source device establishes a Bluetooth connection with the audio output device, and the audio output device is at least connected to the second audio output device.
  • An audio source device establishes a Bluetooth connection.
  • the audio service processing device 1000 includes a request sending module 1010 and a state setting module 1020 .
  • the request sending module 1010 is configured to send the first service request corresponding to the second audio service to the audio output device when the second audio service is detected.
  • the state setting module 1020 is configured to set the bluetooth connection with the audio output device to an inactive state if the occupation instruction sent by the audio output device is received; It is sent when a first service request is received during an audio service and it is determined that the service priority corresponding to the second audio service is lower than the service priority corresponding to the first audio service.
  • the inactive state refers to a state in which the Bluetooth connection with the audio output device is maintained, but information cannot be sent to the audio output device through the Bluetooth connection with the audio output device.
  • the state setting module 1020 is further configured to receive an occupation instruction sent by the audio output device before the second audio service is detected, the occupation instruction is for the audio output device to start processing the first audio service of the first audio source device sent at the time; and setting the bluetooth connection with the audio output device to an inactive state according to the occupation instruction.
  • the request sending module 1010 is also used to switch the Bluetooth connection with the audio output device from the inactive state to the active state through the state setting module 1020 when the second audio service is detected, and send the second audio service to the audio output device.
  • the request sending module 1010 is further configured to send a call request to the audio output device if an answering instruction for the call service is detected when a call service is detected; and/or, when a multimedia call service is detected During the audio playing service, if it is determined that the multimedia audio data to be output is not prompt audio data, a multimedia audio playing request is sent to the audio output device.
  • the audio service processing apparatus 1000 further includes a data playing module.
  • the data playback module is used to suspend the audio data corresponding to the output audio service according to the pause instruction sent by the audio output device after the status setting module 1020 sets the Bluetooth connection with the audio output device to an inactive state; or, play through the speaker Audio data corresponding to the audio service.
  • the state setting module 1020 is further configured to receive a non-occupancy instruction sent by the audio output device after setting the Bluetooth connection with the audio output device to an inactive state, the non-occupancy instruction being the audio output device Sent when the processing of the first audio service of the first sound source device is stopped; the Bluetooth connection with the audio output device is switched from an inactive state to an active state according to the non-occupancy instruction.
  • the data playing module is also used for switching the bluetooth connection with the audio output device from the inactive state to the active state by the state setting module 1020, if the second audio service has not been completed, then perform a second communication with the audio output device. Audio data transmission corresponding to the audio service.
  • the second sound source device 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 an inactive state, which will not affect the use of the first sound source device.
  • the audio output device and when the second audio source device needs to preempt the audio output device, it does not need to reconnect with the audio output device, thereby improving the efficiency of preempting the audio output device.
  • the audio output device will judge whether the second audio source device can successfully preempt the audio output device according to the service priorities of the first audio service and the second audio service, so that the audio service processed by the audio output device can better meet user needs.
  • an audio service processing apparatus 1100 is provided, which can be applied to the above-mentioned second audio source device.
  • the second audio source device establishes a Bluetooth connection with the audio output device, and the audio output device is at least connected to the second audio source device.
  • An audio source device establishes a Bluetooth connection.
  • the audio service processing device 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 the service priority corresponding to the first audio service of the first audio source device sent by the audio output device, and the service priority corresponding to the first audio service is that the audio output device is processing the first audio service of the first sound source device. Sent during audio services.
  • the request sending module 1120 is configured to send the second audio service to the audio output device 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.
  • the first service request corresponding to the two audio services enables the audio output device to send an occupation instruction to the first audio source device, and 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 transmit audio data corresponding to the second audio service with the audio output device.
  • the inactive state refers to a state in which the Bluetooth connection with the audio output device is maintained, but information cannot be sent to the audio output device through the Bluetooth connection with the audio output device.
  • the audio service processing apparatus 1100 further includes a state setting module.
  • a state setting module configured to receive an occupation instruction sent by the audio output device before the second audio service is detected, the occupation instruction is sent when the audio output device starts processing the first audio service of the first audio source device; according to the occupation instruction Make the Bluetooth connection to the audio output device inactive.
  • the state setting module is also used to switch the Bluetooth connection with the audio output device from the inactive state to the active state through the state setting module, and send the first service request corresponding to the second audio service to the audio output device; wherein,
  • the activated state refers to a state in which information can be sent to the audio output device through the Bluetooth connection with the audio output device.
  • 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-occupancy instruction to the first sound source device, and the non-occupancy instruction It is used to instruct the first sound source device to switch the Bluetooth connection setting with the audio output device from an inactive state to an active state.
  • the request sending module 1120 is further configured to detect that there is a call service, if an answer instruction for the call service is detected, and the service priority corresponding to the first audio service is lower than that of the second audio service Corresponding service priority, then send a call request to the audio output device; and/or, when detecting that there is a multimedia audio playback service, if it is determined that the multimedia audio data to be output is not prompt audio data, and the service corresponding to the first audio service If the priority is lower than the service priority corresponding to the second audio service, a multimedia audio play request is sent to the audio output device.
  • the state setting module is further configured to keep the Bluetooth connection with the audio output device in an inactive state if the service priority corresponding to the first audio service is higher than the service priority corresponding to the second audio service, And play the audio data corresponding to the audio service or not play the audio data corresponding to the audio service through the loudspeaker.
  • the second sound source device 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 an inactive state, which will not affect the use of the first sound source device.
  • the audio output device and when the second audio source device needs to preempt the audio output device, it does not need to reconnect with the audio output device, thereby improving the efficiency of preempting the audio output device.
  • the second audio source device will judge whether to preempt the audio output device according to the service priorities of the first audio service and the second audio service, so that the audio services processed by the audio output device can better meet user needs.
  • Fig. 12 is a structural block diagram of an electronic device in one embodiment.
  • an electronic device 1200 may include one or more of the following components: a processor 1210, a memory 1220 coupled to the processor 1210, wherein the memory 1220 may store one or more computer programs, one or more computer programs It may be configured to implement the audio service processing method applied to the audio output device as described in the foregoing embodiments when executed by one or more processors 1210 .
  • Processor 1210 may include one or more processing cores.
  • the processor 1210 uses various interfaces and circuits to connect various parts of the entire electronic device 1200, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 1220, and calls data stored in the memory 1220 to execute Various functions of the electronic device 1200 and processing data.
  • the processor 1210 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 1210 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used to render and draw the displayed content
  • the modem is used to handle wireless communication. It can be understood that the above modem may also not be integrated into the processor 1210, but implemented by a communication chip alone.
  • the memory 1220 may include a random access memory (Random Access Memory, RAM), and may also include a read-only memory (Read-Only Memory, ROM).
  • the memory 1220 may be used to store instructions, programs, codes, sets of codes or sets of instructions.
  • the memory 1220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the foregoing method embodiments, and the like.
  • the storage data area can also store data created by the electronic device 1200 during use, and the like.
  • the electronic device 1200 can also include a Bluetooth module, which can be used to provide a Bluetooth communication function, establish a Bluetooth connection with other electronic devices, and perform Bluetooth data transmission.
  • the Bluetooth module can support one or more Bluetooth protocols, such as classic Bluetooth, BLE, BLE Audio, etc.), but is not limited to this, and can change with the development of the Bluetooth protocol.
  • the electronic device 1200 may include more or less structural elements than those in the above structural block diagram, for example, including a power module, physical keys, sensors, etc., and there is no limitation here.
  • the embodiment of the present application discloses an electronic device, which includes a memory and a processor, and a computer program is stored in the memory.
  • the processor realizes the application to the second sound source device as described in the above-mentioned embodiments. Audio business processing method.
  • the embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein, when the computer program is executed by a processor, the audio service processing method applied to the audio output device as described in the foregoing embodiments is implemented.
  • the embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein, when the computer program is executed by a processor, the audio service processing method applied to the second audio source device as described in the foregoing embodiments is implemented.
  • the embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the application as described in the above-mentioned embodiments can be implemented.
  • An audio service processing method of an audio output device is disclosed.
  • the embodiment of the present application discloses a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program can be executed by a processor, implement the application described in the above-mentioned embodiments.
  • the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods.
  • the storage medium may be a magnetic disk, an optical disk, a ROM, or the like.
  • Non-volatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (Erasable PROM, EPROM), Electrically Erasable PROM (Electrically Erasable PROM, EEPROM) or flash memory.
  • Volatile memory can include random access memory (RAM), which acts as external cache memory.
  • RAM can take many forms, such as static RAM (Static RAM, SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (synchronous DRAM, SDRAM), double data rate SDRAM (Double data rate Data Rate SDRAM, DDR SDRAM), enhanced SDRAM (Enhanced Synchronous DRAM, ESDRAM), synchronous link DRAM (Synchlink DRAM, SLDRAM), memory bus direct RAM (Rambus DRAM, RDRAM) and direct memory bus dynamic RAM (Direct Rambus DRAM) , DRDRAM).
  • static RAM Static RAM, SRAM
  • dynamic RAM Dynamic Random Access Memory
  • SDRAM synchronous DRAM
  • double data rate SDRAM Double data rate Data Rate SDRAM, DDR SDRAM
  • enhanced SDRAM Enhanced Synchronous DRAM, ESDRAM
  • synchronous link DRAM Synchlink DRAM, SLDRAM
  • memory bus direct RAM Rabus DRAM, RDRAM
  • Direct Rambus DRAM Direct Rambus DRAM
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, located in one place, or distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请实施例公开了一种音频业务处理方法、装置、电子设备及存储介质。该方法可应用于音频输出设备,该方法包括:在音频输出设备处理第一音源设备的第一音频业务的情况下,接收到第二音源设备发送的与第二音频业务对应的第一业务请求;根据第一业务请求,处理第一音源设备及第二音源设备中的目标音源设备的目标音频业务,并向第一音源设备及第二音源设备中的非目标音源设备发送占用指令,占用指令用于指示非目标音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态。

Description

音频业务处理方法、装置、电子设备及存储介质
本申请要求于2021年11月19日提交、申请号为202111408671.8、发明名称为“音频业务处理方法、装置、电子设备及存储介质 ”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,具体涉及一种音频业务处理方法、装置、电子设备及存储介质。
背景技术
蓝牙是一种支持设备短距离通信的无线电技术,能够实现在多个支持蓝牙传输的电子设备之间的无线信息交换,使得电子设备之间的数据传输更加迅速和高效。目前,为了满足用户的工作及生活需求,市面上出现能够同时支持与多个其它电子设备建立蓝牙连接的电子设备,支持“一拖多”的蓝牙连接功能。对于支持“一拖多”的电子设备,如何更加合理、快速地处理连接的其它电子设备的业务成了亟需解决的问题。
发明内容
本申请实施例公开了一种音频业务处理方法、装置、电子设备及存储介质。
本申请实施例公开了一种音频业务处理方法,应用于音频输出设备,所述音频输出设备与至少两个音源设备建立蓝牙连接,所述至少两个音源设备包括第一音源设备及第二音源设备,所述方法包括:
在所述音频输出设备处理所述第一音源设备的第一音频业务的情况下,接收所述第二音源设备发送的与第二音频业务对应的第一业务请求;
根据所述第一业务请求,处理所述第一音源设备及第二音源设备中的目标音源设备的目标音频业务,并向所述第一音源设备及第二音源设备中的非目标音源设备发送占用指令,所述占用指令用于指示所述非目标音源设备将与所述音频输出设备之间的蓝牙连接设置为非激活状态;
其中,所述目标音源设备及非目标音源设备是由所述音频输出设备或所述第二音源设备根据所述第一音频业务与所述第二音频业务之间的业务优先级关系确定的;所述非激活状态指的是保持与所述音频输出设备之间的蓝牙连接,但不能通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
本申请实施例公开了一种音频业务处理方法,应用于第二音源设备,所述第二音源设备与音频输出设备建立蓝牙连接,所述音频输出设备还至少与第一音源设备建立蓝牙连接,所述方法包括:
在检测到第二音频业务时,向所述音频输出设备发送与所述第二音频业务对应的第一业务请求;
若接收到所述音频输出设备发送的占用指令,则将与所述音频输出设备之间的蓝牙连接设置为非激活状态;所述占用指令为所述音频输出设备在处理所述第一音源设备的第一音频业务的过程中接收到所述第一业务请求,并确定所述第二音频业务对应的业务优先级低于所述第一音频业务对应的业务优先级时发送的;
其中,非激活状态指的是保持与所述音频输出设备之间的蓝牙连接,但不能通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
本申请实施例公开了一种音频业务处理方法,应用于第二音源设备,所述第二音源设备与音频输出设备建立蓝牙连接,所述音频输出设备还至少与第一音源设备建立蓝牙连接,所述方法包括:
接收所述音频输出设备发送的与所述第一音源设备的第一音频业务对应的业务优先级,所述第一音频业务对应的业务优先级为所述音频输出设备在处理所述第一音源设备的所述第一音频业务时发送的;
若所述第二音源设备检测到第二音频业务,且确定所述第一音频业务对应的业务优先级低于所述第二音频业务对应的业务优先级,则向所述音频输出设备发送与所述第二音频业务对应的第一业务请求,以使所述音频输出设备向所述第一音源设备发送占用指令,所述占用指令用于指示所述第一音源设备将与所述音频输出设备之间的蓝牙连接设置为非激活状态;
与所述音频输出设备进行与所述第二音频业务对应的音频数据传输;
其中,所述非激活状态指的是保持与所述音频输出设备之间的蓝牙连接,但不能通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
本申请实施例公开了一种音频业务处理装置,应用于音频输出设备,所述音频输出设备与至少两个音源设备建立蓝牙连接,所述至少两个音源设备包括第一音源设备及第二音源设备,所述装置包括:
请求接收模块,用于在所述音频输出设备处理所述第一音源设备的第一音频业务的情况下,接收所述第二音源设备发送的与第二音频业务对应的第一业务请求;
指令发送模块,用于根据所述第一业务请求,处理所述第一音源设备及第二音源设备中的目标音源设备的目标音频业务,并向所述第一音源设备及第二音源设备中的非目标音源设备发送占用指令,所述占用指令用于指示所述非目标音源设备将与所述音频输出设备之间的蓝牙连接设置为非激活状态;
其中,所述目标音源设备及非目标音源设备是由所述音频输出设备或所述第二音源设备根据所述第一音频业务与所述第二音频业务之间的业务优先级关系确定的;所述非激活状态指的是保持与所述音频输出设备之间的蓝牙连接,但不能通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
本申请实施例公开了一种音频业务处理装置,应用于第二音源设备,所述第二音源设备与音频输出设备建立蓝牙连接,所述音频输出设备还至少与第一音源设备建立蓝牙连接,所述装置包括:
请求发送模块,用于在检测到第二音频业务时,向所述音频输出设备发送与所述第二音频业务对应的第一业务请求;
状态设置模块,用于若接收到所述音频输出设备发送的占用指令,则将与所述音频输出设备之间的蓝牙连接设置为非激活状态;所述占用指令为所述音频输出设备在处理所述第一音源设备的第一音频业务的过程中接收到所述第一业务请求,并确定所述第二音频业务对应的业务优先级低于所述第一音频业务对应的业务优先级时发送的;
其中,非激活状态指的是保持与所述音频输出设备之间的蓝牙连接,但不能通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
本申请实施例公开了一种音频业务处理装置,应用于第二音源设备,所述第二音源设备与音频输出设备建立蓝牙连接,所述音频输出设备还至少与第一音源设备建立蓝牙连接,所述装置包括:
接收模块,用于接收所述音频输出设备发送的与所述第一音源设备的第一音频业务对应的业务优先级,所述第一音频业务对应的业务优先级为所述音频输出设备在处理所述第一音源设备的所述第一音频业务时发送的;
请求发送模块,用于若所述第二音源设备检测到第二音频业务,且确定所述第一音频业务对应的业务优先级低于所述第二音频业务对应的业务优先级,则向所述音频输出设备发送与所述第二音频业务对应的第一业务请求,以使所述音频输出设备向所述第一音源设备发送占用指令,所述占用指令用于指示所述第一音源设备将与所述音频输出设备之间的蓝牙连接设置为非激活状态;
数据传输模块,用于与所述音频输出设备进行与所述第二音频业务对应的音频数据传输;
其中,所述非激活状态指的是保持与所述音频输出设备之间的蓝牙连接,但不能通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
本申请实施例公开了一种电子设备,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述实现如上任一所述的方法。
本申请实施例公开了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上任一所述的方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为一个实施例中音频业务处理方法的应用场景图;
图2为一个实施例中应用于音频输出设备的音频业务处理方法的流程图;
图3A为一个实施例中音频业务处理方法的时序交互图;
图3B为另一个实施例中音频业务处理方法的时序交互图;
图4为另一个实施例中应用于音频输出设备的音频业务处理方法的流程图;
图5为一个实施例中音源设备A占用音频输出设备的示意图;
图6A为一个实施例中在目标音源设备结束音频业务后,非目标音源设备占用音频输出设备的示意图;
图6B为另一个实施例中在目标音源设备结束音频业务后,非目标音源设备占用音频输出设备的示意图;
图7为一个实施例中应用于第二音源设备的音频业务处理方法的流程图;
图8为另一个实施例中应用于第二音源设备的音频业务处理方法的流程图;
图9为一个实施例中应用于音频输出设备的音频业务处理装置的框图;
图10为一个实施例中应用于第二音源设备的音频业务处理装置的框图;
图11为另一个实施例中应用于第二音源设备的音频业务处理装置的框图;
图12为一个实施例中电子设备的结构框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,本申请实施例及附图中的术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、***、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一耳机称为第二耳机,且类似地,可将第二耳机称为第一耳机。第一耳机和第二耳机两者属于耳机,但其不是同一只耳机。另外,需要说明的是,本申请实施例中所使用的术语“多个”等指的是两个或两个以上。
图1为一个实施例中音频业务处理方法的应用场景图。如图1所示,音频输出设备10可以是支持同时与至少两个电子设备保持蓝牙连接的设备,也即,音频输出设备10可支持蓝牙的“一拖多”功能。音频输出设备10可包括但不限于耳机设备、蓝牙音箱、播放器等,其中,耳机设备可包括但不限于头戴式耳机、入耳式耳机、耳塞式耳机及挂耳式耳机等,进一步地,该音频输出设备10可为无线蓝牙耳机,例如真无线立体声(True Wireless Stereo,TWS)蓝牙耳机等。
音频输出设备10可与至少两个音源设备建立蓝牙连接,例如,图1中的音频输出设备10至少与第一音源设备20及第二音源设备30建立蓝牙连接,其中,第一音源设备20、第二音源设备30可包括但不限于可穿戴设备(如手环、智 能手表、智能眼镜等)、车载终端、手机、平板电脑、笔记本电脑、PC(Personal Computer,个人计算机)等电子设备。
音频输出设备10与音源设备建立蓝牙连接,可包括音频输出设备10与音源设备建立蓝牙物理链路及业务连接。该蓝牙物理链路可包括ACL(Asynchronous Connectionless,异步无连接)、SCO(Synchronous Connection Oriented,同步定向连接)等物理链路。业务连接是在蓝牙物理链路的基础上建立的用于传输音频业务数据的连接,例如,A2DP(Advanced Audio Distribution Profile,蓝牙音频传输模型协定)、HFP(Hands-free Profile,免提协议)等,其中,A2DP连接可用于进行多媒体音频数据的传输,HFP连接可用于进行语音数据的传输。
在相关的技术中,当音频输出设备10与任一音源设备进行数据传输时,需要断开与其它音源设备(指的是除进行数据传输的音源设备以外的音源设备)之间的业务连接,当其它音源设备有音频业务需要音频输出设备10处理时,需先重新与音频输出设备10建立业务连接,再进行音频数据传输。比如,当音频输出设备10与第一音源设备20进行音频数据传输时,需要断开与第二音源设备20之间的A2DP、HFP等业务连接。当第二音源设备20有音频业务需要音频输出设备10处理时,需先重新与音频输出设备10建立A2DP、HFP等业务连接,再与音频输出设备10进行音频数据传输,导致抢占音频输出设备10的速度较慢,影响了音频输出设备10处理音频业务的效率。
在本申请实施例中,提供一种音频业务处理方法、装置、电子设备及存储介质,音源设备可更加快速、便捷地对音频输出设备进行抢占,保证音频输出设备处理音频业务的效率,且处理的音频业务更加贴合用户需求。
在一些实施例中,在音频输出设备10处于空闲状态时,也即音频输出设备10未与任一音源设备进行音频数据传输时,若第一音源设备20检测到第一音频业务,可向音频输出设备10发送第一音频业务对应的第二业务请求,音频输出设备10根据该第二业务请求处理第一音源设备20的第一音频业务,与第一音源设备20进行音频数据传输。音频输出设备10可向其它音源设备(如第二音源设备30)发送占用指令,该占用指令用于指示其它音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态,以使得其它音源设备保持与音频输出设备之间的蓝牙连接,但不能通过与音频输出设备之间的蓝牙连接向音频输出设备发送信息。其它音源设备不需要断开与音频输出设备10之间的业务连接,也不会对音频输出设备10与第一音源设备20之间的音频数据传输产生影响。
在一些实施例中,在音频输出设备10处理第一音源设备20的第一音频业务的情况下,若第二音源设备30检测到第二音频业务,可向音频输出设备10发送与第二音频业务对应的第一业务请求。音频输出设备10可根据该第一业务请求,处理第一音源设备20及第二音源设备30中的目标音源设备的目标音频业务,并向非目标音源设备发送占用指令,以使该非目标音源设备将与音频输出设备10之间的蓝牙连接设置为非激活状态。其中,目标音源设备及非目标音源设备是音频输出设备10或第二音源设备30根据第一音频业务与第二音频业务之间的业务优先级关系确定的。在非目标音源设备下次需要音频输出设备10处理音频业务时,无需与音频输出设备10进行重连,能够更加快速、便捷地对音频输出设备10进行抢占。
需要说明的是,图1中仅示出了音频输出设备10与两个音源设备建立蓝牙连接的场景,也即音频输出设备10支持“一拖二”的场景,而本申请实施例还可应用于音频输出设备10支持“一拖一”、“一拖三”、“一拖四”……等不同的场景,音频输出设备具体支持的蓝牙连接的最大数量在本申请实施例中不作限制。
如图2所示,在一个实施例中,提供一种音频业务处理方法,可应用于上述的音频输出设备,该方法可包括以下步骤:
步骤210,在音频输出设备处理第一音源设备的第一音频业务的情况下,接收第二音源设备发送的与第二音频业务对应的第一业务请求。
音频输出设备可与至少两个音源设备建立蓝牙连接,在一些实施例中,在音频输出设备与第一音源设备进行音频数据传输时,除第一音源设备以外的其它音源设备可将与音频输出设备之间的蓝牙连接设置为非激活状态。该非激活状态可指的是保持与音频输出设备之间的蓝牙连接,但不能通过与音频输出设备之间的蓝牙连接向音频输出设备发送信息的状态。进一步地,其它音源设备保持与音频输出设备之间的蓝牙连接,可指的是其它音源设备保持与音频输出设备之间的蓝牙物理链路及业务连接。
在音频输出设备处理第一音源设备的第一音频业务时,第二音源设备与音频输出设备之间的蓝牙连接可处于非激活状态。当第二音源设备检测到有第二音频业务需要音频输出设备处理时,可激活与音频输出设备之间的蓝牙连接,并通过激活后的蓝牙连接向音频输出设备发送与第二音频业务对应的第一业务请求。
在一些实施例中,音频输出设备在接收到第二音源设备发送的第一业务请求后,可根据第一业务请求获取第二音频业务对应的音频业务信息,该音频业务信息可包括但不限于业务类型、待传输的音频数据类型等中的一种或多种,其中,业务类型可指的是音频业务的种类,可包括多媒体音频播放业务、通话业务等;待传输的音频数据类型可指的是第二音源设备需要音频输出设备处理的音频数据的种类,可包括多媒体音频数据、语音数据等。
步骤220,根据第一业务请求,处理第一音源设备及第二音源设备中的目标音源设备的目标音频业务,并向第一音源设备及第二音源设备中的非目标音源设备发送占用指令,该占用指令用于指示非目标音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态。
其中,目标音源设备及非目标音源设备可以是由音频输出设备或第二音源设备根据第一音频业务与第二音频业务之间的业务优先级关系确定的。目标音源设备可以是业务优先级较高的音频业务对应的音源设备,非目标音源设备可以是业务优先级较低的音频业务对应的音源设备。音频输出设备可向非目标音源设备发送占用指令,该占用指令可用于通知非目标音源设备该音频输出设备已被占用,暂时无法处理非目标音源设备的音频业务,则非目标音源设备可将与音频输出设备之间的蓝牙连接设置为非激活状态,在蓝牙连接处于非激活状态的情况下,非目标音源设备中的音频管理模块(Audio模块)认为音频输出设备不可用,无法通过该蓝牙连接向音频输出设备发送音频数据。
音频输出设备可优先处理业务优先级较高的音频业务,若第一音频业务对应的业务优先级高于第二音频业务对应的业务优先级,则目标音源设备为第一音源设备,目标音频业务为第一音频业务,非目标音源设备为第二音源设备;若第 一音频业务对应的业务优先级低于第二音频业务对应的业务优先级,则目标音源设备为第二音源设备,目标音频业务为第二音频业务,非目标音源设备为第一音源设备。
在一些实施例中,第一音频业务与第二音频业务之间的业务优先级关系,可以是根据第一音频业务对应的音频业务信息及第二音频业务对应的音频业务信息进行确定的。可选地,音频业务信息可包括业务类型,例如,可设置通话业务的业务优先级高于多媒体音频播放业务的业务优先级;可选地,音频业务信息可包括业务开始时间,例如,可设置业务开始时间较晚的通话业务的业务优先级,高于业务开始时间较早的通话业务的业务优先级;可选地,音频业务信息可包括触发音频业务的应用程序,音源设备中各个应用程序触发的音频业务可分别对应相应的业务优先级,例如,可设置社交类应用程序触发的音频业务的业务优先级,高于音频播放类应用程序触发的音频业务的业务优先级等,但不限于此。
作为一种实施方式,目标音源设备及非目标音源设备可以是由音频输出设备确定的。在第二音源设备检测到第二音频业务时,可向音频输出设备发送与第二音频业务对应的第一业务请求,音频输出设备可根据该第一业务请求,将第二音频业务对应的业务优先级与第一音频业务对应的业务优先级进行比较,并根据比较结果确定第一音源设备与第二音源设备中的目标音源设备及非目标音源设备。
具体地,音频输出设备可根据第一业务请求,获取第二音频业务对应的音频业务信息,并根据该第二音频业务对应的音频业务信息,判断第二音频业务对应的业务优先级是否高于第一音频业务对应的业务优先级,也即判断是否处理第二音源设备的第二音频业务。如果第二音频业务对应的业务优先级高于第一音频业务对应的业务优先级,则音频输出设备处理第二音频业务,与第二音源设备进行音频数据传输;如果第二音频业务对应的业务优先级不高于第一音频业务对应的业务优先级,则音频输出设备继续处理第一音频业务,与第一音源设备进行音频数据传输。
示例性地,图3A为一个实施例中音频业务处理方法的时序交互图。如图3A所示,音频输出设备可分别与音源设备A及音源设备B建立蓝牙连接。在音频输出设备处于空闲状态时,音源设备A检测到有音频业务,则音源设备A可向音频输出设备发送业务请求,音频输出设备处理音源设备A的音频业务,并向音源设备B发送占用指令。音源设备B在接收到占用指令后,可将与音频输出设备之间的蓝牙连接设置为非激活状态。若音源设备B检测到有音频业务,则可激活蓝牙连接,并向音频输出设备发送业务请求。音频输出设备接收到音源设备B发送的业务请求后,可判断音源设备B的音频业务对应的业务优先级是否高于音源设备A的音频业务对应的业务优先级。若音源设备B的音频业务对应的业务优先级高于音源设备A的音频业务对应的业务优先级,则音频输出设备切换处理音源设备B的音频业务,并向音源设备A发送占用指令,音源设备A根据该占用指令将与音频输出设备之间的蓝牙连接设置为非激活状态,音源设备B抢占音频输出设备成功。若音源设备B的音频业务对应的业务优先级不高于音源设备A的音频业务对应的业务优先级,则音频输出设备继续处理音源设备A的音频业务,并向音源设备B发送占用指令,音源设备B根据该占用指令将与音频输出设备之间的蓝牙连接设置为非激活状态,音源设备B抢占音频输出设备失败。
作为另一种实施方式,目标音源设备及非目标音源设备可以是由第二音源设备确定的。第二音源设备在检测到第二音频业务时,可将该第二音频业务的业务优先级与第一音频业务的业务优先级进行比较,若第二音频业务的业务优先级高于第一音频业务对应的业务优先级,则向音频输出设备发送与第二音频业务对应的第一业务请求。音频输出设备在接收到第一业务请求,即确定目标音源设备为第二音源设备,非目标音源设备为第一音源设备。
示例性地,图3B为另一个实施例中音频业务处理方法的时序交互图。如图3B所示,音频输出设备可分别与音源设备A及音源设备B建立蓝牙连接。在音频输出设备处于空闲状态时,音源设备A检测到有音频业务,则音源设备A可向音频输出设备发送业务请求,音频输出设备处理音源设备A的音频业务,并向音源设备B发送占用指令。音源设备B在接收到占用指令后,可将与音频输出设备之间的蓝牙连接设置为非激活状态。若音源设备B检测到有音频业务,则可判断自身音频业务的业务优先级是否高于音源设备A的音频业务的业务优先级。若自身音频业务的业务优先级高于音源设备A的音频业务的业务优先级,则可激活蓝牙连接,并向音频输出设备发送业务请求。音频输出设备接收到音源设备B发送的业务请求后,可处理音源设备B的音频业务,并向音源设备A发送占用指令,音源设备A根据该占用指令将与音频输出设备之间的蓝牙连接设置为非激活状态,音源设备B抢占音频输出设备成功。若音源设备B判断出自身音频业务的业务优先级不高于音源设备A的音频业务的业务优先级,则不激活蓝牙连接,不对音频输出设备进行抢占。
在本申请实施例中,在音源设备需要抢占音频输出设备时,无需与音频输出设备进行重连,能够更加快速、便捷地对音频输出设备进行抢占,保证音频输出设备处理音频业务的效率。此外,音频输出设备可基于业务优先级处理相应的音频业务,更加贴合用户的实际需求。
如图4所示,在另一个实施例中,提供一种音频业务处理方法,可应用于上述的音频输出设备,该方法可包括以下步骤:
步骤402,接收第一音源设备发送的与第一音频业务对应的第二业务请求。
步骤404,若音频输出设备未与任一音源设备进行音频数据传输,则根据第二业务请求处理第一音源设备的第一音频业务,并分别向各个其它音源设备发送占用指令,该占用指令用于指示其它音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态。
在音频输出设备未与任一音源设备进行音频数据传输时,音频输出设备处于空闲状态。可选地,在音频输出设备处于空闲状态时,各个音源设备与音频输出设备之间的蓝牙连接均可处于激活状态,该激活状态指的是能够通过与音频输出设备之间的蓝牙连接向音频输出设备发送信息的状态。在第一音源设备检测到第一音频业务时,可直接通过蓝牙连接向音频输出设备发送与第一音频业务对应的第二业务请求,对音频输出设备进行抢占,由于音频输出设备处于空闲状态,在接收到第一音源设备发送的第二业务请求时,可直接处理第一音源设备的第一音频业务。第一音源设备既不需要重新与音频输出设备建立A2DP、HFP等连接,也不需要对蓝牙连接进行激活,可提高第一音源设备抢占音频输出设备的速度。
步骤406,若接收到第一音源设备发送的用于指示结束第一音频业务的业务结束指令,则根据业务结束指令分别向 各个其它音源设备发送非占用指令,该非占用指令用于指示其它音源设备将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态。
在第一音源设备结束第一音频业务时,可向音频输出设备发送业务结束指令,例如,第一音源设备结束语音通话、停止播放音乐等,第一音源设备停止向音频输出设备发送音频数据。音频输出设备在接收到第一音源设备发送的业务结束指令后,音频输出设备恢复至空闲状态,可分别向各个其它音源设备发送非占用指令,以使其它音源设备将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态,各个音源设备与音频输出设备之间的蓝牙连接又均恢复到全部处于激活状态。这样可保证任一音源设备在需要占用音频输出设备时,不需要重新激活蓝牙连接。
示例性地,图5为一个实施例中音源设备A占用音频输出设备的示意图。如图5所示,音频输出设备可分别与音源设备A及音源设备B建立蓝牙连接。在音频输出设备处于空闲状态时,音源设备A检测到有音频业务,则音源设备A可向音频输出设备发送业务请求,音频输出设备处理音源设备A的音频业务,并向音源设备B发送占用指令。音源设备B在接收到占用指令后,可将与音频输出设备之间的蓝牙连接设置为非激活状态。在音源设备A结束音频业务时,可向音频输出设备发送业务结束指令,音频输出设备根据该业务结束指令停止处理音源设备A的音频业务,并向音源设备B发送非占用指令,音源设备B可根据该非占用指令将与音频输出设备之间的蓝牙连接设置为激活状态。
步骤408,在音频输出设备处理第一音源设备的第一音频业务的情况下,接收到第二音源设备发送的与第二音频业务对应的第一业务请求。
步骤410,根据第一业务请求,处理第一音源设备及第二音源设备中的目标音源设备的目标音频业务,并向第一音源设备及第二音源设备中的非目标音源设备发送占用指令,该占用指令用于指示非目标音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态。
其中,第一业务请求是第二音源设备在检测到第二音频业务时,将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态,并通过与音频输出设备之间的蓝牙连接发送的。
作为一种实施方式,在音频输出设备处于第一音源设备的音频业务的过程中,若第二音源设备检测到第二音频业务,可直接将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态,并向音频输出设备发送第一业务请求。音频输出设备可根据该第一业务请求,比较第一音频业务对应的业务优先级及第二音频业务对应的业务优先级,以确定第一音源设备及第二音源设备中的目标音源设备及非目标音源设备。
作为另一种实施方式,目标音源设备及非目标音源设备可以是由第二音源设备确定的。第一业务请求是第二音源设备在检测到第二音频业务,且第二音频业务对应的业务优先级高于第一音频业务对应的业务优先级时,将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态,并通过与音频输出设备之间的蓝牙连接发送的。
在音频输出设备根据第一音源设备发送的第二业务请求,处理第一音源设备的第一音频业务时,音频输出设备可分别向各个其它音源设备发送第一音频业务对应的业务优先级,以使第二音源设备在检测到第二音频业务时,将第一音频业务对应的业务优先级与第二音频业务对应的业务优先级进行比较。若第二音频业务对应的业务优先级高于第一音频业务对应的业务优先级,再将与音频输出设备之间的蓝牙连接切换至激活状态,并抢占音频输出设备;若第二音频业务对应的业务优先级不高于第一音频业务对应的业务优先级,则不激活该蓝牙连接,不对音频输出设备进行抢占。音频输出设备接收到第二音源设备发送的第一业务请求,即与第二音源设备进行数据传输,则在该场景下,目标音源设备为第二音源设备,非目标音源设备为第一音源设备。
在一些实施例中,上述的第一音频业务及第二音频业务均可包括通话业务及多媒体音频播放业务等中的任一种,第一业务请求可包括通话请求及多媒体音频播放请求中的任一种,音频数据可包括多媒体音频数据及语音数据中的任一种。第一音频业务对应的业务优先级与第二音频业务对应的业务优先级之间的比较结果,可包括以下几种中的任一种情况:
情况一、第一音源设备进行多媒体音频播放业务,第二音源设备进行通话业务,多媒体音频播放业务对应的业务优先级,低于通话业务对应的业务优先级。
若在音频输出设备处理第一音源设备的多媒体音频播放业务的情况下,音频输出设备接收到第二音源设备发送的通话请求,则第二音频业务对应的业务优先级高于第一音频业务对应的业务优先级,目标音源设备为第二音源设备,非目标音源设备为第一音源设备。
情况二、第一音源设备进行通话业务,第二音源设备进行多媒体音频播放业务,多媒体音频播放业务对应的业务优先级,低于通话业务对应的业务优先级。
若在音频输出设备处理第一音源设备的通话业务的情况下,音频输出设备接收到第二音源设备发送的多媒体音频播放请求,则第二音频业务对应的业务优先级低于第一音频业务对应的业务优先级,目标音源设备为第一音源设备,非目标音源设备为第二音源设备。
情况三、第一音源设备进行通话业务,第二音源设备也进行通话业务,则可根据预先设定的第一比较规则确定第一音频业务对应的业务优先级与第二音频业务对应的业务优先级之间的比较结果。
可选地,第一比较规则可包括:用户较晚确定接听的通话业务的业务优先级高于用户较早确定接听的通话业务的业务优先级。例如,若在音频输出设备处理第一音源设备的通话业务的情况下,音频输出设备接收到第二音源设备发送的通话请求,则第二音频业务对应的业务优先级高于第一音频业务对应的业务优先级,目标音源设备为第二音源设备,非目标音源设备为所述第一音源设备。
在音频输出设备处理第一音源设备的通话业务的过程中,即用户当前正在接听第一音源设备的通话,第二音源设备检测到通话业务,用户在第二音源设备上进行接听操作,确定接听第二音源设备的通话,则第二音频业务对应的业务优先级高于第一音频业务对应的业务优先级。
可选地,第一比较规则可包括:根据用户触发的抢占操作确定比较结果。若在音频输出设备处理第一音源设备的通 话业务的情况下,接收到第二音源设备发送的通话请求及抢占指令,则第二音频业务对应的业务优先级高于第一音频业务对应的业务优先级,目标音源设备为第二音源设备,非目标音源设备为第一音源设备,其中,抢占指令为音频输出设备或第二音频输出设备根据触发的抢占操作生成的。
在音频输出设备与第一音源设备进行语音数据传输的过程中,即用户当前正在接听第一音源设备的通话,第二音源设备检测到通话业务,用户在第二音源设备上进行接听操作,可进一步在音频输出设备或第二音频输出设备选择是否进行抢占。例如,第二音频输出设备在通话界面除了显示接听控件以外,还可显示抢占控件,若用户同时触发接听控件及抢占控件,则音频输出设备检测到抢占操作,第二音频业务对应的业务优先级高于第一音频业务对应的业务优先级。又例如,第二音频输出设备在通话界面可显示接听控件,在用户触发该接听控件后,还可对音频输出设备进行预设的抢占操作(比如双击耳机设备中的左耳机,或是长按耳机设备中的右耳机等),音频输出设备检测到抢占操作,第二音频业务对应的业务优先级高于第一音频业务对应的业务优先级。
若音频输出设备接收到第二音源设备发送的通话请求,但在预设时间段内未接收到抢占指令,则第二音源设备抢占失败,音频输出设备继续处理第一音源设备的通话业务,第二音频业务对应的业务优先级低于第一音频业务对应的业务优先级,目标音源设备为第一音源设备,非目标音源设备为第二音源设备。
情况四、第一音源设备进行多媒体音频播放业务,第二音源设备也进行多媒体音频播放业务,则可根据预先设定的第二比较规则确定第一音频业务对应的业务优先级与第二音频业务对应的业务优先级之间的比较结果。
可选地,第二比较规则可包括:根据进行多媒体音频播放业务的应用程序的优先级确定比较结果。例如,第二音源设备进行多媒体音频播放业务的应用程序为视频播放应用,第一音源设备进行多媒体音频播放业务的应用程序为音乐播放应用,视频播放应用的优先级大于音乐播放应用的优先级,则第二音频业务对应的业务优先级高于第一音频业务对应的业务优先级。
可选地,第二比较规则可包括:后进行的多媒体音频播放业务的业务优先级高于先进行的多媒体音频播放业务的业务优先级。若在音频输出设备与第一音源设备进行多媒体音频数据传输的情况下,音频输出设备接收到第二音源设备发送的多媒体音频播放请求,则第二音频业务对应的业务优先级高于第一音频业务对应的业务优先级。
需要说明的是,上述的第一比较规则及第二比较规则可根据实际需求进行设定,本申请实施例对此不作限制。
在一些实施例中,在第二音源设备检测到有通话业务时,若检测到针对通话业务的接听指令,则向音频输出设备发送通话请求。第二音源设备检测到接听指令,说明用户确定接听该通话业务,再向音频输出设备发送通话请求,可避免出现误抢占音频输出设备而影响了第一音源设备对音频输出设备正常使用的情况。进一步地,仅在第二音源设备检测到针对通话业务的接听指令的情况下,第二音源设备或音频输出设备才进行业务优先级比较,可减少功耗损失。
在一些实施例中,在第二音源设备检测到有多媒体音频播放业务时,若确定待输出的多媒体音频数据不是提示音频数据,则向音频输出设备发送多媒体音频播放请求。如果待输出的多媒体音频数据是提示音频数据(例如短信提示音、消息提示音等),不需要抢占音频输出设备,因此,在多媒体音频数据不是提示音频数据的情况下,第二音源设备才向音频输出设备发送多媒体音频播放请求,可避免出现误抢占音频输出设备而影响了第一音源设备对音频输出设备正常使用的情况。进一步地,仅在多媒体音频数据不是提示音频数据的情况下,第二音源设备或音频输出设备才进行业务优先级比较,可减少功耗损失。
在一些实施例中,音频输出设备向第一音源设备及第二音源设备中的非目标音源设备发送占用指令,可包括:向第一音源设备及第二音源设备中的非目标音源设备发送占用指令及暂停指令,以使非目标音源设备根据占用指令将与音频输出设备之间的蓝牙连接设置为非激活状态,并根据暂停指令暂停输出音频数据;或,向第一音源设备及第二音源设备中的非目标音源设备发送占用指令,以使非目标音源设备根据占用指令将与音频输出设备之间的蓝牙连接设置为非激活状态,并通过扬声器播放音频数据。
在非目标音源设备根据占用指令将与音频输出设备之间的蓝牙连接设置为非激活状态的同时,非目标音源设备可暂停输出音频数据,例如,非目标音源设备可暂停多媒体音频播放业务,可减少非目标音源设备的功耗损失。非目标音源设备也可通过扬声器播放音频数据,例如,可通过扬声器播放语音数据,可避免非目标音源设备的音频数据处于无声状态,满足用户依然想到听到非目标音源设备的需求。
步骤412,若接收到目标音源设备发送的用于指示结束目标音频业务的业务结束指令,则根据业务结束指令向非目标音源设备发送非占用指令,该非占用指令用于指示非目标音源设备将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态。
步骤414,处理非目标音源设备的音频业务,并向目标音源设备发送占用指令,以使目标音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态。
在目标音源设备结束音频业务时,音频输出设备可向非目标音源设备发送非占用指令,以使非目标音源设备将与音频输出设备之间的蓝牙连接切换至激活状态。非目标音源设备可判断当前音频业务是否还未完成,若当前还存在未完成的音频业务(例如还处于通话中、多媒体播放器还在播放多媒体音频等),则可通过激活的蓝牙连接向音频输出设备发送第三业务请求,从而与音频输出设备进行音频数据传输。音频输出设备接收非目标音源设备发送的第三业务请求后,可向目标音源设备发送占用指令,以使目标音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态。
示例性地,图6A为一个实施例中在目标音源设备结束音频业务后,非目标音源设备占用音频输出设备的示意图。如图6A所示,音频输出设备可分别与音源设备A及音源设备B建立蓝牙连接。在音频输出设备处理音源设备A的音频业务的过程中,音源设备B检测到有音频业务,且音频输出设备确定音源设备B的音频业务的业务优先级高于音源设备A的音频业务的业务优先级,则音频输出设备处理音源设备B的音频业务,并同时向音源设备A发送占用指令,以使音源设备A将蓝牙连接设置为非激活状态。在音源设备B结束音频业务后,音频输出设备向音源设备A发送非占用指令,以使音源设备A将蓝牙连接设置为激活状态,若音源设备A之前的音频业务还未完成,则可向音频输出设备发送业务请 求。音频输出设备根据音源设备A发送的业务请求继续处理音源设备A的音频业务,并向音源设备B发送占用指令,以使音源设备B将蓝牙连接设置为非激活状态。
示例性地,图6B为另一个实施例中在目标音源设备结束音频业务后,非目标音源设备占用音频输出设备的示意图。如图6B所示,音频输出设备可分别与音源设备A及音源设备B建立蓝牙连接。在音频输出设备处理音源设备A的音频业务的过程中,音源设备B检测到有音频业务,且音源设备B确定音源设备B的音频业务的业务优先级高于音源设备A的音频业务的业务优先级,则激活蓝牙连接并向音频输出设备发送业务请求。音频输出设备根据音源设备B发送的业务请求,处理音源设备B的音频业务,并同时向音源设备A发送占用指令,以使音源设备A将蓝牙连接设置为非激活状态。在音源设备B结束音频业务后,音频输出设备向音源设备A发送非占用指令,以使音源设备A将蓝牙连接设置为激活状态,若音源设备A之前的音频业务还未完成,则可向音频输出设备发送业务请求。音频输出设备根据音源设备A发送的业务请求继续处理音源设备A的音频业务,并向音源设备B发送占用指令,以使音源设备B将蓝牙连接设置为非激活状态。
在音频输出设备完成目标音源设备的音频业务后,可快速切换到非目标音源设备,处理非目标音源设备的音频业务,满足了用户在不同场景下对音频输出设备的使用需求。
需要说明的是,图5、图6A及图6B仅示出了音频输出设备与两个音源设备建立蓝牙连接的情况,音频输出设备可以与更多音源设备(如3个、4个等)建立蓝牙连接,并采用本申请实施提供的音频业务处理方法进行业务抢占。
在本申请实施例中,在音频输出设备处理任一音源设备的音频业务时,其它音源设备与音频输出设备之间的蓝牙连接均处于非激活状态,可避免在音频输出设备处理音频业务时产生不良影响。在音源设备需要抢占音频输出设备时,不需要与音频输出设备进行重连,能够更加快速、便捷地对音频输出设备进行抢占,不同音源设备切换使用音频输出设备的效率更高。此外,基于业务优先级来决定是否成功抢占音频输出设备,使音频输出设备处理的音频业务更加贴合用户需求,提高用户体验。
如图7所示,在一个实施例中,提供一种音频业务处理方法,可应用于上述的第二音源设备。该方法可包括:
步骤710,在检测到第二音频业务时,向音频输出设备发送与第二音频业务对应的第一业务请求。
在一个实施例中,在步骤710之前,还包括:接收音频输出设备发送的占用指令,该占用指令为音频输出设备开始处理第一音源设备的第一音频业务时发送的。步骤710,包括:在检测到第二音频业务时,将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态,并向音频输出设备发送与第二音频业务对应的第一业务请求。其中,激活状态指的是能够通过与音频输出设备之间的蓝牙连接向音频输出设备发送信息的状态。
在一个实施例中,步骤710,包括:在检测到有通话业务时,若检测到针对通话业务的接听指令,则向音频输出设备发送通话请求;和/或,在检测到有多媒体音频播放业务时,若确定待输出的多媒体音频数据不是提示音频数据,则向音频输出设备发送多媒体音频播放请求。
步骤720,若接收到音频输出设备发送的占用指令,则将与音频输出设备之间的蓝牙连接设置为非激活状态。该占用指令为音频输出设备在处理第一音源设备的第一音频业务的过程中接收到第一业务请求,并确定第二音频业务对应的业务优先级低于第一音频业务对应的业务优先级时发送的。
其中,非激活状态指的是保持与音频输出设备之间的蓝牙连接,但不能通过与音频输出设备之间的蓝牙连接向音频输出设备发送信息的状态。
在一个实施例中,在步骤720之后,该方法还包括:根据音频输出设备发送的暂停指令暂停输出音频业务对应的音频数据;或,通过扬声器播放音频业务对应的音频数据。
在一个实施例中,在步骤720之后,该方法还包括:接收音频输出设备发送的非占用指令,该非占用指令为音频输出设备在停止处理第一音源设备的第一音频业务时发送的;根据非占用指令将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态;以及若第二音频业务还未完成,则与音频输出设备进行与该第二音频业务对应的音频数据传输。
需要说明的是,本实施例提供的应用于第二音源设备的音频业务处理方法的描述,可参考上述各实施例中提供的应用于音频输出设备的音频业务处理方法的相关描述,在此不再重复赘述。
在本申请实施例中,在音频输出设备处理第一音源设备的音频业务时,第二音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态,既不会影响第一音源设备使用音频输出设备,且在第二音源设备需要抢占音频输出设备时,不需要与音频输出设备进行重连,提高抢占音频输出设备效率。此外,音频输出设备会根据第一音频业务及第二音频业务各自的业务优先级,判断第二音源设备是否能够成功抢占音频输出设备,使音频输出设备处理的音频业务更加贴合用户需求。
如图8所示,在一个实施例中,提供一种音频业务处理方法,可应用于上述的第二音源设备。该方法可包括:
步骤810,接收音频输出设备发送的与第一音源设备的第一音频业务对应的业务优先级。其中,第一音频业务对应的业务优先级为音频输出设备在处理第一音源设备的第一音频业务时发送的。
步骤820,若第二音源设备检测到第二音频业务,且确定第一音频业务对应的业务优先级低于第二音频业务对应的业务优先级,则向音频输出设备发送与第二音频业务对应的第一业务请求,以使音频输出设备向第一音源设备发送占用指令,该占用指令用于指示第一音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态。
其中,非激活状态指的是保持与音频输出设备之间的蓝牙连接,但不能通过与音频输出设备之间的蓝牙连接向音频输出设备发送信息的状态。
在一个实施例中,在步骤820之前,还包括:接收音频输出设备发送的占用指令,该占用指令为音频输出设备在处理第一音源设备的第一音频业务时发送的;根据该占用指令将与音频输出设备之间的蓝牙连接设置为非激活状态。步骤向音频输出设备发送与第二音频业务对应的第一业务请求,包括:将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态,并向音频输出设备发送与第二音频业务对应的第一业务请求。
在一个实施例中,步骤820,包括:在检测到有通话业务时,若检测到针对通话业务的接听指令,且第一音频业务对应的业务优先级低于第二音频业务对应的业务优先级,则向音频输出设备发送通话请求;和/或,在检测到有多媒体音频播放业务时,若确定待输出的多媒体音频数据不是提示音频数据,且第一音频业务对应的业务优先级低于第二音频业务对应的业务优先级,则向音频输出设备发送多媒体音频播放请求。
其中,激活状态指的是能够通过与音频输出设备之间的蓝牙连接向音频输出设备发送信息的状态。
在一个实施例中,步骤820,包括:在检测到有通话业务时,若第一音源设备进行多媒体音频播放业务,则确定第一音频业务对应的业务优先级低于第二音频业务对应的业务优先级。
在一个实施例中,步骤820,包括:在检测到有通话业务时,若第一音源设备进行通话业务,则确定第一音频业务对应的业务优先级低于第二音频业务对应的业务优先级。
在一个实施例中,步骤820,包括:在检测到有通话业务时,若第一音源设备进行通话业务,且获取到抢占指令,则确定第一音频业务对应的业务优先级低于第二音频业务对应的业务优先级。其中,抢占指令为音频输出设备检测到抢占操作时发送的;或,抢占指令为第二音源设备检测到抢占操作时获取的。
在一个实施例中,步骤820,包括:在检测到有多媒体音频播放业务,若第一音源设备进行通话业务,则确定第一音频业务对应的业务优先级高于第二音频业务对应的业务优先级。
步骤830,与音频输出设备进行与第二音频业务对应的音频数据传输。
在一个实施例中,在步骤830之后,还包括:在完成第二音频业务时,向音频输出设备发送业务结束指令,以使音频输出设备向第一音源设备发送非占用指令,该非占用指令用于指示第一音源设备将与音频输出设备之间的蓝牙连接设置从非激活状态切换为激活状态。
在一个实施例中,在步骤若第二音源设备检测到第二音频业务之后,还包括:若确定第一音频业务对应的业务优先级高于第二音频业务对应的业务优先级,则与音频输出设备之间的蓝牙连接保持非激活状态,并通过扬声器播放音频业务对应的音频数据或不播放音频业务对应的音频数据。
在一个实施例中,在第二音源设备接收音频输出设备发送的占用指令之后,且在检测到第二音频业务之前,还包括:若接收到音频输出设备发送的非占用指令,则根据该非占用指令将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态,并删除与第一音频业务对应的业务优先级。其中,该非占用指令为音频输出设备接收到第一音源设备发送的业务结束指令时发送的。
在删除与第一音频业务对应的业务优先级之后,若第二音源设备检测到有第二音频业务,由于此时音频输出设备处于空闲状态,则第二音源设备可直接向音频输出设备发送与第二音频业务对应的第一业务请求,音频输出设备可根据该第一业务请求处理第一音源设备的第二音频业务。
在本申请实施例中,在音频输出设备处理第一音源设备的音频业务时,第二音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态,既不会影响第一音源设备使用音频输出设备,且在第二音源设备需要抢占音频输出设备时,不需要与音频输出设备进行重连,提高抢占音频输出设备效率。此外,第二音源设备会根据第一音频业务及第二音频业务各自的业务优先级,判断是否抢占音频输出设备,使音频输出设备处理的音频业务更加贴合用户需求。
如图9所示,在一个实施例中,提供一种音频业务处理装置900,该音频业务处理装置900可应用于上述的音频输出设备,该音频输出设备与至少两个音源设备建立蓝牙连接,至少两个音源设备包括第一音源设备及第二音源设备。该音频业务处理装置900可包括请求接收模块910及指令发送模块920。
请求接收模块910,用于在音频输出设备处理第一音源设备的第一音频业务的情况下,接收到第二音源设备发送的与第二音频业务对应的第一业务请求。
指令发送模块920,用于根据第一业务请求,处理第一音源设备及第二音源设备中的目标音源设备的目标音频业务,并向第一音源设备及第二音源设备中的非目标音源设备发送占用指令,该占用指令用于指示非目标音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态。
其中,目标音源设备及非目标音源设备是由音频输出设备或第二音源设备根据第一音频业务与第二音频业务之间的业务优先级关系确定的;非激活状态指的是保持与音频输出设备之间的蓝牙连接,但不能通过与音频输出设备之间的蓝牙连接向音频输出设备发送信息的状态。
在一个实施例中,音频业务处理装置900还包括比较模块。
比较模块,用于根据第一业务请求,将第二音频业务对应的业务优先级与第一音频业务对应的业务优先级进行比较,并根据比较结果确定第一音源设备与第二音源设备中的目标音源设备及非目标音源设备。
在本申请实施例中,在音源设备需要抢占音频输出设备时,无需与音频输出设备进行重连,能够更加快速、便捷地对音频输出设备进行抢占,保证音频输出设备处理音频业务的效率。此外,音频输出设备可基于业务优先级处理相应的音频业务,更加贴合用户的实际需求。
在一个实施例中,请求接收模块910,还用于接收第一音源设备发送的与第一音频业务对应的第二业务请求。
指令发送模块920,还用于若音频输出设备未与任一音源设备进行音频数据传输,则根据第二业务请求处理第一音源设备的第一音频业务,并分别向各个其它音源设备发送占用指令,该占用指令用于指示其它音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态。其中,其它音源设备为至少两个音源设备中除第一音源设备以外的音源设备。
在一个实施例中,指令发送模块920,还用于在分别向各个其它音源设备发送占用指令之后,若接收到第一音源设备发送的用于指示结束第一音频业务的业务结束指令,则根据业务结束指令分别向各个其它音源设备发送非占用指令,该非占用指令用于指示其它音源设备将与所述音频输出设备之间的蓝牙连接从非激活状态切换至激活状态。
在一个实施例中,第一业务请求是第二音源设备在检测到第二音频业务时,将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态,并通过与音频输出设备之间的蓝牙连接发送的;其中,激活状态指的是能够通过与音频输出 设备之间的蓝牙连接向音频输出设备发送信息的状态。
在一个实施例中,第一业务请求是第二音源设备在检测到第二音频业务,且第二音频业务对应的业务优先级高于所述第一音频业务对应的业务优先级,则将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态,并通过与音频输出设备之间的蓝牙连接发送的;目标音源设备为第二音源设备,非目标音源设备为第一音源设备。
在一个实施例中,音频业务处理装置900还包括信息发送模块。
信息发送模块,用于在音频输出设备开始处理第一音源设备的第一音频业务之后,分别向各个其它音源设备发送第一音频业务对应的业务优先级,以使第二音源设备在检测到第二音频业务时,将第一音频业务对应的业务优先级与第二音频业务对应的业务优先级进行比较。
在一个实施例中,指令发送模块920,还用于向第一音源设备及第二音源设备中的非目标音源设备发送占用指令及暂停指令,以使非目标音源设备根据占用指令将与音频输出设备之间的蓝牙连接设置为非激活状态,并根据暂停指令暂停输出音频数据;或,向第一音源设备及第二音源设备中的非目标音源设备发送占用指令,以使非目标音源设备根据占用指令将与音频输出设备之间的蓝牙连接设置为非激活状态,并通过扬声器播放音频数据。
在一个实施例中,指令发送模块920,还用于在向非目标音源设备发送占用指令之后,若接收到目标音源设备发送的用于指示结束目标音频业务的业务结束指令,则根据业务结束指令向非目标音源设备发送非占用指令,该非占用指令用于指示非目标音源设备将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态。
在一个实施例中,指令发送模块920,还用于处理非目标音源设备的音频业务,并向目标音源设备发送所述占用指令,以使目标音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态。
在一个实施例中,音频业务包括多媒体音频播放业务及通话业务中的任一种;第一业务请求包括通话请求及多媒体音频播放请求中的任一种。
其中,若请求接收模块910在音频输出设备处理第一音源设备的多媒体音频播放业务的情况下,接收到第二音源设备发送的通话请求,则第二音频业务对应的业务优先级高于第一音频业务对应的业务优先级,目标音源设备为所述第二音源设备,非目标音源设备为第一音源设备。
若请求接收模块910在音频输出设备处理第一音源设备的通话业务的情况下,接收到第二音源设备发送的多媒体音频播放请求,则第二音频业务对应的业务优先级低于第一音频业务对应的业务优先级,目标音源设备为第一音源设备,非目标音源设备为第二音源设备。
在一个实施例中,若请求接收模块910在音频输出设备处理第一音源设备的通话业务的情况下,接收到第二音源设备发送的通话请求,则第二音频业务对应的业务优先级高于第一音频业务对应的业务优先级,目标音源设备为第二音源设备,非目标音源设备为第一音源设备。
在一个实施例中,若请求接收模块910在音频输出设备处理第一音源设备的通话业务的情况下,接收到第二音源设备发送的通话请求及抢占指令,则第二音频业务对应的业务优先级高于第一音频业务对应的业务优先级,目标音源设备为第二音源设备,非目标音源设备为第一音源设备,其中,抢占指令为音频输出设备或第二音频输出设备根据触发的抢占操作生成的。
在本申请实施例中,在音频输出设备处理任一音源设备的音频业务时,其它音源设备与音频输出设备之间的蓝牙连接均处于非激活状态,可避免在音频输出设备处理音频业务时产生不良影响。在音源设备需要抢占音频输出设备时,不需要与音频输出设备进行重连,能够更加快速、便捷地对音频输出设备进行抢占,不同音源设备切换使用音频输出设备的效率更高。此外,基于业务优先级来决定是否成功抢占音频输出设备,使音频输出设备处理的音频业务更加贴合用户需求,提高用户体验。
如图10所示,在一个实施例中,提供一种音频业务处理装置1000,可应用于上述的第二音源设备,第二音源设备与音频输出设备建立蓝牙连接,音频输出设备还至少与第一音源设备建立蓝牙连接。该音频业务处理装置1000,包括请求发送模块1010及状态设置模块1020。
请求发送模块1010,用于在检测到第二音频业务时,向音频输出设备发送与第二音频业务对应的第一业务请求。
状态设置模块1020,用于若接收到音频输出设备发送的占用指令,则将与音频输出设备之间的蓝牙连接设置为非激活状态;该占用指令为音频输出设备在处理第一音源设备的第一音频业务的过程中接收到第一业务请求,并确定第二音频业务对应的业务优先级低于第一音频业务对应的业务优先级时发送的。
其中,非激活状态指的是保持与音频输出设备之间的蓝牙连接,但不能通过与音频输出设备之间的蓝牙连接向音频输出设备发送信息的状态。
在一个实施例中,状态设置模块1020,还用于在检测到第二音频业务之前,接收音频输出设备发送的占用指令,该占用指令为音频输出设备开始处理第一音源设备的第一音频业务时发送的;以及根据该占用指令将与音频输出设备之间的蓝牙连接设置为非激活状态。
请求发送模块1010,还用于在检测到第二音频业务时,通过状态设置模块1020将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态,并向音频输出设备发送与第二音频业务对应的第一业务请求;其中,激活状态指的是能够通过与音频输出设备之间的蓝牙连接向音频输出设备发送信息的状态。
在一个实施例中,请求发送模块1010,还用于在检测到有通话业务时,若检测到针对通话业务的接听指令,则向音频输出设备发送通话请求;和/或,在检测到有多媒体音频播放业务时,若确定待输出的多媒体音频数据不是提示音频数据,则向音频输出设备发送多媒体音频播放请求。
在一个实施例中,音频业务处理装置1000还包括数据播放模块。
数据播放模块,用于在状态设置模块1020将与音频输出设备之间的蓝牙连接设置为非激活状态之后,根据音频输出设备发送的暂停指令暂停输出音频业务对应的音频数据;或,通过扬声器播放音频业务对应的音频数据。
在一个实施例中,状态设置模块1020,还用于在将与音频输出设备之间的蓝牙连接设置为非激活状态之后,接收音频输出设备发送的非占用指令,该非占用指令为音频输出设备在停止处理第一音源设备的第一音频业务时发送的;根据非占用指令将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态。
数据播放模块,还用于在状态设置模块1020将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态之后,若第二音频业务还未完成,则与音频输出设备进行与第二音频业务对应的音频数据传输。
在本申请实施例中,在音频输出设备处理第一音源设备的音频业务时,第二音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态,既不会影响第一音源设备使用音频输出设备,且在第二音源设备需要抢占音频输出设备时,不需要与音频输出设备进行重连,提高抢占音频输出设备效率。此外,音频输出设备会根据第一音频业务及第二音频业务各自的业务优先级,判断第二音源设备是否能够成功抢占音频输出设备,使音频输出设备处理的音频业务更加贴合用户需求。
如图11所示,在一个实施例中,提供一种音频业务处理装置1100,可应用于上述的第二音源设备,第二音源设备与音频输出设备建立蓝牙连接,音频输出设备还至少与第一音源设备建立蓝牙连接。该音频业务处理装置1100,可包括接收模块1110、请求发送模块1120及数据传输模块1130。
接收模块1110,用于接收音频输出设备发送的与第一音源设备的第一音频业务对应的业务优先级,第一音频业务对应的业务优先级为音频输出设备在处理第一音源设备的第一音频业务时发送的。
请求发送模块1120,用于若第二音源设备检测到第二音频业务,且确定第一音频业务对应的业务优先级低于第二音频业务对应的业务优先级,则向音频输出设备发送与第二音频业务对应的第一业务请求,以使音频输出设备向第一音源设备发送占用指令,该占用指令用于指示第一音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态。
数据传输模块1130,用于与音频输出设备进行与第二音频业务对应的音频数据传输。
其中,非激活状态指的是保持与音频输出设备之间的蓝牙连接,但不能通过与音频输出设备之间的蓝牙连接向音频输出设备发送信息的状态。
在一个实施例中,音频业务处理装置1100还包括状态设置模块。
状态设置模块,用于在检测到第二音频业务之前,接收音频输出设备发送的占用指令,该占用指令为音频输出设备开始处理第一音源设备的第一音频业务时发送的;根据该占用指令将与音频输出设备之间的蓝牙连接设置为非激活状态。
状态设置模块,还用于通过状态设置模块将与音频输出设备之间的蓝牙连接从非激活状态切换至激活状态,并向音频输出设备发送与第二音频业务对应的第一业务请求;其中,激活状态指的是能够通过与音频输出设备之间的蓝牙连接向音频输出设备发送信息的状态。
在一个实施例中,请求发送模块1120,还用于在完成第二音频业务时,向音频输出设备发送业务结束指令,以使音频输出设备向第一音源设备发送非占用指令,该非占用指令用于指示第一音源设备将与音频输出设备之间的蓝牙连接设置从非激活状态切换为激活状态。
在一个实施例中,请求发送模块1120,还用于在检测到有通话业务时,若检测到针对通话业务的接听指令,且第一音频业务对应的业务优先级低于所述第二音频业务对应的业务优先级,则向音频输出设备发送通话请求;和/或,在检测到有多媒体音频播放业务时,若确定待输出的多媒体音频数据不是提示音频数据,且第一音频业务对应的业务优先级低于第二音频业务对应的业务优先级,则向音频输出设备发送多媒体音频播放请求。
在一个实施例中,状态设置模块,还用于若第一音频业务对应的业务优先级高于第二音频业务对应的业务优先级,则与音频输出设备之间的蓝牙连接保持非激活状态,并通过扬声器播放音频业务对应的音频数据或不播放音频业务对应的音频数据。
在本申请实施例中,在音频输出设备处理第一音源设备的音频业务时,第二音源设备将与音频输出设备之间的蓝牙连接设置为非激活状态,既不会影响第一音源设备使用音频输出设备,且在第二音源设备需要抢占音频输出设备时,不需要与音频输出设备进行重连,提高抢占音频输出设备效率。此外,第二音源设备会根据第一音频业务及第二音频业务各自的业务优先级,判断是否抢占音频输出设备,使音频输出设备处理的音频业务更加贴合用户需求。
图12为一个实施例中电子设备的结构框图。如图12所示,电子设备1200可以包括一个或多个如下部件:处理器1210、与处理器1210耦合的存储器1220,其中存储器1220可存储有一个或多个计算机程序,一个或多个计算机程序可以被配置为由一个或多个处理器1210执行时实现如上述各实施例描述的应用于音频输出设备的音频业务处理方法。
处理器1210可以包括一个或者多个处理核。处理器1210利用各种接口和线路连接整个电子设备1200内的各个部分,通过运行或执行存储在存储器1220内的指令、程序、代码集或指令集,以及调用存储在存储器1220内的数据,执行电子设备1200的各种功能和处理数据。可选地,处理器1210可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1210可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作***、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1210中,单独通过一块通信芯片进行实现。
存储器1220可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。存储器1220可用于存储指令、程序、代码、代码集或指令集。存储器1220可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作***的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等。存储数据区还可以存储电子设备1200在使用中所创建的数据等。
电子设备1200还可包括蓝牙模块,蓝牙模块可用于提供蓝牙通信功能,与其它电子设备建立蓝牙连接,并进行蓝牙数据传输。蓝牙模块可支持一种或多种蓝牙协议,如经典蓝牙、BLE、BLE Audio等),但不限于此,可随着蓝牙协议的发展而变化。
可以理解地,电子设备1200可包括比上述结构框图中更多或更少的结构元件,例如,包括电源模块、物理按键、传感器等,还可在此不进行限定。
本申请实施例公开一种电子设备,包括存储器及处理器,存储器中存储有计算机程序,该计算机程序被该处理器执行时,使得处理器实现如上述各实施例描述的应用于第二音源设备的音频业务处理方法。
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现如上述各实施例描述的应用于音频输出设备的音频业务处理方法。
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现如上述各实施例描述的应用于第二音源设备的音频业务处理方法。
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可被处理器执行时实现如上述各实施例描述的应用于音频输出设备的音频业务处理方法。
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可处理器执行时实现如上述各实施例描述的应用于第二音源设备的音频业务处理方法。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、ROM等。
如此处所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括ROM、可编程ROM(Programmable ROM,PROM)、可擦除PROM(Erasable PROM,EPROM)、电可擦除PROM(Electrically Erasable PROM,EEPROM)或闪存。易失性存储器可包括随机存取存储器(random access memory,RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM可为多种形式,诸如静态RAM(Static RAM,SRAM)、动态RAM(Dynamic Random Access Memory,DRAM)、同步DRAM(synchronous DRAM,SDRAM)、双倍数据率SDRAM(Double Data Rate SDRAM,DDR SDRAM)、增强型SDRAM(Enhanced Synchronous DRAM,ESDRAM)、同步链路DRAM(Synchlink DRAM,SLDRAM)、存储器总线直接RAM(Rambus DRAM,RDRAM)及直接存储器总线动态RAM(Direct Rambus DRAM,DRDRAM)。
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定特征、结构或特性可以以任意适合的方式结合在一个或多个实施例中。本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在本申请的各种实施例中,应理解,上述各过程的序号的大小并不意味着执行顺序的必然先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可位于一个地方,或者也可以分布到多个网络单元上。可根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
以上对本申请实施例公开的音频业务处理方法、装置、电子设备及存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (28)

  1. 一种音频业务处理方法,其特征在于,应用于音频输出设备,所述音频输出设备与至少两个音源设备建立蓝牙连接,所述至少两个音源设备包括第一音源设备及第二音源设备,所述方法包括:
    在所述音频输出设备处理所述第一音源设备的第一音频业务的情况下,接收所述第二音源设备发送的与第二音频业务对应的第一业务请求;
    根据所述第一业务请求,处理所述第一音源设备及第二音源设备中的目标音源设备的目标音频业务,并向所述第一音源设备及第二音源设备中的非目标音源设备发送占用指令,所述占用指令用于指示所述非目标音源设备将与所述音频输出设备之间的蓝牙连接设置为非激活状态;
    其中,所述目标音源设备及非目标音源设备是由所述音频输出设备或所述第二音源设备根据所述第一音频业务与所述第二音频业务之间的业务优先级关系确定的;所述非激活状态指的是保持与所述音频输出设备之间的蓝牙连接,但不能通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述第一业务请求,处理所述第一音源设备及第二音源设备中的目标音源设备的目标音频业务,并向所述第一音源设备及第二音源设备中的非目标音源设备发送占用指令,包括:
    根据所述第一业务请求,将所述第二音频业务对应的业务优先级与所述第一音频业务对应的业务优先级进行比较,并根据比较结果确定所述第一音源设备与第二音源设备中的目标音源设备及非目标音源设备;
    处理所述目标音源设备的目标音频业务,并向所述非目标音源设备发送所述占用指令。
  3. 根据权利要求1所述的方法,其特征在于,所述在所述音频输出设备与所述第一音源设备进行音频数据传输的情况下,接收到所述第二音源设备发送的第一业务请求之前,所述方法还包括:
    接收所述第一音源设备发送的与所述第一音频业务对应的第二业务请求;
    若所述音频输出设备未与任一音源设备进行音频数据传输,则根据所述第二业务请求处理所述第一音源设备的所述第一音频业务,并分别向各个其它音源设备发送占用指令,所述占用指令用于指示所述各个其它音源设备将与所述音频输出设备之间的蓝牙连接设置为所述非激活状态,所述各个其它音源设备为所述至少两个音源设备中除所述第一音源设备以外的音源设备。
  4. 根据权利要求3所述的方法,其特征在于,所述第一业务请求是所述第二音源设备在检测到所述第二音频业务时,将与所述音频输出设备之间的蓝牙连接从所述非激活状态切换至激活状态,并通过与所述音频输出设备之间的蓝牙连接发送的;
    其中,所述激活状态指的是能够通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
  5. 根据权利要求3所述的方法,其特征在于,所述第一业务请求是所述第二音源设备在检测到所述第二音频业务,且所述第二音频业务对应的业务优先级高于所述第一音频业务对应的业务优先级时,将与所述音频输出设备之间的蓝牙连接从所述非激活状态切换至激活状态,并通过与所述音频输出设备之间的蓝牙连接发送的;
    其中,所述激活状态指的是能够通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态,所述目标音源设备为所述第二音源设备,所述非目标音源设备为所述第一音源设备。
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述第二业务请求处理所述第一音源设备的第一音频业务之后,所述方法还包括:
    分别向所述各个其它音源设备发送所述第一音频业务对应的业务优先级,以使所述第二音源设备在检测到所述第二音频业务时,将所述第二音频业务对应的业务优先级与所述第一音频业务对应的业务优先级进行比较。
  7. 根据权利要求3所述的方法,其特征在于,在所述分别向各个其它音源设备发送占用指令之后,所述方法还包括:
    若接收到所述第一音源设备发送的用于指示结束所述第一音频业务的业务结束指令,则根据所述业务结束指令分别向所述各个其它音源设备发送非占用指令,所述非占用指令用于指示所述各个其它音源设备将与所述音频输出设备之间的蓝牙连接从所述非激活状态切换至激活状态,所述激活状态指的是能够通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
  8. 根据权利要求1~6任一所述的方法,其特征在于,在所述处理所述第一音源设备及第二音源设备中的目标音源设备的目标音频业务,并向所述第一音源设备及第二音源设备中的非目标音源设备发送占用指令之后,所述方法还包括:
    若接收到所述目标音源设备发送的用于指示结束所述目标音频业务的业务结束指令,则根据所述业务结束指令向所述非目标音源设备发送非占用指令,所述非占用指令用于指示所述非目标音源设备将与所述音频输出设备之间的蓝牙连接从所述非激活状态切换至所述激活状态。
  9. 根据权利要求8所述的方法,其特征在于,在所述根据所述业务结束指令向所述非目标音源设备发送非占用指令之后,所述方法还包括:
    处理所述非目标音源设备的音频业务,并向所述目标音源设备发送所述占用指令,以使所述目标音源设备将与所述音频输出设备之间的蓝牙连接设置为非激活状态。
  10. 根据权利要求1~6任一所述的方法,其特征在于,所述向所述第一音源设备及第二音源设备中的非目标音源设备发送占用指令,包括:
    向所述第一音源设备及第二音源设备中的所述非目标音源设备发送所述占用指令及暂停指令,以使所述非目标音源设备根据所述占用指令将与所述音频输出设备之间的蓝牙连接设置为所述非激活状态,并根据所述暂停指令暂停输出音频数据;或,
    向所述第一音源设备及第二音源设备中的所述非目标音源设备发送所述占用指令,以使所述非目标音源设备根据所述占用指令将与所述音频输出设备之间的蓝牙连接设置为所述非激活状态,并通过扬声器播放音频数据。
  11. 根据权利要求1~7任一所述的方法,其特征在于,音频业务包括多媒体音频播放业务及通话业务中的任一种;所述第一业务请求包括所述通话请求及所述多媒体音频播放请求中的任一种;
    其中,若在所述音频输出设备处理所述第一音源设备的所述多媒体音频播放业务的情况下,接收到所述第二音源设备发送的通话请求,则所述第二音频业务对应的业务优先级高于所述第一音频业务对应的业务优先级,所述目标音源设备为所述第二音源设备,所述非目标音源设备为所述第一音源设备;
    若在所述音频输出设备处理所述第一音源设备的所述通话业务的情况下,接收到所述第二音源设备发送的多媒体音频播放请求,则所述第二音频业务对应的业务优先级低于所述第一音频业务对应的业务优先级,所述目标音源设备为所述第一音源设备,所述非目标音源设备为所述第二音源设备。
  12. 根据权利要求11所述的方法,其特征在于,若在所述音频输出设备处理所述第一音源设备的所述通话业务的情况下,接收到所述第二音源设备发送的通话请求,则所述第二音频业务对应的业务优先级高于所述第一音频业务对应的业务优先级,所述目标音源设备为所述第二音源设备,所述非目标音源设备为所述第一音源设备;或,
    若在所述音频输出设备处理所述第一音源设备的所述通话业务的情况下,接收到所述第二音源设备发送的通话请求及抢占指令,则所述第二音频业务对应的业务优先级高于所述第一音频业务对应的业务优先级,所述目标音源设备为所述第二音源设备,所述非目标音源设备为所述第一音源设备,其中,所述抢占指令为所述音频输出设备或所述第二音频输出设备根据触发的抢占操作生成的。
  13. 根据权利要求1所述的方法,其特征在于,所述蓝牙连接包括蓝牙物理链路及业务连接,所述蓝牙物理链路包括异步无连接ACL物理链路及同步定向连接SCO物理链路中的至少一种,所述业务连接包括蓝牙音频传输模型协定A2DP连接及免提协议HFP连接中的至少一种。
  14. 一种音频业务处理方法,其特征在于,应用于第二音源设备,所述第二音源设备与音频输出设备建立蓝牙连接,所述音频输出设备还至少与第一音源设备建立蓝牙连接,所述方法包括:
    在检测到第二音频业务时,向所述音频输出设备发送与所述第二音频业务对应的第一业务请求;
    若接收到所述音频输出设备发送的占用指令,则将与所述音频输出设备之间的蓝牙连接设置为非激活状态;所述占用指令为所述音频输出设备在处理所述第一音源设备的第一音频业务的过程中接收到所述第一业务请求,并确定所述第二音频业务对应的业务优先级低于所述第一音频业务对应的业务优先级时发送的;
    其中,所述非激活状态指的是保持与所述音频输出设备之间的蓝牙连接,但不能通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
  15. 根据权利要求14所述的方法,其特征在于,所述在检测到第二音频业务时,向所述音频输出设备发送与所述第二音频业务对应的第一业务请求之前,所述方法还包括:
    接收所述音频输出设备发送的占用指令,所述占用指令为所述音频输出设备开始处理所述第一音源设备的第一音频业务时发送的;
    根据所述占用指令将与所述音频输出设备之间的蓝牙连接设置为所述非激活状态;
    所述在检测到第二音频业务时,向所述音频输出设备发送与所述第二音频业务对应的第一业务请求,包括:
    在检测到所述第二音频业务时,将与所述音频输出设备之间的蓝牙连接从所述非激活状态切换至激活状态,并向所述音频输出设备发送与所述第二音频业务对应的第一业务请求;其中,所述激活状态指的是能够通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
  16. 根据权利要求14所述的方法,其特征在于,在所述将与所述音频输出设备之间的蓝牙连接设置为非激活状态之后,所述方法还包括:
    接收所述音频输出设备发送的非占用指令,所述非占用指令为所述音频输出设备在停止处理所述第一音源设备的所述第一音频业务时发送的;
    根据所述非占用指令将与所述音频输出设备之间的蓝牙连接从所述非激活状态切换至激活状态,所述激活状态指的是能够通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态;
    若所述第二音频业务还未完成,则与所述音频输出设备进行与所述第二音频业务对应的音频数据传输。
  17. 根据权利要求14所述的方法,其特征在于,所述将与所述音频输出设备之间的蓝牙连接设置为非激活状态之后,所述方法还包括:
    根据所述音频输出设备发送的暂停指令暂停输出所述音频业务对应的音频数据;或,
    通过扬声器播放所述音频业务对应的音频数据。
  18. 根据权利要求14~17任一所述的方法,其特征在于,所述音频业务包括多媒体音频播放业务及通话业务中的任一种;所述第一业务请求包括所述通话请求及所述多媒体音频播放请求中的任一种,所述在检测到第二音频业务时,向所述音频输出设备发送与所述第二音频业务对应的第一业务请求,包括:
    在检测到有所述通话业务时,若检测到针对所述通话业务的接听指令,则向所述音频输出设备发送通话请求;和/或,
    在检测到有所述多媒体音频播放业务时,若确定待输出的多媒体音频数据不是提示音频数据,则向所述音频输出设备发送多媒体音频播放请求。
  19. 一种音频业务处理方法,其特征在于,应用于第二音源设备,所述第二音源设备与音频输出设备建立蓝牙连接,所述音频输出设备还至少与第一音源设备建立蓝牙连接,所述方法包括:
    接收所述音频输出设备发送的与所述第一音源设备的第一音频业务对应的业务优先级,所述第一音频业务对应的业务优先级为所述音频输出设备在处理所述第一音源设备的所述第一音频业务时发送的;
    若所述第二音源设备检测到第二音频业务,且确定所述第一音频业务对应的业务优先级低于所述第二音频业务对应 的业务优先级,则向所述音频输出设备发送与所述第二音频业务对应的第一业务请求,以使所述音频输出设备向所述第一音源设备发送占用指令,所述占用指令用于指示所述第一音源设备将与所述音频输出设备之间的蓝牙连接设置为非激活状态;
    与所述音频输出设备进行与所述第二音频业务对应的音频数据传输;
    其中,所述非激活状态指的是保持与所述音频输出设备之间的蓝牙连接,但不能通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
  20. 根据权利要求19所述的方法,其特征在于,所述在若所述第二音源设备检测到第二音频业务之前,所述方法还包括:
    接收所述音频输出设备发送的占用指令,所述占用指令为所述音频输出设备在处理所述第一音源设备的第一音频业务时发送的;
    根据所述占用指令将与所述音频输出设备之间的蓝牙连接设置为所述非激活状态;
    所述向所述音频输出设备发送与所述第二音频业务对应的第一业务请求,包括:
    将与所述音频输出设备之间的蓝牙连接从所述非激活状态切换至激活状态,并向所述音频输出设备发送与所述第二音频业务对应的第一业务请求;其中,所述激活状态指的是能够通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
  21. 根据权利要求19所述的方法,其特征在于,在所述与所述音频输出设备进行与所述第二音频业务对应的音频数据传输之后,所述方法还包括:
    在完成所述第二音频业务时,向所述音频输出设备发送业务结束指令,以使所述音频输出设备向所述第一音源设备发送非占用指令,所述非占用指令用于指示所述第一音源设备将与所述音频输出设备之间的蓝牙连接设置从所述非激活状态切换为激活状态,所述激活状态指的是能够通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
  22. 根据权利要求19所述的方法,其特征在于,所述音频业务包括多媒体音频播放业务及通话业务中的任一种;所述第一业务请求包括所述通话请求及所述多媒体音频播放请求中的任一种,若所述第二音源设备检测到第二音频业务,且确定所述第一音频业务对应的业务优先级低于所述第二音频业务对应的业务优先级,则向所述音频输出设备发送与所述第二音频业务对应的第一业务请求,包括:
    在检测到有所述通话业务时,若检测到针对所述通话业务的接听指令,且所述第一音频业务对应的业务优先级低于所述第二音频业务对应的业务优先级,则向所述音频输出设备发送通话请求;和/或,
    在检测到有所述多媒体音频播放业务时,若确定待输出的多媒体音频数据不是提示音频数据,且所述第一音频业务对应的业务优先级低于所述第二音频业务对应的业务优先级,则向所述音频输出设备发送多媒体音频播放请求。
  23. 根据权利要求19~22任一所述的方法,其特征在于,所述若所述第二音源设备检测到第二音频业务之后,所述方法还包括:
    若确定所述第一音频业务对应的业务优先级高于所述第二音频业务对应的业务优先级,则与所述音频输出设备之间的蓝牙连接保持所述非激活状态,并通过扬声器播放所述第二音频业务对应的音频数据或不播放所述第二音频业务对应的音频数据。
  24. 一种音频业务处理装置,其特征在于,应用于音频输出设备,所述音频输出设备与至少两个音源设备建立蓝牙连接,所述至少两个音源设备包括第一音源设备及第二音源设备,所述装置包括:
    请求接收模块,用于在所述音频输出设备处理所述第一音源设备的第一音频业务的情况下,接收所述第二音源设备发送的与第二音频业务对应的第一业务请求;
    指令发送模块,用于根据所述第一业务请求,处理所述第一音源设备及第二音源设备中的目标音源设备的目标音频业务,并向所述第一音源设备及第二音源设备中的非目标音源设备发送占用指令,所述占用指令用于指示所述非目标音源设备将与所述音频输出设备之间的蓝牙连接设置为非激活状态;
    其中,所述目标音源设备及所述非目标音源设备是由所述音频输出设备或所述第二音源设备根据所述第一音频业务与所述第二音频业务之间的业务优先级关系确定的;所述非激活状态指的是保持与所述音频输出设备之间的蓝牙连接,但不能通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
  25. 一种音频业务处理装置,其特征在于,应用于第二音源设备,所述第二音源设备与音频输出设备建立蓝牙连接,所述音频输出设备还至少与第一音源设备建立蓝牙连接,所述装置包括:
    请求发送模块,用于在检测到第二音频业务时,向所述音频输出设备发送与所述第二音频业务对应的第一业务请求;
    状态设置模块,用于若接收到所述音频输出设备发送的占用指令,则将与所述音频输出设备之间的蓝牙连接设置为非激活状态;所述占用指令为所述音频输出设备在处理所述第一音源设备的第一音频业务的过程中接收到所述第一业务请求,并确定所述第二音频业务对应的业务优先级低于所述第一音频业务对应的业务优先级时发送的;
    其中,所述非激活状态指的是保持与所述音频输出设备之间的蓝牙连接,但不能通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
  26. 一种音频业务处理装置,其特征在于,应用于第二音源设备,所述第二音源设备与音频输出设备建立蓝牙连接,所述音频输出设备还至少与第一音源设备建立蓝牙连接,所述装置包括:
    接收模块,用于接收所述音频输出设备发送的与所述第一音源设备的第一音频业务对应的业务优先级,所述第一音频业务对应的业务优先级为所述音频输出设备在处理所述第一音源设备的所述第一音频业务时发送的;
    请求发送模块,用于若所述第二音源设备检测到第二音频业务,且确定所述第一音频业务对应的业务优先级低于所述第二音频业务对应的业务优先级,则向所述音频输出设备发送与所述第二音频业务对应的第一业务请求,以使所述音 频输出设备向所述第一音源设备发送占用指令,所述占用指令用于指示所述第一音源设备将与所述音频输出设备之间的蓝牙连接设置为非激活状态;
    数据传输模块,用于与所述音频输出设备进行与所述第二音频业务对应的音频数据传输;
    其中,所述非激活状态指的是保持与所述音频输出设备之间的蓝牙连接,但不能通过与所述音频输出设备之间的蓝牙连接向所述音频输出设备发送信息的状态。
  27. 一种电子设备,其特征在于,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如权利要求1~13、14~18或19~23任一所述的方法。
  28. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1~13、14~18或19~23任一所述的方法。
PCT/CN2022/110551 2021-11-19 2022-08-05 音频业务处理方法、装置、电子设备及存储介质 WO2023087793A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111408671.8A CN114040373A (zh) 2021-11-19 2021-11-19 音频业务处理方法、装置、电子设备及存储介质
CN202111408671.8 2021-11-19

Publications (1)

Publication Number Publication Date
WO2023087793A1 true WO2023087793A1 (zh) 2023-05-25

Family

ID=80145453

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/110551 WO2023087793A1 (zh) 2021-11-19 2022-08-05 音频业务处理方法、装置、电子设备及存储介质

Country Status (2)

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

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040373A (zh) * 2021-11-19 2022-02-11 Oppo广东移动通信有限公司 音频业务处理方法、装置、电子设备及存储介质
CN116088787B (zh) * 2022-08-26 2023-11-28 荣耀终端有限公司 音频流处理方法及相关装置
WO2024082855A1 (zh) * 2022-10-20 2024-04-25 荣耀终端有限公司 一种音频业务处理方法、电子设备及计算机存储介质
CN118075719A (zh) * 2022-11-22 2024-05-24 荣耀终端有限公司 状态通知方法和装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009003373A1 (fr) * 2007-07-03 2009-01-08 Ivt(Beijing) Software Technology Inc. Procédé de commutation, équipement et système pour connexion bluetooth
CN109257500A (zh) * 2018-09-30 2019-01-22 Oppo广东移动通信有限公司 音频播放方法、装置、电子设备及存储介质
CN112399396A (zh) * 2021-01-19 2021-02-23 深圳市汇顶科技股份有限公司 一种蓝牙连接切换方法、蓝牙芯片以及蓝牙设备
CN113225693A (zh) * 2019-04-18 2021-08-06 华为技术有限公司 一种蓝牙连接方法、设备及***
CN114040373A (zh) * 2021-11-19 2022-02-11 Oppo广东移动通信有限公司 音频业务处理方法、装置、电子设备及存储介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112004173B (zh) * 2020-08-27 2023-06-27 努比亚技术有限公司 蓝牙耳机的切换方法、移动终端及计算机可读存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009003373A1 (fr) * 2007-07-03 2009-01-08 Ivt(Beijing) Software Technology Inc. Procédé de commutation, équipement et système pour connexion bluetooth
CN109257500A (zh) * 2018-09-30 2019-01-22 Oppo广东移动通信有限公司 音频播放方法、装置、电子设备及存储介质
CN113225693A (zh) * 2019-04-18 2021-08-06 华为技术有限公司 一种蓝牙连接方法、设备及***
CN112399396A (zh) * 2021-01-19 2021-02-23 深圳市汇顶科技股份有限公司 一种蓝牙连接切换方法、蓝牙芯片以及蓝牙设备
CN114040373A (zh) * 2021-11-19 2022-02-11 Oppo广东移动通信有限公司 音频业务处理方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN114040373A (zh) 2022-02-11

Similar Documents

Publication Publication Date Title
WO2023087793A1 (zh) 音频业务处理方法、装置、电子设备及存储介质
US11812485B2 (en) Bluetooth communication method and terminal
CN111181816B (zh) 多个无线连接的设备之间的音频数据路由
US8363844B2 (en) Contextual audio switching for a USB controlled audio device
JP2018526914A (ja) 繋がれていない無線接続デバイス間の役割交換
US20230325145A1 (en) Audio Control System
WO2021254160A1 (zh) 蓝牙设备及其蓝牙抢占方法和装置、计算机可读存储介质
WO2018082335A1 (zh) 连接蓝牙设备的方法、装置、***及设备
WO2011017875A1 (zh) 一种终端控制蓝牙耳机有序连接的方法及***
JP2004235838A (ja) 電子機器、同機器の接続制御方法および音声調整方法
CN107343237B (zh) 耳机适配器和耳机***、耳机麦克风传送的方法
WO2021043003A1 (zh) 蓝牙数据传输方法、装置、终端及存储介质
WO2024055494A1 (zh) 基于蓝牙耳机的通话方法、装置及存储介质
WO2022228569A1 (zh) 蓝牙设备控制传输的方法和装置、电子设备
JP2015517268A (ja) 呼管理方法及びこれを用いた端末装置
CN111049709B (zh) 一种基于蓝牙的互联音箱控制方法、设备及存储介质
WO2023036178A1 (zh) 蓝牙连接方法、装置、耳机设备及计算机可读存储介质
WO2021174536A1 (zh) 一种通信方法及相关装置
JP2004120651A (ja) 電子機器および同電子機器の接続先切替え方法
WO2024119947A1 (zh) 蓝牙通信方法、装置、电子设备及计算机可读介质
WO2023045784A1 (zh) 通话控制方法、装置、电子设备及计算机可读存储介质
WO2023005880A1 (zh) 音频控制方法、电子设备、音频设备和存储介质
JP2015002394A (ja) 情報処理装置及びコンピュータプログラム
WO2023103732A1 (zh) 耳机设备的状态控制方法、装置、耳机设备及存储介质
WO2021239032A1 (zh) 蓝牙协议连接方法、装置、存储介质及相关设备

Legal Events

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

Ref document number: 22894336

Country of ref document: EP

Kind code of ref document: A1