Audio playing control method and device, audio output device, and storage medium

By establishing Bluetooth connections with multiple terminal devices through the audio output device, identifying and playing target audio data, and processing non-target audio data at the same time, the connection stability and reliability issues of the audio output device when facing multiple terminal devices are resolved, and stable audio output is achieved.

CN115776659BActive Publication Date: 2026-07-03GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
Filing Date
2021-09-08
Publication Date
2026-07-03

Smart Images

  • Figure CN115776659B_ABST
    Figure CN115776659B_ABST
Patent Text Reader

Abstract

An audio playback control method, apparatus, audio output device, and storage medium are disclosed. The method is applied to an audio output device that establishes Bluetooth connections with both a first terminal device and a second terminal device. The method includes: receiving second audio data transmitted from the second terminal device to the audio output device when the first terminal device transmits first audio data to the audio output device; determining target audio data from the first and second audio data; playing the target audio data; and performing a first processing operation corresponding to non-target audio data to prevent the audio output device from outputting non-target audio data. The non-target audio data is another audio data other than the target audio data from the first and second audio data. Implementing the embodiments of this application can improve the stability and reliability of the audio output device establishing a communication connection with the terminal device and performing audio output.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Bluetooth communication technology, and in particular to an audio playback control method and apparatus, an audio output device, and a storage medium. Background Technology

[0002] When using terminal devices (such as smartphones, tablets, and smart wearables), users typically connect them to audio output devices (such as headphones and speakers) to receive and play audio data transmitted from the terminal devices. However, in practice, it has been found that when faced with audio data from multiple terminal devices simultaneously, these audio output devices often maintain a communication connection with only one device while disconnecting from others. This makes reconnection difficult or even impossible for other terminal devices, reducing the stability of the communication connection between the audio output device and the terminal devices, and consequently reducing the stability and reliability of the audio output from the audio output device. Summary of the Invention

[0003] This application discloses an audio playback control method and apparatus, an audio output device, and a storage medium, which can improve the stability and reliability of establishing a communication connection between the audio output device and the terminal device and performing audio output.

[0004] The first aspect of this application discloses an audio playback control method applied to an audio output device, wherein the audio output device establishes Bluetooth connections with a first terminal device and a second terminal device respectively, and the method includes:

[0005] When the first terminal device transmits first audio data to the audio output device, the second terminal device transmits second audio data to the audio output device.

[0006] Determine the target audio data from the first audio data and the second audio data;

[0007] Play the target audio data and perform a first processing operation corresponding to the non-target audio data so that the audio output device does not output the non-target audio data, wherein the non-target audio data is another audio data other than the target audio data among the first audio data and the second audio data.

[0008] A second aspect of this application discloses an audio playback control method applied to a first terminal device, wherein the first terminal device establishes a Bluetooth connection with an audio output device, and the audio output device also establishes a Bluetooth connection with a second terminal device, the method comprising:

[0009] The audio output device transmits first audio data, which is used to enable the audio output device to determine target audio data from the first audio data and the second audio data when the audio output device also receives second audio data transmitted by the second terminal device, and to play the target audio data and perform a first processing operation corresponding to non-target audio data so that the audio output device does not output the non-target audio data, wherein the non-target audio data is another audio data other than the target audio data in the first audio data and the second audio data.

[0010] A third aspect of this application discloses an audio playback control method applied to a second terminal device, wherein the second terminal device establishes a Bluetooth connection with an audio output device, and the audio output device also establishes a Bluetooth connection with a first terminal device, the method comprising:

[0011] The audio output device transmits second audio data, which triggers the audio output device to determine target audio data from the first audio data and the second audio data when the first terminal device transmits first audio data to the audio output device, and to play the target audio data and perform a first processing operation corresponding to non-target audio data, so that the audio output device does not output the non-target audio data, wherein the non-target audio data is another audio data other than the target audio data in the first audio data and the second audio data.

[0012] A fourth aspect of this application discloses an audio playback control device applied to an audio output device, wherein the audio output device establishes Bluetooth connections with a first terminal device and a second terminal device respectively, and the audio playback control device includes:

[0013] The receiving unit is configured to receive second audio data transmitted from the second terminal device to the audio output device when the first terminal device transmits first audio data to the audio output device;

[0014] A determining unit is configured to determine target audio data from the first audio data and the second audio data;

[0015] The control unit is configured to play the target audio data and perform a first processing operation corresponding to the non-target audio data, so that the audio output device does not output the non-target audio data, wherein the non-target audio data is another audio data other than the target audio data among the first audio data and the second audio data.

[0016] A fifth aspect of this application discloses an audio playback control device applied to a first terminal device. The first terminal device establishes a Bluetooth connection with an audio output device, and the audio output device also establishes a Bluetooth connection with a second terminal device. The audio playback control device includes:

[0017] A first transmission unit is configured to transmit first audio data to the audio output device. The first audio data is used to enable the audio output device to determine target audio data from the first audio data and the second audio data, and to play the target audio data, and to perform a first processing operation corresponding to non-target audio data, so that the audio output device does not output the non-target audio data, wherein the non-target audio data is another audio data other than the target audio data in the first audio data and the second audio data.

[0018] A sixth aspect of this application discloses an audio playback control device applied to a second terminal device. The second terminal device establishes a Bluetooth connection with an audio output device, and the audio output device also establishes a Bluetooth connection with a first terminal device. The audio playback control device includes:

[0019] The second transmission unit is configured to transmit second audio data to the audio output device. The second audio data is used to trigger the audio output device to determine target audio data from the first audio data and the second audio data when the first terminal device transmits first audio data to the audio output device, and to play the target audio data and perform a first processing operation corresponding to non-target audio data, so that the audio output device does not output the non-target audio data. The non-target audio data is another audio data other than the target audio data in the first audio data and the second audio data.

[0020] The seventh aspect of this application discloses an audio output device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs all or part of the steps in any of the audio playback control methods disclosed in the first aspect of this application.

[0021] The eighth aspect of this application discloses a terminal device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor enables the processor to implement all or part of the steps in any of the audio playback control methods disclosed in the second or third aspect of this application.

[0022] The ninth aspect of this application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements all or part of the steps in any of the audio playback control methods disclosed in the first, second, or third aspects of this application.

[0023] Compared with related technologies, the embodiments of this application have the following beneficial effects:

[0024] In this embodiment, the audio output device using the audio playback control method can establish Bluetooth connections with both a first terminal device and a second terminal device. When the first terminal device transmits first audio data to the audio output device, it also receives second audio data transmitted from the second terminal device to the audio output device. Based on this, the audio output device can determine target audio data from the first and second audio data, and then play the target audio data. Simultaneously, it performs a first processing operation corresponding to non-target audio data, preventing the audio output device from outputting non-target audio data. The non-target audio data is any audio data other than the target audio data among the first and second audio data. As can be seen, when implementing the embodiments of this application, when the audio output device faces audio data from more than one terminal device at the same time, that is, when it simultaneously receives the first audio data transmitted by the first terminal device and the second audio data transmitted by the second terminal device, it can perform different processing on the first audio data and the second audio data respectively to play the target audio data. Meanwhile, for another audio data that is not determined to be the target audio data (i.e., non-target audio data), it can be kept in a state of not being actually output in the audio output device without disconnecting the Bluetooth connection between its corresponding terminal device and the audio output device (e.g., not decoding or playing the non-target audio data). By playing the target audio data and performing the first processing operation on the non-target audio data, the audio output device can always maintain a Bluetooth connection with the first terminal device and the second terminal device. This avoids the complex processing process in related technologies where, when multiple terminal devices transmit audio data to the audio output device simultaneously, the audio output device must disconnect its Bluetooth connection with the non-target terminal devices in order to receive the audio data transmitted by the target terminal device. This also avoids the possibility of subsequent non-target terminal devices needing to reconnect to the audio output device, which could lead to connection difficulties or even failures. As a result, the stability and reliability of the audio output device establishing a communication connection with the terminal devices and outputting audio are improved. Attached Figure Description

