Wireless audio data transmission method and device and related equipment

By carrying load type identification in the audio data packet of the TWS device and independently encode the left and right channel data, the problem of poor communication performance of TWS devices is solved, and more efficient and flexible audio data transmission is achieved.

CN119421088APending Publication Date: 2025-02-11NANJING ZGMICRO CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411499999.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

When TWS devices adopt data transmission strategies provided by the prior art, their communication performance is poor.

Method used

By carrying load type identification in the audio data packet, the left channel and right channel audio data are encoded and encapsulated respectively, and data packets are sent and confirmed on the wireless communication link to realize independent transmission of left and right channel audio. .

Benefits of technology

The communication performance of audio source equipment and audio terminal equipment in TWS scenarios is improved, and the flexibility and stability of audio transmission are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119421088A_ABST
    Figure CN119421088A_ABST
Patent Text Reader

Abstract

The invention provides a wireless audio data transmission method and device and related equipment, relates to the technical field of wireless communication, and is applied to sound source equipment, and the method comprises the following steps: establishing a wireless communication link with main audio terminal equipment; left and right sound channel audio data in an audio stream to be transmitted are respectively encoded, the encoded audio data are packaged into an audio data packet, the audio data packet carries a load type identifier, and the load type identifier is used for indicating the type of the audio data in the audio data packet; the type of the audio data comprises one or more of left channel audio data, right channel audio data, left and right channel down-mixed monaural audio data and left and right channel alternating audio data; transmitting the audio data packet based on the wireless communication link; and after the audio data packet is sent, receiving confirmation information of the audio data packet. The implementation complexity of the TWS function can be simplified, the power consumption of the terminal can be reduced, and better communication performance can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of wireless communications, and in particular to a method and apparatus for wireless audio data transmission and related equipment. Background Art

[0002] The widespread application of Classic Bluetooth (CBT) technology has made CBT products and services a part of people's lives, especially wireless audio products such as CBT headphones and CBT speakers, which are centered on smartphones and mainly use the Advanced Audio Distribution Profile (A2DP) protocol, which have brought great convenience to people. True Wireless Stereo (TWS) headphones based on the CBT A2DP protocol are even more popular.

[0003] In the related art, the left and right channel audio data are sent in the same asynchronous connection (Asynchronous Connection-oriented, ACL) packet, and only one of the multiple audio terminal devices can reply to the receiving confirmation information packet to the sound source device. The audio terminal device that does not reply to the confirmation information needs to promptly notify the audio terminal device that replies to the confirmation information of the receiving status. Alternatively, when the audio terminal device that correctly receives the audio data packet replies to the confirmation information, and the other audio terminal devices do not correctly receive the audio data packet, the audio terminal device that correctly receives the audio data packet forwards the audio data packet of the corresponding channel to them.

[0004] It was found in the application that the communication performance of the data transmission strategy provided by the TWS device using the relevant technology was poor. Summary of the invention

[0005] The purpose of the present disclosure is to provide a wireless audio data transmission method, apparatus and related equipment, which are used to solve the technical problem of poor communication performance when a TWS device adopts a data transmission strategy provided by related technologies.

[0006] In a first aspect, an embodiment of the present disclosure provides a method for wireless audio data transmission, which is applied to an audio source device, and the method includes:

[0007] Establishing a wireless communication link with the main audio terminal device;

[0008] Encode the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted respectively, and encapsulate the encoded audio data into an audio data packet, wherein the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data;

[0009] Sending the audio data packet based on the wireless communication link;

[0010] After sending the audio data packet, receiving confirmation information of the audio data packet.

[0011] In a second aspect, an embodiment of the present disclosure provides a wireless audio data transmission method, which is applied to a main audio terminal device, and the method includes:

[0012] Establishing a wireless communication link with the audio source device;

[0013] An audio data packet sent by the sound source device is received based on the wireless communication link, wherein the audio data packet is formed by respectively encoding the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted by the sound source device, and encapsulating the encoded audio data, and the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data;

[0014] When the audio data packet is successfully received and the load type identifier carried by the audio data packet matches the main audio terminal device, confirmation information of the audio data packet is sent to the audio source device based on the wireless communication link.

[0015] In a third aspect, an embodiment of the present disclosure provides a wireless audio data transmission method, which is applied to a secondary audio terminal device, and the method includes:

[0016] Establishing a connection with a main audio terminal device, and when the main audio terminal device establishes a wireless communication link with an audio source device, obtaining link information of the wireless communication link from the main audio terminal device;

[0017] An audio data packet sent by the sound source device is received based on the wireless communication link, wherein the audio data packet is formed by respectively encoding the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted by the sound source device, and encapsulating the encoded audio data, and the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data;

[0018] When the audio data packet is successfully received and the load type identifier carried by the audio data packet matches the secondary audio terminal device, confirmation information of the audio data packet is sent to the audio source device based on the wireless communication link.

[0019] In a fourth aspect, an embodiment of the present disclosure provides a wireless audio data transmission system, the system comprising:

[0020] A sound source device and a main audio terminal device, wherein a wireless communication link is established between the sound source device and the main audio terminal device;

[0021] The audio source device is used to: respectively encode the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted, and encapsulate the encoded audio data into an audio data packet, wherein the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data;

[0022] The audio source device is also used to: send the audio data packet based on the wireless communication link;

[0023] The main audio terminal device is used to: receive the audio data packet based on the wireless communication link, and when the audio data packet is successfully received and the load type identifier carried by the audio data packet matches the main audio terminal device, send confirmation information of the audio data packet to the sound source device based on the wireless communication link.

[0024] In a fifth aspect, an embodiment of the present disclosure provides a wireless audio data transmission device, which is applied to an audio source device, and the device includes:

[0025] The audio source link establishment module is used to establish a wireless communication link with the main audio terminal device;

[0026] an audio processing module, used for respectively encoding the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted, and encapsulating the encoded audio data into an audio data packet, wherein the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data;

[0027] An audio source packet sending module, used for sending the audio data packet based on the wireless communication link;

[0028] The audio source receiving module receives confirmation information of the audio data packet after sending the audio data packet.

[0029] In a sixth aspect, an embodiment of the present disclosure provides a wireless audio data transmission device, which is applied to a main audio terminal device, and the device includes:

[0030] The main terminal link establishment module is used to establish a wireless communication link with the audio source device;

[0031] a packet receiving module of the main terminal, configured to receive an audio data packet sent by the sound source device based on the wireless communication link, wherein the audio data packet is formed by respectively encoding the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted by the sound source device, and encapsulating the encoded audio data, the audio data packet carries a load type identifier, the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data;

[0032] The main terminal reply module is used to send confirmation information of the audio data packet to the sound source device based on the wireless communication link when the audio data packet is successfully received and the load type identifier carried by the audio data packet matches the main audio terminal device.

[0033] In a seventh aspect, an embodiment of the present disclosure provides a wireless audio data transmission device, which is applied to a secondary audio terminal device, and the device includes:

[0034] The secondary terminal connection module establishes a connection with the main audio terminal device, and when the main audio terminal device establishes a wireless communication link with the audio source device, obtains link information of the wireless communication link from the main audio terminal device;

[0035] a packet receiving module of the secondary terminal, configured to receive an audio data packet sent by the sound source device based on the wireless communication link, wherein the audio data packet is formed by respectively encoding the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted by the sound source device, and encapsulating the encoded audio data, the audio data packet carries a load type identifier, the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data;

[0036] The secondary terminal reply module is used to send confirmation information of the audio data packet to the sound source device based on the wireless communication link when the audio data packet is successfully received and the load type identifier carried by the audio data packet matches the secondary audio terminal device.

[0037] In an eighth aspect, an embodiment of the present disclosure provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the wireless audio data transmission method as described in the first aspect, the second aspect, or the third aspect.

[0038] In the ninth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the wireless audio data transmission method as described in the first aspect, the second aspect or the third aspect are implemented.

[0039] In a tenth aspect, an embodiment of the present disclosure provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of the wireless audio data transmission method as described in the first aspect, the second aspect or the third aspect.

[0040] In the present disclosure, by encoding and encapsulating the left and right channel audio data respectively, and receiving the corresponding confirmation messages returned by the two respectively, the left and right channel audio are independent of each other during the transmission process to avoid interference between the two, thereby achieving the purpose of improving the communication performance of the sound source device and the audio terminal device in the TWS scenario. Among them, setting the audio data packet to carry the load type identifier can enrich the types of transmittable audio data packets on the basis of improving the communication performance, making the audio transmission in the TWS scenario more flexible. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a flowchart of a wireless audio data transmission method provided by an embodiment of the present application;

