Low-latency audio data transmission method and device
By adopting the synchronous broadcast streaming method of multiple retransmissions in audio data transmission, the delay problem caused by interference during the audio data transmission process is solved, the anti-interference performance is improved, the audio and video are avoided to be out of sync, and the transmission delay is achieved. of equilibrium.
Patent Information
- Application Number
- CN202210911965.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-07-29
AI Technical Summary
During the transmission of audio data, there are interference factors that cause the transmission delay to increase, which in turn causes the problem of audio and video being out of sync. The existing technology uses retransmission to resist interference but affects the delay.
The synchronous broadcast streaming method using multiple retransmissions is used, in which one audio data packet is transmitted in two synchronous broadcast streams, and the last one of the R-1 synchronous broadcast streams is retransmitted through the first M-1 sub-events. The second audio data packet transmitted by the sub-event, and the first audio data packet transmitted through the last sub-event, R is greater than 1, and M is greater than or equal to 2.
It improves the anti-interference of audio data transmission and reduces the transmission delay, avoids the problem of out-of-synchronization of audio and video, and achieves the balance of anti-interference and transmission delay.
Smart Images

Figure CN115278858B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to a method and device for low-latency audio data transmission. Background Art
[0002] With the rapid development of Bluetooth technology, low-power Bluetooth technology has added a multi-stream audio function, which can realize multiple and independent data stream transmissions between an audio source device and multiple audio receiving devices, thus bringing a better experience to users.
[0003] In actual applications, there are many interference factors in the wireless transmission environment between the audio source device and the audio receiving device, which will affect the success rate of audio data transmission. To this end, the relevant technology uses retransmission to combat interference factors. However, the retransmission method directly affects the transmission delay of the audio data. These transmission delays and the delay caused by the encoding and decoding in the audio source will cause the problem of audio and video being out of sync. Therefore, there is an urgent need for an audio data transmission method that balances anti-interference and transmission delay. Summary of the invention
[0004] The embodiments of the present application provide a low-latency audio data transmission method and device for improving the anti-interference performance of data transmission while reducing the transmission delay of audio data, thereby achieving a balance between anti-interference performance and transmission delay.
[0005] On the one hand, an embodiment of the present application provides a low-latency audio data transmission method, which is applied to an audio source device, and the method includes:
[0006] Acquire a first audio data packet to be transmitted;
[0007] Creating an Rth synchronized broadcast stream in a synchronized broadcast group, wherein the Rth synchronized broadcast stream includes M sub-events for transmitting audio data packets, the first M-1 sub-events in the Rth synchronized broadcast stream are used to retransmit the second audio data packet transmitted by the last sub-event in the R-1th synchronized broadcast stream, the last sub-event in the Rth synchronized broadcast stream is used to transmit the first audio data packet, R is greater than 1, and M is greater than or equal to 2;
[0008] The first audio data packet and M-1 identical second audio data packets are broadcasted via the Rth synchronized broadcast stream.
[0009] On the one hand, an embodiment of the present application provides a low-latency audio data transmission method, which is applied to each audio receiving device in a plurality of audio receiving devices, and the method includes:
[0010] Receive a first audio data packet broadcasted through an R-th synchronous broadcast stream in a synchronous broadcast group, wherein the R-th synchronous broadcast stream includes M sub-events for transmitting audio data packets, the first M-1 sub-events in the R-th synchronous broadcast stream are used to retransmit a second audio data packet transmitted by the last sub-event in the R-1-th synchronous broadcast stream, the last sub-event in the R-th synchronous broadcast stream is used to transmit the first audio data packet, R is greater than 1, and M is greater than or equal to 2;
[0011] Parsing the first audio data packet to obtain first audio data;
[0012] The first audio data is converted into a first audio, and the first audio is played.
[0013] On the one hand, an embodiment of the present application provides a low-latency audio data transmission method, which is applied to an audio source device, and the method includes:
[0014] Acquire a first audio data packet to be transmitted;
[0015] Creating an Rth synchronized broadcast stream in a synchronized broadcast group, wherein the Rth synchronized broadcast stream includes a plurality of sub-events for transmitting audio data packets, some of the sub-events in the Rth synchronized broadcast stream are used to retransmit the second audio data packet transmitted by some of the sub-events in the R-1th synchronized broadcast stream, and the remaining sub-events in the Rth synchronized broadcast stream are used to transmit the first audio data packet, and R is greater than 1;
[0016] The first audio data packet and the retransmitted second audio data packet are broadcasted via the Rth synchronous broadcast stream.
[0017] On the one hand, an embodiment of the present application provides a low-latency audio data transmission device, which is applied to an audio source device, and the device includes:
[0018] An acquisition module, used for acquiring a first audio data packet to be transmitted;
[0019] A processing module, configured to create an R-th synchronized broadcast stream in a synchronized broadcast group, wherein the R-th synchronized broadcast stream includes M sub-events for transmitting audio data packets, the first M-1 sub-events in the R-th synchronized broadcast stream are used to retransmit a second audio data packet transmitted by the last sub-event in the R-1-th synchronized broadcast stream, the last sub-event in the R-th synchronized broadcast stream is used to transmit the first audio data packet, R is greater than 1, and M is greater than or equal to 2;
[0020] The broadcast module is used to broadcast the first audio data packet and M-1 identical second audio data packets through the Rth synchronous broadcast stream.
[0021] Optionally, the acquisition module is specifically used for:
[0022] Acquire an original audio data packet, and decode the original audio data packet based on an original audio protocol corresponding to the original audio data packet to obtain candidate audio data;
[0023] Perform LC3 encoding on the candidate audio data to obtain the first audio data packet.
[0024] Optionally, the acquisition module is specifically used for:
[0025] Receive the original audio data packet sent by the original audio device through the Bluetooth audio transmission model protocol;
[0026] The original audio data packet is decoded using a Bluetooth audio transmission model protocol to obtain candidate audio data.
[0027] Optionally, the M sub-events are three sub-events, and the first audio data in the first audio data packet is dual-channel audio data.
[0028] On the one hand, an embodiment of the present application provides a low-latency audio data transmission device, which is applied to each audio receiving device in a plurality of audio receiving devices, and the device includes:
[0029] A receiving module, configured to receive a first audio data packet broadcasted by an audio source device through an R-th synchronous broadcast stream in a synchronous broadcast group, wherein the R-th synchronous broadcast stream includes M sub-events for transmitting audio data packets, the first M-1 sub-events in the R-th synchronous broadcast stream are used to retransmit a second audio data packet transmitted by the last sub-event in the R-1-th synchronous broadcast stream, the last sub-event in the R-th synchronous broadcast stream is used to transmit the first audio data packet, R is greater than 1, and M is greater than or equal to 2;
[0030] A parsing module, used for parsing the first audio data packet to obtain first audio data;
[0031] The playing module is used to convert the first audio data into a first audio and play the first audio.
[0032] Optionally, the receiving module is further used for:
[0033] Before receiving a first audio data packet broadcasted through an Rth synchronous broadcast stream in a synchronous broadcast group, receiving a second audio data packet retransmitted through the Rth synchronous broadcast stream, and parsing the second audio data packet to obtain second audio data;
[0034] The playback module is also used for:
[0035] If the second audio corresponding to the second audio data has not been played before, the second audio data is converted into the second audio, and the second audio is played.
[0036] Optionally, the playback module is further used for:
[0037] If the second audio of the second audio data pair has been played before, the step of converting the second audio data into the second audio and playing the second audio is skipped.
[0038] On the one hand, an embodiment of the present application provides a low-latency audio data transmission device, which is applied to an audio source device, and the device includes:
[0039] An acquisition module, used for acquiring a first audio data packet to be transmitted;
[0040] A processing module, configured to create an Rth synchronized broadcast stream in a synchronized broadcast group, wherein the Rth synchronized broadcast stream includes a plurality of sub-events for transmitting audio data packets, some of the sub-events in the Rth synchronized broadcast stream are used to retransmit a second audio data packet transmitted by some of the sub-events in the R-1th synchronized broadcast stream, and the remaining sub-events in the Rth synchronized broadcast stream are used to transmit the first audio data packet, and R is greater than 1;
[0041] The broadcast module is used to broadcast the first audio data packet and the retransmitted second audio data packet through the Rth synchronous broadcast stream.
[0042] On the one hand, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned low-latency audio data transmission method when executing the program.
[0043] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program that can be executed by a computer device. When the program runs on the computer device, the computer device executes the steps of the above-mentioned low-latency audio data transmission method.
[0044] In the embodiment of the present application, multiple retransmissions of an audio data packet are completed in two synchronous broadcast streams, so in the case of interference or long duration of interference, the success rate of audio data transmission can be effectively improved, thereby improving the anti-interference performance of audio data transmission. Secondly, since an audio data packet is transmitted in two synchronous broadcast streams, the transmission delay of the audio data is short, avoiding the problem of audio and video being out of sync, and achieving effective balance between anti-interference performance and transmission delay. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0046] Figure 1 A schematic diagram of the architecture of a communication system provided in an embodiment of the present application;
[0047] Figure 2 A schematic diagram of a low-latency audio data transmission method provided in an embodiment of the present application Figure 1 ;
[0048] Figure 3A A schematic diagram of a low-latency audio data transmission method provided in an embodiment of the present application Figure 2 ;
[0049] Figure 3B A schematic diagram of a synchronous broadcast stream structure provided in an embodiment of the present application Figure 1 ;
[0050] Figure 4 A schematic diagram of a synchronous broadcast stream structure provided in an embodiment of the present application Figure 2 ;
[0051] Figure 5 A schematic diagram of a low-latency audio data transmission method provided in an embodiment of the present application Figure 2 ;
[0052] Figure 6 Schematic diagram 3 of a flow chart of a low-latency audio data transmission method provided in an embodiment of the present application;
[0053] Figure 7 A schematic diagram of a low-latency audio data transmission device provided in an embodiment of the present application Figure 1 ;
[0054] Figure 8 A schematic diagram of a low-latency audio data transmission device provided in an embodiment of the present application Figure 2 ;
[0055] Fig. 9 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and beneficial effects of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0057] For ease of understanding, the terms involved in the embodiments of the present invention are explained below.
[0058] MBRT: (Multi-stream Bluetooth Relay Technology), multiple audio stream Bluetooth forwarding technology, is an audio sharing mechanism based on Bluetooth Low Energy (BLE) audio broadcasting. In this mechanism, an audio source device can be connected to multiple audio receiving devices, thereby realizing multiple and independent data stream transmissions between an audio source device and multiple audio receiving devices. The technical solution in the embodiment of the present application is applicable to the MBRT scenario.
[0059] BIG: Broadcast Isochronous Group, synchronous broadcast group.
[0060] BIS: Broadcast Isochronous Stream, synchronous broadcast stream, this broadcast mode belongs to the non-connected mode, and multiple synchronous broadcast streams form a synchronous broadcast group. The synchronization of the broadcast mode is achieved through the periodic broadcast of the Protocol Data Unit (PDU), which contains a timestamp for the BIS. Once synchronized, the receiver can be called a synchronous receiver. In the embodiment of the present application, PDU refers to an audio data packet.
[0061] MBRT SRC: MBRT broadcast source, also known as audio source device, is used to create a synchronous broadcast group, broadcast the acquired audio data externally through a synchronous broadcast stream, and also play the audio data locally.
[0062] MBRT SINK: Broadcast receiver, also known as audio receiving device, is used to receive audio data packets, convert the audio data in the audio data into audio and play it.
[0063] refer to Figure 1 , which is a schematic diagram of the architecture of a communication system applicable to an embodiment of the present application, the system architecture at least includes an audio source device 101, an audio receiving device 102~1, an audio receiving device 102~2, ..., an audio receiving device 102~X, wherein X is a positive integer greater than 1.
[0064] The audio source device 101 is a device with an audio source function and an audio playback function, such as a smart phone, a tablet computer, a laptop computer, a smart home appliance, a headset, a speaker, etc. The audio source device 101 can obtain audio data as an audio source through Bluetooth, the Internet, etc. The audio source device 101 can directly play the audio source locally. Each audio receiving device is a device with a data receiving function and an audio playback function, such as a headset, a speaker, etc.
[0065] The audio source device 101 creates a synchronous broadcast group and broadcasts the broadcast code corresponding to the synchronous broadcast group or uploads the broadcast code to the cloud server. After the audio source device 101 encapsulates the acquired audio data into an audio data packet, it broadcasts it externally through the synchronous broadcast stream. At the same time, the audio source device 101 can play the audio corresponding to the audio data locally.
[0066] All audio receiving devices within the coverage of the broadcast signal can receive the data broadcast by the audio source device 101. Taking the audio receiving device 102~1 as an example, the audio receiving device 102~1 receives the broadcast code broadcast by the audio source device 101, or downloads the broadcast code from the cloud server, and joins the synchronous broadcast group based on the broadcast code. The audio receiving device 102~1 receives the audio data packet broadcast by the audio source device 101 through the synchronous broadcast stream, and then obtains the audio data from the audio data packet, and converts the audio data into audio for playback, so as to achieve synchronous playback of the audio between the audio source device 101 and the audio receiving device 102~1. It should be noted that if other audio receiving devices also receive the audio data packet broadcast by the audio source device 101, they can also play the audio synchronously.
[0067] The following is an example based on a specific application scenario. The audio source device 101 is set as a mobile phone, the audio receiving device 102~1 is a speaker, and the audio receiving device 102~2 is a headset. The mobile phone downloads the original audio data corresponding to song A from the Internet. Create a synchronous broadcast group, and broadcast the broadcast code corresponding to the synchronous broadcast group. Convert the obtained original audio data into multiple audio data packets in the synchronous broadcast stream format. Then broadcast the multiple audio data packets to the outside through the synchronous broadcast stream, and at the same time, the mobile phone can play song A locally.
[0068] After the speaker joins the synchronous broadcast group based on the obtained broadcast code, it synchronously receives the broadcast audio data packet, parses the audio data packet to obtain audio data, and then converts the audio data into the audio of song A and plays it. After the headset joins the synchronous broadcast group based on the obtained broadcast code, it synchronously receives the broadcast audio data packet, parses the audio data packet to obtain audio data, and then converts the audio data into the audio of song A and plays it. The above process can realize the synchronous playback of song A by the mobile phone, speaker and headset.
[0069] based on Figure 1 The system architecture diagram shown in the embodiment of the present application provides a process of a low-latency audio data transmission method, such as Figure 2 As shown, the process of the method is executed by the audio source device, including the following steps:
[0070] Step S201: Acquire a first audio data packet to be transmitted.
[0071] Step S202: creating an Rth simultaneous broadcast stream in the simultaneous broadcast group.
[0072] Among them, the Rth synchronized broadcast stream includes multiple sub-events for transmitting audio data packets, some sub-events in the Rth synchronized broadcast stream are used to retransmit the second audio data packet transmitted by some sub-events in the R-1th synchronized broadcast stream, and the remaining sub-events in the Rth synchronized broadcast stream are used to transmit the first audio data packet, and R is greater than 1.
[0073] Step S203, broadcasting the first audio data packet and the retransmitted second audio data packet via the Rth synchronous broadcast stream.
[0074] In the embodiment of the present application, an audio data packet is retransmitted multiple times in multiple synchronous broadcast streams. Therefore, in the presence of interference or when the interference lasts for a long time, the success rate of audio data transmission can be effectively improved, thereby improving the anti-interference ability of audio data transmission.
[0075] based on Figure 1 The system architecture diagram shown in the embodiment of the present application also provides a process of a low-latency audio data transmission method, such as Figure 3A As shown, the process of the method is executed by the audio source device, including the following steps:
[0076] Step S301: Acquire a first audio data packet to be transmitted.
[0077] The first audio data packet is an audio data packet that has not been transmitted before and meets the synchronous broadcast stream format. The first audio data packet includes first audio data to be transmitted.
[0078] In some embodiments, an original audio data packet is obtained, and based on the original audio protocol corresponding to the original audio data packet, the original audio data packet is decoded to obtain candidate audio data. Then, the candidate audio data is LC3 encoded to obtain the first audio data packet. The audio source device can play the first audio data or the candidate audio data locally.
[0079] In a specific implementation, the original audio data packet is obtained through Bluetooth protocol, hotspot, Internet, etc. Generally speaking, the original audio data packets obtained in different ways correspond to different original audio protocols.
[0080] For example, when receiving an original audio data packet sent by an original audio device through the Bluetooth audio transmission model protocol (Advanced Audio Distribution Profile, referred to as A2DP), the Bluetooth audio transmission model protocol is used to decode the original audio data packet to obtain candidate audio data. Then, the candidate audio data is LC3 encoded to obtain a first audio data packet that meets the synchronous broadcast streaming format.
[0081] It should be noted that the above audio data decoding and encoding process will cause playback delay, and this part of the playback delay is unavoidable. The audio data retransmission process will also cause transmission delay. Therefore, when the transmission delay is large, the transmission delay and the playback delay will cause the problem of audio and video being out of sync. In order to solve this problem, the present application adopts the retransmission method shown in the following step S302 to reduce the transmission delay, thereby avoiding the problem of audio and video being out of sync.
[0082] Step S302: creating an Rth simultaneous broadcast stream in the simultaneous broadcast group.
[0083] Specifically, the audio source device first creates a synchronous broadcast group. In the synchronous broadcast group, a synchronous broadcast stream is created at every preset time interval. Each synchronous broadcast stream includes the same number of sub-events, and each sub-event represents a time period when the audio source device broadcasts a specific audio data packet.
[0084] For the Rth synchronized broadcast stream, the Rth synchronized broadcast stream includes M sub-events for transmitting audio data packets. The first M-1 sub-events in the Rth synchronized broadcast stream are used to retransmit the second audio data packet transmitted by the last sub-event in the R-1th synchronized broadcast stream, that is, the audio data packets transmitted by the first M-1 sub-events in the Rth synchronized broadcast stream are the same.
[0085] The last sub-event in the Rth synchronous broadcast stream is used to transmit a first audio data packet, and the first audio data packet and the second audio data packet are different audio data packets.
[0086] In addition, under the above transmission mode, each audio data packet is retransmitted N times, and the retransmission is completed in two synchronous broadcast streams. The number of retransmissions of the audio data packet is set when creating the synchronous broadcast stream, R is greater than 1, and M is greater than or equal to 2.
[0087] Optionally, each synchronous broadcast stream corresponds to an audio data packet that actually needs to be transmitted.
[0088] In some embodiments, in the Rth synchronized broadcast stream, the first M-1 sub-events among the M sub-events are used to transmit the audio data packet actually required to be transmitted by the Rth synchronized broadcast stream. The last sub-event among the M sub-events is used to pre-transmit the audio data packet actually required to be transmitted by the R+1th synchronized broadcast stream.
[0089] In some embodiments, in the Rth simultaneous broadcast stream, the first M-1 sub-events among the M sub-events are used to retransmit the audio data packet actually required to be transmitted by the R-1th simultaneous broadcast stream. The last sub-event among the M sub-events is used to transmit the audio data packet actually required to be transmitted by the Rth simultaneous broadcast stream.
[0090] Step S303: broadcast the first audio data packet and M-1 identical second audio data packets via the Rth synchronous broadcast stream.
[0091] For example, if Figure 3B As shown, N=3 is set, and the third synchronized broadcast stream (BIS 3) includes 3 sub-events. The first sub-event and the second sub-event are used to transmit the audio data packet F4 that BIS 3 actually needs to transmit, and the third sub-event is used to pre-transmit the audio data packet F5 (the audio data packet that BIS 4 actually needs to transmit). Audio data packet F4, audio data packet F4, and audio data packet F5 are broadcast through the third synchronized broadcast stream.
[0092] The fourth synchronized broadcast stream (BIS 4) includes three sub-events. The first and second sub-events are used to transmit the audio data packet F5 that BIS 4 actually needs to transmit, and the third sub-event is used to pre-transmit the audio data packet F6 (the audio data packet that BIS5 actually needs to transmit). The audio data packet F5, the audio data packet F5, and the audio data packet F6 are broadcasted through the fourth synchronized broadcast stream.
[0093] From the above content, it can be seen that the audio data packet F5 is transmitted in both the third and fourth synchronized broadcast streams, and the audio data packet F5 is transmitted twice in the fourth synchronized broadcast stream. In this way, the audio data packet F5 is retransmitted three times through the two synchronized broadcast streams. It should be noted that each of the other audio data packets will also be retransmitted three times using the same transmission method, which will not be repeated here.
[0094] In the embodiment of the present application, multiple retransmissions of an audio data packet are completed in two synchronous broadcast streams, so in the case of interference or long duration of interference, the success rate of audio data transmission can be effectively improved, thereby improving the anti-interference performance of audio data transmission. Secondly, since an audio data packet is transmitted in two synchronous broadcast streams, the transmission delay of the audio data is short, avoiding the problem of audio and video being out of sync, and achieving effective balance between anti-interference performance and transmission delay.
[0095] In some embodiments, the first audio data in the first audio data packet is two-channel audio data.
[0096] Specifically, the first audio data packet includes audio data of two channels. Figure 4 As shown, the audio data packet F5 includes audio data corresponding to channel 1 and audio data corresponding to channel 2. In actual application scenarios, channel 1 is the left channel and channel 2 is the right channel; or channel 1 is the right channel and channel 2 is the left channel, and this application does not make specific limitations on this.
[0097] If the audio source device is a mono audio device, the mono audio data corresponding to the mono audio device is obtained from the dual-channel audio data, and the mono audio data is converted into the first audio, and the first audio is played. If the audio source device is a dual-channel audio device, the dual-channel audio data is converted into the first audio, and the first audio is played.
[0098] For example, if the audio source device is a left earphone, the left channel audio data is obtained from the dual channel audio data, and the left channel audio data is converted into a first audio, and the first audio is played.
[0099] For another example, if the audio source device is a two-channel speaker, the two-channel audio data is directly converted into the first audio, and the first audio is played.
[0100] In the embodiment of the present application, the first audio data in the first audio data packet is dual-channel audio data, thereby achieving stereo playback of the audio, thereby improving the effect of the audio playback.
[0101] It should be noted that the audio data in other audio data packets broadcast through the synchronous broadcast stream may also be dual-channel audio data, which will not be described in detail here.
[0102] based on Figure 1 The system architecture diagram shown in the embodiment of the present application provides a process of a low-latency audio data transmission method, such as Figure 5 As shown, the process of the method is executed by each audio receiving device in the plurality of audio receiving devices, and includes the following steps:
[0103] Step S501, receiving a first audio data packet broadcasted via an Rth simultaneous broadcast stream in a simultaneous broadcast group.
[0104] Among them, the Rth synchronized broadcast stream includes M sub-events for transmitting audio data packets, the first M-1 sub-events in the Rth synchronized broadcast stream are used to retransmit the second audio data packet transmitted by the last sub-event in the R-1th synchronized broadcast stream, and the last sub-event in the Rth synchronized broadcast stream is used to transmit the first audio data packet, R is greater than 1, and M is greater than or equal to 2.
[0105] Step S502: parse the first audio data packet to obtain first audio data.
[0106] Step S503: convert the first audio data into a first audio, and play the first audio.
[0107] Specifically, since the first audio data is two-channel audio data, when the type of the audio receiving device is different, the processing method of the two-channel audio data is also different. For example, when the audio receiving device is a mono audio device, the corresponding mono audio data is obtained from the two-channel audio data, and the audio corresponding to the mono audio data is played. When the audio receiving device is a two-channel audio device, the audio corresponding to the two-channel audio data is directly played.
[0108] In the embodiment of the present application, multiple retransmissions of an audio data packet are completed in two synchronous broadcast streams, so in the case of interference or long duration of interference, the success rate of audio data transmission can be effectively improved, thereby improving the anti-interference performance of audio data transmission. Secondly, since an audio data packet is transmitted in two synchronous broadcast streams, the transmission delay of the audio data is short, avoiding the problem of audio and video being out of sync, and achieving effective balance between anti-interference performance and transmission delay.
[0109] In some embodiments, before receiving a first audio data packet broadcasted via an Rth simultaneous broadcast stream in a simultaneous broadcast group, a second audio data packet retransmitted via an Rth simultaneous broadcast stream is received, and the second audio data packet is parsed to obtain second audio data.
[0110] If the second audio data has not been correctly received and parsed before, the second audio data is converted into the second audio and the second audio is played. If the second audio data has been correctly received and parsed before, the step of converting the second audio data into the second audio and playing the second audio is skipped.
[0111] In a specific implementation, if the second audio data packet has been correctly received and parsed before, it does not need to be parsed again. If it has not been correctly received and parsed before, it is necessary to parse the second audio data packet received this time and play the related audio, so as to avoid audio jams and improve the user's audio listening experience.
[0112] In order to better explain the embodiment of the present application, the following describes a process of a low-latency audio data transmission method provided by the embodiment of the present application in combination with a specific implementation scenario. The process of the method can be Figure 1 The audio source device and the multiple audio receiving devices shown in the figure are interactively executed, wherein the multiple audio receiving devices include a first audio receiving device and a second audio receiving device, including the following steps, such as Figure 6 As shown:
[0113] Step S601: the audio source device obtains an audio data packet F6 to be transmitted.
[0114] Step S602: the audio source device creates the fourth simultaneous broadcast stream in the simultaneous broadcast group.
[0115] Specifically, the three sub-events in the third synchronized broadcast stream are respectively used to transmit audio data packet F4, audio data packet F4 and audio data packet F5, and the three sub-events in the fourth synchronized broadcast stream are respectively used to transmit audio data packet F5, audio data packet F5 and audio data packet F6.
[0116] In step S603 , the audio source device broadcasts the audio data packet F5 , the audio data packet F5 , and the audio data packet F6 via the fourth synchronous broadcast stream.
[0117] In step S604, the first audio receiving device sequentially receives the audio data packet F5, the audio data packet F5 and the audio data packet F6 broadcasted through the fourth simultaneous broadcast stream.
[0118] Step S605: If the audio data packet F5 has been correctly received and parsed before, the first audio receiving device only parses the audio data packet F6 to obtain the dual-channel audio data in the audio data packet F6.
[0119] Step S606: The first audio receiving device converts the two-channel audio data into audio, and plays the audio.
[0120] In addition, when the first audio data packet F5 broadcasted by the fourth simultaneous broadcast stream is received, if the audio data packet F5 has not been correctly received and parsed before, the first audio data packet F5 is parsed to obtain the two-channel audio data in the first audio data packet F5. The two-channel audio data is then converted into audio, and the audio is played. When the second audio data packet F5 broadcasted by the fourth simultaneous broadcast stream is subsequently received, the process of parsing the second audio data packet F5 can be directly skipped.
[0121] It should be noted that the second audio receiving device also executes the above steps S604 to S606, which will not be described in detail here.
[0122] In the embodiment of the present application, multiple retransmissions of an audio data packet are completed in two synchronous broadcast streams, so in the case of interference or long duration of interference, the success rate of audio data transmission can be effectively improved, thereby improving the anti-interference performance of audio data transmission. Secondly, since an audio data packet is transmitted in two synchronous broadcast streams, the transmission delay of the audio data is short, avoiding the problem of audio and video being out of sync, and achieving effective balance between anti-interference performance and transmission delay.
[0123] Based on the same technical concept, the embodiment of the present application provides a structural schematic diagram of a low-latency audio data transmission device, which is applied to an audio source device, such as Figure 7 As shown, the device 700 includes:
[0124] An acquisition module 701 is used to acquire a first audio data packet to be transmitted;
[0125] The processing module 702 is used to create an R-th synchronized broadcast stream in the synchronized broadcast group, wherein the R-th synchronized broadcast stream includes M sub-events for transmitting audio data packets, the first M-1 sub-events in the R-th synchronized broadcast stream are used to retransmit the second audio data packet transmitted by the last sub-event in the R-1-th synchronized broadcast stream, and the last sub-event in the R-th synchronized broadcast stream is used to transmit the first audio data packet, R is greater than 1, and M is greater than or equal to 2;
[0126] The broadcast module 703 is configured to broadcast the first audio data packet and M-1 identical second audio data packets via the Rth synchronous broadcast stream.
[0127] Optionally, the acquisition module 701 is specifically used for:
[0128] Acquire an original audio data packet, and decode the original audio data packet based on an original audio protocol corresponding to the original audio data packet to obtain candidate audio data;
[0129] Perform LC3 encoding on the candidate audio data to obtain the first audio data packet.
[0130] Optionally, the acquisition module 701 is specifically used for:
[0131] Receive the original audio data packet sent by the original audio device through the Bluetooth audio transmission model protocol;
[0132] The original audio data packet is decoded using a Bluetooth audio transmission model protocol to obtain candidate audio data.
[0133] Optionally, the M sub-events are three sub-events, and the first audio data in the first audio data packet is dual-channel audio data.
[0134] In the embodiment of the present application, multiple retransmissions of an audio data packet are completed in two synchronous broadcast streams, so in the case of interference or long duration of interference, the success rate of audio data transmission can be effectively improved, thereby improving the anti-interference performance of audio data transmission. Secondly, since an audio data packet is transmitted in two synchronous broadcast streams, the transmission delay of the audio data is short, avoiding the problem of audio and video being out of sync, and achieving effective balance between anti-interference performance and transmission delay.
[0135] Based on the same technical concept, the embodiment of the present application provides a structural schematic diagram of a low-latency audio data transmission device, which is applied to each audio receiving device in multiple audio receiving devices, such as Figure 8 As shown, the device 800 includes:
[0136] A receiving module 801 is used to receive a first audio data packet broadcasted by an audio source device through an R-th synchronous broadcast stream in a synchronous broadcast group, wherein the R-th synchronous broadcast stream includes M sub-events for transmitting audio data packets, the first M-1 sub-events in the R-th synchronous broadcast stream are used to retransmit a second audio data packet transmitted by the last sub-event in the R-1-th synchronous broadcast stream, the last sub-event in the R-th synchronous broadcast stream is used to transmit the first audio data packet, R is greater than 1, and M is greater than or equal to 2;
[0137] The parsing module 802 is used to parse the first audio data packet to obtain first audio data;
[0138] The playing module 803 is used to convert the first audio data into a first audio and play the first audio.
[0139] Optionally, the receiving module 801 is further used for:
[0140] Before receiving a first audio data packet broadcasted through an Rth synchronous broadcast stream in a synchronous broadcast group, receiving a second audio data packet retransmitted through the Rth synchronous broadcast stream, and parsing the second audio data packet to obtain second audio data;
[0141] The playback module 803 is also used for:
[0142] If the second audio corresponding to the second audio data has not been played before, the second audio data is converted into the second audio, and the second audio is played.
[0143] Optionally, the playing module 803 is further used for:
[0144] If the second audio of the second audio data pair has been played before, the step of converting the second audio data into the second audio and playing the second audio is skipped.
[0145] In the embodiment of the present application, multiple retransmissions of an audio data packet are completed in two synchronous broadcast streams, so in the case of interference or long duration of interference, the success rate of audio data transmission can be effectively improved, thereby improving the anti-interference performance of audio data transmission. Secondly, since an audio data packet is transmitted in two synchronous broadcast streams, the transmission delay of the audio data is short, avoiding the problem of audio and video being out of sync, and achieving effective balance between anti-interference performance and transmission delay.
[0146] Based on the same technical concept, the embodiment of the present application provides a computer device, which can be Figure 1 The terminal device and / or server shown, such as Fig. 9 As shown, it includes at least one processor 901 and a memory 902 connected to the at least one processor. The specific connection medium between the processor 901 and the memory 902 is not limited in the embodiment of the present application. Fig. 9 For example, the processor 901 and the memory 902 are connected via a bus. The bus can be divided into an address bus, a data bus, a control bus, etc.
[0147] In an embodiment of the present application, the memory 902 stores instructions that can be executed by at least one processor 901, and the at least one processor 901 can perform the steps of the above-mentioned low-latency audio data transmission method by executing the instructions stored in the memory 902.
[0148] Among them, the processor 901 is the control center of the computer device, and can use various interfaces and lines to connect various parts of the computer device, and realize audio data transmission by running or executing instructions stored in the memory 902 and calling data stored in the memory 902. Optionally, the processor 901 may include one or more processing units, and the processor 901 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 901. In some embodiments, the processor 901 and the memory 902 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.
[0149] Processor 901 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor.
[0150] The memory 902 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 902 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 902 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer device, but is not limited thereto. The memory 902 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0151] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program that can be executed by a computer device. When the program runs on the computer device, the computer device executes the steps of the above-mentioned low-latency audio data transmission method.
[0152] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0153] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer device or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0154] These computer program instructions may also be stored in a computer readable memory capable of directing a computer device or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0155] These computer program instructions can also be loaded onto a computer device or other programmable data processing device so that a series of operation steps are executed on the computer device or other programmable device to produce a process implemented by the computer device, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0156] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0157] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A low-latency audio data transmission method, applied to an audio source device, characterized in that: include: Acquire a first audio data packet to be transmitted; Creating an Rth synchronized broadcast stream in a synchronized broadcast group, wherein the Rth synchronized broadcast stream includes M sub-events for transmitting audio data packets, the first M-1 sub-events in the Rth synchronized broadcast stream are used to retransmit the second audio data packet transmitted by the last sub-event in the R-1th synchronized broadcast stream, the last sub-event in the Rth synchronized broadcast stream is used to transmit the first audio data packet, R is greater than 1, and M is greater than or equal to 2; The first audio data packet and M-1 identical second audio data packets are broadcast through the Rth synchronous broadcast stream, so that the audio receiving device parses the second audio data packet to obtain the second audio data; if the second audio corresponding to the second audio data has been played before, the step of converting the second audio data into the second audio and playing the second audio is skipped.
2. The method according to claim 1, characterized in that The step of obtaining a first audio data packet to be transmitted includes: Acquire an original audio data packet, and decode the original audio data packet based on an original audio protocol corresponding to the original audio data packet to obtain candidate audio data; Perform LC3 encoding on the candidate audio data to obtain the first audio data packet.
3. The method according to claim 2, characterized in that The obtaining of the original audio data packet and decoding the original audio data packet based on the original audio protocol corresponding to the original audio data packet to obtain the candidate audio data includes: Receive the original audio data packet sent by the original audio device through the Bluetooth audio transmission model protocol; The original audio data packet is decoded using a Bluetooth audio transmission model protocol to obtain candidate audio data.
4. The method according to any one of claims 1 to 3, characterized in that: The M sub-events are three sub-events, and the first audio data in the first audio data packet is dual-channel audio data.
5. A low-latency audio data transmission method, applied to each audio receiving device in a plurality of audio receiving devices, characterized in that: include: receiving a second audio data packet retransmitted through the Rth synchronous broadcast stream, and parsing the second audio data packet to obtain second audio data; If the second audio of the second audio data pair has been played before, skipping the step of converting the second audio data into the second audio and playing the second audio; Receiving a first audio data packet broadcasted by an audio source device through an R-th synchronous broadcast stream in a synchronous broadcast group, wherein the R-th synchronous broadcast stream includes M sub-events for transmitting audio data packets, the first M-1 sub-events in the R-th synchronous broadcast stream are used to retransmit a second audio data packet transmitted by the last sub-event in the R-1-th synchronous broadcast stream, the last sub-event in the R-th synchronous broadcast stream is used to transmit the first audio data packet, R is greater than 1, and M is greater than or equal to 2; Parsing the first audio data packet to obtain first audio data; The first audio data is converted into a first audio, and the first audio is played.
6. The method according to claim 5, characterized in that Before receiving the first audio data packet broadcasted by the Rth simultaneous broadcast stream in the simultaneous broadcast group, the method further includes: If the second audio corresponding to the second audio data has not been played before, the second audio data is converted into the second audio, and the second audio is played.
7. A low-latency audio data transmission method, applied to an audio source device, characterized in that: include: Acquire a first audio data packet to be transmitted; Creating an Rth synchronized broadcast stream in a synchronized broadcast group, wherein the Rth synchronized broadcast stream includes a plurality of sub-events for transmitting audio data packets, some of the sub-events in the Rth synchronized broadcast stream are used to retransmit the second audio data packet transmitted by some of the sub-events in the R-1th synchronized broadcast stream, and the remaining sub-events in the Rth synchronized broadcast stream are used to transmit the first audio data packet, and R is greater than 1; The first audio data packet and the retransmitted second audio data packet are broadcast through the Rth synchronous broadcast stream, so that the audio receiving device parses the second audio data packet to obtain the second audio data; if the second audio corresponding to the second audio data has been played before, the step of converting the second audio data into the second audio and playing the second audio is skipped.
8. A low-latency audio data transmission device, applied to an audio source device, characterized in that: include: An acquisition module, used for acquiring a first audio data packet to be transmitted; A processing module, configured to create an R-th synchronized broadcast stream in a synchronized broadcast group, wherein the R-th synchronized broadcast stream includes M sub-events for transmitting audio data packets, the first M-1 sub-events in the R-th synchronized broadcast stream are used to retransmit a second audio data packet transmitted by the last sub-event in the R-1-th synchronized broadcast stream, the last sub-event in the R-th synchronized broadcast stream is used to transmit the first audio data packet, R is greater than 1, and M is greater than or equal to 2; The broadcast module is used to broadcast the first audio data packet and M-1 identical second audio data packets through the Rth synchronous broadcast stream, so that the audio receiving device parses the second audio data packet to obtain the second audio data; if the second audio corresponding to the second audio data has been played before, skip the step of converting the second audio data into the second audio and playing the second audio.
9. A low-latency audio data transmission device, applied to each audio receiving device among a plurality of audio receiving devices, characterized in that: include: A receiving module, configured to receive a second audio data packet retransmitted through the Rth synchronous broadcast stream, and parse the second audio data packet to obtain second audio data; If the second audio of the second audio data pair has been played before, skipping the step of converting the second audio data into the second audio and playing the second audio; The receiving module is further used to receive a first audio data packet broadcasted by an audio source device through an R-th synchronous broadcast stream in a synchronous broadcast group, wherein the R-th synchronous broadcast stream includes M sub-events for transmitting audio data packets, the first M-1 sub-events in the R-th synchronous broadcast stream are used to retransmit a second audio data packet transmitted by the last sub-event in the R-1-th synchronous broadcast stream, the last sub-event in the R-th synchronous broadcast stream is used to transmit the first audio data packet, R is greater than 1, and M is greater than or equal to 2; A parsing module, used for parsing the first audio data packet to obtain first audio data; The playing module is used to convert the first audio data into a first audio and play the first audio.
10. A computer-readable storage medium, characterized in that: It stores a computer program executable by a computer device. When the program is run on the computer device, the computer device executes the steps of any method described in claims 1 to 7.
Citation Information
Patent Citations
Audio data transmission method, device and system, storage medium and earphone
CN113347578A