[0025] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0026] Figure 1 This is a schematic diagram of an application scenario of the audio playback control method disclosed in the embodiments of this application;

[0027] Figure 2 This is a flowchart illustrating an audio playback control method disclosed in an embodiment of this application;

[0028] Figure 3 This is a flowchart illustrating another audio playback control method disclosed in an embodiment of this application;

[0029] Figure 4 This is a schematic diagram of a process for muting non-target audio data disclosed in an embodiment of this application;

[0030] Figure 5 This is a schematic diagram of another process for muting non-target audio data disclosed in an embodiment of this application;

[0031] Figure 6 This is a flowchart illustrating another audio playback control method disclosed in the embodiments of this application;

[0032] Figure 7 This is a timing diagram of an audio playback control method disclosed in an embodiment of this application;

[0033] Figure 8 This is a flowchart illustrating an audio playback control method for a first terminal device disclosed in an embodiment of this application;

[0034] Figure 9 This is a flowchart illustrating an audio playback control method for a second terminal device disclosed in an embodiment of this application;

[0035] Figure 10 This is a modular schematic diagram of an audio playback control device disclosed in an embodiment of this application;

[0036] Figure 11 This is a modular schematic diagram of another audio playback control device disclosed in the embodiments of this application;

[0037] Figure 12 This is a modular schematic diagram of another audio playback control device disclosed in the embodiments of this application;

[0038] Figure 13This is a modular schematic diagram of an audio output device disclosed in an embodiment of this application;

[0039] Figure 14 This is a modular schematic diagram of a terminal device disclosed in an embodiment of this application. Detailed Implementation

[0040] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0041] It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or devices.

[0042] This application discloses an audio playback control method and apparatus, an audio output device, and a storage medium, which can improve the stability and reliability of establishing a communication connection between the audio output device and the terminal device and performing audio output.

[0043] The following will be described in detail with reference to the accompanying drawings.

[0044] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating an application scenario of the audio playback control method disclosed in an embodiment of this application. For example... Figure 1 As shown, this application scenario may include a first terminal device 10, a second terminal device 20, and an audio output device 30, wherein the audio output device 30 can establish Bluetooth connections with both the first terminal device 10 and the second terminal device 20. Based on the aforementioned Bluetooth connections, the first terminal device 10 or the second terminal device 20 can respectively transmit data with the audio output device 30. Optionally, the aforementioned Bluetooth connection can be implemented based on a classic Bluetooth protocol (such as the Bluetooth 4.0 protocol defined by the Bluetooth Special Interest Group), or it can be implemented based on a Bluetooth Low Energy (BLE) protocol (such as the Bluetooth 5.0 protocol), which is not specifically limited in this embodiment.

[0045] For example, both the first terminal device 10 and the second terminal device 20 can include various devices or systems with Bluetooth communication capabilities, such as mobile phones, smart wearable devices, in-vehicle terminals, tablets, PCs (Personal Computers), PDAs (Personal Digital Assistants), etc. The audio output device 30 can include various devices that also have Bluetooth communication capabilities and audio output modules such as speakers, such as headphones, speakers, etc., and in particular, can include TWS (True Wireless Stereo) headphones. It should be noted that... Figure 1 The first terminal device 10 and the second terminal device 20 shown are both mobile phones, and the audio output device 30 is a headset. This is just an example and does not constitute a limitation on the device types of the first terminal device 10, the second terminal device 20 and the audio output device 30 in the embodiments of this application.

[0046] In this embodiment, after establishing Bluetooth connections with both the first terminal device 10 and the second terminal device 20, the audio output device 30, which applies the audio playback control method, can receive second audio data transmitted from the second terminal device 20 to the audio output device 30 while the first terminal device 10 transmits first audio data to the audio output device 30. Based on this, the audio output device 30 can determine target audio data from the first and second audio data, and then play the target audio data. Simultaneously, it performs a first processing operation corresponding to non-target audio data, so that the audio output device 30 does not output non-target audio data. Here, the non-target audio data refers to another audio data besides the target audio data in the first and second audio data.

[0047] Optionally, the second terminal device 20 may also include multiple terminal devices, so that the audio output device 30 can determine a unique target audio data from the audio data transmitted by the first terminal device 10 and the multiple second terminal devices 20 respectively, and play the target audio data. Besides the target audio data, the audio data transmitted by the first terminal device 10 and the multiple second terminal devices 20 can all be considered non-target audio data. Then, while playing the target audio data, the audio output device 30 can perform corresponding first processing operations on each non-target audio data in parallel, so that the audio output device 30 only plays the target audio data and does not output the non-target audio data. It should be noted that when the second terminal device 20 includes only one terminal device, the above audio playback control method is applicable to a "one-to-two" scenario, i.e., a scenario where one audio output device establishes a Bluetooth connection with two terminal devices; when the second terminal device 20 includes more than one terminal device, the above audio playback control method is applicable to a "one-to-many" scenario, i.e., a scenario where one audio output device establishes a Bluetooth connection with multiple terminal devices.

[0048] By implementing the above method, when the audio output device 30 receives audio data simultaneously from more than one terminal device (i.e., simultaneously receives first audio data transmitted from the first terminal device 10 and second audio data transmitted from the second terminal device 20), it can process the first and second audio data differently to play the target audio data. Meanwhile, for non-target audio data not identified as target audio data, it can remain unoutputted from the audio output device 30 without disconnecting the connection between its corresponding terminal device (i.e., either the first terminal device 10 or the second terminal device 20). By playing the target audio data and performing the first processing operation on the non-target audio data, the audio output device 30 can maintain a Bluetooth connection with both the first terminal device 10 and the second terminal device 20, avoiding the complex processing in related technologies where, when multiple terminal devices simultaneously transmit audio data to the audio output device, the audio output device must disconnect its Bluetooth connection from non-target terminal devices to receive the audio data transmitted by the target terminal device. Furthermore, the audio output device 30 does not need to re-establish a Bluetooth connection with the disconnected non-target terminal device in the subsequent process, eliminating the possibility of connection difficulties or even failures, thereby effectively improving the stability and reliability of the audio output device 30 in connecting to the terminal device and outputting audio.

[0049] Please see Figure 2 , Figure 2This is a flowchart illustrating an audio playback control method disclosed in an embodiment of this application. This method can be applied to the aforementioned audio output device, which can establish Bluetooth connections with both a first terminal device and a second terminal device. Figure 2 As shown, the audio playback control method may include the following steps:

[0050] 202. When the first terminal device transmits first audio data to the audio output device, the second terminal device transmits second audio data to the audio output device.

[0051] In this embodiment, after establishing Bluetooth connections with both the first and second terminal devices, the audio output device can independently transmit data with either the first or second terminal device based on these Bluetooth connections. For example, taking the first terminal device as an example, when the audio output device needs to transmit data with it, the data transmission link established between the first terminal device and the audio output device based on the Bluetooth connection can be active. This allows the first terminal device to access its stored or acquired first audio data and transmit it to the audio output device via the aforementioned data transmission link. Optionally, the audio output device can also package its device information (such as product identifier, remaining battery power, etc.) and communication status (such as connection status, communication channel, etc.) and transmit the packaged data to the first terminal device via the aforementioned data transmission link.