[0042] Figure 2 is a schematic diagram of a payload header of a link packet provided in an embodiment of the present application;

[0043] Figure 3 It is a flowchart of another wireless audio data transmission method provided by an embodiment of the present application;

[0044] Figure 4 It is a flowchart of another wireless audio data transmission method provided by an embodiment of the present application;

[0045] Figure 5 It is a schematic diagram of a time slot structure of an A2DP link based on MCBT provided in an embodiment of the present application;

[0046] Figure 6 It is a structural schematic diagram of a wireless audio data transmission system provided in an embodiment of the present application;

[0047] Figure 7 It is a structural schematic diagram of a wireless audio data transmission device provided in an embodiment of the present application;

[0048] Figure 8 is a schematic structural diagram of another wireless audio data transmission device provided in an embodiment of the present application;

[0049] Fig. 9 It is a structural schematic diagram of another wireless audio data transmission device provided in an embodiment of the present application;

[0050] Fig.10 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0052] The present disclosure provides a wireless audio data transmission method, which is applied to an audio source device, such as Figure 1 As shown, the method includes:

[0053] Step 101: Establish a wireless communication link with a main audio terminal device.

[0054] Among them, the audio source device can be understood as a device in the wireless audio transmission scenario that is responsible for encoding, encapsulating and transmitting audio data to the outside, such as a smart phone or tablet computer; the main audio terminal device can be understood as a device in the wireless audio transmission scenario that is responsible for receiving the audio data transmitted by the audio source device and playing audio, such as wireless headphones or wireless speakers.

[0055] Step 102: Encode the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted respectively, and encapsulate the encoded audio data into an audio data packet.

[0056] The audio data packet carries a load type identifier, which is used to indicate the type of audio data in the audio data packet. The type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed with left and right channels, and left and right channel alternating audio data.

[0057] It should be noted that in the present application, the wireless communication link established between the audio source device and the main audio terminal device is specifically: a wireless communication link based on a modified classic Bluetooth link (Modified Classic Bluetooth, MCBT) link and an advanced audio distribution profile (Advanced Audio Distribution Profile, A2DP) communication protocol. The link setting of the wireless communication link is basically the same as that of the CBT asynchronous connection (Asynchronous Connection-oriented, ACL) link. The difference is that the audio data packet transmitted by the wireless communication link carries the aforementioned load type identifier.

[0058] In the application, Low Complexity Communication Codec (LC3) can be used to encode the left and right channel audio data to reduce the encoding rate of A2DP and thus reduce its air transmission time, thereby improving the anti-interference performance of wireless audio transmission and reducing the power consumption of the main audio terminal device.

[0059] Of course, other encoding methods different from LC3 can also be used to complete the encoding process of the left and right channel audio data according to actual application needs.

[0060] Step 103: Send the audio data packet based on the wireless communication link.

[0061] Step 104: After sending the audio data packet, receiving confirmation information of the audio data packet.

[0062] It should be understood that when the audio source device successfully receives the confirmation information, it considers that the corresponding audio data packet has been successfully sent to the audio terminal device (such as the main audio terminal device) through the wireless communication link, and will no longer retransmit the corresponding audio data packet, but will send the next audio data packet.

[0063] In the present disclosure, by encoding and encapsulating the left and right channel audio data respectively, and receiving the corresponding confirmation messages returned by the two respectively, the left and right channel audio are independent of each other during the transmission process to avoid interference between the two, thereby achieving the purpose of improving the communication performance of the sound source device and the audio terminal device in the TWS scenario. Among them, setting the audio data packet to carry the load type identifier can enrich the types of transmittable audio data packets on the basis of improving the communication performance, making the audio transmission in the TWS scenario more flexible.

[0064] In some embodiments, after the sound source device establishes a wireless communication link with the main audio terminal device, the main audio terminal device can also connect to the secondary audio terminal device via wired or wireless means, and share the link information of the wireless communication link with the secondary audio terminal device, so that the secondary audio terminal device can also receive the audio data packet sent by the sound source device through the wireless communication link and reply with confirmation information after successful reception; wherein the link information of the wireless communication link includes at least the clock information, frequency channel information or encryption information of the wireless communication link.

[0065] In this case, the audio source device sends an audio data packet including left channel audio data and an audio data packet including right channel audio data based on the wireless communication link;

[0066] Based on the wireless communication link, the main audio terminal device receives an audio data packet including left channel audio data and replies with a reception confirmation message, and the secondary audio terminal device receives an audio data packet including right channel audio data and replies with a reception confirmation message; or,

[0067] Based on the wireless communication link, the main audio terminal device receives an audio data packet including right channel audio data and replies with a reception confirmation message, and the auxiliary audio terminal device receives an audio data packet including left channel audio data and replies with a reception confirmation message.

[0068] Exemplarily, the main audio terminal device and the auxiliary audio terminal device can establish a wireless connection based on standard wireless communication protocols, such as CBT link protocol and Bluetooth Low Energy (BLE) link protocol; they can also establish a wireless connection based on custom wireless communication protocols, such as near field communication protocol and ultrasonic communication protocol.

[0069] In this implementation, the secondary audio terminal device can also be understood as a device responsible for receiving audio data transmitted by the audio source device and performing audio playback in a wireless audio transmission scenario, such as a wireless headset or a wireless speaker.

[0070] In the application, for two audio terminal devices used for audio playback in the wireless audio transmission scenario, the audio terminal device that has established a wireless communication link with the audio source device is regarded as the main audio terminal device, and the other audio terminal device is regarded as the secondary audio terminal device.

[0071] In one embodiment, sending the audio data packet based on the wireless communication link comprises:

[0072] After receiving a first request from the main audio terminal device, sending an audio data packet including left channel audio data and an audio data packet including right channel audio data based on the wireless communication link;

[0073] or,

[0074] After receiving the second request from the main audio terminal device, sending an audio data packet including mono audio data down-mixed from left and right channels based on the wireless communication link;

[0075] or,

[0076] After receiving the third request from the main audio terminal device, an audio data packet including left and right channel alternating audio data is sent based on the wireless communication link.

[0077] In this embodiment, the main audio terminal device actively initiates a request to determine the load type of the audio data packet transmitted by the audio source device based on the wireless communication link.

[0078] In one embodiment, the load type identifier includes a left channel identifier and a right channel identifier;

[0079] When the left channel identifier is valid and the right channel identifier is valid, the load type identifier indicates that the type of the audio data in the audio data packet is left and right channel alternating audio data;

[0080] When the left channel identifier is invalid and the right channel identifier is valid, the load type identifier indicates that the type of the audio data in the audio data packet is right channel audio data;

[0081] When the left channel identifier is valid and the right channel identifier is invalid, the load type identifier indicates that the type of the audio data in the audio data packet is left channel audio data;

[0082] When the left channel identifier is invalid and the right channel identifier is invalid, the payload type identifier indicates that the type of the audio data in the audio data packet is mono audio data that is down-mixed between left and right channels.

[0083] In this embodiment, the load type identifier can be set in the load header of the audio data packet. For example, one bit in the load header can be set as the left channel identifier, and the other bit can be set as the right channel identifier. The bit for the left channel identifier is defined as Left, and the bit for the right channel identifier is defined as Right. The value of Left is 1 or 0. When the value of Left is 1, the left channel identifier is considered valid, and when the value of Left is 0, the left channel identifier is considered invalid. Similarly, the value of Right is 1 or 0. When the value of Right is 1, the right channel identifier is considered valid, and when the value of Right is 0, the right channel identifier is considered invalid.

[0084] In one embodiment, the audio data packet also carries a payload identifier.

[0085] When the load identifier is valid, it indicates that the audio data packet carries audio data.

[0086] When the payload identifier is invalid, it indicates that the audio data packet does not carry audio data.

[0087] In this embodiment, the load identifier can also be set in the load header of the audio data packet. For example, a bit in the load header can be set as the load identifier, and the bit of the load identifier is defined as MCBT. The value of MCBT is 1 or 0. When the value of MCBT is 1, the load identifier is considered valid. When the value of MCBT is 0, the load identifier is considered invalid.

[0088] Exemplarily, the audio data packet not carrying audio data may be a POLL or DM1 packet used to maintain the wireless communication link.

[0089] For example, if Figure 2 As shown, the payload header of the link packet of the MCBT link in this application can be set with reference to the payload header of the link packet of the CBT ACL link, and specifically, the 3-bit reserved field (Reserved for Future Use, RFU) in the payload header of the link packet of the CBT ACL link is set to the aforementioned payload identifier (i.e. Figure 2 MCBT field), left channel identifier (i.e. Figure 2 Left field in the middle) and the right channel identifier (i.e. Figure 2 Right field in the

[0090] Among them, MCBT is set to 1 to indicate that the payload is audio data (indicating that the audio data packet carries audio data), and is set to 0 to indicate that the payload is non-audio data (indicating that the audio data packet does not carry audio data).

[0091] When MCBT is set to 1, Left is set to 1 and Right is set to 0, indicating that the load is left channel audio data; Right is set to 1 and Left is set to 0, indicating that the load is right channel audio data; both Left and Right are set to 0, indicating that the load is mono audio data of left and right channel down-mixed; and both Left and Right are set to 1, indicating that the load is left channel audio data and right channel audio data placed alternately.

[0092] The audio data is an LC3 coded frame, and the payload of each MCBT ACL link packet with MCBT set to 1 contains one or more LC3 coded frames.

[0093] It should be understood that when the main audio terminal device has not established a connection with the secondary audio terminal device, if the main audio terminal device is a mono audio output device, the audio source device can be required to set MCBT to 1 or 0 when sending audio data. When MCBT is set to 1, Left and Right can be set to any combination.

[0094] When the main audio terminal device has not established a connection with the secondary audio terminal device, if the main audio terminal device is a dual-channel or stereo audio output device, the audio source device can be required to set MCBT to 1 or 0 when sending audio data. When MCBT is set to 1, Left and Right can be both set to 1, or respectively set to 1 and 0, or 0 and 1.

[0095] When the main audio terminal device establishes a connection with the auxiliary audio terminal device and shares the link information of the aforementioned wireless communication link, the audio source device is required to set MCBT to 1 when sending audio data, and Left and Right are set to 1 and 0, or 0 and 1 respectively.

[0096] Without loss of generality, the embodiments of the present application mainly discuss the situation where a main audio terminal device establishes a connection with a secondary audio terminal device to form a TWS function.

[0097] Specifically: when the main audio terminal device establishes a connection with the auxiliary audio terminal device, when the main audio terminal device requests the audio source device to send audio data through the wireless communication link established between the main audio terminal device and the audio source device, the MCBT field of the payload header of the ACL packet of the MCBT link is set to 1, and the payload either sends the left channel audio data encoded by LC3 (or other encoding methods), or sends the right channel audio data encoded by LC3 (or other encoding methods). When sending the left channel audio data, the Left field in the payload header is set to 1 and the Right field is set to 0; when sending the right channel audio data, the Left field in the payload header is set to 0 and the Right field is set to 1.

[0098] When the main audio terminal device establishes a connection with the auxiliary audio terminal device, the main audio terminal device provides the auxiliary audio terminal device with information about the wireless communication link established between the main audio terminal device and the audio source device through the connection established with the auxiliary audio terminal device, so that the auxiliary audio terminal device can receive the audio data sent by the audio source device through the MCBT link.

[0099] When the main audio terminal device and the auxiliary audio terminal device need to provide the TWS function, the main audio terminal device only receives the left channel audio data, and the auxiliary audio terminal device also only receives the right channel audio data;

[0100] or,

[0101] When the main audio terminal device and the sub-audio terminal device need to provide the TWS function, the main audio terminal device only receives the right channel audio data, and the sub-audio terminal device also only receives the left channel audio data.

[0102] Furthermore, when the main audio terminal device receives left or right channel audio data, the main audio terminal device replies with a reception confirmation packet to the sound source device; and when the secondary audio terminal device receives left or right channel audio data, the secondary audio terminal device replies with a reception confirmation packet to the sound source device.

[0103] Based on the above settings, the main audio terminal device and the auxiliary audio terminal device can respectively receive audio data of different channels and respectively reply to the reception confirmation information packets to the sound source device without interfering with each other, thereby greatly reducing the implementation complexity and power consumption of the TWS audio terminal device.

[0104] The present disclosure provides a wireless audio data transmission method, which is applied to a main audio terminal device, such as Figure 3 As shown, the method includes:

[0105] Step 301: Establish a wireless communication link with an audio source device.

[0106] Step 302: Receive an audio data packet sent by the audio source device based on the wireless communication link.

[0107] The audio data packet is formed by respectively encoding the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted by the audio source device, and encapsulating the encoded audio data, and the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data;

[0108] Step 303: When the audio data packet is successfully received and the load type identifier carried by the audio data packet matches the main audio terminal device, confirmation information of the audio data packet is sent to the audio source device based on the wireless communication link.

[0109] Exemplarily, if the main audio terminal device is used to play left channel audio, when the load type identifier carried by the audio data packet indicates that the type of audio data in the audio data packet is mono audio data mixed with left and right channels, left and right channel alternating audio data, or left channel audio data, the load type identifier carried by the audio data packet matches the main audio terminal device; when the load type identifier carried by the audio data packet indicates that the type of audio data in the audio data packet is right channel data, the load type identifier carried by the audio data packet does not match the main audio terminal device;

[0110] If the main audio terminal device is used to play right channel data, and the load type identifier carried by the audio data packet indicates that the type of audio data in the audio data packet is mono audio data mixed with left and right channels, left and right channel alternating audio data, or right channel audio data, the load type identifier carried by the audio data packet matches the main audio terminal device; when the load type identifier carried by the audio data packet indicates that the type of audio data in the audio data packet is left channel data, then the load type identifier carried by the audio data packet does not match the main audio terminal device.

[0111] In one embodiment, after receiving the audio data packet sent by the audio source device based on the wireless communication link, the method further includes:

[0112] In the case where the load type identifier carried by the received audio data packet does not match the main audio terminal device, the audio data in the audio data packet is not received, or the audio data in the audio data packet is received but not used for audio playback.

[0113] In this embodiment, if the load type identifier carried by the audio data packet does not match the main audio terminal device, the audio data carried by the audio data packet is not received, which can reduce the energy consumption of the main audio terminal device.

[0114] In the application, when the load type identifier carried by the received audio data packet does not match the main audio terminal device, although the main audio terminal device does not use the audio data packet for audio playback, it can temporarily store the audio data packet so that when the audio terminal device matching the audio data packet cannot receive the audio data packet normally, the audio data packet can be forwarded to provide more packet receiving opportunities for the audio terminal device matching the audio data packet, thereby improving the stability of audio transmission of the audio system corresponding to the main audio terminal device.

[0115] In one embodiment, after establishing a wireless communication link with the audio source device, the method further includes:

[0116] Establishing a connection with a secondary audio terminal device, and providing the secondary audio terminal device with link information of the wireless communication link, so that the secondary audio terminal device receives the audio data packet based on the wireless communication link, and sends confirmation information of the audio data packet to the sound source device based on the wireless communication link when the load type identifier carried by the audio data packet matches the secondary audio terminal device;

[0117] Wherein, the load type identifier matching the primary audio terminal device indicates left channel audio data, and the load type identifier matching the secondary audio terminal device indicates right channel audio data;

[0118] or,

[0119] The load type identifier that matches the main audio terminal device indicates right channel audio data, and the load type identifier that matches the secondary audio terminal device indicates left channel audio data.

[0120] In this embodiment, when the main audio terminal device establishes a connection with the auxiliary audio terminal device and shares the link information of the wireless communication link with the auxiliary audio terminal device, the audio source device is set to encode and encapsulate the left channel audio data and the right channel audio data respectively, and send the left channel audio data and the right channel audio data respectively based on the wireless communication link, and receive the corresponding returned confirmation messages respectively, so as to reduce the complexity of the TWS terminal device while supporting the main audio terminal device and the auxiliary audio terminal device to form a TWS headset or a TWS speaker.

[0121] In one embodiment, after establishing a wireless communication link with the audio source device, the method further includes:

[0122] Sending a first request to the sound source device, so that the sound source device sends an audio data packet including left channel audio data and an audio data packet including right channel audio data based on the wireless communication link;

[0123] or,

[0124] Sending a second request to the sound source device, so that the sound source device sends an audio data packet including mono audio data mixed by left and right channels based on the wireless communication link;

[0125] or,

[0126] A third request is sent to the sound source device, so that the sound source device sends an audio data packet including left and right channel alternating audio data based on the wireless communication link.

[0127] In this embodiment, the main audio terminal device actively sends pre-set related requests (such as the first request, the second request, the third request, etc.) to the audio source device to achieve flexible setting of the load type of the audio data carried in the audio data packet sent by the audio source device.

[0128] In some embodiments, after establishing a wireless communication link with the audio source device, the audio source device can also be set to obtain relevant device information of the main audio terminal device (such as whether the main audio terminal device supports dual-channel or stereo, whether the main audio terminal device is connected to a secondary audio terminal device, etc.), and process the relevant device information of the main audio terminal device in combination with a setting program, and then adaptively determine the specific load type of the audio data carried in the sent audio data packet.

[0129] Further, the load type identifier includes a left channel identifier and a right channel identifier;

[0130] When the left channel identifier is valid and the right channel identifier is valid, determining that the load type identifier carried by the audio data packet matches the main audio terminal device, and at this time, the load type identifier indicates that the type of audio data in the audio data packet is left and right channel alternating audio data;

[0131] or,

[0132] When the left channel identifier is invalid and the right channel identifier is valid, if the main audio terminal device is used to play the left channel audio data, it is determined that the load type identifier carried by the audio data packet does not match the main audio terminal device; if the main audio terminal device is used to play the right channel audio data, it is determined that the load type identifier carried by the audio data packet matches the main audio terminal device, and at this time, the load type identifier indicates that the type of the audio data in the audio data packet is right channel audio data;

[0133] or,

[0134] When the left channel identifier is valid and the right channel identifier is invalid, if the main audio terminal device is used to play the left channel audio data, it is determined that the load type identifier carried by the audio data packet matches the main audio terminal device; if the main audio terminal device is used to play the right channel audio data, it is determined that the load type identifier carried by the audio data packet does not match the main audio terminal device, and at this time, the load type identifier indicates that the type of the audio data in the audio data packet is left channel audio data;

[0135] or,

[0136] When the left channel identifier is invalid and the right channel identifier is invalid, determining that the load type identifier carried by the audio data packet matches the main audio terminal device, and at this time, the load type identifier indicates that the type of audio data in the audio data packet is mono audio data mixed by left and right channels;

[0137] The audio data packet also carries a load identifier.

[0138] When the load identifier is valid, it indicates that the audio data packet carries audio data.

[0139] When the payload identifier is invalid, it indicates that the audio data packet does not carry audio data.

[0140] The link information of the wireless communication link includes:

[0141] Clock information of the wireless communication link;

[0142] Frequency channel information of the wireless communication link;

[0143] and encryption information of the wireless communication link.

[0144] It should be noted that the wireless audio data transmission method provided in the embodiment of the present disclosure corresponds to the various processes involving the main audio terminal device in the aforementioned embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0145] The present disclosure provides a wireless audio data transmission method, which is applied to a secondary audio terminal device, such as Figure 4 As shown, the method includes:

[0146] Step 401: Establish a connection with a main audio terminal device, and when a wireless communication link is established between the main audio terminal device and an audio source device, obtain link information of the wireless communication link from the main audio terminal device.

[0147] Step 402: Receive an audio data packet sent by the audio source device based on the wireless communication link.

[0148] The audio data packet is formed by respectively encoding the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted by the audio source device, and encapsulating the encoded audio data, and the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data;

[0149] Step 403: When the audio data packet is successfully received and the load type identifier carried by the audio data packet matches the secondary audio terminal device, confirmation information of the audio data packet is sent to the audio source device based on the wireless communication link.

[0150] In one embodiment, the load type identifier includes a left channel identifier and a right channel identifier;

[0151] When the left channel identifier is valid and the right channel identifier is valid, the load type identifier indicates that the type of the audio data in the audio data packet is left and right channel alternating audio data, and it is determined that the load type identifier carried by the audio data packet does not match the secondary audio terminal device;

[0152] When the left channel identifier is invalid and the right channel identifier is valid, if the secondary audio terminal device is used to play the left channel audio data, it is determined that the load type identifier carried by the audio data packet does not match the secondary audio terminal device; if the secondary audio terminal device is used to play the right channel audio data, it is determined that the load type identifier carried by the audio data packet matches the secondary audio terminal device, and at this time, the load type identifier indicates that the type of the audio data in the audio data packet is right channel audio data;

[0153] When the left channel identifier is valid and the right channel identifier is invalid, if the secondary audio terminal device is used to play the left channel audio data, it is determined that the load type identifier carried by the audio data packet matches the secondary audio terminal device; if the secondary audio terminal device is used to play the right channel audio data, it is determined that the load type identifier carried by the audio data packet does not match the secondary audio terminal device, and at this time, the load type identifier indicates that the type of the audio data in the audio data packet is left channel audio data;

[0154] When the left channel identifier is invalid and the right channel identifier is invalid, the load type identifier indicates that the type of the audio data in the audio data packet is mono audio data mixed with left and right channels, and it is determined that the load type identifier carried by the audio data packet does not match the secondary audio terminal device;

[0155] The audio data packet also carries a load identifier.

[0156] When the load identifier is valid, it indicates that the audio data packet carries audio data.

[0157] When the payload identifier is invalid, it indicates that the audio data packet does not carry audio data;

[0158] The link information of the wireless communication link includes:

[0159] Clock information of the wireless communication link;

[0160] Frequency channel information of the wireless communication link;

[0161] and encryption information of the wireless communication link;

[0162] After receiving the audio data packet sent by the audio source device based on the wireless communication link, the method further includes:

[0163] When the load type identifier carried by the received audio data packet does not match the secondary audio terminal device, the audio data in the audio data packet is not received, or the audio data in the audio data packet is received but not used for audio playback.

[0164] In the application, when the load type identifier carried by the received audio data packet does not match the secondary audio terminal device, although the secondary audio terminal device does not use the audio data packet for audio playback, it can temporarily store the audio data packet so that when the audio terminal device matching the audio data packet cannot receive the audio data packet normally, the audio data packet can be forwarded to provide more packet receiving opportunities for the audio terminal device matching the audio data packet, thereby improving the stability of audio transmission of the audio system corresponding to the secondary audio terminal device.

[0165] It should be noted that the wireless audio data transmission method provided in the embodiment of the present disclosure corresponds to the various processes involving the auxiliary audio terminal device in the aforementioned embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0166] In some embodiments, the audio source device, the main audio terminal device, and the auxiliary audio terminal device described in the present application constitute an agile wireless stereo (AWS) audio system, and when the main audio terminal device and the auxiliary audio terminal device play the left channel audio or the right channel audio respectively, the main audio terminal device and the auxiliary audio terminal device constitute a true wireless stereo (TWS: True Wireless Stereo) headset or TWS speaker.

[0167] The AWS audio system adopts the AWS audio transmission method, which is specifically: the sound source device establishes the wireless communication link with the main audio terminal device, and independently encodes and sends the left channel audio and the right channel audio; the auxiliary audio terminal device is connected to the main audio terminal device through wired or wireless connection, and shares the link information of the wireless communication link between the main audio terminal device and the sound source device, so that the auxiliary audio terminal device can also receive the audio data sent by the sound source device through the wireless communication link, and the link information at least includes the clock information, frequency channel information or encryption information of the link.

[0168] By adopting the AWS audio transmission method, the left channel audio data packet or the right channel audio data packet independently sent by the audio source device can be received by the main audio terminal device and reply with reception confirmation information, can also be received by the secondary audio terminal device and reply with reception confirmation information, or can also be received by the main audio terminal device and the secondary audio terminal device respectively and reply with reception confirmation information respectively.

[0169] For ease of understanding, the following examples are provided:

[0170] In this example, the aforementioned audio source device is set to a smartphone, the main audio terminal device is the left channel earphone, and the auxiliary audio terminal is the right channel earphone. The smartphone, left channel earphone and right channel earphone constitute an agile wireless stereo (AWS) audio system.

[0171] The smartphone establishes an MCBT link and an A2DP link based on MCBT with the left-channel headset, where A2DP uses LC3 encoding. The left-channel headset and the right-channel headset are connected via a BLE link. After the left-channel headset establishes MCBT and A2DP links with the smartphone, the MCBT and A2DP link information is provided to the right-channel headset via the BLE link, so that the right-channel headset can receive the audio data sent by the smartphone through the same MCBT and A2DP links, where the link information at least includes the link's clock information, frequency channel information or encryption information.