[0052] When the first terminal device transmits first audio data to the audio output device, the audio output device can also receive second audio data transmitted to it by the second terminal device. It is understood that, in order to achieve data transmission between the audio output device and the second terminal device, the data transmission link established between the second terminal device and the audio output device based on the Bluetooth connection can also be active. Thus, the first terminal device and the second terminal device can independently transmit their respective audio data to the audio output device based on their respective data transmission links. Based on this, after receiving the second audio data, the audio output device can determine the target audio data to be played through the audio output device in subsequent steps according to the differences between the first and second audio data. Simultaneously, it can perform corresponding first processing operations on non-target audio data that does not need to be played at this time. Therefore, without interrupting the Bluetooth connection with either terminal device, the processing flow of the first and second audio data can be appropriately arranged, ensuring the stability of the communication connection established between the audio output device and the terminal device and the audio output.

[0053] 204. Determine the target audio data from the first audio data and the second audio data mentioned above.

[0054] In this embodiment, after receiving the first audio data and the second audio data, the audio output device can determine the target audio data that needs to be played through the audio output device. For example, the audio output device can sort the first audio data and the second audio data according to a pre-set sorting rule, and determine the audio data that appears first in the sorted list as the target audio data. This target audio data is the audio data that needs to be played preferentially from the first audio data and the second audio data. The sorting rule can be set based on the characteristics (e.g., time information characteristics, frequency distribution characteristics, etc.) or the types (e.g., service type, application type, etc.) of the first audio data and the second audio data respectively.

[0055] In some embodiments, the audio output device can determine the target audio data based on the time information corresponding to the first audio data and the second audio data, respectively. For example, the time information may include timestamps corresponding to each audio data (e.g., the time it was emitted from the terminal device, the time it was received by the audio output device, etc.), and the duration of continuous playback. Taking timestamps as an example, the audio output device can first obtain the timestamps corresponding to the first audio data and the second audio data emitted from their respective terminal devices, and then determine the target audio data based on these timestamps. Based on different pre-set sorting rules, the target audio data may be the earliest emitted audio data among the first audio data and the second audio data, the latest emitted audio data, or audio data emitted within a specified time period, etc. This application embodiment does not specifically limit the specific types of audio data.

[0056] In other embodiments, the audio output device may also determine the target audio data based on the respective service types of the first and second audio data. For example, both the first and second audio data may include audio data of different service types, such as call audio data (including audio portions of audio calls and video calls), media audio data (including audio data from multimedia applications, live chat applications, etc.). The audio output device can determine the audio data with the highest service type ranking from the first and second audio data according to pre-set sorting rules for different service types.

[0057] In some embodiments, the audio output device can also determine the target audio data based on the respective priorities of the first and second audio data. These priorities can be determined based on the time information, service type, etc., corresponding to each audio data point, or based on priority tags (e.g., priority number, priority code, etc.) carried by each audio data point. After receiving the first and second audio data, the audio output device can parse the priority of each audio data point and determine the audio data with the highest priority as the target audio data.

[0058] 206. Play the target audio data and perform a first processing operation corresponding to the non-target audio data so that the audio output device does not output the non-target audio data, wherein the non-target audio data is another audio data other than the target audio data among the first audio data and the second audio data mentioned above.

[0059] In this embodiment, after determining the target audio data from the first audio data and the second audio data, the audio output device can treat another audio data besides the target audio data as non-target audio data. Based on this, while playing the target audio data, the audio output device can perform appropriate first processing operations on the non-target audio data to prevent the audio output device from outputting the non-target audio data. This avoids interfering with the playback of the target audio data without interrupting the Bluetooth connection with the terminal device that outputs the non-target audio data.

[0060] In some embodiments, the audio output device may receive only non-target audio data without performing any playback processing on it. It should be noted that after determining the target audio data, the audio output device can perform subsequent processing on the received target audio data, such as storage, decoding, and digital-to-analog conversion, ultimately achieving playback of the target audio data. However, for non-target audio data, the audio output device may not perform the aforementioned processing (e.g., not storing, or storing without decoding), thus allowing the non-target audio data to be played while the target audio data is played, without being actually output to the audio output device.

[0061] In other embodiments, the audio output device may further cease receiving non-target audio data until the target audio data is stopped (paused) or playback is completed. For example, after determining the target audio data, the audio output device may issue a stop command to the terminal device that outputs the non-target audio data, causing the terminal device to stop transmitting the non-target audio data to the audio output device, thus preventing the non-target audio data from being actually output to the audio output device. When the audio output device stops or completes playback of the target audio data, it may issue a resume command to the terminal device, causing the terminal device to resume transmitting the non-target audio data to the audio output device. Optionally, the aforementioned termination instruction may include a call processing instruction. The terminal device receiving the call processing instruction may terminate the transmission of non-target audio data to the audio output device and perform a second processing operation corresponding to the call service of the non-target terminal device (i.e., the terminal device that outputs non-target audio data). For example, the non-target audio data may be played out through the built-in speaker of the non-target terminal device. This allows the non-target audio data to continue playing without interrupting the Bluetooth connection between the terminal device and the audio output device, thus improving the flexibility of audio output of the system composed of the audio output device and the terminal device connected to it.

[0062] As can be seen, by implementing the audio playback control method described in the above embodiments, when the audio output device simultaneously receives first audio data transmitted by the first terminal device and second audio data transmitted by the second terminal device, it can process the first and second audio data differently to play the target audio data. Meanwhile, for non-target audio data not identified as target audio data, it can remain unoutput on the audio output device without disconnecting the connection between its corresponding terminal device and the audio output device. This audio playback control method ensures that the audio output device maintains a Bluetooth connection with both the first and second terminal devices, avoiding the complex processing required to disconnect Bluetooth connections with non-target terminal devices when receiving audio data from more than one terminal device simultaneously, in order to receive audio data transmitted from the target terminal device. Furthermore, it eliminates the need to re-establish Bluetooth connections with disconnected non-target terminal devices in subsequent processes, preventing potential connection difficulties or even failures. This effectively improves the stability and reliability of establishing a communication connection and outputting audio between the audio output device and the terminal devices.

[0063] Please see Figure 3 , Figure 3This is a flowchart illustrating another audio playback control method disclosed in an embodiment of this application. This method can be applied to the aforementioned audio output device, which can establish Bluetooth connections with both the first terminal device and the second terminal device. Figure 3 As shown, the audio playback control method may include the following steps:

[0064] 302. When the first terminal device transmits first audio data to the audio output device, the second terminal device transmits second audio data to the audio output device.

[0065] Step 302 is similar to step 202 above, and will not be described again here.

[0066] 304. Based on the service type corresponding to the first audio data and the second audio data, determine the priority of the first audio data and the second audio data, and determine the audio data with the highest priority as the target audio data.

[0067] For example, the above-mentioned service types may include call services and media services. Call services may include the audio portion of audio calls and video calls, while media services may include the audio output portions of applications such as multimedia applications (e.g., music applications, video applications), real-time chat applications (e.g., voice chat applications, video chat applications), and other functional applications (e.g., recorders, navigation applications).

[0068] In this embodiment, after receiving the first audio data and the second audio data, the audio output device can first determine the service type corresponding to each of the first and second audio data, and then determine the priority of the first and second audio data based on a pre-set sorting rule for different service types. Based on this, according to the priority of the first and second audio data, the audio output device can determine the audio data with the highest priority as the target audio data.