[0172] In this example, the audio data is encoded using LC3, with a 10ms encoding frame length, a coding rate of 96kbps, and 120 bytes of audio data encoded per frame for monophonic audio. The MCBT-based A2DP link mainly uses 2DH3 packets with high anti-interference performance and bandwidth efficiency to transmit the LC3-encoded audio data. The payload of each 2DH3 packet contains two monophonic encoded frames, i.e., 240 bytes. The QoS Interval of the MCBT-based A2DP link is 20ms.

[0173] The time slot structure of the A2DP link based on MCBT is as follows Figure 5 As shown, there are three overlapping timelines, the first is the sending timeline of the smartphone, the second is the sending timeline of the left channel earphone (the main audio terminal device), and the third is the sending timeline of the right channel earphone (the secondary audio terminal device).

[0174] The 2DH3 L sent by the smartphone represents the left channel audio data sent via 2DH3, where the MCBT of the payload header is set to 1, Left is set to 1, and Right is set to 0.

[0175] The 2DH3 R sent by the smartphone represents the right channel audio data sent via 2DH3, where the MCBT of the payload header is set to 1, Left is set to 0, and Right is set to 1.

[0176] The smartphone also sends POLL and DM1 packets to maintain the MCBT link with the main audio terminal device, where DM1 may contain link management information. In this example, the left channel headset receives the payload of the 2DH3 L packet sent by the smartphone and replies with a confirmation packet. When the 2DH3 L is received correctly, it replies with a packet carrying the correct reception information (ACK, i.e., the aforementioned confirmation information). When the 2DH3 L is not received correctly, it replies with a packet carrying the incorrect reception information (NAK). The ACK or NAK packet can be NULL or DM1, etc. It should be understood that the left channel headset also receives the header of 2DH3 R, but does not receive the payload of 2DH3R, or even if it receives the payload of 2DH3 R, it does not use the payload of 2DH3 R for audio playback.

[0177] In this example, the right channel earphone receives the payload of the 2DH3 R packet sent by the smartphone, and replies with an acknowledgment packet. When the 2DH3 R is correctly received, it replies with a packet carrying the correct reception information (ACK), that is, the aforementioned acknowledgment information. When the 2DH3 R is not correctly received, it replies with a packet carrying the incorrect reception information (NAK). The ACK or NAK packet can be NULL or DM1, etc. It should be understood that the right channel earphone also receives the packet header of 2DH3 L, but does not receive the payload of 2DH3 L, or even if it receives the payload of 2DH3 L, it does not use the payload of 2DH3 L for audio playback.

[0178] The left channel headset, as the main audio terminal device, also receives the POLL or DM1 packet sent by the smartphone for maintaining the MCBT link, and replies with a NULL or DM1 packet, in which the payload header has no MCBT field or the MCBT field is set to 0.

[0179] In addition, the left channel earphone and the right channel earphone also send BLE packets to each other to transmit MCBT link information. Figure 5 In the figure, the solid-line frame represents the data packets and their confirmation information packets to be sent, and the dotted line represents the possible retransmission data packets and their confirmation information packets, as well as the control packets or management packets for maintaining the link.

[0180] Based on the description of this example, it can be seen that the TWS headset implemented using the AWS audio transmission method and the MCBT link can not only simplify the complexity of the TWS solution implementation, but also reduce the power consumption of the TWS headset and obtain better communication performance, compared to the TWS solution implemented based on the CBT link using the forwarding or monitoring solution. Moreover, there is no need to make too many modifications to the existing CBT link.

[0181] The present disclosure provides a wireless audio data transmission system. Figure 6 As shown, the wireless audio data transmission system 600 includes:

[0182] A sound source device 601 and a main audio terminal device 602, wherein a wireless communication link is established between the sound source device 601 and the main audio terminal device 602;

[0183] The audio source device 601 is used to: respectively encode the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted, and encapsulate the encoded audio data into an audio data packet, wherein the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data;

[0184] The audio source device 601 is further used to: send the audio data packet based on the wireless communication link;

[0185] The main audio terminal device 602 is used to: receive the audio data packet based on the wireless communication link, and when the audio data packet is successfully received and the load type identifier carried by the audio data packet matches the main audio terminal device 602, send confirmation information of the audio data packet to the sound source device 601 based on the wireless communication link.

[0186] In one embodiment, the system 600 further includes a secondary audio terminal device 603;

[0187] The main audio terminal device 602 is further used to: establish a connection with the secondary audio terminal device 603, and provide the secondary audio terminal device 603 with the link information of the wireless communication link, so that the secondary audio terminal device 603 receives the audio data packet based on the wireless communication link, and sends confirmation information of the audio data packet to the sound source device 601 based on the wireless communication link when the load type identifier carried by the audio data packet matches the secondary audio terminal device 603;

[0188] The load type identifier matching the primary audio terminal device 602 indicates left channel audio data, and the load type identifier matching the secondary audio terminal device 603 indicates right channel audio data;

[0189] or,

[0190] The load type identifier matching the primary audio terminal device 602 indicates right channel audio data, and the load type identifier matching the secondary audio terminal device 603 indicates left channel audio data.

[0191] In one embodiment, sending the audio data packet based on the wireless communication link comprises:

[0192] After receiving the first request from the main audio terminal device 602, sending an audio data packet including left channel audio data and an audio data packet including right channel audio data based on the wireless communication link;

[0193] or,

[0194] After receiving the second request from the main audio terminal device 602, sending an audio data packet including mono audio data of left and right channels down-mixed based on the wireless communication link;

[0195] or,

[0196] After receiving the third request from the main audio terminal device 602, an audio data packet including left and right channel alternating audio data is sent based on the wireless communication link.

[0197] In one embodiment, the load type identifier includes a left channel identifier and a right channel identifier;

[0198] When the left channel identifier is valid and the right channel identifier is valid, the load type identifier indicates that the type of the audio data in the audio data packet is left and right channel alternating audio data;

[0199] When the left channel identifier is invalid and the right channel identifier is valid, the load type identifier indicates that the type of the audio data in the audio data packet is right channel audio data;

[0200] When the left channel identifier is valid and the right channel identifier is invalid, the load type identifier indicates that the type of the audio data in the audio data packet is left channel audio data;

[0201] When the left channel identifier is invalid and the right channel identifier is invalid, the payload type identifier indicates that the type of the audio data in the audio data packet is mono audio data mixed with left and right channels;

[0202] The audio data packet also carries a load identifier.

[0203] When the load identifier is valid, it indicates that the audio data packet carries audio data.

[0204] When the payload identifier is invalid, it indicates that the audio data packet does not carry audio data;

[0205] The link information of the wireless communication link includes:

[0206] Clock information of the wireless communication link;

[0207] Frequency channel information of the wireless communication link;

[0208] and encryption information of the wireless communication link.

[0209] The wireless audio data transmission system 600 provided in the embodiment of the present disclosure corresponds to the various processes involving the audio source device, the main audio terminal device and the auxiliary audio terminal device in the aforementioned embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0210] The present disclosure also provides a wireless audio data transmission device 700, which is applied to an audio source device, such as Figure 7 As shown, the device 700 includes:

[0211] The audio source link establishment module 701 is used to establish a wireless communication link with the main audio terminal device;

[0212] An audio processing module 702 is used to encode the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted, respectively, and encapsulate the encoded audio data into an audio data packet, wherein the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data;

[0213] The audio source packet sending module 703 is used to send the audio data packet based on the wireless communication link;

[0214] The audio source receiving module 704 receives confirmation information of the audio data packet after sending the audio data packet.

[0215] In one embodiment, the sound source packet sending module 703 is specifically used to:

[0216] After receiving a first request from the main audio terminal device, sending an audio data packet including left channel audio data and an audio data packet including right channel audio data based on the wireless communication link;

[0217] or,

[0218] After receiving the second request from the main audio terminal device, sending an audio data packet including mono audio data down-mixed from left and right channels based on the wireless communication link;

[0219] or,

[0220] After receiving the third request from the main audio terminal device, an audio data packet including left and right channel alternating audio data is sent based on the wireless communication link.

[0221] In one embodiment, the load type identifier includes a left channel identifier and a right channel identifier;

[0222] When the left channel identifier is valid and the right channel identifier is valid, the load type identifier indicates that the type of the audio data in the audio data packet is left and right channel alternating audio data;

[0223] When the left channel identifier is invalid and the right channel identifier is valid, the load type identifier indicates that the type of the audio data in the audio data packet is right channel audio data;

[0224] When the left channel identifier is valid and the right channel identifier is invalid, the load type identifier indicates that the type of the audio data in the audio data packet is left channel audio data;

[0225] When the left channel identifier is invalid and the right channel identifier is invalid, the payload type identifier indicates that the type of the audio data in the audio data packet is mono audio data that is down-mixed between left and right channels.

[0226] In one embodiment, the audio data packet also carries a payload identifier.

[0227] When the load identifier is valid, it indicates that the audio data packet carries audio data.

[0228] When the payload identifier is invalid, it indicates that the audio data packet does not carry audio data.

[0229] In one embodiment, the link information of the wireless communication link includes:

[0230] Clock information of the wireless communication link;

[0231] Frequency channel information of the wireless communication link;

[0232] and encryption information of the wireless communication link.

[0233] The wireless audio data transmission device 700 provided in the embodiment of the present application can implement each process in the embodiment of the wireless audio data transmission method of the sound source device, and will not be described again here to avoid repetition.

[0234] The present disclosure also provides a wireless audio data transmission device 800, which is applied to a main audio terminal device, such as Figure 8 As shown, the device 800 includes:

[0235] The main terminal link establishment module 801 is used to establish a wireless communication link with the audio source device;

[0236] The main terminal packet receiving module 802 is used to receive the audio data packet sent by the sound source device based on the wireless communication link, wherein the audio data packet is formed by the sound source device encoding the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted, and encapsulating the encoded audio data, and the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data;

[0237] The main terminal reply module 803 is used to send confirmation information of the audio data packet to the audio source device based on the wireless communication link when the audio data packet is successfully received and the load type identifier carried by the audio data packet matches the main audio terminal device.

[0238] In one embodiment, if the main audio terminal device is used to play left channel data, when the load type identifier carried by the audio data packet indicates that the type of the audio data in the audio data packet is mono audio data mixed with left and right channels, left and right channel alternating audio data, or left channel audio data, the load type identifier carried by the audio data packet matches the main audio terminal device; when the load type identifier carried by the audio data packet indicates that the type of the audio data in the audio data packet is right channel data, the load type identifier carried by the audio data packet does not match the main audio terminal device;

[0239] If the main audio terminal device is used to play right channel data, and the load type identifier carried by the audio data packet indicates that the type of audio data in the audio data packet is mono audio data mixed with left and right channels, left and right channel alternating audio data, or right channel audio data, the load type identifier carried by the audio data packet matches the main audio terminal device; when the load type identifier carried by the audio data packet indicates that the type of audio data in the audio data packet is left channel data, then the load type identifier carried by the audio data packet does not match the main audio terminal device.

[0240] In one embodiment, the wireless audio data transmission device 800 further includes a secondary terminal access module, and the secondary terminal access module is used to:

[0241] Establishing a connection with a secondary audio terminal device, and providing the secondary audio terminal device with link information of the wireless communication link, so that the secondary audio terminal device receives the audio data packet based on the wireless communication link, and sends confirmation information of the audio data packet to the sound source device based on the wireless communication link when the load type identifier carried by the audio data packet matches the secondary audio terminal device;

[0242] Wherein, the load type identifier matching the primary audio terminal device indicates left channel audio data, and the load type identifier matching the secondary audio terminal device indicates right channel audio data;

[0243] or,

[0244] The load type identifier that matches the main audio terminal device indicates right channel audio data, and the load type identifier that matches the secondary audio terminal device indicates left channel audio data.

[0245] In one embodiment, the wireless audio data transmission device 800 further includes a secondary request module, and the request module is used to:

[0246] Sending a first request to the sound source device, so that the sound source device sends an audio data packet including left channel audio data and an audio data packet including right channel audio data based on the wireless communication link;

[0247] or,

[0248] Sending a second request to the sound source device, so that the sound source device sends an audio data packet including mono audio data mixed by left and right channels based on the wireless communication link;

[0249] or,

[0250] A third request is sent to the sound source device, so that the sound source device sends an audio data packet including left and right channel alternating audio data based on the wireless communication link.

[0251] In one embodiment, the load type identifier includes a left channel identifier and a right channel identifier;

[0252] When the left channel identifier is valid and the right channel identifier is valid, determining that the load type identifier carried by the audio data packet matches the main audio terminal device, and at this time, the load type identifier indicates that the type of audio data in the audio data packet is left and right channel alternating audio data;

[0253] or,

[0254] When the left channel identifier is invalid and the right channel identifier is valid, if the main audio terminal device is used to play the left channel audio data, it is determined that the load type identifier carried by the audio data packet does not match the main audio terminal device; if the main audio terminal device is used to play the right channel audio data, it is determined that the load type identifier carried by the audio data packet matches the main audio terminal device, and at this time, the load type identifier indicates that the type of the audio data in the audio data packet is right channel audio data;

[0255] or,

[0256] When the left channel identifier is valid and the right channel identifier is invalid, if the main audio terminal device is used to play the left channel audio data, it is determined that the load type identifier carried by the audio data packet matches the main audio terminal device; if the main audio terminal device is used to play the right channel audio data, it is determined that the load type identifier carried by the audio data packet does not match the main audio terminal device, and at this time, the load type identifier indicates that the type of the audio data in the audio data packet is left channel audio data;

[0257] or,

[0258] When the left channel identifier is invalid and the right channel identifier is invalid, determining that the load type identifier carried by the audio data packet matches the main audio terminal device, and at this time, the load type identifier indicates that the type of audio data in the audio data packet is mono audio data mixed by left and right channels;

[0259] The audio data packet also carries a load identifier.

[0260] When the load identifier is valid, it indicates that the audio data packet carries audio data.

[0261] When the payload identifier is invalid, it indicates that the audio data packet does not carry audio data.

[0262] The link information of the wireless communication link includes:

[0263] Clock information of the wireless communication link;

[0264] Frequency channel information of the wireless communication link;

[0265] and encryption information of the wireless communication link.

[0266] In one embodiment, the main terminal packet receiving module is further used for:

[0267] In the case where the load type identifier carried by the received audio data packet does not match the main audio terminal device, the audio data in the audio data packet is not received, or the audio data in the audio data packet is received but not used for audio playback.

[0268] The wireless audio data transmission device 800 provided in the embodiment of the present application can implement each process in the embodiment of the wireless audio data transmission method of the main audio terminal device, and will not be described again here to avoid repetition.

[0269] The present disclosure also provides a wireless audio data transmission device 900, which is applied to a secondary audio terminal device, such as Fig. 9 As shown, the device 900 includes:

[0270] The secondary terminal connection module 901 establishes a connection with the main audio terminal device, and when the main audio terminal device establishes a wireless communication link with the audio source device, obtains link information of the wireless communication link from the main audio terminal device;

[0271] The secondary terminal packet receiving module 902 is used to receive the audio data packet sent by the sound source device based on the wireless communication link, wherein the audio data packet is formed by respectively encoding the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted by the sound source device, and encapsulating the encoded audio data, and the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data;

[0272] The secondary terminal reply module 903 is used to send confirmation information of the audio data packet to the sound source device based on the wireless communication link when the audio data packet is successfully received and the load type identifier carried by the audio data packet matches the secondary audio terminal device.

[0273] In one embodiment, the load type identifier includes a left channel identifier and a right channel identifier;

[0274] When the left channel identifier is valid and the right channel identifier is valid, the load type identifier indicates that the type of the audio data in the audio data packet is left and right channel alternating audio data, and it is determined that the load type identifier carried by the audio data packet does not match the secondary audio terminal device;

[0275] When the left channel identifier is invalid and the right channel identifier is valid, if the secondary audio terminal device is used to play the left channel audio data, it is determined that the load type identifier carried by the audio data packet does not match the secondary audio terminal device; if the secondary audio terminal device is used to play the right channel audio data, it is determined that the load type identifier carried by the audio data packet matches the secondary audio terminal device, and at this time, the load type identifier indicates that the type of the audio data in the audio data packet is right channel audio data;

[0276] When the left channel identifier is valid and the right channel identifier is invalid, if the secondary audio terminal device is used to play the left channel audio data, it is determined that the load type identifier carried by the audio data packet matches the secondary audio terminal device; if the secondary audio terminal device is used to play the right channel audio data, it is determined that the load type identifier carried by the audio data packet does not match the secondary audio terminal device, and at this time, the load type identifier indicates that the type of the audio data in the audio data packet is left channel audio data;