[0069] It should be noted that, for different service types, the above sorting rules can assign different priorities to audio data based on the importance of the service type; for the same service type, the above sorting rules can also combine features such as the time information corresponding to the audio data to set further subdivided priorities. For example, the priority of call services can be higher than that of media services. For call services, the priority of call audio data accessed later can be higher than that of call audio data accessed earlier; while for media services, the priority of media audio data accessed earlier can be higher than that of media audio data accessed later.

[0070] For a specific example, if the service type corresponding to the second audio data is a call service, that is, the audio data that is accessed later is call audio data, then regardless of whether the service type corresponding to the first audio data is a call service (the priority of the call audio data accessed later is higher than that of the call audio data accessed earlier) or a media service (the priority of the call service is higher than that of the media service), the audio output device can determine that the priority of the second audio data is higher than that of the first audio data, and thus the second audio data can be identified as the target audio data.

[0071] For example, if the service type corresponding to the second audio data is media service, that is, the audio data that is accessed later is media audio data, then regardless of whether the service type corresponding to the first audio data is call service (call service has higher priority than media service) or media service (media audio data that is accessed first has higher priority than media audio data that is accessed later), the audio output device can determine that the first audio data has higher priority than the second audio data, and thus the first audio data can be identified as the target audio data.

[0072] 306. Play the target audio data and mute the non-target audio data, wherein the non-target audio data is another audio data other than the target audio data among the first audio data and the second audio data mentioned above.

[0073] In this embodiment, after determining the target audio data from the first audio data and the second audio data, the audio output device can use another audio data other than the target audio data as non-target audio data. Based on this, the audio output device can continue to receive non-target audio data while playing the target audio data, but the non-target audio data needs to be muted to avoid interfering with the playback of the target audio data.

[0074] In some embodiments, the audio output device may not perform corresponding playback processing for non-target audio data. For example, such as... Figure 4 As shown, after identifying the target audio data, the audio output device can store and decode the received target audio data. Then, it can transmit the decoded target audio data to the DAC (Digital to Analog Converter) module via DMA (Direct Memory Access) for digital-to-analog conversion, ultimately obtaining the target audio signal that can be played. Conversely, for non-target audio data, the audio output device can discard the received non-target audio data without performing the above processing, thus eliminating the need for subsequent decoding and playback steps.

[0075] In other embodiments, the audio output device may also set the volume of the non-target audio data to 0, so that even if the non-target audio data is played, no actual output will be produced. For example, as... Figure 5 As shown, after determining the target audio data, the audio output device can set the volume of the non-target audio data to 0, and then use a mixer to mix the target audio data with the non-target audio data whose volume is set to 0 to obtain mixed output data. Based on this, the audio output device can play the mixed output data, thereby avoiding interference with the actual playback effect of the target audio data.

[0076] As can be seen, by implementing the audio playback control method described in the above embodiments, the audio output device can always maintain a Bluetooth connection with both the first and second terminal devices. This avoids the complex processing required to disconnect the Bluetooth connection with non-target terminal devices when receiving audio data from more than one terminal device simultaneously, in order to receive audio data transmitted by the target terminal device. Furthermore, it eliminates the need to re-establish a Bluetooth connection with the disconnected non-target terminal device in subsequent processes, preventing potential connection difficulties or even failures. This effectively improves the stability and reliability of establishing a communication connection between the audio output device and the terminal devices for audio output. In addition, setting corresponding priority sorting rules for different service types can efficiently and orderly determine the target audio device, which is beneficial to improving the efficiency of audio output. Moreover, by muting non-target audio data, interference with the playback of target audio data can be avoided without disconnecting the Bluetooth connection with its corresponding terminal device, further improving the reliability of establishing a communication connection between the audio output device and the terminal devices and the flexibility of audio output.

[0077] Please see Figure 6 , Figure 6 This is a flowchart illustrating another audio playback control method disclosed in an embodiment of this application. This method can be applied to the aforementioned audio output device, which can establish Bluetooth connections with both the first terminal device and the second terminal device. Figure 6 As shown, the audio playback control method may include the following steps:

[0078] 602. When the first terminal device transmits first audio data to the audio output device, the second terminal device transmits second audio data to the audio output device.

[0079] Step 602 is similar to step 202 above, and will not be described again here.

[0080] 604. Based on the service type corresponding to the first audio data and the second audio data, determine the priority of the first audio data and the second audio data, and determine the audio data with the highest priority as the target audio data.

[0081] Step 604 is similar to step 304 above, and will not be described again here.

[0082] 606. If the service type corresponding to the non-target audio data is a call service, then the target audio data is played, and a call processing instruction is sent to the non-target terminal device. The non-target audio data is another audio data other than the target audio data among the first audio data and the second audio data. The non-target terminal device is the terminal device that transmits the non-target audio data to the audio output device among the first terminal device and the second terminal device. The call processing instruction is used to trigger the non-target terminal device to stop transmitting the non-target audio data to the audio output device and to execute the second processing operation corresponding to the call service of the non-target terminal device.

[0083] In this embodiment of the application, if the service type corresponding to the non-target audio data is a call service, while ensuring that the audio output device does not interfere with the playback of the target audio data, in order to prevent the user from missing the call content corresponding to the non-target audio data, the non-target audio data can be played on the side of the terminal device that originally output the non-target audio data.

[0084] For example, after determining the target audio data from the first audio data and the second audio data, the audio output device can use another audio data other than the target audio data as non-target audio data. While playing the target audio data, it sends a call processing instruction to the non-target terminal device that originally output the non-target audio data. This call processing instruction may include a call playback instruction. Upon receiving the call playback instruction, the non-target terminal device can respond to it by stopping the transmission of the non-target audio data to the audio output device and playing the non-target audio data through its speaker. Optionally, when playing the non-target audio data, the non-target terminal device can play it through the top microphone in a handset output format or through the bottom microphone in a speaker output format; this embodiment does not specifically limit the method. Optionally, the non-target terminal device can also set the volume of the non-target audio data to 0, and then respond to the call playback instruction by playing the non-target audio data with the volume set to 0 through its speaker, thus completely avoiding interference with the playback of the target audio data.

[0085] In some embodiments, the second processing operation corresponding to the call service that can be performed by the non-target terminal device may include, in addition to the operation of playing non-target audio data aloud through the speaker, temporarily suspending the call service. For example, the call processing instruction may include a call suspension instruction. After receiving the call suspension instruction, the non-target terminal device can respond to the instruction by stopping the transmission of the non-target audio data to the audio output device and simultaneously issuing a suspension prompt tone to the call recipient (e.g., another terminal device communicatively connected to the non-target terminal device). Based on this, the non-target terminal device can set its call service to a suspended state to temporarily stop outputting non-target audio data, thereby completely avoiding interference with the playback of the target audio data.

[0086] As an optional implementation, after determining the target audio data, if both the target audio data and the non-target audio data correspond to call services, the audio output device can output a call answering prompt. For example, this prompt may include a voice prompt, prompting the user to perform a certain operation to answer the target audio data, such as "Call from phone A, double-tap to answer" or "Call from phone B, nod to answer"; it may also include sound effects, such as different ringtones or prompts pre-set on the terminal device.