[0277] When the left channel identifier is invalid and the right channel identifier is invalid, the load type identifier indicates that the type of the audio data in the audio data packet is mono audio data mixed with left and right channels, and it is determined that the load type identifier carried by the audio data packet does not match the secondary audio terminal device;

[0278] The audio data packet also carries a load identifier.

[0279] When the load identifier is valid, it indicates that the audio data packet carries audio data.

[0280] When the payload identifier is invalid, it indicates that the audio data packet does not carry audio data;

[0281] The link information of the wireless communication link includes:

[0282] Clock information of the wireless communication link;

[0283] Frequency channel information of the wireless communication link;

[0284] and encryption information of the wireless communication link;

[0285] After receiving the audio data packet sent by the audio source device based on the wireless communication link, the method further includes:

[0286] When the load type identifier carried by the received audio data packet does not match the secondary audio terminal device, the audio data in the audio data packet is not received, or the audio data in the audio data packet is received but not used for audio playback.

[0287] The wireless audio data transmission device 900 provided in the embodiment of the present application can implement each process in the embodiment of the wireless audio data transmission method of the auxiliary audio terminal device, and will not be described again here to avoid repetition.

[0288] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.

[0289] Fig.10 1 shows a schematic block diagram of an example electronic device 1000 that can be used to implement an embodiment of the present disclosure. Fig.10As shown, the device 1000 includes a computing unit 1001, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 to a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the device 1000 can also be stored. The computing unit 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0290] A number of components in the device 1000 are connected to the I / O interface 1005, including: an input unit 1006, such as a keyboard, a mouse, etc.; an output unit 1007, such as various types of displays, speakers, etc.; a storage unit 1008, such as a disk, an optical disk, etc.; and a communication unit 1009, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1009 allows the device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0291] The computing unit 1001 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSP), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1001 performs the various methods and processes described above, such as wireless audio data transmission methods. For example, in some embodiments, the wireless audio data transmission method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1008. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1000 via the ROM 1002 and / or the communication unit 1009. When the computer program is loaded into the RAM 1003 and executed by the computing unit 1001, one or more steps of the wireless audio data transmission method described above may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to execute the wireless audio data transmission method in any other appropriate manner (eg, by means of firmware).

[0292] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0293] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0294] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0295] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the above Figure 1 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.

[0296] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0297] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A wireless audio data transmission method, applied to a sound source device, characterized in that: The method comprises: Establishing a wireless communication link with the main audio terminal device; Encode the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted respectively, and encapsulate the encoded audio data into an audio data packet, wherein the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data; Sending the audio data packet based on the wireless communication link; After sending the audio data packet, receiving confirmation information of the audio data packet.

2. The method according to claim 1, characterized in that The sending of the audio data packet based on the wireless communication link comprises: After receiving a first request from the main audio terminal device, sending an audio data packet including left channel audio data and an audio data packet including right channel audio data based on the wireless communication link; or, After receiving the second request from the main audio terminal device, sending an audio data packet including mono audio data down-mixed from left and right channels based on the wireless communication link; or, After receiving the third request from the main audio terminal device, an audio data packet including left and right channel alternating audio data is sent based on the wireless communication link.

3. The method according to claim 1, characterized in that The load type identifier includes a left channel identifier and a right channel identifier; When the left channel identifier is valid and the right channel identifier is valid, the load type identifier indicates that the type of the audio data in the audio data packet is left and right channel alternating audio data; When the left channel identifier is invalid and the right channel identifier is valid, the load type identifier indicates that the type of the audio data in the audio data packet is right channel audio data; When the left channel identifier is valid and the right channel identifier is invalid, the load type identifier indicates that the type of the audio data in the audio data packet is left channel audio data; When the left channel identifier is invalid and the right channel identifier is invalid, the payload type identifier indicates that the type of the audio data in the audio data packet is mono audio data that is down-mixed between left and right channels.

4. The method according to claim 1, characterized in that: The audio data packet also carries a load identifier. When the load identifier is valid, it indicates that the audio data packet carries audio data. When the payload identifier is invalid, it indicates that the audio data packet does not carry audio data.

5. The method according to any one of claims 1 to 4, characterized in that The link information of the wireless communication link includes: Clock information of the wireless communication link; Frequency channel information of the wireless communication link; and encryption information of the wireless communication link.

6. A wireless audio data transmission method, applied to a main audio terminal device, characterized in that: The method comprises: Establishing a wireless communication link with the audio source device; An audio data packet sent by the sound source device is received based on the wireless communication link, wherein the audio data packet is formed by respectively encoding the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted by the sound source device, and encapsulating the encoded audio data, and the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data; When the audio data packet is successfully received and the load type identifier carried by the audio data packet matches the main audio terminal device, confirmation information of the audio data packet is sent to the audio source device based on the wireless communication link.

7. The method according to claim 6, characterized in that If the main audio terminal device is used to play left channel data, when the load type identifier carried by the audio data packet indicates that the type of the audio data in the audio data packet is mono audio data mixed with left and right channels, left and right channel alternating audio data, or left channel audio data, the load type identifier carried by the audio data packet matches the main audio terminal device; when the load type identifier carried by the audio data packet indicates that the type of the audio data in the audio data packet is right channel data, the load type identifier carried by the audio data packet does not match the main audio terminal device; If the main audio terminal device is used to play right channel data, and the load type identifier carried by the audio data packet indicates that the type of audio data in the audio data packet is mono audio data mixed with left and right channels, left and right channel alternating audio data, or right channel audio data, the load type identifier carried by the audio data packet matches the main audio terminal device; when the load type identifier carried by the audio data packet indicates that the type of audio data in the audio data packet is left channel data, then the load type identifier carried by the audio data packet does not match the main audio terminal device.

8. The method according to claim 6, characterized in that After establishing a wireless communication link with the audio source device, the method further includes: Establishing a connection with a secondary audio terminal device, and providing the secondary audio terminal device with link information of the wireless communication link, so that the secondary audio terminal device receives the audio data packet based on the wireless communication link, and sends confirmation information of the audio data packet to the sound source device based on the wireless communication link when the load type identifier carried by the audio data packet matches the secondary audio terminal device; Wherein, the load type identifier matching the primary audio terminal device indicates left channel audio data, and the load type identifier matching the secondary audio terminal device indicates right channel audio data; or, The load type identifier that matches the main audio terminal device indicates right channel audio data, and the load type identifier that matches the secondary audio terminal device indicates left channel audio data.

9. The method according to claim 6, characterized in that After establishing a wireless communication link with the audio source device, the method further includes: Sending a first request to the sound source device, so that the sound source device sends an audio data packet including left channel audio data and an audio data packet including right channel audio data based on the wireless communication link; or, Sending a second request to the sound source device, so that the sound source device sends an audio data packet including mono audio data mixed by left and right channels based on the wireless communication link; or, A third request is sent to the sound source device, so that the sound source device sends an audio data packet including left and right channel alternating audio data based on the wireless communication link.

10. The method according to claim 6, characterized in that The load type identifier includes a left channel identifier and a right channel identifier; When the left channel identifier is valid and the right channel identifier is valid, determining that the load type identifier carried by the audio data packet matches the main audio terminal device, and at this time, the load type identifier indicates that the type of audio data in the audio data packet is left and right channel alternating audio data; or, When the left channel identifier is invalid and the right channel identifier is valid, if the main audio terminal device is used to play the left channel audio data, it is determined that the load type identifier carried by the audio data packet does not match the main audio terminal device; if the main audio terminal device is used to play the right channel audio data, it is determined that the load type identifier carried by the audio data packet matches the main audio terminal device, and at this time, the load type identifier indicates that the type of the audio data in the audio data packet is right channel audio data; or, When the left channel identifier is valid and the right channel identifier is invalid, if the main audio terminal device is used to play the left channel audio data, it is determined that the load type identifier carried by the audio data packet matches the main audio terminal device; if the main audio terminal device is used to play the right channel audio data, it is determined that the load type identifier carried by the audio data packet does not match the main audio terminal device, and at this time, the load type identifier indicates that the type of the audio data in the audio data packet is left channel audio data; or, When the left channel identifier is invalid and the right channel identifier is invalid, determining that the load type identifier carried by the audio data packet matches the main audio terminal device, and at this time, the load type identifier indicates that the type of audio data in the audio data packet is mono audio data mixed by left and right channels; The audio data packet also carries a load identifier. When the load identifier is valid, it indicates that the audio data packet carries audio data. When the payload identifier is invalid, it indicates that the audio data packet does not carry audio data. The link information of the wireless communication link includes: Clock information of the wireless communication link; Frequency channel information of the wireless communication link; and encryption information of the wireless communication link.

11. The method according to claim 6, characterized in that After receiving the audio data packet sent by the audio source device based on the wireless communication link, the method further includes: In the case where the load type identifier carried by the received audio data packet does not match the main audio terminal device, the audio data in the audio data packet is not received, or the audio data in the audio data packet is received but not used for audio playback.

12. A wireless audio data transmission method, applied to a secondary audio terminal device, characterized in that: The method comprises: Establishing a connection with a main audio terminal device, and when the main audio terminal device establishes a wireless communication link with an audio source device, obtaining link information of the wireless communication link from the main audio terminal device; An audio data packet sent by the sound source device is received based on the wireless communication link, wherein the audio data packet is formed by respectively encoding the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted by the sound source device, and encapsulating the encoded audio data, and the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data; When the audio data packet is successfully received and the load type identifier carried by the audio data packet matches the secondary audio terminal device, confirmation information of the audio data packet is sent to the audio source device based on the wireless communication link.

13. The method according to claim 12, characterized in that The load type identifier includes a left channel identifier and a right channel identifier; When the left channel identifier is valid and the right channel identifier is valid, the load type identifier indicates that the type of the audio data in the audio data packet is left and right channel alternating audio data, and at this time, it is determined that the load type identifier carried by the audio data packet does not match the secondary audio terminal device; When the left channel identifier is invalid and the right channel identifier is valid, if the secondary audio terminal device is used to play the left channel audio data, it is determined that the load type identifier carried by the audio data packet does not match the secondary audio terminal device; if the secondary audio terminal device is used to play the right channel audio data, it is determined that the load type identifier carried by the audio data packet matches the secondary audio terminal device, and at this time, the load type identifier indicates that the type of the audio data in the audio data packet is right channel audio data; When the left channel identifier is valid and the right channel identifier is invalid, if the secondary audio terminal device is used to play the left channel audio data, it is determined that the load type identifier carried by the audio data packet matches the secondary audio terminal device; if the secondary audio terminal device is used to play the right channel audio data, it is determined that the load type identifier carried by the audio data packet does not match the secondary audio terminal device, and at this time, the load type identifier indicates that the type of the audio data in the audio data packet is left channel audio data; When the left channel identifier is invalid and the right channel identifier is invalid, the load type identifier indicates that the type of the audio data in the audio data packet is mono audio data mixed with the left and right channels, and it is determined that the load type identifier carried by the audio data packet does not match the secondary audio terminal device; The audio data packet also carries a load identifier. When the load identifier is valid, it indicates that the audio data packet carries audio data. When the payload identifier is invalid, it indicates that the audio data packet does not carry audio data; The link information of the wireless communication link includes: Clock information of the wireless communication link; Frequency channel information of the wireless communication link; and encryption information of the wireless communication link; After receiving the audio data packet sent by the audio source device based on the wireless communication link, the method further includes: When the load type identifier carried by the received audio data packet does not match the secondary audio terminal device, the audio data in the audio data packet is not received, or the audio data in the audio data packet is received but not used for audio playback.

14. A wireless audio data transmission system, characterized in that: The system comprises: A sound source device and a main audio terminal device, wherein a wireless communication link is established between the sound source device and the main audio terminal device; The audio source device is used to: respectively encode the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted, and encapsulate the encoded audio data into an audio data packet, wherein the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data; The audio source device is further used to: send the audio data packet based on the wireless communication link; The main audio terminal device is used to: receive the audio data packet based on the wireless communication link, and when the audio data packet is successfully received and the load type identifier carried by the audio data packet matches the main audio terminal device, send confirmation information of the audio data packet to the sound source device based on the wireless communication link.

15. The system according to claim 14, characterized in that The sending of the audio data packet based on the wireless communication link comprises: After receiving a first request from the main audio terminal device, sending an audio data packet including left channel audio data and an audio data packet including right channel audio data based on the wireless communication link; or, After receiving the second request from the main audio terminal device, sending an audio data packet including mono audio data down-mixed from left and right channels based on the wireless communication link; or, After receiving the third request from the main audio terminal device, an audio data packet including left and right channel alternating audio data is sent based on the wireless communication link.

16. The system according to claim 14, characterized in that The system also includes a secondary audio terminal device; The main audio terminal device is further used to: establish a connection with the secondary audio terminal device, and provide the secondary audio terminal device with link information of the wireless communication link, so that the secondary audio terminal device receives the audio data packet based on the wireless communication link, and sends confirmation information of the audio data packet to the sound source device based on the wireless communication link when the load type identifier carried by the audio data packet matches the secondary audio terminal device; Wherein, the load type identifier matching the primary audio terminal device indicates left channel audio data, and the load type identifier matching the secondary audio terminal device indicates right channel audio data; or, The load type identifier that matches the main audio terminal device indicates right channel audio data, and the load type identifier that matches the secondary audio terminal device indicates left channel audio data.

17. The system according to claim 14, characterized in that The load type identifier includes a left channel identifier and a right channel identifier; When the left channel identifier is valid and the right channel identifier is valid, the load type identifier indicates that the type of the audio data in the audio data packet is left and right channel alternating audio data; When the left channel identifier is invalid and the right channel identifier is valid, the load type identifier indicates that the type of the audio data in the audio data packet is right channel audio data; When the left channel identifier is valid and the right channel identifier is invalid, the load type identifier indicates that the type of the audio data in the audio data packet is left channel audio data; When the left channel identifier is invalid and the right channel identifier is invalid, the payload type identifier indicates that the type of the audio data in the audio data packet is mono audio data mixed with left and right channels; The audio data packet also carries a load identifier. When the load identifier is valid, it indicates that the audio data packet carries audio data. When the payload identifier is invalid, it indicates that the audio data packet does not carry audio data; The link information of the wireless communication link includes: Clock information of the wireless communication link; Frequency channel information of the wireless communication link; and encryption information of the wireless communication link.

18. A wireless audio data transmission device, applied to a sound source device, characterized in that: The device comprises: The audio source link establishment module is used to establish a wireless communication link with the main audio terminal device; an audio processing module, used for respectively encoding the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted, and encapsulating the encoded audio data into an audio data packet, wherein the audio data packet carries a load type identifier, and the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data; An audio source packet sending module, used for sending the audio data packet based on the wireless communication link; The audio source receiving module receives confirmation information of the audio data packet after sending the audio data packet.

19. A wireless audio data transmission device, applied to a main audio terminal device, characterized in that: The device comprises: The main terminal link establishment module is used to establish a wireless communication link with the audio source device; a packet receiving module of the main terminal, configured to receive an audio data packet sent by the sound source device based on the wireless communication link, wherein the audio data packet is formed by respectively encoding the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted by the sound source device, and encapsulating the encoded audio data, the audio data packet carries a load type identifier, the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data; The main terminal reply module is used to send confirmation information of the audio data packet to the audio source device based on the wireless communication link when the audio data packet is successfully received and the load type identifier carried by the audio data packet matches the main audio terminal device.

20. A wireless audio data transmission device, applied to a secondary audio terminal device, characterized in that: The device comprises: The secondary terminal connection module establishes a connection with the main audio terminal device, and when the main audio terminal device establishes a wireless communication link with the audio source device, obtains link information of the wireless communication link from the main audio terminal device; a packet receiving module of the secondary terminal, configured to receive an audio data packet sent by the sound source device based on the wireless communication link, wherein the audio data packet is formed by respectively encoding the left channel audio data in the audio stream to be transmitted and the right channel audio data in the audio stream to be transmitted by the sound source device, and encapsulating the encoded audio data, the audio data packet carries a load type identifier, the load type identifier is used to indicate the type of audio data in the audio data packet, and the type of audio data includes one or more of left channel audio data, right channel audio data, mono audio data mixed by left and right channels, and left and right channel alternating audio data; The secondary terminal reply module is used to send confirmation information of the audio data packet to the sound source device based on the wireless communication link when the audio data packet is successfully received and the load type identifier carried by the audio data packet matches the secondary audio terminal device.

21. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the wireless audio data transmission method as claimed in any one of claims 1 to 13.