[0087] Based on this, the audio output device can detect the user's first call answering operation on the audio output device. When the first call answering operation corresponding to the above answering prompt information (such as "double-tap" or "nod" corresponding to the answering prompt voice), the audio output device can respond to the first switching command corresponding to the call answering operation, play the above target audio data, and simultaneously send the above call speakerphone command to the non-target terminal device. This allows the non-target terminal device to play the above non-target audio data through its speaker while the audio output device plays the above target audio data, which helps to prevent the user from missing the call content corresponding to the non-target audio data.

[0088] Based on this, the audio output device can also switch between playing the target audio data and non-target audio data at any time. For example, whenever the audio output device detects a call switching operation, it can respond to the second switching command corresponding to the call switching operation, alternately switching between playing the target audio data and non-target audio data. Specifically, if the pre-set call switching operation for the audio output device is a double-click (for example, double-clicking a designated touch position on the headset), then when the audio output device detects the specified double-click operation, it can switch its currently playing target audio data to non-target audio data; when a double-click operation is detected again, it can switch its currently playing non-target audio data back to target audio data, and the above switching can be performed alternately. It can be understood that whenever the audio output device switches the audio data it is playing, it can send the aforementioned call processing command to the terminal device corresponding to the audio data played before the switch, so that the terminal device can continue playing the original audio data when the audio output device switches playback, avoiding loss of call content and improving the reliability of audio output by both the audio output device and the terminal device.

[0089] 608. In response to the third switching instruction, stop playing the target audio data according to the third switching instruction, and play the aforementioned non-target audio data.

[0090] In this embodiment, when the audio output device needs to stop (pause) or has finished playing target audio data, it can respond to a third switching command to stop playing the target audio data and switch to playing the aforementioned non-target audio data. The third switching command can be triggered by a user's playback pause operation on the audio output device (e.g., clicking a specified touch location on the headphones), or by an event indicating that the target audio data has finished playing.

[0091] Please see Figure 7 , Figure 7 This is a timing diagram of an audio playback control method disclosed in an embodiment of this application. This method can be applied to a multi-device interactive system composed of the aforementioned audio output device, a first terminal device, and a second terminal device. The audio output device can establish Bluetooth connections with both the first and second terminal devices. Figure 7 As shown, the audio playback control method may include the following steps:

[0092] 702. The first terminal device transmits first audio data to the audio output device;

[0093] 704. The second terminal device transmits second audio data to the audio output device;

[0094] 706. The audio output device receives the second audio data while receiving the first audio data;

[0095] 708. The audio output device determines the priority of the first audio data and the second audio data according to the service type corresponding to each of the first audio data and the second audio data, and determines the audio data with the highest priority as the target audio data;

[0096] 710. The audio output device plays the target audio data and mutes the non-target audio data; if the service type corresponding to the non-target audio data is a call service, a call processing instruction is sent to the non-target terminal device.

[0097] It should be noted that if both the non-target audio data and the target audio data correspond to call services, the audio output device can first output a call answering prompt message. Only when a first call answering operation corresponding to the aforementioned call answering prompt message is detected will the operations described in step 710—playing the target audio data and sending a call processing instruction to the non-target terminal device—be executed. The non-target terminal device refers to the terminal device that transmits the aforementioned non-target audio data to the audio output device, either the first terminal device or the second terminal device.

[0098] 712. The non-target terminal device stops transmitting non-target audio data to the audio output device and executes the second processing operation corresponding to the call service of the non-target terminal device.

[0099] It is understood that step 712 and subsequent step 714 are executed only when the service type corresponding to the non-target audio data is a call service. If the service type corresponding to the non-target audio data is a media service, then step 712 and subsequent step 714 can be omitted.

[0100] 714. Whenever an audio output device detects a call switching operation, it responds to the second switching command corresponding to the call switching operation and alternately switches between playing target audio data or non-target audio data.

[0101] It should be noted that whenever the audio output device switches the audio data it is playing, it can send the aforementioned call processing instruction to the terminal device corresponding to the audio data being played before the switch. This allows the terminal device (i.e., the non-target terminal device, which in this case refers to the terminal device that transmits audio data other than the currently playing audio data to the audio output device among the first and second terminal devices) to continue playing the original audio data when the audio output device switches playback, thus avoiding the loss of call content and improving the reliability of audio output by the audio output device and the terminal device.

[0102] 716. The audio output device responds to the third switching instruction, stops playing the target audio data according to the third switching instruction, and plays the aforementioned non-target audio data.

[0103] It should be noted that if the audio data currently being played by the audio output device is not the target audio data, the audio output device can still respond to the third switching command, stop playing the non-target audio data according to the third switching command, and play the target audio data. If the audio output device does not receive audio data transmitted from another terminal device other than the currently playing audio data, after responding to the third switching command and stopping the playback of the current audio data, the audio output device can enter an idle state until it receives the audio data to be played again.

[0104] As can be seen, by implementing the audio playback control method described in the above embodiments, the audio output device can always maintain a Bluetooth connection with both the first and second terminal devices. This avoids the complex processing required to disconnect the Bluetooth connection with non-target terminal devices when receiving audio data from more than one terminal device simultaneously, in order to receive audio data transmitted by the target terminal device. Furthermore, it eliminates the need to re-establish a Bluetooth connection with the disconnected non-target terminal device in subsequent processes, preventing potential connection difficulties or even failures. This effectively improves the stability and reliability of the audio output device establishing a communication connection with the terminal device and outputting audio. In addition, by playing the non-target audio data on the terminal device that outputs the non-target audio data, interference with the playback of the target audio data on the audio output device can be avoided, while also preventing the user from missing the call content corresponding to the non-target audio data. Moreover, the user can switch between playing the target audio data and the non-target audio data at any time, which enhances the flexibility of using the audio output device.

[0105] Please see Figure 8 , Figure 8 This is a flowchart illustrating the fourth audio playback control method disclosed in this application. This method can be applied to the aforementioned first terminal device, which can establish a Bluetooth connection with the aforementioned audio output device. The audio output device can also establish a Bluetooth connection with a second terminal device. Figure 8 As shown, the audio playback control method may include the following steps:

[0106] 802. Transmitting first audio data to an audio output device, wherein the first audio data is used to enable the audio output device to determine target audio data from the first audio data and the second audio data, and to play the target audio data, and to perform a first processing operation corresponding to non-target audio data, so that the audio output device does not output non-target audio data, wherein the non-target audio data is another audio data other than the target audio data in the first audio data and the second audio data.

[0107] As an optional implementation, if the service type corresponding to the first audio data is a call service, then when the first terminal device receives a call processing instruction sent by the audio output device, the first terminal device can respond to the call processing instruction, stop transmitting the first audio data to the audio output device, and execute the second processing operation corresponding to the call service of the first terminal device.

[0108] In some embodiments, the call processing instruction may include a call speakerphone instruction. The second processing operation may then include the first terminal device responding to the call speakerphone instruction by playing the first audio data aloud through its speaker. Optionally, the first terminal device may first set the volume corresponding to the first audio data to 0 before responding to the call speakerphone instruction and playing the first audio data with the volume set to 0 through its speaker, thereby completely avoiding interference with the playback of the target audio data.

[0109] In other embodiments, the call processing instruction may also include a call hang-up instruction. In this case, the second processing operation may include the first terminal device responding to the call hang-up instruction, sending a hang-up prompt tone to the call recipient of the first terminal device, and setting its call service to a hang-up state so as to temporarily not output the first audio data, thereby completely avoiding interference with the playback of the target audio data.

[0110] By implementing the above methods, interference with the playback of target audio data by the audio output device can be avoided, while preventing users from missing call content corresponding to non-target audio data, thus improving the user experience.

[0111] Please see Figure 9 , Figure 9 This is a flowchart illustrating the fifth audio playback control method disclosed in this application. This method can be applied to the aforementioned second terminal device, which can establish a Bluetooth connection with the aforementioned audio output device. The audio output device can also establish a Bluetooth connection with the first terminal device. Figure 9 As shown, the audio playback control method may include the following steps:

[0112] 902. Transmitting second audio data to an audio output device, the second audio data being used to trigger the audio output device, when the first terminal device transmits first audio data to the audio output device, to determine target audio data from the first audio data and the second audio data, and to play the target audio data, and to perform a first processing operation corresponding to non-target audio data, so that the audio output device does not output non-target audio data, wherein the non-target audio data is another audio data other than the target audio data in the first audio data and the second audio data.

[0113] As an optional implementation, when the second terminal device detects a second call answering operation directed at it, it can respond to the second call answering operation by transmitting second audio data corresponding to the call content being answered by the second terminal device to the audio output device. For example, the aforementioned second call answering operation may include touch operations, movement operations, etc., performed by the user on the second terminal device while answering the call content. By implementing the above method, users can flexibly choose to answer calls on either the audio output device or the terminal device, which helps to improve the flexibility of audio output by both the audio output device and the terminal device.

[0114] Please see Figure 10 , Figure 10 This is a modular schematic diagram of an audio playback control device disclosed in an embodiment of this application. This audio playback control device can be applied to the aforementioned audio output device, which can establish Bluetooth connections with both a first terminal device and a second terminal device. For example... Figure 10 As shown, the audio playback control device may include a receiving unit 1001, a determining unit 1002, and a control unit 1003, wherein:

[0115] The receiving unit 1001 is configured to receive second audio data transmitted from the second terminal device to the audio output device when the first terminal device transmits first audio data to the audio output device.

[0116] The determining unit 1002 is used to determine target audio data from the first audio data and the second audio data.

[0117] The control unit 1003 is used to play target audio data and perform a first processing operation corresponding to non-target audio data so that the audio output device does not output non-target audio data, wherein the non-target audio data is another audio data other than the target audio data among the first audio data and the second audio data mentioned above.

[0118] As can be seen, using the audio playback control device described in the above embodiments, when the audio output device simultaneously receives first audio data transmitted by the first terminal device and second audio data transmitted by the second terminal device, it can process the first and second audio data differently to play the target audio data. Meanwhile, for non-target audio data not identified as target audio data, it can remain in a non-output state on the audio output device without disconnecting the connection between its corresponding terminal device and the audio output device. This audio playback control method ensures that the audio output device maintains a Bluetooth connection with both the first and second terminal devices, avoiding the complex processing required to disconnect Bluetooth connections with non-target terminal devices when receiving audio data from more than one terminal device simultaneously, in order to receive audio data transmitted from the target terminal device. Furthermore, it eliminates the need to re-establish Bluetooth connections with disconnected non-target terminal devices in subsequent processes, preventing potential connection difficulties or even failures. This effectively improves the stability and reliability of establishing a communication connection between the audio output device and the terminal device and performing audio output.

[0119] In one embodiment, the determining unit 1002 can be specifically used to determine the priority of the first audio data and the second audio data according to the service type corresponding to each of the first audio data and the second audio data, and determine the audio data with the highest priority as the target audio data.

[0120] For example, the above-mentioned service type may include call service and media service. If the service type corresponding to the second audio data is call service, the above-mentioned determining unit 1002 can determine that the priority of the second audio data is higher than that of the first audio data, and determine the second audio data as the target audio data.

[0121] If the service type corresponding to the second audio data is media service, the aforementioned determining unit 1002 can determine that the priority of the first audio data is higher than that of the second audio data, and determine the first audio data as the target audio data.

[0122] Using the audio playback control device described in the above embodiments, the audio output device can set corresponding priority sorting rules for different service types, thereby efficiently and orderly determining the target audio device, which is beneficial to improving the efficiency of audio output by the audio output device.

[0123] In one embodiment, the control unit 1003 can be used to play target audio data and mute non-target audio data.

[0124] As an optional implementation, when the control unit 1003 performs mute processing on non-target audio data, it may specifically discard the received non-target audio data so that the audio output device does not decode and play the non-target audio data.

[0125] As another optional implementation, when the control unit 1003 mutes non-target audio data, it may specifically set the volume corresponding to the non-target audio data to 0, and mix the target audio data with the non-target audio data whose volume is set to 0 to obtain mixed output data. Furthermore, the control unit 1003 can play the mixed output data.

[0126] By employing the audio playback control device described in the above embodiments, and by muting non-target audio data, the audio output device can avoid interfering with the playback of target audio data without disconnecting the Bluetooth connection between the audio output device and the terminal device corresponding to the non-target audio data. This further improves the reliability of establishing a communication connection between the audio output device and the terminal device and the flexibility of audio output.

[0127] In one embodiment, if the service type corresponding to the non-target audio data is a call service, the control unit 1003 can be used to play the target audio data and send a call processing instruction to the non-target terminal device. The non-target terminal device is the terminal device that transmits non-target audio data to the audio output device among the first terminal device and the second terminal device. The call processing instruction is used to trigger the non-target terminal device to stop transmitting non-target audio data to the audio output device and to perform a second processing operation corresponding to the call service of the non-target terminal device.

[0128] As an optional implementation, if both the non-target audio data and the target audio data correspond to call services, the control unit 1003 can output a call answering prompt. Based on this, when a first call answering operation corresponding to the call answering prompt is detected, the control unit 1003 can respond to a first switching command corresponding to the call answering operation, play the target audio data, and send a call processing command to the non-target terminal device.

[0129] Furthermore, whenever a call switching operation is detected for an audio output device, the control unit 1003 can also respond to the second switching command corresponding to the call switching operation and alternately switch between playing target audio data or non-target audio data.

[0130] In one embodiment, the call processing instruction may include a call speakerphone instruction. In this case, the control unit 1003 may be used to send a call speakerphone instruction to a non-target terminal device. The second processing operation performed by the non-target terminal device triggered by the call speakerphone instruction may include playing non-target audio data through its speaker.

[0131] In another embodiment, the call processing instruction may include a call hang-up instruction. In this case, the control unit 1003 may be used to send a call hang-up instruction to a non-target terminal device. The second processing operation executed by the non-target terminal device triggered by the call hang-up instruction may include sending a hang-up prompt tone to the call recipient corresponding to the non-target terminal device and setting the call service of the non-target terminal device to a hang-up state.

[0132] In one embodiment, after playing the target audio data and performing the first processing operation corresponding to the non-target audio data, the control unit 1003 may also respond to a third switching instruction, stop playing the target audio data according to the third switching instruction, and play the non-target audio data.

[0133] As can be seen, by using the audio playback control device described in the above embodiments, playing the non-target audio data on the terminal device that outputs non-target audio data can avoid interfering with the process of playing target audio data on the audio output device, prevent users from missing the call content corresponding to the non-target audio data, and switch between playing target audio data or non-target audio data at any time, which helps to improve the flexibility of users in using audio output devices.

[0134] Please see Figure 11 , Figure 11 This is a modular schematic diagram of another audio playback control device disclosed in an embodiment of this application. This audio playback control device can be applied to the aforementioned first terminal device, which can establish a Bluetooth connection with the aforementioned audio output device. The audio output device can also establish a Bluetooth connection with a second terminal device. Figure 11 As shown, the audio playback control device may include a first transmission unit 1101, wherein:

[0135] The first transmission unit 1101 is used to transmit first audio data to an audio output device. The first audio data is used to enable the audio output device to determine target audio data from the first audio data and the second audio data, and to play the target audio data, and to perform a first processing operation corresponding to non-target audio data, so that the audio output device does not output non-target audio data, wherein the non-target audio data is another audio data other than the target audio data in the first audio data and the second audio data.

[0136] In some embodiments, the audio playback control device may further include a processing operation unit (not shown). This processing operation unit may be used to, when the service type corresponding to the first audio data is a call service, if the first terminal device receives a call processing instruction sent by the audio output device, respond to the call processing instruction, stop transmitting the first audio data to the audio output device, and execute a second processing operation corresponding to the call service of the first terminal device.

[0137] In one embodiment, the call processing instruction may include a call speakerphone instruction, and the processing unit may specifically be used to respond to the call speakerphone instruction and play the first audio data through the speaker of the first terminal device.

[0138] Alternatively, the processing unit may first set the volume corresponding to the first audio data to 0, and then respond to the above call speakerphone command to play the first audio data with the volume set to 0 through the speaker, so as to completely avoid interfering with the playback of the target audio data.

[0139] In another embodiment, the call processing instruction may include a call hang-up instruction. The processing unit may specifically respond to the call hang-up instruction by sending a hang-up prompt tone to the call recipient of the first terminal device and setting its call service to a hang-up state so as to temporarily not output the first audio data, thereby completely avoiding interference with the playback of the target audio data.

[0140] The audio playback control device described in the above embodiments can avoid interference with the process of playing target audio data on the audio output device, and at the same time prevent users from missing the call content corresponding to non-target audio data, which is conducive to improving the user experience.

[0141] Please see Figure 12 , Figure 12 This is a modular schematic diagram of another audio playback control device disclosed in the embodiments of this application. This audio playback control device can be applied to the aforementioned second terminal device, which can establish a Bluetooth connection with the aforementioned audio output device. The audio output device can also establish a Bluetooth connection with the first terminal device. Figure 12 As shown, the audio playback control device may include a second transmission unit 1201, wherein:

[0142] The second transmission unit 1201 is used to transmit second audio data to an audio output device. The second audio data is used to trigger the audio output device to determine target audio data from the first audio data and the second audio data when the first terminal device transmits first audio data to the audio output device, and to play the target audio data and perform a first processing operation corresponding to non-target audio data so that the audio output device does not output non-target audio data. The non-target audio data is another audio data other than the target audio data in the first audio data and the second audio data.

[0143] In some embodiments, when the second transmission unit 1201 transmits the second audio data to the audio output device, it may specifically respond to the second call answering operation when the second terminal device detects the second call answering operation and transmit the second audio data corresponding to the call content answered by the second terminal device to the audio output device. For example, the second call answering operation may include touch operations, movement operations, etc., performed by the user on the second terminal device when answering the call content. Using the audio playback control device described in the above embodiments, users can flexibly choose to answer calls on the audio output device or the terminal device, which helps to improve the flexibility of audio output by the audio output device and the terminal device.

[0144] Please see Figure 13 , Figure 13 This is a modular schematic diagram of an audio output device disclosed in an embodiment of this application. For example... Figure 13 As shown, the audio output device may include:

[0145] Memory 1301 storing executable program code;

[0146] Processor 1302 coupled to memory 1301;

[0147] The processor 1302 can call the executable program code stored in the memory 1301 to execute all or part of the steps in any of the audio playback control methods applied to an audio output device described in the above embodiments.

[0148] Please see Figure 14 , Figure 14 This is a modular schematic diagram of a terminal device disclosed in an embodiment of this application. The terminal device can be either the first terminal device or the second terminal device described above. Figure 14 As shown, the terminal device may include:

[0149] Memory 1401 storing executable program code;

[0150] Processor 1402 coupled to memory 1401;

[0151] The processor 1402 can call the executable program code stored in the memory 1401 to execute all or part of the steps in any of the audio playback control methods applied to the first terminal device or the second terminal device described in the above embodiments.

[0152] Furthermore, embodiments of this application disclose a computer-readable storage medium storing a computer program for electronic data interchange, wherein the computer program enables a computer to execute all or part of the steps in any of the audio playback control methods applied to an audio output device, a first terminal device, or a second terminal device described in the above embodiments.

[0153] Furthermore, this application further discloses a computer program product that, when run on a computer, enables the computer to execute all or part of the steps in any of the audio playback control methods described in the above embodiments.

[0154] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. This program can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.

[0155] The above provides a detailed description of an audio playback control method and apparatus, an audio output device, and a storage medium disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. An audio play control method, characterized by, The method, applied to an audio output device, wherein the audio output device establishes Bluetooth connections with a first terminal device and a second terminal device respectively, includes: When the first terminal device transmits first audio data to the audio output device, the second terminal device transmits second audio data to the audio output device. Determine the target audio data from the first audio data and the second audio data; Play the target audio data and perform a first processing operation corresponding to the non-target audio data so that the audio output device does not output the non-target audio data, wherein the non-target audio data is another audio data other than the target audio data among the first audio data and the second audio data; The step of playing the target audio data and performing a first processing operation corresponding to the non-target audio data includes: If the service type corresponding to the non-target audio data is a call service, then the target audio data is played, and a call processing instruction is sent to the non-target terminal device. The non-target terminal device is the terminal device that transmits the non-target audio data to the audio output device, which is either the first terminal device or the second terminal device. The call processing instruction is used to trigger the non-target terminal device to stop transmitting the non-target audio data to the audio output device and to execute a second processing operation corresponding to the call service of the non-target terminal device. The second processing operation includes playing the non-target audio data aloud.

2. The method according to claim 1, characterized in that, Determining the target audio data from the first audio data and the second audio data includes: Based on the service type corresponding to the first audio data and the second audio data, the priorities of the first audio data and the second audio data are determined, and the audio data with the highest priority is determined as the target audio data.

3. The method according to claim 2, characterized in that, The service types include call services and media services. The step of determining the priority of the first audio data and the second audio data based on their respective service types, and identifying the audio data with the highest priority as the target audio data, includes: If the service type corresponding to the second audio data is a call service, then the priority of the second audio data is determined to be higher than that of the first audio data, and the second audio data is determined as the target audio data; If the service type corresponding to the second audio data is media service, then the priority of the first audio data is determined to be higher than that of the second audio data, and the first audio data is determined to be the target audio data.

4. The method according to any one of claims 1 to 3, characterized in that, The step of playing the target audio data and performing a first processing operation corresponding to the non-target audio data includes: Play the target audio data and mute the non-target audio data.

5. The method according to claim 4, characterized in that, The process of muting the non-target audio data includes: The received non-target audio data is discarded so that the audio output device does not decode or play the non-target audio data.

6. The method according to claim 4, characterized in that, The step of playing the target audio data and muting the non-target audio data includes: Set the volume of the non-target audio data to 0, and mix the target audio data with the non-target audio data after the volume is set to 0 to obtain mixed output data; Play the mixed output data.

7. The method according to claim 1, characterized in that, If the service type corresponding to the non-target audio data is a call service, then playing the target audio data includes: If both the non-target audio data and the service type corresponding to the target audio data are call services, output a call answering prompt message; When a first call answering operation corresponding to the call answering prompt is detected, the first switching command corresponding to the call answering operation is responded to, and the target audio data is played.

8. The method according to claim 7, characterized in that, After responding to the first switching instruction corresponding to the call answering operation when the call answering prompt information is detected, playing the target audio data, and sending a call processing instruction to the non-target terminal device, the method further includes: Whenever a call switching operation is detected for the audio output device, a second switching instruction corresponding to the call switching operation is responded to, and the target audio data or the non-target audio data is played alternately.

9. The method according to claim 1, characterized in that, The call processing instruction includes a call speakerphone instruction, and sending the call processing instruction to a non-target terminal device includes: Sending the call speakerphone command to a non-target terminal device, the call speakerphone command triggering the second processing operation performed by the non-target terminal device includes playing the non-target audio data aloud through a speaker.

10. The method according to claim 1, characterized in that, The call processing instruction includes a call hang-up instruction, and sending the call processing instruction to a non-target terminal device includes: Sending the call hang-up command to a non-target terminal device, the second processing operation triggered by the call hang-up command to the non-target terminal device includes sending a hang-up prompt tone to the call recipient corresponding to the non-target terminal device and setting the call service of the non-target terminal device to a hang-up state.

11. The method according to any one of claims 1 to 3, characterized in that, After playing the target audio data and performing the first processing operation corresponding to the non-target audio data, the method further includes: In response to the third switching instruction, the playback of the target audio data is stopped and the non-target audio data is played.

12. An audio playback method, characterized in that, The method, applied to a first terminal device, establishes a Bluetooth connection with an audio output device, and the audio output device also establishes a Bluetooth connection with a second terminal device, includes: The audio output device transmits first audio data, which is used to enable the audio output device to determine target audio data from the first audio data and the second audio data when the audio output device also receives second audio data transmitted by the second terminal device, and to play the target audio data and perform a first processing operation corresponding to non-target audio data so that the audio output device does not output the non-target audio data, wherein the non-target audio data is another audio data other than the target audio data in the first audio data and the second audio data; If the service type corresponding to the first audio data is a call service, when a call processing instruction is received from the audio output device, the system responds to the call processing instruction, stops transmitting the first audio data to the audio output device, and executes a second processing operation corresponding to the call service of the first terminal device. The second processing operation includes playing the first audio data aloud.

13. The method according to claim 12, characterized in that, The call processing instruction includes a call speakerphone instruction, and the execution of the second processing operation corresponding to the call service of the first terminal device includes: In response to the call speakerphone command, the first audio data is played aloud through the speaker.

14. The method according to claim 13, characterized in that, The step of responding to the call speakerphone command by playing the first audio data aloud through a speaker includes: Set the volume corresponding to the first audio data to 0; In response to the call speakerphone command, the first audio data is played out via the speaker with the volume set to 0.

15. The method according to claim 12, characterized in that, The call processing instruction includes a call hangup instruction, and the execution of the second processing operation corresponding to the call service of the first terminal device includes: In response to the call hangup command, a hangup prompt tone is sent to the call recipient of the first terminal device, and the call service is set to a hangup state.

16. An audio playback method, characterized in that, The method, applied to a second terminal device, establishes a Bluetooth connection with an audio output device, and the audio output device also establishes a Bluetooth connection with a first terminal device, includes: The audio output device transmits second audio data, which triggers the audio output device to determine target audio data from the first audio data and the second audio data when the first terminal device transmits first audio data to the audio output device, and to play the target audio data and perform a first processing operation corresponding to non-target audio data, so that the audio output device does not output the non-target audio data, wherein the non-target audio data is another audio data other than the target audio data in the first audio data and the second audio data; Wherein, if the service type corresponding to the target audio data is a call service, the audio output device plays the target audio data and sends a call processing instruction to a non-target terminal device. The non-target terminal device is the terminal device that transmits the non-target audio data to the audio output device, which is either the first terminal device or the second terminal device. The call processing instruction is used to trigger the non-target terminal device to stop transmitting the non-target audio data to the audio output device and to execute a second processing operation corresponding to the call service of the non-target terminal device. The second processing operation includes playing the non-target audio data aloud.

17. The method according to claim 16, characterized in that, The transmission of second audio data to the audio output device includes: When a second call answering operation is detected for the second terminal device, the device responds to the second call answering operation by transmitting second audio data to the audio output device.

18. An audio playback control device, characterized in that, An audio output device, wherein the audio output device establishes Bluetooth connections with a first terminal device and a second terminal device respectively, the audio playback control device includes: The receiving unit is configured to receive second audio data transmitted from the second terminal device to the audio output device when the first terminal device transmits first audio data to the audio output device; A determining unit is configured to determine target audio data from the first audio data and the second audio data; The control unit is configured to play the target audio data and perform a first processing operation corresponding to the non-target audio data, so that the audio output device does not output the non-target audio data, wherein the non-target audio data is another audio data other than the target audio data among the first audio data and the second audio data; The control unit is further configured to play the target audio data and send a call processing instruction to the non-target terminal device when the service type corresponding to the non-target audio data is a call service. The non-target terminal device is the terminal device that transmits the non-target audio data to the audio output device, which is either the first terminal device or the second terminal device. The call processing instruction is used to trigger the non-target terminal device to stop transmitting the non-target audio data to the audio output device and to execute a second processing operation corresponding to the call service of the non-target terminal device. The second processing operation includes playing the non-target audio data aloud.

19. An audio playback control device, characterized in that, Applied to a first terminal device, the first terminal device establishes a Bluetooth connection with an audio output device, and the audio output device also establishes a Bluetooth connection with a second terminal device, the audio playback control device includes: A first transmission unit is configured to transmit first audio data to the audio output device. The first audio data is used to enable the audio output device to determine target audio data from the first audio data and the second audio data, and to play the target audio data, and to perform a first processing operation corresponding to non-target audio data, so that the audio output device does not output the non-target audio data, wherein the non-target audio data is another audio data other than the target audio data in the first audio data and the second audio data. The processing unit is configured to, when the service type corresponding to the first audio data is a call service, if the first terminal device receives a call processing instruction sent by the audio output device, respond to the call processing instruction, stop transmitting the first audio data to the audio output device, and execute a second processing operation corresponding to the call service of the first terminal device, wherein the second processing operation includes playing the first audio data aloud.

20. An audio playback control device, characterized in that, Applied to a second terminal device, the second terminal device establishes a Bluetooth connection with an audio output device, and the audio output device also establishes a Bluetooth connection with a first terminal device. The audio playback control device includes: The second transmission unit is configured to transmit second audio data to the audio output device. The second audio data is configured to trigger the audio output device to determine target audio data from the first audio data and the second audio data when the first terminal device transmits first audio data to the audio output device, and to play the target audio data and perform a first processing operation corresponding to non-target audio data, so that the audio output device does not output the non-target audio data. The non-target audio data is another audio data other than the target audio data in the first audio data and the second audio data. Wherein, if the service type corresponding to the target audio data is a call service, the audio output device plays the target audio data and sends a call processing instruction to a non-target terminal device. The non-target terminal device is the terminal device that transmits the non-target audio data to the audio output device, which is either the first terminal device or the second terminal device. The call processing instruction is used to trigger the non-target terminal device to stop transmitting the non-target audio data to the audio output device and to execute a second processing operation corresponding to the call service of the non-target terminal device. The second processing operation includes playing the non-target audio data aloud.

21. An audio output device, characterized in that, The system includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method as described in any one of claims 1 to 11.

22. A terminal device, characterized in that, The device includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method as described in any one of claims 12 to 15, or the method as described in any one of claims 16 to 17.

23. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 17.